anarock-widgets 1.0.69 → 1.0.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +43 -43
- package/dist/index.es.js +547 -533
- package/dist/index.umd.js +44 -44
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("react"),fo=require("react-dom");function bE(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const _=bE(I),uM=bE(fo);function ui(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ql={exports:{}},
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("react"),fo=require("react-dom");function bE(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const _=bE(I),uM=bE(fo);function ui(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ql={exports:{}},Xa={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var sb;function dM(){if(sb)return
|
|
9
|
+
*/var sb;function dM(){if(sb)return Xa;sb=1;var e=I,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(s,l,c){var u,d={},p=null,h=null;c!==void 0&&(p=""+c),l.key!==void 0&&(p=""+l.key),l.ref!==void 0&&(h=l.ref);for(u in l)r.call(l,u)&&!o.hasOwnProperty(u)&&(d[u]=l[u]);if(s&&s.defaultProps)for(u in l=s.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:s,key:p,ref:h,props:d,_owner:i.current}}return Xa.Fragment=n,Xa.jsx=a,Xa.jsxs=a,Xa}var Za={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -27,7 +27,7 @@ Check the top-level render call using <`+se+">.")}return ee}}function be($,ee){{
|
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,kf,Xi,lM,Xi),ob[Xi+kf]=!0}}return $===r?rM(Mt):Ho(Mt),Mt}}function iM($,ee,se){return ab($,ee,se,!0)}function oM($,ee,se){return ab($,ee,se,!1)}var aM=oM,sM=iM;
|
|
30
|
+
<%s key={someKey} {...props} />`,kf,Xi,lM,Xi),ob[Xi+kf]=!0}}return $===r?rM(Mt):Ho(Mt),Mt}}function iM($,ee,se){return ab($,ee,se,!0)}function oM($,ee,se){return ab($,ee,se,!1)}var aM=oM,sM=iM;Za.Fragment=r,Za.jsx=aM,Za.jsxs=sM})()),Za}var cb;function pM(){return cb||(cb=1,process.env.NODE_ENV==="production"?Ql.exports=dM():Ql.exports=fM()),Ql.exports}var w=pM();const st=({title:e,icon:t,period:n,children:r,footer:i,className:o="",childrenClassName:a,titleWeight:s})=>{const l=s==="semi-bold"?600:500;return w.jsxs("div",{className:`relative bg-white !border-[0.5px] !border-[#EBEBEB] !rounded-[12px] !shadow-[0_0_12px_0_#EAF2FF] p-[16px] flex flex-col gap-[24px] ${o}`,children:[w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsxs("div",{className:"flex items-center gap-[12px]",children:[t,w.jsx("div",{style:{fontWeight:l,fontSize:"16px",lineHeight:"20px"},className:"!my-0 !text-[16px] !leading-[20px] !text-[#121212]",children:e})]}),n&&w.jsx("div",{className:"!text-[12px] !leading-[16px] !text-[#64748B]",children:n})]}),w.jsx("div",{className:`flex-1 min-h-0 space-y-[24px] ${a}`,children:r}),i&&w.jsx("div",{className:"mt-3 pt-3 border-t border-gray-100 !text-[12px] text-[#64748B]",children:i})]})},ub=e=>e,hM=()=>{let e=ub;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ub}}},mM=hM();function jr(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function Re(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":jr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function db(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}var ec={exports:{}},tc={exports:{}},$e={};/** @license React v16.13.1
|
|
31
31
|
* react-is.production.min.js
|
|
32
32
|
*
|
|
33
33
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -62,11 +62,11 @@ Valid keys: `+JSON.stringify(Object.keys(F),null," "));var A=J(ie,H,Q,X,te+"."+
|
|
|
62
62
|
*
|
|
63
63
|
* This source code is licensed under the MIT license found in the
|
|
64
64
|
* LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/var Sb;function _M(){return Sb||(Sb=1,process.env.NODE_ENV!=="production"&&(function(){function e(m){if(typeof m=="object"&&m!==null){var v=m.$$typeof;switch(v){case t:switch(m=m.type,m){case r:case o:case i:case c:case u:case h:return m;default:switch(m=m&&m.$$typeof,m){case s:case l:case p:case d:return m;case a:return m;default:return v}}case n:return v}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");Ye.ContextConsumer=a,Ye.ContextProvider=s,Ye.Element=t,Ye.ForwardRef=l,Ye.Fragment=r,Ye.Lazy=p,Ye.Memo=d,Ye.Portal=n,Ye.Profiler=o,Ye.StrictMode=i,Ye.Suspense=c,Ye.SuspenseList=u,Ye.isContextConsumer=function(m){return e(m)===a},Ye.isContextProvider=function(m){return e(m)===s},Ye.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},Ye.isForwardRef=function(m){return e(m)===l},Ye.isFragment=function(m){return e(m)===r},Ye.isLazy=function(m){return e(m)===p},Ye.isMemo=function(m){return e(m)===d},Ye.isPortal=function(m){return e(m)===n},Ye.isProfiler=function(m){return e(m)===o},Ye.isStrictMode=function(m){return e(m)===i},Ye.isSuspense=function(m){return e(m)===c},Ye.isSuspenseList=function(m){return e(m)===u},Ye.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===o||m===i||m===c||m===u||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===d||m.$$typeof===s||m.$$typeof===a||m.$$typeof===l||m.$$typeof===g||m.getModuleId!==void 0)},Ye.typeOf=e})()),Ye}var Eb;function PM(){return Eb||(Eb=1,process.env.NODE_ENV==="production"?nc.exports=EM():nc.exports=_M()),nc.exports}var ki=PM();function Pr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function SE(e){if(_.isValidElement(e)||ki.isValidElementType(e)||!Pr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=SE(e[n])}),t}function cn(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Pr(e)&&Pr(t)&&Object.keys(t).forEach(i=>{_.isValidElement(t[i])||ki.isValidElementType(t[i])?r[i]=t[i]:Pr(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Pr(e[i])?r[i]=cn(e[i],t[i],n):n.clone?r[i]=Pr(t[i])?SE(t[i]):t[i]:r[i]=t[i]}),r}function
|
|
66
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:jr(18,`(${t})`));return null}const[,r,i]=n,o=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(o)}function AM(e){const t=(o,a)=>o.replace("@media",a?`@container ${a}`:"@container");function n(o,a){o.up=(...s)=>t(e.breakpoints.up(...s),a),o.down=(...s)=>t(e.breakpoints.down(...s),a),o.between=(...s)=>t(e.breakpoints.between(...s),a),o.only=(...s)=>t(e.breakpoints.only(...s),a),o.not=(...s)=>{const l=t(e.breakpoints.not(...s),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},i=o=>(n(r,o),r);return n(i),{...e,containerQueries:i}}const hd={xs:0,sm:600,md:900,lg:1200,xl:1536},Pb={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${hd[e]}px)`},kM={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:hd[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function ni(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||Pb;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||Pb;return Object.keys(t).reduce((a,s)=>{if(CM(o.keys,s)){const l=TM(r.containerQueries?r:kM,s);l&&(a[l]=n(t[s],s))}else if(Object.keys(o.values||hd).includes(s)){const l=o.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function MM(e={}){return e.keys?.reduce((n,r)=>{const i=e.up(r);return n[i]={},n},{})||{}}function Cb(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function md(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function iu(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=md(e,n)||r,t&&(i=t(i,r,e)),i}function Tt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=md(l,r)||{};return ni(a,s,d=>{let p=iu(c,i,d);return d===p&&typeof d=="string"&&(p=iu(c,i,`${t}${d==="default"?"":Re(d)}`,d)),n===!1?p:{[n]:p}})};return o.propTypes=process.env.NODE_ENV!=="production"?{[t]:Li}:{},o.filterProps=[t],o}function jM(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const NM={m:"margin",p:"padding"},RM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Tb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},DM=jM(e=>{if(e.length>2)if(Tb[e])e=Tb[e];else return[e];const[t,n]=e.split(""),r=NM[t],i=RM[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),gd=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],vd=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],IM=[...gd,...vd];function
|
|
65
|
+
*/var Sb;function _M(){return Sb||(Sb=1,process.env.NODE_ENV!=="production"&&(function(){function e(m){if(typeof m=="object"&&m!==null){var v=m.$$typeof;switch(v){case t:switch(m=m.type,m){case r:case o:case i:case c:case u:case h:return m;default:switch(m=m&&m.$$typeof,m){case s:case l:case p:case d:return m;case a:return m;default:return v}}case n:return v}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");Ye.ContextConsumer=a,Ye.ContextProvider=s,Ye.Element=t,Ye.ForwardRef=l,Ye.Fragment=r,Ye.Lazy=p,Ye.Memo=d,Ye.Portal=n,Ye.Profiler=o,Ye.StrictMode=i,Ye.Suspense=c,Ye.SuspenseList=u,Ye.isContextConsumer=function(m){return e(m)===a},Ye.isContextProvider=function(m){return e(m)===s},Ye.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},Ye.isForwardRef=function(m){return e(m)===l},Ye.isFragment=function(m){return e(m)===r},Ye.isLazy=function(m){return e(m)===p},Ye.isMemo=function(m){return e(m)===d},Ye.isPortal=function(m){return e(m)===n},Ye.isProfiler=function(m){return e(m)===o},Ye.isStrictMode=function(m){return e(m)===i},Ye.isSuspense=function(m){return e(m)===c},Ye.isSuspenseList=function(m){return e(m)===u},Ye.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===o||m===i||m===c||m===u||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===d||m.$$typeof===s||m.$$typeof===a||m.$$typeof===l||m.$$typeof===g||m.getModuleId!==void 0)},Ye.typeOf=e})()),Ye}var Eb;function PM(){return Eb||(Eb=1,process.env.NODE_ENV==="production"?nc.exports=EM():nc.exports=_M()),nc.exports}var ki=PM();function Pr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function SE(e){if(_.isValidElement(e)||ki.isValidElementType(e)||!Pr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=SE(e[n])}),t}function cn(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Pr(e)&&Pr(t)&&Object.keys(t).forEach(i=>{_.isValidElement(t[i])||ki.isValidElementType(t[i])?r[i]=t[i]:Pr(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Pr(e[i])?r[i]=cn(e[i],t[i],n):n.clone?r[i]=Pr(t[i])?SE(t[i]):t[i]:r[i]=t[i]}),r}function Ms(e,t){return t?cn(e,t,{clone:!1}):e}const Li=process.env.NODE_ENV!=="production"?f.oneOfType([f.number,f.string,f.object,f.array]):{};function _b(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,i)=>{const o=/min-width:\s*([0-9.]+)/;return+(r.match(o)?.[1]||0)-+(i.match(o)?.[1]||0)});return n.length?n.reduce((r,i)=>{const o=t[i];return delete r[i],r[i]=o,r},{...t}):t}function CM(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function TM(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
66
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:jr(18,`(${t})`));return null}const[,r,i]=n,o=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(o)}function AM(e){const t=(o,a)=>o.replace("@media",a?`@container ${a}`:"@container");function n(o,a){o.up=(...s)=>t(e.breakpoints.up(...s),a),o.down=(...s)=>t(e.breakpoints.down(...s),a),o.between=(...s)=>t(e.breakpoints.between(...s),a),o.only=(...s)=>t(e.breakpoints.only(...s),a),o.not=(...s)=>{const l=t(e.breakpoints.not(...s),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},i=o=>(n(r,o),r);return n(i),{...e,containerQueries:i}}const hd={xs:0,sm:600,md:900,lg:1200,xl:1536},Pb={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${hd[e]}px)`},kM={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:hd[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function ni(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||Pb;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||Pb;return Object.keys(t).reduce((a,s)=>{if(CM(o.keys,s)){const l=TM(r.containerQueries?r:kM,s);l&&(a[l]=n(t[s],s))}else if(Object.keys(o.values||hd).includes(s)){const l=o.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function MM(e={}){return e.keys?.reduce((n,r)=>{const i=e.up(r);return n[i]={},n},{})||{}}function Cb(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function md(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function iu(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=md(e,n)||r,t&&(i=t(i,r,e)),i}function Tt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=md(l,r)||{};return ni(a,s,d=>{let p=iu(c,i,d);return d===p&&typeof d=="string"&&(p=iu(c,i,`${t}${d==="default"?"":Re(d)}`,d)),n===!1?p:{[n]:p}})};return o.propTypes=process.env.NODE_ENV!=="production"?{[t]:Li}:{},o.filterProps=[t],o}function jM(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const NM={m:"margin",p:"padding"},RM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Tb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},DM=jM(e=>{if(e.length>2)if(Tb[e])e=Tb[e];else return[e];const[t,n]=e.split(""),r=NM[t],i=RM[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),gd=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],vd=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],IM=[...gd,...vd];function bl(e,t,n,r){const i=md(e,t,!0)??n;return typeof i=="number"||typeof i=="string"?o=>typeof o=="string"?o:(process.env.NODE_ENV!=="production"&&typeof o!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${o}.`),typeof i=="string"?i.startsWith("var(")&&o===0?0:i.startsWith("var(")&&o===1?i:`calc(${o} * ${i})`:i*o):Array.isArray(i)?o=>{if(typeof o=="string")return o;const a=Math.abs(o);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>i.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${a} > ${i.length-1}, you need to add the missing values.`].join(`
|
|
67
67
|
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
68
68
|
`)));const s=i[a];return o>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
69
|
-
`)),()=>{})}function lg(e){return yl(e,"spacing",8,"spacing")}function bl(e,t){return typeof t=="string"||t==null?t:e(t)}function $M(e,t){return n=>e.reduce((r,i)=>(r[i]=bl(t,n),r),{})}function LM(e,t,n,r){if(!t.includes(n))return null;const i=DM(n),o=$M(i,r),a=e[n];return ni(e,a,o)}function EE(e,t){const n=lg(e.theme);return Object.keys(e).map(r=>LM(e,t,r,n)).reduce(ks,{})}function yt(e){return EE(e,gd)}yt.propTypes=process.env.NODE_ENV!=="production"?gd.reduce((e,t)=>(e[t]=Li,e),{}):{};yt.filterProps=gd;function bt(e){return EE(e,vd)}bt.propTypes=process.env.NODE_ENV!=="production"?vd.reduce((e,t)=>(e[t]=Li,e),{}):{};bt.filterProps=vd;process.env.NODE_ENV!=="production"&&IM.reduce((e,t)=>(e[t]=Li,e),{});function yd(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?ks(i,t[o](r)):i,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,i)=>Object.assign(r,i.propTypes),{}):{},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Qn(e){return typeof e!="number"?e:`${e}px solid`}function lr(e,t){return Tt({prop:e,themeKey:"borders",transform:t})}const FM=lr("border",Qn),BM=lr("borderTop",Qn),zM=lr("borderRight",Qn),VM=lr("borderBottom",Qn),WM=lr("borderLeft",Qn),UM=lr("borderColor"),HM=lr("borderTopColor"),qM=lr("borderRightColor"),KM=lr("borderBottomColor"),YM=lr("borderLeftColor"),GM=lr("outline",Qn),XM=lr("outlineColor"),bd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=yl(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:bl(t,r)});return ni(e,e.borderRadius,n)}return null};bd.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Li}:{};bd.filterProps=["borderRadius"];yd(FM,BM,zM,VM,WM,UM,HM,qM,KM,YM,bd,GM,XM);const xd=e=>{if(e.gap!==void 0&&e.gap!==null){const t=yl(e.theme,"spacing",8,"gap"),n=r=>({gap:bl(t,r)});return ni(e,e.gap,n)}return null};xd.propTypes=process.env.NODE_ENV!=="production"?{gap:Li}:{};xd.filterProps=["gap"];const wd=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=yl(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:bl(t,r)});return ni(e,e.columnGap,n)}return null};wd.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Li}:{};wd.filterProps=["columnGap"];const Od=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=yl(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:bl(t,r)});return ni(e,e.rowGap,n)}return null};Od.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Li}:{};Od.filterProps=["rowGap"];const ZM=Tt({prop:"gridColumn"}),JM=Tt({prop:"gridRow"}),QM=Tt({prop:"gridAutoFlow"}),ej=Tt({prop:"gridAutoColumns"}),tj=Tt({prop:"gridAutoRows"}),nj=Tt({prop:"gridTemplateColumns"}),rj=Tt({prop:"gridTemplateRows"}),ij=Tt({prop:"gridTemplateAreas"}),oj=Tt({prop:"gridArea"});yd(xd,wd,Od,ZM,JM,QM,ej,tj,nj,rj,ij,oj);function ca(e,t){return t==="grey"?t:e}const aj=Tt({prop:"color",themeKey:"palette",transform:ca}),sj=Tt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ca}),lj=Tt({prop:"backgroundColor",themeKey:"palette",transform:ca});yd(aj,sj,lj);function Rn(e){return e<=1&&e!==0?`${e*100}%`:e}const cj=Tt({prop:"width",transform:Rn}),cg=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||hd[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Rn(n)}};return ni(e,e.maxWidth,t)}return null};cg.filterProps=["maxWidth"];const uj=Tt({prop:"minWidth",transform:Rn}),dj=Tt({prop:"height",transform:Rn}),fj=Tt({prop:"maxHeight",transform:Rn}),pj=Tt({prop:"minHeight",transform:Rn});Tt({prop:"size",cssProperty:"width",transform:Rn});Tt({prop:"size",cssProperty:"height",transform:Rn});const hj=Tt({prop:"boxSizing"});yd(cj,cg,uj,dj,fj,pj,hj);const xl={border:{themeKey:"borders",transform:Qn},borderTop:{themeKey:"borders",transform:Qn},borderRight:{themeKey:"borders",transform:Qn},borderBottom:{themeKey:"borders",transform:Qn},borderLeft:{themeKey:"borders",transform:Qn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Qn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:bd},color:{themeKey:"palette",transform:ca},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ca},backgroundColor:{themeKey:"palette",transform:ca},p:{style:bt},pt:{style:bt},pr:{style:bt},pb:{style:bt},pl:{style:bt},px:{style:bt},py:{style:bt},padding:{style:bt},paddingTop:{style:bt},paddingRight:{style:bt},paddingBottom:{style:bt},paddingLeft:{style:bt},paddingX:{style:bt},paddingY:{style:bt},paddingInline:{style:bt},paddingInlineStart:{style:bt},paddingInlineEnd:{style:bt},paddingBlock:{style:bt},paddingBlockStart:{style:bt},paddingBlockEnd:{style:bt},m:{style:yt},mt:{style:yt},mr:{style:yt},mb:{style:yt},ml:{style:yt},mx:{style:yt},my:{style:yt},margin:{style:yt},marginTop:{style:yt},marginRight:{style:yt},marginBottom:{style:yt},marginLeft:{style:yt},marginX:{style:yt},marginY:{style:yt},marginInline:{style:yt},marginInlineStart:{style:yt},marginInlineEnd:{style:yt},marginBlock:{style:yt},marginBlockStart:{style:yt},marginBlockEnd:{style:yt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:xd},rowGap:{style:Od},columnGap:{style:wd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Rn},maxWidth:{style:cg},minWidth:{transform:Rn},height:{transform:Rn},maxHeight:{transform:Rn},minHeight:{transform:Rn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function mj(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function gj(e,t){return typeof e=="function"?e(t):e}function vj(){function e(n,r,i,o){const a={[n]:r,theme:i},s=o[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const p=md(i,c)||{};return d?d(a):ni(a,r,g=>{let m=iu(p,u,g);return g===m&&typeof g=="string"&&(m=iu(p,u,`${n}${g==="default"?"":Re(g)}`,g)),l===!1?m:{[l]:m}})}function t(n){const{sx:r,theme:i={},nested:o}=n||{};if(!r)return null;const a=i.unstable_sxConfig??xl;function s(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const u=MM(i.breakpoints),d=Object.keys(u);let p=u;return Object.keys(c).forEach(h=>{const g=gj(c[h],i);if(g!=null)if(typeof g=="object")if(a[h])p=ks(p,e(h,g,i,a));else{const m=ni({theme:i},g,v=>({[h]:v}));mj(m,g)?p[h]=t({sx:g,theme:i,nested:!0}):p=ks(p,m)}else p=ks(p,e(h,g,i,a))}),!o&&i.modularCssLayers?{"@layer sx":_b(i,Cb(d,p))}:_b(i,Cb(d,p))}return Array.isArray(r)?r.map(s):s(r)}return t}const ga=vj();ga.filterProps=["sx"];const yj=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??xl;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function bj(e){const{sx:t,...n}=e,{systemProps:r,otherProps:i}=yj(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...a)=>{const s=t(...a);return Pr(s)?{...r,...s}:r}:o={...r,...t},{...i,sx:o}}function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ou.apply(null,arguments)}function xj(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function wj(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Oj=(function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(wj(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=xj(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e})(),on="-ms-",au="-moz-",Me="-webkit-",_E="comm",ug="rule",dg="decl",Sj="@import",PE="@keyframes",Ej="@layer",_j=Math.abs,Sd=String.fromCharCode,Pj=Object.assign;function Cj(e,t){return Jt(e,0)^45?(((t<<2^Jt(e,0))<<2^Jt(e,1))<<2^Jt(e,2))<<2^Jt(e,3):0}function CE(e){return e.trim()}function Tj(e,t){return(e=t.exec(e))?e[0]:e}function je(e,t,n){return e.replace(t,n)}function zh(e,t){return e.indexOf(t)}function Jt(e,t){return e.charCodeAt(t)|0}function Vs(e,t,n){return e.slice(t,n)}function Sr(e){return e.length}function fg(e){return e.length}function rc(e,t){return t.push(e),e}function Aj(e,t){return e.map(t).join("")}var Ed=1,va=1,TE=0,Pn=0,jt=0,Na="";function _d(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Ed,column:va,length:a,return:""}}function Za(e,t){return Pj(_d("",null,null,"",null,null,0),e,{length:-e.length},t)}function kj(){return jt}function Mj(){return jt=Pn>0?Jt(Na,--Pn):0,va--,jt===10&&(va=1,Ed--),jt}function $n(){return jt=Pn<TE?Jt(Na,Pn++):0,va++,jt===10&&(va=1,Ed++),jt}function Tr(){return Jt(Na,Pn)}function Yc(){return Pn}function wl(e,t){return Vs(Na,e,t)}function Ws(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function AE(e){return Ed=va=1,TE=Sr(Na=e),Pn=0,[]}function kE(e){return Na="",e}function Gc(e){return CE(wl(Pn-1,Vh(e===91?e+2:e===40?e+1:e)))}function jj(e){for(;(jt=Tr())&&jt<33;)$n();return Ws(e)>2||Ws(jt)>3?"":" "}function Nj(e,t){for(;--t&&$n()&&!(jt<48||jt>102||jt>57&&jt<65||jt>70&&jt<97););return wl(e,Yc()+(t<6&&Tr()==32&&$n()==32))}function Vh(e){for(;$n();)switch(jt){case e:return Pn;case 34:case 39:e!==34&&e!==39&&Vh(jt);break;case 40:e===41&&Vh(e);break;case 92:$n();break}return Pn}function Rj(e,t){for(;$n()&&e+jt!==57;)if(e+jt===84&&Tr()===47)break;return"/*"+wl(t,Pn-1)+"*"+Sd(e===47?e:$n())}function Dj(e){for(;!Ws(Tr());)$n();return wl(e,Pn)}function Ij(e){return kE(Xc("",null,null,null,[""],e=AE(e),0,[0],e))}function Xc(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,p=0,h=0,g=0,m=1,v=1,y=1,S=0,x="",b=i,O=o,E=r,C=x;v;)switch(g=S,S=$n()){case 40:if(g!=108&&Jt(C,d-1)==58){zh(C+=je(Gc(S),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:C+=Gc(S);break;case 9:case 10:case 13:case 32:C+=jj(g);break;case 92:C+=Nj(Yc()-1,7);continue;case 47:switch(Tr()){case 42:case 47:rc($j(Rj($n(),Yc()),t,n),l);break;default:C+="/"}break;case 123*m:s[c++]=Sr(C)*y;case 125*m:case 59:case 0:switch(S){case 0:case 125:v=0;case 59+u:y==-1&&(C=je(C,/\f/g,"")),h>0&&Sr(C)-d&&rc(h>32?kb(C+";",r,n,d-1):kb(je(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(rc(E=Ab(C,t,n,c,u,i,s,x,b=[],O=[],d),o),S===123)if(u===0)Xc(C,t,E,E,b,o,d,s,O);else switch(p===99&&Jt(C,3)===110?100:p){case 100:case 108:case 109:case 115:Xc(e,E,E,r&&rc(Ab(e,E,E,0,0,i,s,x,i,b=[],d),O),i,O,d,s,r?b:O);break;default:Xc(C,E,E,E,[""],O,0,s,O)}}c=u=h=0,m=y=1,x=C="",d=a;break;case 58:d=1+Sr(C),h=g;default:if(m<1){if(S==123)--m;else if(S==125&&m++==0&&Mj()==125)continue}switch(C+=Sd(S),S*m){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(Sr(C)-1)*y,y=1;break;case 64:Tr()===45&&(C+=Gc($n())),p=Tr(),u=d=Sr(x=C+=Dj(Yc())),S++;break;case 45:g===45&&Sr(C)==2&&(m=0)}}return o}function Ab(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,p=i===0?o:[""],h=fg(p),g=0,m=0,v=0;g<r;++g)for(var y=0,S=Vs(e,d+1,d=_j(m=a[g])),x=e;y<h;++y)(x=CE(m>0?p[y]+" "+S:je(S,/&\f/g,p[y])))&&(l[v++]=x);return _d(e,t,n,i===0?ug:s,l,c,u)}function $j(e,t,n){return _d(e,t,n,_E,Sd(kj()),Vs(e,2,-2),0)}function kb(e,t,n,r){return _d(e,t,n,dg,Vs(e,0,r),Vs(e,r+1,-1),r)}function ua(e,t){for(var n="",r=fg(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Lj(e,t,n,r){switch(e.type){case Ej:if(e.children.length)break;case Sj:case dg:return e.return=e.return||e.value;case _E:return"";case PE:return e.return=e.value+"{"+ua(e.children,r)+"}";case ug:e.value=e.props.join(",")}return Sr(n=ua(e.children,r))?e.return=e.value+"{"+n+"}":""}function Fj(e){var t=fg(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}function Bj(e){return function(t){t.root||(t=t.return)&&e(t)}}function ME(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var zj=function(t,n,r){for(var i=0,o=0;i=o,o=Tr(),i===38&&o===12&&(n[r]=1),!Ws(o);)$n();return wl(t,Pn)},Vj=function(t,n){var r=-1,i=44;do switch(Ws(i)){case 0:i===38&&Tr()===12&&(n[r]=1),t[r]+=zj(Pn-1,n,r);break;case 2:t[r]+=Gc(i);break;case 4:if(i===44){t[++r]=Tr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Sd(i)}while(i=$n());return t},Wj=function(t,n){return kE(Vj(AE(t),n))},Mb=new WeakMap,Uj=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Mb.get(r))&&!i){Mb.set(t,!0);for(var o=[],a=Wj(n,o),s=r.props,l=0,c=0;l<a.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=o[l]?a[l].replace(/&\f/g,s[u]):s[u]+" "+a[l]}}},Hj=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function jE(e,t){switch(Cj(e,t)){case 5103:return Me+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Me+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Me+e+au+e+on+e+e;case 6828:case 4268:return Me+e+on+e+e;case 6165:return Me+e+on+"flex-"+e+e;case 5187:return Me+e+je(e,/(\w+).+(:[^]+)/,Me+"box-$1$2"+on+"flex-$1$2")+e;case 5443:return Me+e+on+"flex-item-"+je(e,/flex-|-self/,"")+e;case 4675:return Me+e+on+"flex-line-pack"+je(e,/align-content|flex-|-self/,"")+e;case 5548:return Me+e+on+je(e,"shrink","negative")+e;case 5292:return Me+e+on+je(e,"basis","preferred-size")+e;case 6060:return Me+"box-"+je(e,"-grow","")+Me+e+on+je(e,"grow","positive")+e;case 4554:return Me+je(e,/([^-])(transform)/g,"$1"+Me+"$2")+e;case 6187:return je(je(je(e,/(zoom-|grab)/,Me+"$1"),/(image-set)/,Me+"$1"),e,"")+e;case 5495:case 3959:return je(e,/(image-set\([^]*)/,Me+"$1$`$1");case 4968:return je(je(e,/(.+:)(flex-)?(.*)/,Me+"box-pack:$3"+on+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Me+e+e;case 4095:case 3583:case 4068:case 2532:return je(e,/(.+)-inline(.+)/,Me+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Sr(e)-1-t>6)switch(Jt(e,t+1)){case 109:if(Jt(e,t+4)!==45)break;case 102:return je(e,/(.+:)(.+)-([^]+)/,"$1"+Me+"$2-$3$1"+au+(Jt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~zh(e,"stretch")?jE(je(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Jt(e,t+1)!==115)break;case 6444:switch(Jt(e,Sr(e)-3-(~zh(e,"!important")&&10))){case 107:return je(e,":",":"+Me)+e;case 101:return je(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Me+(Jt(e,14)===45?"inline-":"")+"box$3$1"+Me+"$2$3$1"+on+"$2box$3")+e}break;case 5936:switch(Jt(e,t+11)){case 114:return Me+e+on+je(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Me+e+on+je(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Me+e+on+je(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Me+e+on+e+e}return e}var qj=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case dg:t.return=jE(t.value,t.length);break;case PE:return ua([Za(t,{value:je(t.value,"@","@"+Me)})],i);case ug:if(t.length)return Aj(t.props,function(o){switch(Tj(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ua([Za(t,{props:[je(o,/:(read-\w+)/,":"+au+"$1")]})],i);case"::placeholder":return ua([Za(t,{props:[je(o,/:(plac\w+)/,":"+Me+"input-$1")]}),Za(t,{props:[je(o,/:(plac\w+)/,":"+au+"$1")]}),Za(t,{props:[je(o,/:(plac\w+)/,on+"input-$1")]})],i)}return""})}},Kj=[qj],Yj=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var v=m.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||Kj,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)o[v[y]]=!0;s.push(m)});var l,c=[Uj,Hj];{var u,d=[Lj,Bj(function(m){u.insert(m)})],p=Fj(c.concat(i,d)),h=function(v){return ua(Ij(v),p)};l=function(v,y,S,x){u=S,h(v?v+"{"+y.styles+"}":y.styles),x&&(g.inserted[y.name]=!0)}}var g={key:n,sheet:new Oj({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return g.sheet.hydrate(s),g},ic={exports:{}},Fe={};/** @license React v16.13.1
|
|
69
|
+
`)),()=>{})}function lg(e){return bl(e,"spacing",8,"spacing")}function xl(e,t){return typeof t=="string"||t==null?t:e(t)}function $M(e,t){return n=>e.reduce((r,i)=>(r[i]=xl(t,n),r),{})}function LM(e,t,n,r){if(!t.includes(n))return null;const i=DM(n),o=$M(i,r),a=e[n];return ni(e,a,o)}function EE(e,t){const n=lg(e.theme);return Object.keys(e).map(r=>LM(e,t,r,n)).reduce(Ms,{})}function yt(e){return EE(e,gd)}yt.propTypes=process.env.NODE_ENV!=="production"?gd.reduce((e,t)=>(e[t]=Li,e),{}):{};yt.filterProps=gd;function bt(e){return EE(e,vd)}bt.propTypes=process.env.NODE_ENV!=="production"?vd.reduce((e,t)=>(e[t]=Li,e),{}):{};bt.filterProps=vd;process.env.NODE_ENV!=="production"&&IM.reduce((e,t)=>(e[t]=Li,e),{});function yd(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?Ms(i,t[o](r)):i,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,i)=>Object.assign(r,i.propTypes),{}):{},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Qn(e){return typeof e!="number"?e:`${e}px solid`}function lr(e,t){return Tt({prop:e,themeKey:"borders",transform:t})}const FM=lr("border",Qn),BM=lr("borderTop",Qn),zM=lr("borderRight",Qn),VM=lr("borderBottom",Qn),WM=lr("borderLeft",Qn),UM=lr("borderColor"),HM=lr("borderTopColor"),qM=lr("borderRightColor"),KM=lr("borderBottomColor"),YM=lr("borderLeftColor"),GM=lr("outline",Qn),XM=lr("outlineColor"),bd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=bl(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:xl(t,r)});return ni(e,e.borderRadius,n)}return null};bd.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Li}:{};bd.filterProps=["borderRadius"];yd(FM,BM,zM,VM,WM,UM,HM,qM,KM,YM,bd,GM,XM);const xd=e=>{if(e.gap!==void 0&&e.gap!==null){const t=bl(e.theme,"spacing",8,"gap"),n=r=>({gap:xl(t,r)});return ni(e,e.gap,n)}return null};xd.propTypes=process.env.NODE_ENV!=="production"?{gap:Li}:{};xd.filterProps=["gap"];const wd=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=bl(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:xl(t,r)});return ni(e,e.columnGap,n)}return null};wd.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Li}:{};wd.filterProps=["columnGap"];const Od=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=bl(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:xl(t,r)});return ni(e,e.rowGap,n)}return null};Od.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Li}:{};Od.filterProps=["rowGap"];const ZM=Tt({prop:"gridColumn"}),JM=Tt({prop:"gridRow"}),QM=Tt({prop:"gridAutoFlow"}),ej=Tt({prop:"gridAutoColumns"}),tj=Tt({prop:"gridAutoRows"}),nj=Tt({prop:"gridTemplateColumns"}),rj=Tt({prop:"gridTemplateRows"}),ij=Tt({prop:"gridTemplateAreas"}),oj=Tt({prop:"gridArea"});yd(xd,wd,Od,ZM,JM,QM,ej,tj,nj,rj,ij,oj);function ca(e,t){return t==="grey"?t:e}const aj=Tt({prop:"color",themeKey:"palette",transform:ca}),sj=Tt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ca}),lj=Tt({prop:"backgroundColor",themeKey:"palette",transform:ca});yd(aj,sj,lj);function Rn(e){return e<=1&&e!==0?`${e*100}%`:e}const cj=Tt({prop:"width",transform:Rn}),cg=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||hd[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Rn(n)}};return ni(e,e.maxWidth,t)}return null};cg.filterProps=["maxWidth"];const uj=Tt({prop:"minWidth",transform:Rn}),dj=Tt({prop:"height",transform:Rn}),fj=Tt({prop:"maxHeight",transform:Rn}),pj=Tt({prop:"minHeight",transform:Rn});Tt({prop:"size",cssProperty:"width",transform:Rn});Tt({prop:"size",cssProperty:"height",transform:Rn});const hj=Tt({prop:"boxSizing"});yd(cj,cg,uj,dj,fj,pj,hj);const wl={border:{themeKey:"borders",transform:Qn},borderTop:{themeKey:"borders",transform:Qn},borderRight:{themeKey:"borders",transform:Qn},borderBottom:{themeKey:"borders",transform:Qn},borderLeft:{themeKey:"borders",transform:Qn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Qn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:bd},color:{themeKey:"palette",transform:ca},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ca},backgroundColor:{themeKey:"palette",transform:ca},p:{style:bt},pt:{style:bt},pr:{style:bt},pb:{style:bt},pl:{style:bt},px:{style:bt},py:{style:bt},padding:{style:bt},paddingTop:{style:bt},paddingRight:{style:bt},paddingBottom:{style:bt},paddingLeft:{style:bt},paddingX:{style:bt},paddingY:{style:bt},paddingInline:{style:bt},paddingInlineStart:{style:bt},paddingInlineEnd:{style:bt},paddingBlock:{style:bt},paddingBlockStart:{style:bt},paddingBlockEnd:{style:bt},m:{style:yt},mt:{style:yt},mr:{style:yt},mb:{style:yt},ml:{style:yt},mx:{style:yt},my:{style:yt},margin:{style:yt},marginTop:{style:yt},marginRight:{style:yt},marginBottom:{style:yt},marginLeft:{style:yt},marginX:{style:yt},marginY:{style:yt},marginInline:{style:yt},marginInlineStart:{style:yt},marginInlineEnd:{style:yt},marginBlock:{style:yt},marginBlockStart:{style:yt},marginBlockEnd:{style:yt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:xd},rowGap:{style:Od},columnGap:{style:wd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Rn},maxWidth:{style:cg},minWidth:{transform:Rn},height:{transform:Rn},maxHeight:{transform:Rn},minHeight:{transform:Rn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function mj(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function gj(e,t){return typeof e=="function"?e(t):e}function vj(){function e(n,r,i,o){const a={[n]:r,theme:i},s=o[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const p=md(i,c)||{};return d?d(a):ni(a,r,g=>{let m=iu(p,u,g);return g===m&&typeof g=="string"&&(m=iu(p,u,`${n}${g==="default"?"":Re(g)}`,g)),l===!1?m:{[l]:m}})}function t(n){const{sx:r,theme:i={},nested:o}=n||{};if(!r)return null;const a=i.unstable_sxConfig??wl;function s(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const u=MM(i.breakpoints),d=Object.keys(u);let p=u;return Object.keys(c).forEach(h=>{const g=gj(c[h],i);if(g!=null)if(typeof g=="object")if(a[h])p=Ms(p,e(h,g,i,a));else{const m=ni({theme:i},g,v=>({[h]:v}));mj(m,g)?p[h]=t({sx:g,theme:i,nested:!0}):p=Ms(p,m)}else p=Ms(p,e(h,g,i,a))}),!o&&i.modularCssLayers?{"@layer sx":_b(i,Cb(d,p))}:_b(i,Cb(d,p))}return Array.isArray(r)?r.map(s):s(r)}return t}const ga=vj();ga.filterProps=["sx"];const yj=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??wl;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function bj(e){const{sx:t,...n}=e,{systemProps:r,otherProps:i}=yj(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...a)=>{const s=t(...a);return Pr(s)?{...r,...s}:r}:o={...r,...t},{...i,sx:o}}function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ou.apply(null,arguments)}function xj(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function wj(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Oj=(function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(wj(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=xj(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e})(),on="-ms-",au="-moz-",Me="-webkit-",_E="comm",ug="rule",dg="decl",Sj="@import",PE="@keyframes",Ej="@layer",_j=Math.abs,Sd=String.fromCharCode,Pj=Object.assign;function Cj(e,t){return Jt(e,0)^45?(((t<<2^Jt(e,0))<<2^Jt(e,1))<<2^Jt(e,2))<<2^Jt(e,3):0}function CE(e){return e.trim()}function Tj(e,t){return(e=t.exec(e))?e[0]:e}function je(e,t,n){return e.replace(t,n)}function zh(e,t){return e.indexOf(t)}function Jt(e,t){return e.charCodeAt(t)|0}function Ws(e,t,n){return e.slice(t,n)}function Sr(e){return e.length}function fg(e){return e.length}function rc(e,t){return t.push(e),e}function Aj(e,t){return e.map(t).join("")}var Ed=1,va=1,TE=0,Pn=0,jt=0,Na="";function _d(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Ed,column:va,length:a,return:""}}function Ja(e,t){return Pj(_d("",null,null,"",null,null,0),e,{length:-e.length},t)}function kj(){return jt}function Mj(){return jt=Pn>0?Jt(Na,--Pn):0,va--,jt===10&&(va=1,Ed--),jt}function $n(){return jt=Pn<TE?Jt(Na,Pn++):0,va++,jt===10&&(va=1,Ed++),jt}function Tr(){return Jt(Na,Pn)}function Yc(){return Pn}function Ol(e,t){return Ws(Na,e,t)}function Us(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function AE(e){return Ed=va=1,TE=Sr(Na=e),Pn=0,[]}function kE(e){return Na="",e}function Gc(e){return CE(Ol(Pn-1,Vh(e===91?e+2:e===40?e+1:e)))}function jj(e){for(;(jt=Tr())&&jt<33;)$n();return Us(e)>2||Us(jt)>3?"":" "}function Nj(e,t){for(;--t&&$n()&&!(jt<48||jt>102||jt>57&&jt<65||jt>70&&jt<97););return Ol(e,Yc()+(t<6&&Tr()==32&&$n()==32))}function Vh(e){for(;$n();)switch(jt){case e:return Pn;case 34:case 39:e!==34&&e!==39&&Vh(jt);break;case 40:e===41&&Vh(e);break;case 92:$n();break}return Pn}function Rj(e,t){for(;$n()&&e+jt!==57;)if(e+jt===84&&Tr()===47)break;return"/*"+Ol(t,Pn-1)+"*"+Sd(e===47?e:$n())}function Dj(e){for(;!Us(Tr());)$n();return Ol(e,Pn)}function Ij(e){return kE(Xc("",null,null,null,[""],e=AE(e),0,[0],e))}function Xc(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,p=0,h=0,g=0,m=1,v=1,y=1,S=0,x="",b=i,O=o,E=r,C=x;v;)switch(g=S,S=$n()){case 40:if(g!=108&&Jt(C,d-1)==58){zh(C+=je(Gc(S),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:C+=Gc(S);break;case 9:case 10:case 13:case 32:C+=jj(g);break;case 92:C+=Nj(Yc()-1,7);continue;case 47:switch(Tr()){case 42:case 47:rc($j(Rj($n(),Yc()),t,n),l);break;default:C+="/"}break;case 123*m:s[c++]=Sr(C)*y;case 125*m:case 59:case 0:switch(S){case 0:case 125:v=0;case 59+u:y==-1&&(C=je(C,/\f/g,"")),h>0&&Sr(C)-d&&rc(h>32?kb(C+";",r,n,d-1):kb(je(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(rc(E=Ab(C,t,n,c,u,i,s,x,b=[],O=[],d),o),S===123)if(u===0)Xc(C,t,E,E,b,o,d,s,O);else switch(p===99&&Jt(C,3)===110?100:p){case 100:case 108:case 109:case 115:Xc(e,E,E,r&&rc(Ab(e,E,E,0,0,i,s,x,i,b=[],d),O),i,O,d,s,r?b:O);break;default:Xc(C,E,E,E,[""],O,0,s,O)}}c=u=h=0,m=y=1,x=C="",d=a;break;case 58:d=1+Sr(C),h=g;default:if(m<1){if(S==123)--m;else if(S==125&&m++==0&&Mj()==125)continue}switch(C+=Sd(S),S*m){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(Sr(C)-1)*y,y=1;break;case 64:Tr()===45&&(C+=Gc($n())),p=Tr(),u=d=Sr(x=C+=Dj(Yc())),S++;break;case 45:g===45&&Sr(C)==2&&(m=0)}}return o}function Ab(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,p=i===0?o:[""],h=fg(p),g=0,m=0,v=0;g<r;++g)for(var y=0,S=Ws(e,d+1,d=_j(m=a[g])),x=e;y<h;++y)(x=CE(m>0?p[y]+" "+S:je(S,/&\f/g,p[y])))&&(l[v++]=x);return _d(e,t,n,i===0?ug:s,l,c,u)}function $j(e,t,n){return _d(e,t,n,_E,Sd(kj()),Ws(e,2,-2),0)}function kb(e,t,n,r){return _d(e,t,n,dg,Ws(e,0,r),Ws(e,r+1,-1),r)}function ua(e,t){for(var n="",r=fg(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Lj(e,t,n,r){switch(e.type){case Ej:if(e.children.length)break;case Sj:case dg:return e.return=e.return||e.value;case _E:return"";case PE:return e.return=e.value+"{"+ua(e.children,r)+"}";case ug:e.value=e.props.join(",")}return Sr(n=ua(e.children,r))?e.return=e.value+"{"+n+"}":""}function Fj(e){var t=fg(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}function Bj(e){return function(t){t.root||(t=t.return)&&e(t)}}function ME(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var zj=function(t,n,r){for(var i=0,o=0;i=o,o=Tr(),i===38&&o===12&&(n[r]=1),!Us(o);)$n();return Ol(t,Pn)},Vj=function(t,n){var r=-1,i=44;do switch(Us(i)){case 0:i===38&&Tr()===12&&(n[r]=1),t[r]+=zj(Pn-1,n,r);break;case 2:t[r]+=Gc(i);break;case 4:if(i===44){t[++r]=Tr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Sd(i)}while(i=$n());return t},Wj=function(t,n){return kE(Vj(AE(t),n))},Mb=new WeakMap,Uj=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Mb.get(r))&&!i){Mb.set(t,!0);for(var o=[],a=Wj(n,o),s=r.props,l=0,c=0;l<a.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=o[l]?a[l].replace(/&\f/g,s[u]):s[u]+" "+a[l]}}},Hj=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function jE(e,t){switch(Cj(e,t)){case 5103:return Me+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Me+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Me+e+au+e+on+e+e;case 6828:case 4268:return Me+e+on+e+e;case 6165:return Me+e+on+"flex-"+e+e;case 5187:return Me+e+je(e,/(\w+).+(:[^]+)/,Me+"box-$1$2"+on+"flex-$1$2")+e;case 5443:return Me+e+on+"flex-item-"+je(e,/flex-|-self/,"")+e;case 4675:return Me+e+on+"flex-line-pack"+je(e,/align-content|flex-|-self/,"")+e;case 5548:return Me+e+on+je(e,"shrink","negative")+e;case 5292:return Me+e+on+je(e,"basis","preferred-size")+e;case 6060:return Me+"box-"+je(e,"-grow","")+Me+e+on+je(e,"grow","positive")+e;case 4554:return Me+je(e,/([^-])(transform)/g,"$1"+Me+"$2")+e;case 6187:return je(je(je(e,/(zoom-|grab)/,Me+"$1"),/(image-set)/,Me+"$1"),e,"")+e;case 5495:case 3959:return je(e,/(image-set\([^]*)/,Me+"$1$`$1");case 4968:return je(je(e,/(.+:)(flex-)?(.*)/,Me+"box-pack:$3"+on+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Me+e+e;case 4095:case 3583:case 4068:case 2532:return je(e,/(.+)-inline(.+)/,Me+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Sr(e)-1-t>6)switch(Jt(e,t+1)){case 109:if(Jt(e,t+4)!==45)break;case 102:return je(e,/(.+:)(.+)-([^]+)/,"$1"+Me+"$2-$3$1"+au+(Jt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~zh(e,"stretch")?jE(je(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Jt(e,t+1)!==115)break;case 6444:switch(Jt(e,Sr(e)-3-(~zh(e,"!important")&&10))){case 107:return je(e,":",":"+Me)+e;case 101:return je(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Me+(Jt(e,14)===45?"inline-":"")+"box$3$1"+Me+"$2$3$1"+on+"$2box$3")+e}break;case 5936:switch(Jt(e,t+11)){case 114:return Me+e+on+je(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Me+e+on+je(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Me+e+on+je(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Me+e+on+e+e}return e}var qj=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case dg:t.return=jE(t.value,t.length);break;case PE:return ua([Ja(t,{value:je(t.value,"@","@"+Me)})],i);case ug:if(t.length)return Aj(t.props,function(o){switch(Tj(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ua([Ja(t,{props:[je(o,/:(read-\w+)/,":"+au+"$1")]})],i);case"::placeholder":return ua([Ja(t,{props:[je(o,/:(plac\w+)/,":"+Me+"input-$1")]}),Ja(t,{props:[je(o,/:(plac\w+)/,":"+au+"$1")]}),Ja(t,{props:[je(o,/:(plac\w+)/,on+"input-$1")]})],i)}return""})}},Kj=[qj],Yj=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var v=m.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||Kj,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)o[v[y]]=!0;s.push(m)});var l,c=[Uj,Hj];{var u,d=[Lj,Bj(function(m){u.insert(m)})],p=Fj(c.concat(i,d)),h=function(v){return ua(Ij(v),p)};l=function(v,y,S,x){u=S,h(v?v+"{"+y.styles+"}":y.styles),x&&(g.inserted[y.name]=!0)}}var g={key:n,sheet:new Oj({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return g.sheet.hydrate(s),g},ic={exports:{}},Fe={};/** @license React v16.13.1
|
|
70
70
|
* react-is.production.min.js
|
|
71
71
|
*
|
|
72
72
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -80,16 +80,16 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:jr(18,`(${t})`));return
|
|
|
80
80
|
*
|
|
81
81
|
* This source code is licensed under the MIT license found in the
|
|
82
82
|
* LICENSE file in the root directory of this source tree.
|
|
83
|
-
*/var Nb;function Xj(){return Nb||(Nb=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function x(A){return typeof A=="string"||typeof A=="function"||A===r||A===c||A===o||A===i||A===d||A===p||typeof A=="object"&&A!==null&&(A.$$typeof===g||A.$$typeof===h||A.$$typeof===a||A.$$typeof===s||A.$$typeof===u||A.$$typeof===v||A.$$typeof===y||A.$$typeof===S||A.$$typeof===m)}function b(A){if(typeof A=="object"&&A!==null){var fe=A.$$typeof;switch(fe){case t:var re=A.type;switch(re){case l:case c:case r:case o:case i:case d:return re;default:var me=re&&re.$$typeof;switch(me){case s:case u:case g:case h:case a:return me;default:return fe}}case n:return fe}}}var O=l,E=c,C=s,T=a,k=t,R=u,M=r,P=g,D=h,j=n,N=o,L=i,B=d,K=!1;function z(A){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),F(A)||b(A)===l}function F(A){return b(A)===c}function G(A){return b(A)===s}function Y(A){return b(A)===a}function ne(A){return typeof A=="object"&&A!==null&&A.$$typeof===t}function Q(A){return b(A)===u}function X(A){return b(A)===r}function te(A){return b(A)===g}function ie(A){return b(A)===h}function ae(A){return b(A)===n}function W(A){return b(A)===o}function H(A){return b(A)===i}function J(A){return b(A)===d}Be.AsyncMode=O,Be.ConcurrentMode=E,Be.ContextConsumer=C,Be.ContextProvider=T,Be.Element=k,Be.ForwardRef=R,Be.Fragment=M,Be.Lazy=P,Be.Memo=D,Be.Portal=j,Be.Profiler=N,Be.StrictMode=L,Be.Suspense=B,Be.isAsyncMode=z,Be.isConcurrentMode=F,Be.isContextConsumer=G,Be.isContextProvider=Y,Be.isElement=ne,Be.isForwardRef=Q,Be.isFragment=X,Be.isLazy=te,Be.isMemo=ie,Be.isPortal=ae,Be.isProfiler=W,Be.isStrictMode=H,Be.isSuspense=J,Be.isValidElementType=x,Be.typeOf=b})()),Be}var Rb;function Zj(){return Rb||(Rb=1,process.env.NODE_ENV==="production"?ic.exports=Gj():ic.exports=Xj()),ic.exports}var $f,Db;function Jj(){if(Db)return $f;Db=1;var e=Zj(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=r,o[e.Memo]=i;function a(g){return e.isMemo(g)?i:o[g.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;function h(g,m,v){if(typeof m!="string"){if(p){var y=d(m);y&&y!==p&&h(g,y,v)}var S=l(m);c&&(S=S.concat(c(m)));for(var x=a(g),b=a(m),O=0;O<S.length;++O){var E=S[O];if(!n[E]&&!(v&&v[E])&&!(b&&b[E])&&!(x&&x[E])){var C=u(m,E);try{s(g,E,C)}catch{}}}}return g}return $f=h,$f}Jj();var Qj=!0;function NE(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var pg=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Qj===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},hg=function(t,n,r){pg(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function eN(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var tN={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},nN=/[A-Z]|^ms/g,rN=/_EMO_([^_]+?)_([^]*?)_EMO_/g,RE=function(t){return t.charCodeAt(1)===45},Ib=function(t){return t!=null&&typeof t!="boolean"},Lf=ME(function(e){return RE(e)?e:e.replace(nN,"-$&").toLowerCase()}),$b=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(rN,function(r,i,o){return Er={name:i,styles:o,next:Er},i})}return tN[t]!==1&&!RE(t)&&typeof n=="number"&&n!==0?n+"px":n};function Us(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Er={name:i.name,styles:i.styles,next:Er},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Er={name:a.name,styles:a.styles,next:Er},a=a.next;var s=o.styles+";";return s}return iN(e,t,n)}case"function":{if(e!==void 0){var l=Er,c=n(e);return Er=l,Us(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function iN(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Us(e,t,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?r+=o+"{"+t[s]+"}":Ib(s)&&(r+=Lf(o)+":"+$b(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)Ib(a[l])&&(r+=Lf(o)+":"+$b(o,a[l])+";");else{var c=Us(e,t,a);switch(o){case"animation":case"animationName":{r+=Lf(o)+":"+c+";";break}default:r+=o+"{"+c+"}"}}}return r}var Lb=/label:\s*([^\s;{]+)\s*(;|$)/g,Er;function Ol(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";Er=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=Us(n,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Us(n,t,e[s]),r){var l=o;i+=l[s]}Lb.lastIndex=0;for(var c="",u;(u=Lb.exec(i))!==null;)c+="-"+u[1];var d=eN(i)+c;return{name:d,styles:i,next:Er}}var oN=function(t){return t()},DE=_.useInsertionEffect?_.useInsertionEffect:!1,IE=DE||oN,Fb=DE||_.useLayoutEffect,$E=_.createContext(typeof HTMLElement<"u"?Yj({key:"css"}):null);$E.Provider;var mg=function(t){return I.forwardRef(function(n,r){var i=I.useContext($E);return t(n,i,r)})},Pd=_.createContext({}),gg={}.hasOwnProperty,Wh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",aN=function(t,n){var r={};for(var i in n)gg.call(n,i)&&(r[i]=n[i]);return r[Wh]=t,r},sN=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return pg(n,r,i),IE(function(){return hg(n,r,i)}),null},lN=mg(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Wh],o=[r],a="";typeof e.className=="string"?a=NE(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=Ol(o,void 0,_.useContext(Pd));a+=t.key+"-"+s.name;var l={};for(var c in e)gg.call(e,c)&&c!=="css"&&c!==Wh&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),_.createElement(_.Fragment,null,_.createElement(sN,{cache:t,serialized:s,isStringTag:typeof i=="string"}),_.createElement(i,l))}),cN=lN,Bb=function(t,n){var r=arguments;if(n==null||!gg.call(n,"css"))return _.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=cN,o[1]=aN(t,n);for(var a=2;a<i;a++)o[a]=r[a];return _.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Bb||(Bb={}));var uN=mg(function(e,t){var n=e.styles,r=Ol([n],void 0,_.useContext(Pd)),i=_.useRef();return Fb(function(){var o=t.key+"-global",a=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+o+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",o),a.hydrate([l])),i.current=[a,s],function(){a.flush()}},[t]),Fb(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(r.next!==void 0&&hg(t,r.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function dN(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ol(t)}function vg(){var e=dN.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var fN=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|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|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|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|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,pN=ME(function(e){return fN.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),hN=pN,mN=function(t){return t!=="theme"},zb=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?hN:mN},Vb=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},gN=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return pg(n,r,i),IE(function(){return hg(n,r,i)}),null},vN=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,a;n!==void 0&&(o=n.label,a=n.target);var s=Vb(t,n,r),l=s||zb(i),c=!l("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var p=u[0];d.push(p[0]);for(var h=u.length,g=1;g<h;g++)d.push(u[g],p[g])}var m=mg(function(v,y,S){var x=c&&v.as||i,b="",O=[],E=v;if(v.theme==null){E={};for(var C in v)E[C]=v[C];E.theme=_.useContext(Pd)}typeof v.className=="string"?b=NE(y.registered,O,v.className):v.className!=null&&(b=v.className+" ");var T=Ol(d.concat(O),y.registered,E);b+=y.key+"-"+T.name,a!==void 0&&(b+=" "+a);var k=c&&s===void 0?zb(x):l,R={};for(var M in v)c&&M==="as"||k(M)&&(R[M]=v[M]);return R.className=b,S&&(R.ref=S),_.createElement(_.Fragment,null,_.createElement(gN,{cache:y,serialized:T,isStringTag:typeof x=="string"}),_.createElement(x,R))});return m.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+a}}),m.withComponent=function(v,y){var S=e(v,ou({},n,y,{shouldForwardProp:Vb(m,y,!0)}));return S.apply(void 0,d)},m}},yN=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],su=vN.bind(null);yN.forEach(function(e){su[e]=su(e)});function bN(e){return e==null||Object.keys(e).length===0}function LE(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?i=>t(bN(i)?n:i):t;return w.jsx(uN,{styles:r})}process.env.NODE_ENV!=="production"&&(LE.propTypes={defaultTheme:f.object,styles:f.oneOfType([f.array,f.string,f.object,f.func])});/**
|
|
83
|
+
*/var Nb;function Xj(){return Nb||(Nb=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function x(A){return typeof A=="string"||typeof A=="function"||A===r||A===c||A===o||A===i||A===d||A===p||typeof A=="object"&&A!==null&&(A.$$typeof===g||A.$$typeof===h||A.$$typeof===a||A.$$typeof===s||A.$$typeof===u||A.$$typeof===v||A.$$typeof===y||A.$$typeof===S||A.$$typeof===m)}function b(A){if(typeof A=="object"&&A!==null){var fe=A.$$typeof;switch(fe){case t:var re=A.type;switch(re){case l:case c:case r:case o:case i:case d:return re;default:var me=re&&re.$$typeof;switch(me){case s:case u:case g:case h:case a:return me;default:return fe}}case n:return fe}}}var O=l,E=c,C=s,T=a,k=t,R=u,M=r,P=g,D=h,j=n,N=o,L=i,B=d,K=!1;function z(A){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),F(A)||b(A)===l}function F(A){return b(A)===c}function G(A){return b(A)===s}function Y(A){return b(A)===a}function ne(A){return typeof A=="object"&&A!==null&&A.$$typeof===t}function Q(A){return b(A)===u}function X(A){return b(A)===r}function te(A){return b(A)===g}function ie(A){return b(A)===h}function ae(A){return b(A)===n}function W(A){return b(A)===o}function H(A){return b(A)===i}function J(A){return b(A)===d}Be.AsyncMode=O,Be.ConcurrentMode=E,Be.ContextConsumer=C,Be.ContextProvider=T,Be.Element=k,Be.ForwardRef=R,Be.Fragment=M,Be.Lazy=P,Be.Memo=D,Be.Portal=j,Be.Profiler=N,Be.StrictMode=L,Be.Suspense=B,Be.isAsyncMode=z,Be.isConcurrentMode=F,Be.isContextConsumer=G,Be.isContextProvider=Y,Be.isElement=ne,Be.isForwardRef=Q,Be.isFragment=X,Be.isLazy=te,Be.isMemo=ie,Be.isPortal=ae,Be.isProfiler=W,Be.isStrictMode=H,Be.isSuspense=J,Be.isValidElementType=x,Be.typeOf=b})()),Be}var Rb;function Zj(){return Rb||(Rb=1,process.env.NODE_ENV==="production"?ic.exports=Gj():ic.exports=Xj()),ic.exports}var $f,Db;function Jj(){if(Db)return $f;Db=1;var e=Zj(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=r,o[e.Memo]=i;function a(g){return e.isMemo(g)?i:o[g.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;function h(g,m,v){if(typeof m!="string"){if(p){var y=d(m);y&&y!==p&&h(g,y,v)}var S=l(m);c&&(S=S.concat(c(m)));for(var x=a(g),b=a(m),O=0;O<S.length;++O){var E=S[O];if(!n[E]&&!(v&&v[E])&&!(b&&b[E])&&!(x&&x[E])){var C=u(m,E);try{s(g,E,C)}catch{}}}}return g}return $f=h,$f}Jj();var Qj=!0;function NE(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var pg=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Qj===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},hg=function(t,n,r){pg(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function eN(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var tN={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},nN=/[A-Z]|^ms/g,rN=/_EMO_([^_]+?)_([^]*?)_EMO_/g,RE=function(t){return t.charCodeAt(1)===45},Ib=function(t){return t!=null&&typeof t!="boolean"},Lf=ME(function(e){return RE(e)?e:e.replace(nN,"-$&").toLowerCase()}),$b=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(rN,function(r,i,o){return Er={name:i,styles:o,next:Er},i})}return tN[t]!==1&&!RE(t)&&typeof n=="number"&&n!==0?n+"px":n};function Hs(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Er={name:i.name,styles:i.styles,next:Er},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Er={name:a.name,styles:a.styles,next:Er},a=a.next;var s=o.styles+";";return s}return iN(e,t,n)}case"function":{if(e!==void 0){var l=Er,c=n(e);return Er=l,Hs(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function iN(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Hs(e,t,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?r+=o+"{"+t[s]+"}":Ib(s)&&(r+=Lf(o)+":"+$b(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)Ib(a[l])&&(r+=Lf(o)+":"+$b(o,a[l])+";");else{var c=Hs(e,t,a);switch(o){case"animation":case"animationName":{r+=Lf(o)+":"+c+";";break}default:r+=o+"{"+c+"}"}}}return r}var Lb=/label:\s*([^\s;{]+)\s*(;|$)/g,Er;function Sl(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";Er=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=Hs(n,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Hs(n,t,e[s]),r){var l=o;i+=l[s]}Lb.lastIndex=0;for(var c="",u;(u=Lb.exec(i))!==null;)c+="-"+u[1];var d=eN(i)+c;return{name:d,styles:i,next:Er}}var oN=function(t){return t()},DE=_.useInsertionEffect?_.useInsertionEffect:!1,IE=DE||oN,Fb=DE||_.useLayoutEffect,$E=_.createContext(typeof HTMLElement<"u"?Yj({key:"css"}):null);$E.Provider;var mg=function(t){return I.forwardRef(function(n,r){var i=I.useContext($E);return t(n,i,r)})},Pd=_.createContext({}),gg={}.hasOwnProperty,Wh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",aN=function(t,n){var r={};for(var i in n)gg.call(n,i)&&(r[i]=n[i]);return r[Wh]=t,r},sN=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return pg(n,r,i),IE(function(){return hg(n,r,i)}),null},lN=mg(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Wh],o=[r],a="";typeof e.className=="string"?a=NE(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=Sl(o,void 0,_.useContext(Pd));a+=t.key+"-"+s.name;var l={};for(var c in e)gg.call(e,c)&&c!=="css"&&c!==Wh&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),_.createElement(_.Fragment,null,_.createElement(sN,{cache:t,serialized:s,isStringTag:typeof i=="string"}),_.createElement(i,l))}),cN=lN,Bb=function(t,n){var r=arguments;if(n==null||!gg.call(n,"css"))return _.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=cN,o[1]=aN(t,n);for(var a=2;a<i;a++)o[a]=r[a];return _.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Bb||(Bb={}));var uN=mg(function(e,t){var n=e.styles,r=Sl([n],void 0,_.useContext(Pd)),i=_.useRef();return Fb(function(){var o=t.key+"-global",a=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+o+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",o),a.hydrate([l])),i.current=[a,s],function(){a.flush()}},[t]),Fb(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(r.next!==void 0&&hg(t,r.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function dN(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Sl(t)}function vg(){var e=dN.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var fN=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|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|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|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|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,pN=ME(function(e){return fN.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),hN=pN,mN=function(t){return t!=="theme"},zb=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?hN:mN},Vb=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},gN=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return pg(n,r,i),IE(function(){return hg(n,r,i)}),null},vN=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,a;n!==void 0&&(o=n.label,a=n.target);var s=Vb(t,n,r),l=s||zb(i),c=!l("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var p=u[0];d.push(p[0]);for(var h=u.length,g=1;g<h;g++)d.push(u[g],p[g])}var m=mg(function(v,y,S){var x=c&&v.as||i,b="",O=[],E=v;if(v.theme==null){E={};for(var C in v)E[C]=v[C];E.theme=_.useContext(Pd)}typeof v.className=="string"?b=NE(y.registered,O,v.className):v.className!=null&&(b=v.className+" ");var T=Sl(d.concat(O),y.registered,E);b+=y.key+"-"+T.name,a!==void 0&&(b+=" "+a);var k=c&&s===void 0?zb(x):l,R={};for(var M in v)c&&M==="as"||k(M)&&(R[M]=v[M]);return R.className=b,S&&(R.ref=S),_.createElement(_.Fragment,null,_.createElement(gN,{cache:y,serialized:T,isStringTag:typeof x=="string"}),_.createElement(x,R))});return m.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+a}}),m.withComponent=function(v,y){var S=e(v,ou({},n,y,{shouldForwardProp:Vb(m,y,!0)}));return S.apply(void 0,d)},m}},yN=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],su=vN.bind(null);yN.forEach(function(e){su[e]=su(e)});function bN(e){return e==null||Object.keys(e).length===0}function LE(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?i=>t(bN(i)?n:i):t;return w.jsx(uN,{styles:r})}process.env.NODE_ENV!=="production"&&(LE.propTypes={defaultTheme:f.object,styles:f.oneOfType([f.array,f.string,f.object,f.func])});/**
|
|
84
84
|
* @mui/styled-engine v7.3.2
|
|
85
85
|
*
|
|
86
86
|
* @license MIT
|
|
87
87
|
* This source code is licensed under the MIT license found in the
|
|
88
88
|
* LICENSE file in the root directory of this source tree.
|
|
89
89
|
*/function xN(e,t){const n=su(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const i=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
90
|
-
`)):r.some(o=>o===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),n(...r)}:n}function wN(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Wb=[];function Ci(e){return Wb[0]=e,
|
|
90
|
+
`)):r.some(o=>o===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),n(...r)}:n}function wN(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Wb=[];function Ci(e){return Wb[0]=e,Sl(Wb)}const ON=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function SN(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,o=ON(t),a=Object.keys(o);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function c(p,h){const g=a.indexOf(h);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:h)-r/100}${n})`}function u(p){return a.indexOf(p)+1<a.length?c(p,a[a.indexOf(p)+1]):s(p)}function d(p){const h=a.indexOf(p);return h===0?s(a[1]):h===a.length-1?l(a[h]):c(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:a,values:o,up:s,down:l,between:c,only:u,not:d,unit:n,...i}}const EN={borderRadius:4};function FE(e=8,t=lg({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function _N(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function yg(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={},...a}=e,s=SN(n),l=FE(i);let c=cn({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...EN,...o}},a);return c=AM(c),c.applyStyles=_N,c=t.reduce((u,d)=>cn(u,d),c),c.unstable_sxConfig={...wl,...a?.unstable_sxConfig},c.unstable_sx=function(d){return ga({sx:d,theme:this})},c}function PN(e){return Object.keys(e).length===0}function CN(e=null){const t=_.useContext(Pd);return!t||PN(t)?e:t}const TN=yg();function BE(e=TN){return CN(e)}function Ff(e){const t=Ci(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function zE({styles:e,themeId:t,defaultTheme:n={}}){const r=BE(n),i=t&&r[t]||r;let o=typeof e=="function"?e(i):e;return i.modularCssLayers&&(Array.isArray(o)?o=o.map(a=>Ff(typeof a=="function"?a(i):a)):o=Ff(o)),w.jsx(LE,{styles:o})}process.env.NODE_ENV!=="production"&&(zE.propTypes={defaultTheme:f.object,styles:f.oneOfType([f.array,f.func,f.number,f.object,f.string,f.bool]),themeId:f.string});const AN={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ge(e,t,n="Mui"){const r=AN[t];return r?`${n}-${r}`:`${mM.generate(e)}-${t}`}function qe(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Ge(e,i,n)}),r}function VE(e,t=""){return e.displayName||e.name||t}function Ub(e,t,n){const r=VE(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function kN(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return VE(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ki.ForwardRef:return Ub(e,e.render,"ForwardRef");case ki.Memo:return Ub(e,e.type,"memo");default:return}}}function WE(e){const{variants:t,...n}=e,r={variants:t,style:Ci(n),isProcessed:!0};return r.style===n||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=Ci(i.style))}),r}const MN=yg();function Bf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function po(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function jN(e){return e?(t,n)=>n[e]:null}function NN(e,t,n){e.theme=$N(e.theme)?n:e.theme[t]||e.theme}function Zc(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>Zc(e,i,n));if(Array.isArray(r?.variants)){let i;if(r.isProcessed)i=n?po(r.style,n):r.style;else{const{variants:o,...a}=r;i=n?po(Ci(a),n):a}return UE(e,r.variants,[i],n)}return r?.isProcessed?n?po(Ci(r.style),n):r.style:n?po(Ci(r),n):r}function UE(e,t,n=[],r=void 0){let i;e:for(let o=0;o<t.length;o+=1){const a=t[o];if(typeof a.props=="function"){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(i))continue}else for(const s in a.props)if(e[s]!==a.props[s]&&e.ownerState?.[s]!==a.props[s])continue e;typeof a.style=="function"?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?po(Ci(a.style(i)),r):a.style(i))):n.push(r?po(Ci(a.style),r):a.style)}return n}function RN(e={}){const{themeId:t,defaultTheme:n=MN,rootShouldForwardProp:r=Bf,slotShouldForwardProp:i=Bf}=e;function o(s){NN(s,t,n)}return(s,l={})=>{wN(s,E=>E.filter(C=>C!==ga));const{name:c,slot:u,skipVariantsResolver:d,skipSx:p,overridesResolver:h=jN(HE(u)),...g}=l,m=c&&c.startsWith("Mui")||u?"components":"custom",v=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,y=p||!1;let S=Bf;u==="Root"||u==="root"?S=r:u?S=i:LN(s)&&(S=void 0);const x=xN(s,{shouldForwardProp:S,label:IN(c,u),...g}),b=E=>{if(E.__emotion_real===E)return E;if(typeof E=="function")return function(T){return Zc(T,E,T.theme.modularCssLayers?m:void 0)};if(Pr(E)){const C=WE(E);return function(k){return C.variants?Zc(k,C,k.theme.modularCssLayers?m:void 0):k.theme.modularCssLayers?po(C.style,m):C.style}}return E},O=(...E)=>{const C=[],T=E.map(b),k=[];if(C.push(o),c&&h&&k.push(function(D){const N=D.theme.components?.[c]?.styleOverrides;if(!N)return null;const L={};for(const B in N)L[B]=Zc(D,N[B],D.theme.modularCssLayers?"theme":void 0);return h(D,L)}),c&&!v&&k.push(function(D){const N=D.theme?.components?.[c]?.variants;return N?UE(D,N,[],D.theme.modularCssLayers?"theme":void 0):null}),y||k.push(ga),Array.isArray(T[0])){const P=T.shift(),D=new Array(C.length).fill(""),j=new Array(k.length).fill("");let N;N=[...D,...P,...j],N.raw=[...D,...P.raw,...j],C.unshift(N)}const R=[...C,...T,...k],M=x(...R);return s.muiName&&(M.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(M.displayName=DN(c,u,s)),M};return x.withConfig&&(O.withConfig=x.withConfig),O}}function DN(e,t,n){return e?`${e}${Re(t||"")}`:`Styled(${kN(n)})`}function IN(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${HE(t||"Root")}`),n}function $N(e){for(const t in e)return!1;return!0}function LN(e){return typeof e=="string"&&e.charCodeAt(0)>96}function HE(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Uh(e,t,n=!1){const r={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const o=i;if(o==="components"||o==="slots")r[o]={...e[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const a=e[o],s=t[o];if(!s)r[o]=a||{};else if(!a)r[o]=s;else{r[o]={...s};for(const l in a)if(Object.prototype.hasOwnProperty.call(a,l)){const c=l;r[o][c]=Uh(a[c],s[c],n)}}}else o==="className"&&n&&t.className?r.className=oe(e?.className,t?.className):o==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[o]===void 0&&(r[o]=e[o])}return r}const Nr=typeof window<"u"?_.useLayoutEffect:_.useEffect;function FN(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function bg(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),FN(e,t,n)}function BN(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Mi(e){if(e.type)return e;if(e.charAt(0)==="#")return Mi(BN(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
91
91
|
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:jr(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${i}\` color space.
|
|
92
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:jr(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}const zN=e=>{const t=Mi(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},bs=(e,t)=>{try{return zN(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Cd(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function qE(e){e=Mi(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(c,u=(c+n/30)%12)=>i-o*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Cd({type:s,values:l})}function Hh(e){e=Mi(e);let t=e.type==="hsl"||e.type==="hsla"?Mi(qE(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Hb(e,t){const n=Hh(e),r=Hh(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function lu(e,t){return e=Mi(e),t=bg(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Cd(e)}function Zi(e,t,n){try{return lu(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Td(e,t){if(e=Mi(e),t=bg(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Cd(e)}function Ve(e,t,n){try{return Td(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Ad(e,t){if(e=Mi(e),t=bg(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Cd(e)}function We(e,t,n){try{return Ad(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function VN(e,t=.15){return Hh(e)>.5?Td(e,t):Ad(e,t)}function oc(e,t,n){try{return VN(e,t)}catch{return e}}const WN="exact-prop: ";function KE(e){return process.env.NODE_ENV==="production"?e:{...e,[WN]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}}}const UN=_.createContext();process.env.NODE_ENV!=="production"&&(f.node,f.bool);const xg=()=>_.useContext(UN)??!1,HN=_.createContext(void 0);process.env.NODE_ENV!=="production"&&(f.node,f.object);function qN(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?Uh(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?Uh(i,r,t.components.mergeClassNameAndStyle):r}function KN({props:e,name:t}){const n=_.useContext(HN);return qN({props:e,name:t,theme:{components:n}})}let qb=0;function YN(e){const[t,n]=_.useState(e),r=e||t;return _.useEffect(()=>{t==null&&(qb+=1,n(`mui-${qb}`))},[t]),r}const GN={..._},Kb=GN.useId;function wg(e){if(Kb!==void 0){const t=Kb();return e??t}return YN(e)}const Yb={theme:void 0};function XN(e){let t,n;return function(i){let o=t;return(o===void 0||i.theme!==n)&&(Yb.theme=i.theme,o=WE(e(Yb)),t=o,n=i.theme),o}}function ZN(e=""){function t(...r){if(!r.length)return"";const i=r[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${i}${t(...r.slice(1))})`:`, ${i}`}return(r,...i)=>`var(--${e?`${e}-`:""}${r}${t(...i)})`}const Gb=(e,t,n,r=[])=>{let i=e;t.forEach((o,a)=>{a===t.length-1?Array.isArray(i)?i[Number(o)]=n:i&&typeof i=="object"&&(i[o]=n):i&&typeof i=="object"&&(i[o]||(i[o]=r.includes(o)?[]:{}),i=i[o])})},JN=(e,t,n)=>{function r(i,o=[],a=[]){Object.entries(i).forEach(([s,l])=>{(!n||n&&!n([...o,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...o,s],Array.isArray(l)?[...a,s]:a):t([...o,s],l,a))})}r(e)},QN=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function zf(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},o={},a={};return JN(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(s,l))){const u=`--${n?`${n}-`:""}${s.join("-")}`,d=QN(s,l);Object.assign(i,{[u]:d}),Gb(o,s,`var(${u})`,c),Gb(a,s,`var(${u}, ${d})`,c)}},s=>s[0]==="vars"),{css:i,vars:o,varsWithDefaults:a}}function eR(e,t={}){const{getSelector:n=y,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:o}=t,{colorSchemes:a={},components:s,defaultColorScheme:l="light",...c}=e,{vars:u,css:d,varsWithDefaults:p}=zf(c,t);let h=p;const g={},{[l]:m,...v}=a;if(Object.entries(v||{}).forEach(([b,O])=>{const{vars:E,css:C,varsWithDefaults:T}=zf(O,t);h=cn(h,T),g[b]={css:C,vars:E}}),m){const{css:b,vars:O,varsWithDefaults:E}=zf(m,t);h=cn(h,E),g[l]={css:b,vars:O}}function y(b,O){let E=i;if(i==="class"&&(E=".%s"),i==="data"&&(E="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(E=`[${i}="%s"]`),b){if(E==="media")return e.defaultColorScheme===b?":root":{[`@media (prefers-color-scheme: ${a[b]?.palette?.mode||b})`]:{":root":O}};if(E)return e.defaultColorScheme===b?`:root, ${E.replace("%s",String(b))}`:E.replace("%s",String(b))}return":root"}return{vars:h,generateThemeVars:()=>{let b={...u};return Object.entries(g).forEach(([,{vars:O}])=>{b=cn(b,O)}),b},generateStyleSheets:()=>{const b=[],O=e.defaultColorScheme||"light";function E(k,R){Object.keys(R).length&&b.push(typeof k=="string"?{[k]:{...R}}:k)}E(n(void 0,{...d}),d);const{[O]:C,...T}=g;if(C){const{css:k}=C,R=a[O]?.palette?.mode,M=!r&&R?{colorScheme:R,...k}:{...k};E(n(O,{...M}),M)}return Object.entries(T).forEach(([k,{css:R}])=>{const M=a[k]?.palette?.mode,P=!r&&M?{colorScheme:M,...R}:{...R};E(n(k,{...P}),P)}),o&&b.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),b}}}function tR(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function Vf(e,t){return _.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const Hs={black:"#000",white:"#fff"},nR={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Ko={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Yo={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ja={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Go={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Xo={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Zo={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function YE(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Hs.white,default:Hs.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const GE=YE();function XE(){return{text:{primary:Hs.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Hs.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const qh=XE();function Xb(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Ad(e.main,i):t==="dark"&&(e.dark=Td(e.main,o)))}function Zb(e,t,n,r,i){const o=i.light||i,a=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(o*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function rR(e="light"){return e==="dark"?{main:Go[200],light:Go[50],dark:Go[400]}:{main:Go[700],light:Go[400],dark:Go[800]}}function iR(e="light"){return e==="dark"?{main:Ko[200],light:Ko[50],dark:Ko[400]}:{main:Ko[500],light:Ko[300],dark:Ko[700]}}function oR(e="light"){return e==="dark"?{main:Yo[500],light:Yo[300],dark:Yo[700]}:{main:Yo[700],light:Yo[400],dark:Yo[800]}}function aR(e="light"){return e==="dark"?{main:Xo[400],light:Xo[300],dark:Xo[700]}:{main:Xo[700],light:Xo[500],dark:Xo[900]}}function sR(e="light"){return e==="dark"?{main:Zo[400],light:Zo[300],dark:Zo[700]}:{main:Zo[800],light:Zo[500],dark:Zo[900]}}function lR(e="light"){return e==="dark"?{main:Ja[400],light:Ja[300],dark:Ja[700]}:{main:"#ed6c02",light:Ja[500],dark:Ja[900]}}function cR(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Og(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...o}=e,a=e.primary||rR(t),s=e.secondary||iR(t),l=e.error||oR(t),c=e.info||aR(t),u=e.success||sR(t),d=e.warning||lR(t);function p(v){if(i)return cR(v);const y=Hb(v,qh.text.primary)>=n?qh.text.primary:GE.text.primary;if(process.env.NODE_ENV!=="production"){const S=Hb(v,y);S<3&&console.error([`MUI: The contrast ratio of ${S}:1 for ${y} on ${v}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
92
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:jr(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}const zN=e=>{const t=Mi(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},xs=(e,t)=>{try{return zN(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Cd(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function qE(e){e=Mi(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(c,u=(c+n/30)%12)=>i-o*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Cd({type:s,values:l})}function Hh(e){e=Mi(e);let t=e.type==="hsl"||e.type==="hsla"?Mi(qE(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Hb(e,t){const n=Hh(e),r=Hh(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function lu(e,t){return e=Mi(e),t=bg(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Cd(e)}function Zi(e,t,n){try{return lu(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Td(e,t){if(e=Mi(e),t=bg(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Cd(e)}function Ve(e,t,n){try{return Td(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Ad(e,t){if(e=Mi(e),t=bg(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Cd(e)}function We(e,t,n){try{return Ad(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function VN(e,t=.15){return Hh(e)>.5?Td(e,t):Ad(e,t)}function oc(e,t,n){try{return VN(e,t)}catch{return e}}const WN="exact-prop: ";function KE(e){return process.env.NODE_ENV==="production"?e:{...e,[WN]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}}}const UN=_.createContext();process.env.NODE_ENV!=="production"&&(f.node,f.bool);const xg=()=>_.useContext(UN)??!1,HN=_.createContext(void 0);process.env.NODE_ENV!=="production"&&(f.node,f.object);function qN(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?Uh(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?Uh(i,r,t.components.mergeClassNameAndStyle):r}function KN({props:e,name:t}){const n=_.useContext(HN);return qN({props:e,name:t,theme:{components:n}})}let qb=0;function YN(e){const[t,n]=_.useState(e),r=e||t;return _.useEffect(()=>{t==null&&(qb+=1,n(`mui-${qb}`))},[t]),r}const GN={..._},Kb=GN.useId;function wg(e){if(Kb!==void 0){const t=Kb();return e??t}return YN(e)}const Yb={theme:void 0};function XN(e){let t,n;return function(i){let o=t;return(o===void 0||i.theme!==n)&&(Yb.theme=i.theme,o=WE(e(Yb)),t=o,n=i.theme),o}}function ZN(e=""){function t(...r){if(!r.length)return"";const i=r[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${i}${t(...r.slice(1))})`:`, ${i}`}return(r,...i)=>`var(--${e?`${e}-`:""}${r}${t(...i)})`}const Gb=(e,t,n,r=[])=>{let i=e;t.forEach((o,a)=>{a===t.length-1?Array.isArray(i)?i[Number(o)]=n:i&&typeof i=="object"&&(i[o]=n):i&&typeof i=="object"&&(i[o]||(i[o]=r.includes(o)?[]:{}),i=i[o])})},JN=(e,t,n)=>{function r(i,o=[],a=[]){Object.entries(i).forEach(([s,l])=>{(!n||n&&!n([...o,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...o,s],Array.isArray(l)?[...a,s]:a):t([...o,s],l,a))})}r(e)},QN=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function zf(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},o={},a={};return JN(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(s,l))){const u=`--${n?`${n}-`:""}${s.join("-")}`,d=QN(s,l);Object.assign(i,{[u]:d}),Gb(o,s,`var(${u})`,c),Gb(a,s,`var(${u}, ${d})`,c)}},s=>s[0]==="vars"),{css:i,vars:o,varsWithDefaults:a}}function eR(e,t={}){const{getSelector:n=y,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:o}=t,{colorSchemes:a={},components:s,defaultColorScheme:l="light",...c}=e,{vars:u,css:d,varsWithDefaults:p}=zf(c,t);let h=p;const g={},{[l]:m,...v}=a;if(Object.entries(v||{}).forEach(([b,O])=>{const{vars:E,css:C,varsWithDefaults:T}=zf(O,t);h=cn(h,T),g[b]={css:C,vars:E}}),m){const{css:b,vars:O,varsWithDefaults:E}=zf(m,t);h=cn(h,E),g[l]={css:b,vars:O}}function y(b,O){let E=i;if(i==="class"&&(E=".%s"),i==="data"&&(E="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(E=`[${i}="%s"]`),b){if(E==="media")return e.defaultColorScheme===b?":root":{[`@media (prefers-color-scheme: ${a[b]?.palette?.mode||b})`]:{":root":O}};if(E)return e.defaultColorScheme===b?`:root, ${E.replace("%s",String(b))}`:E.replace("%s",String(b))}return":root"}return{vars:h,generateThemeVars:()=>{let b={...u};return Object.entries(g).forEach(([,{vars:O}])=>{b=cn(b,O)}),b},generateStyleSheets:()=>{const b=[],O=e.defaultColorScheme||"light";function E(k,R){Object.keys(R).length&&b.push(typeof k=="string"?{[k]:{...R}}:k)}E(n(void 0,{...d}),d);const{[O]:C,...T}=g;if(C){const{css:k}=C,R=a[O]?.palette?.mode,M=!r&&R?{colorScheme:R,...k}:{...k};E(n(O,{...M}),M)}return Object.entries(T).forEach(([k,{css:R}])=>{const M=a[k]?.palette?.mode,P=!r&&M?{colorScheme:M,...R}:{...R};E(n(k,{...P}),P)}),o&&b.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),b}}}function tR(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function Vf(e,t){return _.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const qs={black:"#000",white:"#fff"},nR={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Ko={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Yo={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Qa={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Go={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Xo={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Zo={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function YE(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:qs.white,default:qs.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const GE=YE();function XE(){return{text:{primary:qs.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:qs.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const qh=XE();function Xb(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Ad(e.main,i):t==="dark"&&(e.dark=Td(e.main,o)))}function Zb(e,t,n,r,i){const o=i.light||i,a=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(o*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function rR(e="light"){return e==="dark"?{main:Go[200],light:Go[50],dark:Go[400]}:{main:Go[700],light:Go[400],dark:Go[800]}}function iR(e="light"){return e==="dark"?{main:Ko[200],light:Ko[50],dark:Ko[400]}:{main:Ko[500],light:Ko[300],dark:Ko[700]}}function oR(e="light"){return e==="dark"?{main:Yo[500],light:Yo[300],dark:Yo[700]}:{main:Yo[700],light:Yo[400],dark:Yo[800]}}function aR(e="light"){return e==="dark"?{main:Xo[400],light:Xo[300],dark:Xo[700]}:{main:Xo[700],light:Xo[500],dark:Xo[900]}}function sR(e="light"){return e==="dark"?{main:Zo[400],light:Zo[300],dark:Zo[700]}:{main:Zo[800],light:Zo[500],dark:Zo[900]}}function lR(e="light"){return e==="dark"?{main:Qa[400],light:Qa[300],dark:Qa[700]}:{main:"#ed6c02",light:Qa[500],dark:Qa[900]}}function cR(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Og(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...o}=e,a=e.primary||rR(t),s=e.secondary||iR(t),l=e.error||oR(t),c=e.info||aR(t),u=e.success||sR(t),d=e.warning||lR(t);function p(v){if(i)return cR(v);const y=Hb(v,qh.text.primary)>=n?qh.text.primary:GE.text.primary;if(process.env.NODE_ENV!=="production"){const S=Hb(v,y);S<3&&console.error([`MUI: The contrast ratio of ${S}:1 for ${y} on ${v}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
93
93
|
`))}return y}const h=({color:v,name:y,mainShade:S=500,lightShade:x=300,darkShade:b=700})=>{if(v={...v},!v.main&&v[S]&&(v.main=v[S]),!v.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
|
|
94
94
|
The color object needs to have a \`main\` property or a \`${S}\` property.`:jr(11,y?` (${y})`:"",S));if(typeof v.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
|
|
95
95
|
\`color.main\` should be a string, but \`${JSON.stringify(v.main)}\` was provided instead.
|
|
@@ -104,7 +104,7 @@ const theme1 = createTheme({ palette: {
|
|
|
104
104
|
|
|
105
105
|
const theme2 = createTheme({ palette: {
|
|
106
106
|
primary: { main: green[500] },
|
|
107
|
-
} });`:jr(12,y?` (${y})`:"",JSON.stringify(v.main)));return i?(Zb(i,v,"light",x,r),Zb(i,v,"dark",b,r)):(Xb(v,"light",x,r),Xb(v,"dark",b,r)),v.contrastText||(v.contrastText=p(v.main)),v};let g;return t==="light"?g=YE():t==="dark"&&(g=XE()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),cn({common:{...
|
|
107
|
+
} });`:jr(12,y?` (${y})`:"",JSON.stringify(v.main)));return i?(Zb(i,v,"light",x,r),Zb(i,v,"dark",b,r)):(Xb(v,"light",x,r),Xb(v,"dark",b,r)),v.contrastText||(v.contrastText=p(v.main)),v};let g;return t==="light"?g=YE():t==="dark"&&(g=XE()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),cn({common:{...qs},mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:l,name:"error"}),warning:h({color:d,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:u,name:"success"}),grey:nR,contrastThreshold:n,getContrastText:p,augmentColor:h,tonalOffset:r,...g},o)}function uR(e){const t={};return Object.entries(e).forEach(r=>{const[i,o]=r;typeof o=="object"&&(t[i]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function dR(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function fR(e){return Math.round(e*1e5)/1e5}const Jb={textTransform:"uppercase"},Qb='"Roboto", "Helvetica", "Arial", sans-serif';function pR(e,t){const{fontFamily:n=Qb,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:o=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=r/14,h=u||(v=>`${v/l*p}rem`),g=(v,y,S,x,b)=>({fontFamily:n,fontWeight:v,fontSize:h(y),lineHeight:S,...n===Qb?{letterSpacing:`${fR(x/y)}em`}:{},...b,...c}),m={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(o,48,1.167,0),h4:g(o,34,1.235,.25),h5:g(o,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(o,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(o,16,1.5,.15),body2:g(o,14,1.43,.15),button:g(a,14,1.75,.4,Jb),caption:g(o,12,1.66,.4),overline:g(o,12,2.66,1,Jb),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return cn({htmlFontSize:l,pxToRem:h,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:o,fontWeightMedium:a,fontWeightBold:s,...m},d,{clone:!1})}const hR=.2,mR=.14,gR=.12;function ft(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${hR})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${mR})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${gR})`].join(",")}const vR=["none",ft(0,2,1,-1,0,1,1,0,0,1,3,0),ft(0,3,1,-2,0,2,2,0,0,1,5,0),ft(0,3,3,-2,0,3,4,0,0,1,8,0),ft(0,2,4,-1,0,4,5,0,0,1,10,0),ft(0,3,5,-1,0,5,8,0,0,1,14,0),ft(0,3,5,-1,0,6,10,0,0,1,18,0),ft(0,4,5,-2,0,7,10,1,0,2,16,1),ft(0,5,5,-3,0,8,10,1,0,3,14,2),ft(0,5,6,-3,0,9,12,1,0,3,16,2),ft(0,6,6,-3,0,10,14,1,0,4,18,3),ft(0,6,7,-4,0,11,15,1,0,4,20,3),ft(0,7,8,-4,0,12,17,2,0,5,22,4),ft(0,7,8,-4,0,13,19,2,0,5,24,4),ft(0,7,9,-4,0,14,21,2,0,5,26,4),ft(0,8,9,-5,0,15,22,2,0,6,28,5),ft(0,8,10,-5,0,16,24,2,0,6,30,5),ft(0,8,11,-5,0,17,26,2,0,6,32,5),ft(0,9,11,-5,0,18,28,2,0,7,34,6),ft(0,9,12,-6,0,19,29,2,0,7,36,6),ft(0,10,13,-6,0,20,31,3,0,8,38,7),ft(0,10,13,-6,0,21,33,3,0,8,40,7),ft(0,10,14,-6,0,22,35,3,0,8,42,7),ft(0,11,14,-7,0,23,36,3,0,9,44,8),ft(0,11,15,-7,0,24,38,3,0,9,46,8)],yR={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},bR={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function e0(e){return`${Math.round(e)}ms`}function xR(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function wR(e){const t={...yR,...e.easing},n={...bR,...e.duration};return{getAutoHeightDuration:xR,create:(i=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0,...c}=o;if(process.env.NODE_ENV!=="production"){const u=p=>typeof p=="string",d=p=>!Number.isNaN(parseFloat(p));!u(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!d(a)&&!u(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),u(s)||console.error('MUI: Argument "easing" must be a string.'),!d(l)&&!u(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof o!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
108
108
|
`)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof a=="string"?a:e0(a)} ${s} ${typeof l=="string"?l:e0(l)}`).join(",")},...e,easing:t,duration:n}}const OR={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function SR(e){return Pr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function ZE(e={}){const t={...e};function n(r){const i=Object.entries(r);for(let o=0;o<i.length;o++){const[a,s]=i[o];!SR(s)||a.startsWith("unstable_")?delete r[a]:Pr(s)&&(r[a]={...s},n(r[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
109
109
|
|
|
110
110
|
const theme = ${JSON.stringify(t,null,2)};
|
|
@@ -113,11 +113,11 @@ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
|
113
113
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
114
114
|
|
|
115
115
|
export default theme;`}function t0(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const ER=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function _R(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:lu(t,ER(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${t0(n)})`:Ad(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${t0(n)})`:Td(t,n)}})}function Kh(e={},...t){const{breakpoints:n,mixins:r={},spacing:i,palette:o={},transitions:a={},typography:s={},shape:l,colorSpace:c,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":jr(20));const d=Og({...o,colorSpace:c}),p=yg(e);let h=cn(p,{mixins:dR(p.breakpoints,r),palette:d,shadows:vR.slice(),typography:pR(d,s),transitions:wR(a),zIndex:{...OR}});if(h=cn(h,u),h=t.reduce((g,m)=>cn(g,m),h),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],m=(v,y)=>{let S;for(S in v){const x=v[S];if(g.includes(S)&&Object.keys(x).length>0){if(process.env.NODE_ENV!=="production"){const b=Ge("",S);console.error([`MUI: The \`${y}\` component increases the CSS specificity of the \`${S}\` internal state.`,"You can not override it like this: ",JSON.stringify(v,null,2),"",`Instead, you need to use the '&.${b}' syntax:`,JSON.stringify({root:{[`&.${b}`]:x}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
116
|
-
`))}v[S]={}}}};Object.keys(h.components).forEach(v=>{const y=h.components[v].styleOverrides;y&&v.startsWith("Mui")&&m(y,v)})}return h.unstable_sxConfig={...
|
|
117
|
-
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function jR(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const yr=e=>{try{return e()}catch{}},NR=(e="mui")=>ZN(e);function Wf(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;const o=i==="dark"?"dark":"light";if(!r){t[i]=CR({...n,palette:{mode:o,...n?.palette},colorSpace:e});return}const{palette:a,...s}=Kh({...r,palette:{mode:o,...n?.palette},colorSpace:e});return t[i]={...n,palette:a,opacity:{...JE(o),...n?.opacity},overlays:n?.overlays||QE(o)},s}function RR(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:o="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=TR,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...u}=e,d=Object.keys(n)[0],p=r||(n.light&&d!=="light"?"light":d),h=NR(o),{[p]:g,light:m,dark:v,...y}=n,S={...y};let x=g;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(x=!0),!x)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:jr(21,p));let b;a&&(b="oklch");const O=Wf(b,S,x,u,p);m&&!S.light&&Wf(b,S,m,void 0,"light"),v&&!S.dark&&Wf(b,S,v,void 0,"dark");let E={defaultColorScheme:p,...O,cssVarPrefix:o,colorSchemeSelector:l,rootSelector:c,getCssVar:h,colorSchemes:S,font:{...uR(O.typography),...O.font},spacing:jR(u.spacing)};Object.keys(E.colorSchemes).forEach(M=>{const P=E.colorSchemes[M].palette,D=N=>{const L=N.split("-"),B=L[1],K=L[2];return h(N,P[B][K])};P.mode==="light"&&(q(P.common,"background","#fff"),q(P.common,"onBackground","#000")),P.mode==="dark"&&(q(P.common,"background","#000"),q(P.common,"onBackground","#fff"));function j(N,L,B){if(b){let K;return N===Zi&&(K=`transparent ${((1-B)*100).toFixed(0)}%`),N===Ve&&(K=`#000 ${(B*100).toFixed(0)}%`),N===We&&(K=`#fff ${(B*100).toFixed(0)}%`),`color-mix(in ${b}, ${L}, ${K})`}return N(L,B)}if(MR(P,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),P.mode==="light"){q(P.Alert,"errorColor",j(Ve,P.error.light,.6)),q(P.Alert,"infoColor",j(Ve,P.info.light,.6)),q(P.Alert,"successColor",j(Ve,P.success.light,.6)),q(P.Alert,"warningColor",j(Ve,P.warning.light,.6)),q(P.Alert,"errorFilledBg",D("palette-error-main")),q(P.Alert,"infoFilledBg",D("palette-info-main")),q(P.Alert,"successFilledBg",D("palette-success-main")),q(P.Alert,"warningFilledBg",D("palette-warning-main")),q(P.Alert,"errorFilledColor",yr(()=>P.getContrastText(P.error.main))),q(P.Alert,"infoFilledColor",yr(()=>P.getContrastText(P.info.main))),q(P.Alert,"successFilledColor",yr(()=>P.getContrastText(P.success.main))),q(P.Alert,"warningFilledColor",yr(()=>P.getContrastText(P.warning.main))),q(P.Alert,"errorStandardBg",j(We,P.error.light,.9)),q(P.Alert,"infoStandardBg",j(We,P.info.light,.9)),q(P.Alert,"successStandardBg",j(We,P.success.light,.9)),q(P.Alert,"warningStandardBg",j(We,P.warning.light,.9)),q(P.Alert,"errorIconColor",D("palette-error-main")),q(P.Alert,"infoIconColor",D("palette-info-main")),q(P.Alert,"successIconColor",D("palette-success-main")),q(P.Alert,"warningIconColor",D("palette-warning-main")),q(P.AppBar,"defaultBg",D("palette-grey-100")),q(P.Avatar,"defaultBg",D("palette-grey-400")),q(P.Button,"inheritContainedBg",D("palette-grey-300")),q(P.Button,"inheritContainedHoverBg",D("palette-grey-A100")),q(P.Chip,"defaultBorder",D("palette-grey-400")),q(P.Chip,"defaultAvatarColor",D("palette-grey-700")),q(P.Chip,"defaultIconColor",D("palette-grey-700")),q(P.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),q(P.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),q(P.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),q(P.LinearProgress,"primaryBg",j(We,P.primary.main,.62)),q(P.LinearProgress,"secondaryBg",j(We,P.secondary.main,.62)),q(P.LinearProgress,"errorBg",j(We,P.error.main,.62)),q(P.LinearProgress,"infoBg",j(We,P.info.main,.62)),q(P.LinearProgress,"successBg",j(We,P.success.main,.62)),q(P.LinearProgress,"warningBg",j(We,P.warning.main,.62)),q(P.Skeleton,"bg",b?j(Zi,P.text.primary,.11):`rgba(${D("palette-text-primaryChannel")} / 0.11)`),q(P.Slider,"primaryTrack",j(We,P.primary.main,.62)),q(P.Slider,"secondaryTrack",j(We,P.secondary.main,.62)),q(P.Slider,"errorTrack",j(We,P.error.main,.62)),q(P.Slider,"infoTrack",j(We,P.info.main,.62)),q(P.Slider,"successTrack",j(We,P.success.main,.62)),q(P.Slider,"warningTrack",j(We,P.warning.main,.62));const N=b?j(Ve,P.background.default,.6825):oc(P.background.default,.8);q(P.SnackbarContent,"bg",N),q(P.SnackbarContent,"color",yr(()=>b?qh.text.primary:P.getContrastText(N))),q(P.SpeedDialAction,"fabHoverBg",oc(P.background.paper,.15)),q(P.StepConnector,"border",D("palette-grey-400")),q(P.StepContent,"border",D("palette-grey-400")),q(P.Switch,"defaultColor",D("palette-common-white")),q(P.Switch,"defaultDisabledColor",D("palette-grey-100")),q(P.Switch,"primaryDisabledColor",j(We,P.primary.main,.62)),q(P.Switch,"secondaryDisabledColor",j(We,P.secondary.main,.62)),q(P.Switch,"errorDisabledColor",j(We,P.error.main,.62)),q(P.Switch,"infoDisabledColor",j(We,P.info.main,.62)),q(P.Switch,"successDisabledColor",j(We,P.success.main,.62)),q(P.Switch,"warningDisabledColor",j(We,P.warning.main,.62)),q(P.TableCell,"border",j(We,j(Zi,P.divider,1),.88)),q(P.Tooltip,"bg",j(Zi,P.grey[700],.92))}if(P.mode==="dark"){q(P.Alert,"errorColor",j(We,P.error.light,.6)),q(P.Alert,"infoColor",j(We,P.info.light,.6)),q(P.Alert,"successColor",j(We,P.success.light,.6)),q(P.Alert,"warningColor",j(We,P.warning.light,.6)),q(P.Alert,"errorFilledBg",D("palette-error-dark")),q(P.Alert,"infoFilledBg",D("palette-info-dark")),q(P.Alert,"successFilledBg",D("palette-success-dark")),q(P.Alert,"warningFilledBg",D("palette-warning-dark")),q(P.Alert,"errorFilledColor",yr(()=>P.getContrastText(P.error.dark))),q(P.Alert,"infoFilledColor",yr(()=>P.getContrastText(P.info.dark))),q(P.Alert,"successFilledColor",yr(()=>P.getContrastText(P.success.dark))),q(P.Alert,"warningFilledColor",yr(()=>P.getContrastText(P.warning.dark))),q(P.Alert,"errorStandardBg",j(Ve,P.error.light,.9)),q(P.Alert,"infoStandardBg",j(Ve,P.info.light,.9)),q(P.Alert,"successStandardBg",j(Ve,P.success.light,.9)),q(P.Alert,"warningStandardBg",j(Ve,P.warning.light,.9)),q(P.Alert,"errorIconColor",D("palette-error-main")),q(P.Alert,"infoIconColor",D("palette-info-main")),q(P.Alert,"successIconColor",D("palette-success-main")),q(P.Alert,"warningIconColor",D("palette-warning-main")),q(P.AppBar,"defaultBg",D("palette-grey-900")),q(P.AppBar,"darkBg",D("palette-background-paper")),q(P.AppBar,"darkColor",D("palette-text-primary")),q(P.Avatar,"defaultBg",D("palette-grey-600")),q(P.Button,"inheritContainedBg",D("palette-grey-800")),q(P.Button,"inheritContainedHoverBg",D("palette-grey-700")),q(P.Chip,"defaultBorder",D("palette-grey-700")),q(P.Chip,"defaultAvatarColor",D("palette-grey-300")),q(P.Chip,"defaultIconColor",D("palette-grey-300")),q(P.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),q(P.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),q(P.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),q(P.LinearProgress,"primaryBg",j(Ve,P.primary.main,.5)),q(P.LinearProgress,"secondaryBg",j(Ve,P.secondary.main,.5)),q(P.LinearProgress,"errorBg",j(Ve,P.error.main,.5)),q(P.LinearProgress,"infoBg",j(Ve,P.info.main,.5)),q(P.LinearProgress,"successBg",j(Ve,P.success.main,.5)),q(P.LinearProgress,"warningBg",j(Ve,P.warning.main,.5)),q(P.Skeleton,"bg",b?j(Zi,P.text.primary,.13):`rgba(${D("palette-text-primaryChannel")} / 0.13)`),q(P.Slider,"primaryTrack",j(Ve,P.primary.main,.5)),q(P.Slider,"secondaryTrack",j(Ve,P.secondary.main,.5)),q(P.Slider,"errorTrack",j(Ve,P.error.main,.5)),q(P.Slider,"infoTrack",j(Ve,P.info.main,.5)),q(P.Slider,"successTrack",j(Ve,P.success.main,.5)),q(P.Slider,"warningTrack",j(Ve,P.warning.main,.5));const N=b?j(We,P.background.default,.985):oc(P.background.default,.98);q(P.SnackbarContent,"bg",N),q(P.SnackbarContent,"color",yr(()=>b?GE.text.primary:P.getContrastText(N))),q(P.SpeedDialAction,"fabHoverBg",oc(P.background.paper,.15)),q(P.StepConnector,"border",D("palette-grey-600")),q(P.StepContent,"border",D("palette-grey-600")),q(P.Switch,"defaultColor",D("palette-grey-300")),q(P.Switch,"defaultDisabledColor",D("palette-grey-600")),q(P.Switch,"primaryDisabledColor",j(Ve,P.primary.main,.55)),q(P.Switch,"secondaryDisabledColor",j(Ve,P.secondary.main,.55)),q(P.Switch,"errorDisabledColor",j(Ve,P.error.main,.55)),q(P.Switch,"infoDisabledColor",j(Ve,P.info.main,.55)),q(P.Switch,"successDisabledColor",j(Ve,P.success.main,.55)),q(P.Switch,"warningDisabledColor",j(Ve,P.warning.main,.55)),q(P.TableCell,"border",j(Ve,j(Zi,P.divider,1),.68)),q(P.Tooltip,"bg",j(Zi,P.grey[700],.92))}zr(P.background,"default"),zr(P.background,"paper"),zr(P.common,"background"),zr(P.common,"onBackground"),zr(P,"divider"),Object.keys(P).forEach(N=>{const L=P[N];N!=="tonalOffset"&&L&&typeof L=="object"&&(L.main&&q(P[N],"mainChannel",bs(xs(L.main))),L.light&&q(P[N],"lightChannel",bs(xs(L.light))),L.dark&&q(P[N],"darkChannel",bs(xs(L.dark))),L.contrastText&&q(P[N],"contrastTextChannel",bs(xs(L.contrastText))),N==="text"&&(zr(P[N],"primary"),zr(P[N],"secondary")),N==="action"&&(L.active&&zr(P[N],"active"),L.selected&&zr(P[N],"selected")))})}),E=t.reduce((M,P)=>cn(M,P),E);const C={prefix:o,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:kR(E),enableContrastVars:a},{vars:T,generateThemeVars:k,generateStyleSheets:R}=eR(E,C);return E.vars=T,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([M,P])=>{E[M]=P}),E.generateThemeVars=k,E.generateStyleSheets=R,E.generateSpacing=function(){return FE(u.spacing,lg(this))},E.getColorSchemeSelector=tR(l),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=s,E.unstable_sxConfig={...xl,...u?.unstable_sxConfig},E.unstable_sx=function(P){return ga({sx:P,theme:this})},E.toRuntimeSource=ZE,E}function n0(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Og({...n===!0?{}:n.palette,mode:t})})}function DR(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:o=n?.mode,...a}=e,s=o||"light",l=i?.[s],c={...i,...n?{[s]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Kh(e,...t);let u=n;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const d=Kh({...e,palette:u},...t);return d.defaultColorScheme=s,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},n0(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},n0(d,"light",c.light)),d}return!n&&!("light"in c)&&s==="light"&&(c.light=!0),RR({...a,colorSchemes:c,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}const Sg=DR(),Eg="$$material";function kd(){const e=BE(Sg);return process.env.NODE_ENV!=="production"&&_.useDebugValue(e),e[Eg]||e}function e_(e){return w.jsx(zE,{...e,defaultTheme:Sg,themeId:Eg})}process.env.NODE_ENV!=="production"&&(e_.propTypes={styles:f.oneOfType([f.array,f.func,f.number,f.object,f.string,f.bool])});function t_(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Wn=e=>t_(e)&&e!=="classes",ve=RN({themeId:Eg,defaultTheme:Sg,rootShouldForwardProp:Wn});function IR(e){return function(n){return w.jsx(e_,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function $R(){return bj}const St=XN;process.env.NODE_ENV!=="production"&&(f.node,f.object.isRequired);function ut(e){return KN(e)}function LR(e){return Ge("MuiSvgIcon",e)}qe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const FR=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Re(t)}`,`fontSize${Re(n)}`]};return rt(i,LR,r)},BR=ve("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Re(n.color)}`],t[`fontSize${Re(n.fontSize)}`]]}})(St(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),cu=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:p="0 0 24 24",...h}=r,g=_.isValidElement(i)&&i.type==="svg",m={...r,color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:g},v={};u||(v.viewBox=p);const y=FR(m);return w.jsxs(BR,{as:s,className:oe(y.root,o),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...v,...h,...g&&i.props,ownerState:m,children:[g?i.props.children:i,d?w.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(cu.propTypes={children:f.node,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),f.string]),component:f.elementType,fontSize:f.oneOfType([f.oneOf(["inherit","large","medium","small"]),f.string]),htmlColor:f.string,inheritViewBox:f.bool,shapeRendering:f.string,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),titleAccess:f.string,viewBox:f.string});cu.muiName="SvgIcon";function Fi(e,t){function n(r,i){return w.jsx(cu,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:i,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=cu.muiName,_.memo(_.forwardRef(n))}function n_(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function Ln(e){return e&&e.ownerDocument||document}function ri(e){return Ln(e).defaultView||window}function r0(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function uu(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:o}=_.useRef(t!==void 0),[a,s]=_.useState(n),l=o?t:a;if(process.env.NODE_ENV!=="production"){_.useEffect(()=>{o!==(t!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${i} state of ${r} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
116
|
+
`))}v[S]={}}}};Object.keys(h.components).forEach(v=>{const y=h.components[v].styleOverrides;y&&v.startsWith("Mui")&&m(y,v)})}return h.unstable_sxConfig={...wl,...u?.unstable_sxConfig},h.unstable_sx=function(m){return ga({sx:m,theme:this})},h.toRuntimeSource=ZE,_R(h),h}function Yh(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const PR=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Yh(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function JE(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function QE(e){return e==="dark"?PR:[]}function CR(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:i,...o}=e,a=Og({...t,colorSpace:i});return{palette:a,opacity:{...JE(a.mode),...n},overlays:r||QE(a.mode),...o}}function TR(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const AR=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],kR=e=>(t,n)=>{const r=e.rootSelector||":root",i=e.colorSchemeSelector;let o=i;if(i==="class"&&(o=".%s"),i==="data"&&(o="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(o=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return AR(e.cssVarPrefix).forEach(s=>{a[s]=n[s],delete n[s]}),o==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:o?{[o.replace("%s",t)]:a,[`${r}, ${o.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(o&&o!=="media")return`${r}, ${o.replace("%s",String(t))}`}else if(t){if(o==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(o)return o.replace("%s",String(t))}return r};function MR(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function q(e,t,n){!e[t]&&n&&(e[t]=n)}function ws(e){return typeof e!="string"||!e.startsWith("hsl")?e:qE(e)}function zr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=xs(ws(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
117
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function jR(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const yr=e=>{try{return e()}catch{}},NR=(e="mui")=>ZN(e);function Wf(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;const o=i==="dark"?"dark":"light";if(!r){t[i]=CR({...n,palette:{mode:o,...n?.palette},colorSpace:e});return}const{palette:a,...s}=Kh({...r,palette:{mode:o,...n?.palette},colorSpace:e});return t[i]={...n,palette:a,opacity:{...JE(o),...n?.opacity},overlays:n?.overlays||QE(o)},s}function RR(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:o="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=TR,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...u}=e,d=Object.keys(n)[0],p=r||(n.light&&d!=="light"?"light":d),h=NR(o),{[p]:g,light:m,dark:v,...y}=n,S={...y};let x=g;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(x=!0),!x)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:jr(21,p));let b;a&&(b="oklch");const O=Wf(b,S,x,u,p);m&&!S.light&&Wf(b,S,m,void 0,"light"),v&&!S.dark&&Wf(b,S,v,void 0,"dark");let E={defaultColorScheme:p,...O,cssVarPrefix:o,colorSchemeSelector:l,rootSelector:c,getCssVar:h,colorSchemes:S,font:{...uR(O.typography),...O.font},spacing:jR(u.spacing)};Object.keys(E.colorSchemes).forEach(M=>{const P=E.colorSchemes[M].palette,D=N=>{const L=N.split("-"),B=L[1],K=L[2];return h(N,P[B][K])};P.mode==="light"&&(q(P.common,"background","#fff"),q(P.common,"onBackground","#000")),P.mode==="dark"&&(q(P.common,"background","#000"),q(P.common,"onBackground","#fff"));function j(N,L,B){if(b){let K;return N===Zi&&(K=`transparent ${((1-B)*100).toFixed(0)}%`),N===Ve&&(K=`#000 ${(B*100).toFixed(0)}%`),N===We&&(K=`#fff ${(B*100).toFixed(0)}%`),`color-mix(in ${b}, ${L}, ${K})`}return N(L,B)}if(MR(P,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),P.mode==="light"){q(P.Alert,"errorColor",j(Ve,P.error.light,.6)),q(P.Alert,"infoColor",j(Ve,P.info.light,.6)),q(P.Alert,"successColor",j(Ve,P.success.light,.6)),q(P.Alert,"warningColor",j(Ve,P.warning.light,.6)),q(P.Alert,"errorFilledBg",D("palette-error-main")),q(P.Alert,"infoFilledBg",D("palette-info-main")),q(P.Alert,"successFilledBg",D("palette-success-main")),q(P.Alert,"warningFilledBg",D("palette-warning-main")),q(P.Alert,"errorFilledColor",yr(()=>P.getContrastText(P.error.main))),q(P.Alert,"infoFilledColor",yr(()=>P.getContrastText(P.info.main))),q(P.Alert,"successFilledColor",yr(()=>P.getContrastText(P.success.main))),q(P.Alert,"warningFilledColor",yr(()=>P.getContrastText(P.warning.main))),q(P.Alert,"errorStandardBg",j(We,P.error.light,.9)),q(P.Alert,"infoStandardBg",j(We,P.info.light,.9)),q(P.Alert,"successStandardBg",j(We,P.success.light,.9)),q(P.Alert,"warningStandardBg",j(We,P.warning.light,.9)),q(P.Alert,"errorIconColor",D("palette-error-main")),q(P.Alert,"infoIconColor",D("palette-info-main")),q(P.Alert,"successIconColor",D("palette-success-main")),q(P.Alert,"warningIconColor",D("palette-warning-main")),q(P.AppBar,"defaultBg",D("palette-grey-100")),q(P.Avatar,"defaultBg",D("palette-grey-400")),q(P.Button,"inheritContainedBg",D("palette-grey-300")),q(P.Button,"inheritContainedHoverBg",D("palette-grey-A100")),q(P.Chip,"defaultBorder",D("palette-grey-400")),q(P.Chip,"defaultAvatarColor",D("palette-grey-700")),q(P.Chip,"defaultIconColor",D("palette-grey-700")),q(P.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),q(P.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),q(P.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),q(P.LinearProgress,"primaryBg",j(We,P.primary.main,.62)),q(P.LinearProgress,"secondaryBg",j(We,P.secondary.main,.62)),q(P.LinearProgress,"errorBg",j(We,P.error.main,.62)),q(P.LinearProgress,"infoBg",j(We,P.info.main,.62)),q(P.LinearProgress,"successBg",j(We,P.success.main,.62)),q(P.LinearProgress,"warningBg",j(We,P.warning.main,.62)),q(P.Skeleton,"bg",b?j(Zi,P.text.primary,.11):`rgba(${D("palette-text-primaryChannel")} / 0.11)`),q(P.Slider,"primaryTrack",j(We,P.primary.main,.62)),q(P.Slider,"secondaryTrack",j(We,P.secondary.main,.62)),q(P.Slider,"errorTrack",j(We,P.error.main,.62)),q(P.Slider,"infoTrack",j(We,P.info.main,.62)),q(P.Slider,"successTrack",j(We,P.success.main,.62)),q(P.Slider,"warningTrack",j(We,P.warning.main,.62));const N=b?j(Ve,P.background.default,.6825):oc(P.background.default,.8);q(P.SnackbarContent,"bg",N),q(P.SnackbarContent,"color",yr(()=>b?qh.text.primary:P.getContrastText(N))),q(P.SpeedDialAction,"fabHoverBg",oc(P.background.paper,.15)),q(P.StepConnector,"border",D("palette-grey-400")),q(P.StepContent,"border",D("palette-grey-400")),q(P.Switch,"defaultColor",D("palette-common-white")),q(P.Switch,"defaultDisabledColor",D("palette-grey-100")),q(P.Switch,"primaryDisabledColor",j(We,P.primary.main,.62)),q(P.Switch,"secondaryDisabledColor",j(We,P.secondary.main,.62)),q(P.Switch,"errorDisabledColor",j(We,P.error.main,.62)),q(P.Switch,"infoDisabledColor",j(We,P.info.main,.62)),q(P.Switch,"successDisabledColor",j(We,P.success.main,.62)),q(P.Switch,"warningDisabledColor",j(We,P.warning.main,.62)),q(P.TableCell,"border",j(We,j(Zi,P.divider,1),.88)),q(P.Tooltip,"bg",j(Zi,P.grey[700],.92))}if(P.mode==="dark"){q(P.Alert,"errorColor",j(We,P.error.light,.6)),q(P.Alert,"infoColor",j(We,P.info.light,.6)),q(P.Alert,"successColor",j(We,P.success.light,.6)),q(P.Alert,"warningColor",j(We,P.warning.light,.6)),q(P.Alert,"errorFilledBg",D("palette-error-dark")),q(P.Alert,"infoFilledBg",D("palette-info-dark")),q(P.Alert,"successFilledBg",D("palette-success-dark")),q(P.Alert,"warningFilledBg",D("palette-warning-dark")),q(P.Alert,"errorFilledColor",yr(()=>P.getContrastText(P.error.dark))),q(P.Alert,"infoFilledColor",yr(()=>P.getContrastText(P.info.dark))),q(P.Alert,"successFilledColor",yr(()=>P.getContrastText(P.success.dark))),q(P.Alert,"warningFilledColor",yr(()=>P.getContrastText(P.warning.dark))),q(P.Alert,"errorStandardBg",j(Ve,P.error.light,.9)),q(P.Alert,"infoStandardBg",j(Ve,P.info.light,.9)),q(P.Alert,"successStandardBg",j(Ve,P.success.light,.9)),q(P.Alert,"warningStandardBg",j(Ve,P.warning.light,.9)),q(P.Alert,"errorIconColor",D("palette-error-main")),q(P.Alert,"infoIconColor",D("palette-info-main")),q(P.Alert,"successIconColor",D("palette-success-main")),q(P.Alert,"warningIconColor",D("palette-warning-main")),q(P.AppBar,"defaultBg",D("palette-grey-900")),q(P.AppBar,"darkBg",D("palette-background-paper")),q(P.AppBar,"darkColor",D("palette-text-primary")),q(P.Avatar,"defaultBg",D("palette-grey-600")),q(P.Button,"inheritContainedBg",D("palette-grey-800")),q(P.Button,"inheritContainedHoverBg",D("palette-grey-700")),q(P.Chip,"defaultBorder",D("palette-grey-700")),q(P.Chip,"defaultAvatarColor",D("palette-grey-300")),q(P.Chip,"defaultIconColor",D("palette-grey-300")),q(P.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),q(P.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),q(P.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),q(P.LinearProgress,"primaryBg",j(Ve,P.primary.main,.5)),q(P.LinearProgress,"secondaryBg",j(Ve,P.secondary.main,.5)),q(P.LinearProgress,"errorBg",j(Ve,P.error.main,.5)),q(P.LinearProgress,"infoBg",j(Ve,P.info.main,.5)),q(P.LinearProgress,"successBg",j(Ve,P.success.main,.5)),q(P.LinearProgress,"warningBg",j(Ve,P.warning.main,.5)),q(P.Skeleton,"bg",b?j(Zi,P.text.primary,.13):`rgba(${D("palette-text-primaryChannel")} / 0.13)`),q(P.Slider,"primaryTrack",j(Ve,P.primary.main,.5)),q(P.Slider,"secondaryTrack",j(Ve,P.secondary.main,.5)),q(P.Slider,"errorTrack",j(Ve,P.error.main,.5)),q(P.Slider,"infoTrack",j(Ve,P.info.main,.5)),q(P.Slider,"successTrack",j(Ve,P.success.main,.5)),q(P.Slider,"warningTrack",j(Ve,P.warning.main,.5));const N=b?j(We,P.background.default,.985):oc(P.background.default,.98);q(P.SnackbarContent,"bg",N),q(P.SnackbarContent,"color",yr(()=>b?GE.text.primary:P.getContrastText(N))),q(P.SpeedDialAction,"fabHoverBg",oc(P.background.paper,.15)),q(P.StepConnector,"border",D("palette-grey-600")),q(P.StepContent,"border",D("palette-grey-600")),q(P.Switch,"defaultColor",D("palette-grey-300")),q(P.Switch,"defaultDisabledColor",D("palette-grey-600")),q(P.Switch,"primaryDisabledColor",j(Ve,P.primary.main,.55)),q(P.Switch,"secondaryDisabledColor",j(Ve,P.secondary.main,.55)),q(P.Switch,"errorDisabledColor",j(Ve,P.error.main,.55)),q(P.Switch,"infoDisabledColor",j(Ve,P.info.main,.55)),q(P.Switch,"successDisabledColor",j(Ve,P.success.main,.55)),q(P.Switch,"warningDisabledColor",j(Ve,P.warning.main,.55)),q(P.TableCell,"border",j(Ve,j(Zi,P.divider,1),.68)),q(P.Tooltip,"bg",j(Zi,P.grey[700],.92))}zr(P.background,"default"),zr(P.background,"paper"),zr(P.common,"background"),zr(P.common,"onBackground"),zr(P,"divider"),Object.keys(P).forEach(N=>{const L=P[N];N!=="tonalOffset"&&L&&typeof L=="object"&&(L.main&&q(P[N],"mainChannel",xs(ws(L.main))),L.light&&q(P[N],"lightChannel",xs(ws(L.light))),L.dark&&q(P[N],"darkChannel",xs(ws(L.dark))),L.contrastText&&q(P[N],"contrastTextChannel",xs(ws(L.contrastText))),N==="text"&&(zr(P[N],"primary"),zr(P[N],"secondary")),N==="action"&&(L.active&&zr(P[N],"active"),L.selected&&zr(P[N],"selected")))})}),E=t.reduce((M,P)=>cn(M,P),E);const C={prefix:o,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:kR(E),enableContrastVars:a},{vars:T,generateThemeVars:k,generateStyleSheets:R}=eR(E,C);return E.vars=T,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([M,P])=>{E[M]=P}),E.generateThemeVars=k,E.generateStyleSheets=R,E.generateSpacing=function(){return FE(u.spacing,lg(this))},E.getColorSchemeSelector=tR(l),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=s,E.unstable_sxConfig={...wl,...u?.unstable_sxConfig},E.unstable_sx=function(P){return ga({sx:P,theme:this})},E.toRuntimeSource=ZE,E}function n0(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Og({...n===!0?{}:n.palette,mode:t})})}function DR(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:o=n?.mode,...a}=e,s=o||"light",l=i?.[s],c={...i,...n?{[s]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Kh(e,...t);let u=n;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const d=Kh({...e,palette:u},...t);return d.defaultColorScheme=s,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},n0(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},n0(d,"light",c.light)),d}return!n&&!("light"in c)&&s==="light"&&(c.light=!0),RR({...a,colorSchemes:c,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}const Sg=DR(),Eg="$$material";function kd(){const e=BE(Sg);return process.env.NODE_ENV!=="production"&&_.useDebugValue(e),e[Eg]||e}function e_(e){return w.jsx(zE,{...e,defaultTheme:Sg,themeId:Eg})}process.env.NODE_ENV!=="production"&&(e_.propTypes={styles:f.oneOfType([f.array,f.func,f.number,f.object,f.string,f.bool])});function t_(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Wn=e=>t_(e)&&e!=="classes",ve=RN({themeId:Eg,defaultTheme:Sg,rootShouldForwardProp:Wn});function IR(e){return function(n){return w.jsx(e_,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function $R(){return bj}const St=XN;process.env.NODE_ENV!=="production"&&(f.node,f.object.isRequired);function ut(e){return KN(e)}function LR(e){return Ge("MuiSvgIcon",e)}qe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const FR=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Re(t)}`,`fontSize${Re(n)}`]};return rt(i,LR,r)},BR=ve("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Re(n.color)}`],t[`fontSize${Re(n.fontSize)}`]]}})(St(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),cu=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:p="0 0 24 24",...h}=r,g=_.isValidElement(i)&&i.type==="svg",m={...r,color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:g},v={};u||(v.viewBox=p);const y=FR(m);return w.jsxs(BR,{as:s,className:oe(y.root,o),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...v,...h,...g&&i.props,ownerState:m,children:[g?i.props.children:i,d?w.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(cu.propTypes={children:f.node,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),f.string]),component:f.elementType,fontSize:f.oneOfType([f.oneOf(["inherit","large","medium","small"]),f.string]),htmlColor:f.string,inheritViewBox:f.bool,shapeRendering:f.string,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),titleAccess:f.string,viewBox:f.string});cu.muiName="SvgIcon";function Fi(e,t){function n(r,i){return w.jsx(cu,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:i,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=cu.muiName,_.memo(_.forwardRef(n))}function n_(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function Ln(e){return e&&e.ownerDocument||document}function ri(e){return Ln(e).defaultView||window}function r0(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function uu(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:o}=_.useRef(t!==void 0),[a,s]=_.useState(n),l=o?t:a;if(process.env.NODE_ENV!=="production"){_.useEffect(()=>{o!==(t!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${i} state of ${r} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
118
118
|
`))},[i,r,t]);const{current:u}=_.useRef(n);_.useEffect(()=>{!o&&JSON.stringify(n)!==JSON.stringify(u)&&console.error([`MUI: A component is changing the default ${i} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
|
|
119
|
-
`))},[JSON.stringify(n)])}const c=_.useCallback(u=>{o||s(u)},[]);return[l,c]}function Qr(e){const t=_.useRef(e);return Nr(()=>{t.current=e}),_.useRef((...n)=>(0,t.current)(...n)).current}function Ht(...e){const t=_.useRef(void 0),n=_.useCallback(r=>{const i=e.map(o=>{if(o==null)return null;if(typeof o=="function"){const a=o,s=a(r);return typeof s=="function"?s:()=>{a(null)}}return o.current=r,()=>{o.current=null}});return()=>{i.forEach(o=>o?.())}},e);return _.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function zR(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function r_(e,t){if(!e)return t;function n(a,s){const l={};return Object.keys(s).forEach(c=>{zR(c,s[c])&&typeof a[c]=="function"&&(l[c]=(...u)=>{a[c](...u),s[c](...u)})}),l}if(typeof e=="function"||typeof t=="function")return a=>{const s=typeof t=="function"?t(a):t,l=typeof e=="function"?e({...a,...s}):e,c=oe(a?.className,s?.className,l?.className),u=n(l,s);return{...s,...l,...u,...!!c&&{className:c},...s?.style&&l?.style&&{style:{...s.style,...l.style}},...s?.sx&&l?.sx&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(l.sx)?l.sx:[l.sx]]}}};const r=t,i=n(e,r),o=oe(r?.className,e?.className);return{...t,...e,...i,...!!o&&{className:o},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const VR=Fi(w.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V10h16zm0-13H4V5h16z"}),"CalendarTodayOutlined"),Sl=Fi(w.jsx("path",{d:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z"}),"DescriptionOutlined"),WR=Fi(w.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5z"}),"FileDownloadOutlined"),qt=Fi(w.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNewOutlined");var i_={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i0=I.createContext&&I.createContext(i_),UR=["attr","size","title"];function HR(e,t){if(e==null)return{};var n=qR(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qR(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function du(){return du=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},du.apply(this,arguments)}function o0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o0(Object(n),!0).forEach(function(r){KR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KR(e,t,n){return t=YR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YR(e){var t=GR(e,"string");return typeof t=="symbol"?t:t+""}function GR(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function o_(e){return e&&e.map((t,n)=>I.createElement(t.tag,fu({key:n},t.attr),o_(t.child)))}function Xe(e){return t=>I.createElement(XR,du({attr:fu({},e.attr)},t),o_(e.child))}function XR(e){var t=n=>{var{attr:r,size:i,title:o}=e,a=HR(e,UR),s=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),I.createElement("svg",du({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:l,style:fu(fu({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&I.createElement("title",null,o),e.children)};return i0!==void 0?I.createElement(i0.Consumer,null,n=>t(n)):t(i_)}function ZR(e){return Xe({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M384 160c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0c17.7 0 32 14.3 32 32l0 160c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-82.7L342.6 374.6c-12.5 12.5-32.8 12.5-45.3 0L192 269.3 54.6 406.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l160-160c12.5-12.5 32.8-12.5 45.3 0L320 306.7 466.7 160 384 160z"},child:[]}]})(e)}function JR(e){return Xe({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"},child:[]}]})(e)}function QR(e){return Xe({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8l256 0c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"},child:[]}]})(e)}function eD(e){return Xe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"},child:[]}]})(e)}function tD(e){return Xe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"},child:[]}]})(e)}function nD({title:e,description:t}){return w.jsxs("div",{className:"flex items-center justify-between px-6 my-6",children:[w.jsxs("div",{children:[w.jsx("div",{className:"!text-[24px] text-[#121212] font-semibold",children:e}),w.jsx("div",{className:"text-gray-500 text-[14px]",children:t})]}),w.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center gap-[12px]",children:[w.jsxs("div",{className:"w-full sm:w-auto flex items-center justify-center gap-[8px] bg-white shadow-sm px-2 md:px-6 py-1 rounded-sm text-[#64748B] text-sm hover:bg-slate-50",children:[w.jsx(VR,{fontSize:"12"}),w.jsx("div",{className:" whitespace-nowrap",children:"Last 7 Days"}),w.jsx(eD,{fontSize:"12"})]}),w.jsxs("div",{className:"w-full flex items-center justify-center gap-[8px] bg-white text-[#884EA7] px-2 md:px-6 py-1 rounded-sm shadow-sm hover:bg-purple-50",children:[w.jsx("div",{className:"font-medium whitespace-nowrap",children:"Export Report"}),w.jsx(WR,{fontSize:"12"})]})]})]})}function a0(e){return Xe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z"},child:[]}]})(e)}function rD(e){return Xe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M192 208c0-17.67-14.33-32-32-32h-16c-35.35 0-64 28.65-64 64v48c0 35.35 28.65 64 64 64h16c17.67 0 32-14.33 32-32V208zm176 144c35.35 0 64-28.65 64-64v-48c0-35.35-28.65-64-64-64h-16c-17.67 0-32 14.33-32 32v112c0 17.67 14.33 32 32 32h16zM256 0C113.18 0 4.58 118.83 0 256v16c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-16c0-114.69 93.31-208 208-208s208 93.31 208 208h-.12c.08 2.43.12 165.72.12 165.72 0 23.35-18.93 42.28-42.28 42.28H320c0-26.51-21.49-48-48-48h-32c-26.51 0-48 21.49-48 48s21.49 48 48 48h181.72c49.86 0 90.28-40.42 90.28-90.28V256C507.42 118.83 398.82 0 256 0z"},child:[]}]})(e)}function _g(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2"},child:[]},{tag:"path",attr:{d:"M9 22v-4h6v4"},child:[]},{tag:"path",attr:{d:"M8 6h.01"},child:[]},{tag:"path",attr:{d:"M16 6h.01"},child:[]},{tag:"path",attr:{d:"M12 6h.01"},child:[]},{tag:"path",attr:{d:"M12 10h.01"},child:[]},{tag:"path",attr:{d:"M12 14h.01"},child:[]},{tag:"path",attr:{d:"M16 10h.01"},child:[]},{tag:"path",attr:{d:"M16 14h.01"},child:[]},{tag:"path",attr:{d:"M8 10h.01"},child:[]},{tag:"path",attr:{d:"M8 14h.01"},child:[]}]})(e)}function iD(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2"},child:[]},{tag:"circle",attr:{cx:"7",cy:"17",r:"2"},child:[]},{tag:"path",attr:{d:"M9 17h6"},child:[]},{tag:"circle",attr:{cx:"17",cy:"17",r:"2"},child:[]}]})(e)}function a_(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M13 4h3a2 2 0 0 1 2 2v14"},child:[]},{tag:"path",attr:{d:"M2 20h3"},child:[]},{tag:"path",attr:{d:"M13 20h9"},child:[]},{tag:"path",attr:{d:"M10 12v.01"},child:[]},{tag:"path",attr:{d:"M13 4.562v16.157a1 1 0 0 1-1.242.97L5 20V5.562a2 2 0 0 1 1.515-1.94l4-1A2 2 0 0 1 13 4.561Z"},child:[]}]})(e)}function oD(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M16 5h6"},child:[]},{tag:"path",attr:{d:"M19 2v6"},child:[]},{tag:"path",attr:{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5"},child:[]},{tag:"path",attr:{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"},child:[]},{tag:"circle",attr:{cx:"9",cy:"9",r:"2"},child:[]}]})(e)}function s_(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"},child:[]}]})(e)}function s0(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z"},child:[]},{tag:"path",attr:{d:"M14 8H8"},child:[]},{tag:"path",attr:{d:"M16 12H8"},child:[]},{tag:"path",attr:{d:"M13 16H8"},child:[]}]})(e)}function l_(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z"},child:[]},{tag:"path",attr:{d:"m9 12 2 2 4-4"},child:[]}]})(e)}function Pg(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"},child:[]},{tag:"path",attr:{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"},child:[]},{tag:"path",attr:{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"},child:[]}]})(e)}function aD(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"},child:[]}]})(e)}function c_(e){return Xe({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.03 2.59a1.501 1.501 0 0 1 1.94 0l7.5 6.363a1.5 1.5 0 0 1 .53 1.144V19.5a1.5 1.5 0 0 1-1.5 1.5h-5.75a.75.75 0 0 1-.75-.75V14h-2v6.25a.75.75 0 0 1-.75.75H4.5A1.5 1.5 0 0 1 3 19.5v-9.403c0-.44.194-.859.53-1.144ZM12 3.734l-7.5 6.363V19.5h5v-6.25a.75.75 0 0 1 .75-.75h3.5a.75.75 0 0 1 .75.75v6.25h5v-9.403Z"},child:[]}]})(e)}function u_(e){return Xe({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3.5 8a5.5 5.5 0 1 1 8.596 4.547 9.005 9.005 0 0 1 5.9 8.18.751.751 0 0 1-1.5.045 7.5 7.5 0 0 0-14.993 0 .75.75 0 0 1-1.499-.044 9.005 9.005 0 0 1 5.9-8.181A5.496 5.496 0 0 1 3.5 8ZM9 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm8.29 4c-.148 0-.292.01-.434.03a.75.75 0 1 1-.212-1.484 4.53 4.53 0 0 1 3.38 8.097 6.69 6.69 0 0 1 3.956 6.107.75.75 0 0 1-1.5 0 5.193 5.193 0 0 0-3.696-4.972l-.534-.16v-1.676l.41-.209A3.03 3.03 0 0 0 17.29 8Z"},child:[]}]})(e)}function d_(e){return Xe({attr:{viewBox:"0 0 32 32"},child:[{tag:"path",attr:{d:"M 2 7 L 2 24 L 30 24 L 30 7 L 2 7 z M 6 9 L 26 9 C 26 10.105 26.895 11 28 11 L 28 20 C 26.895 20 26 20.895 26 22 L 6 22 C 6 20.895 5.105 20 4 20 L 4 11 C 5.105 11 6 10.105 6 9 z M 16 11 C 13.789 11 12 13.016 12 15.5 C 12 17.984 13.789 20 16 20 C 18.211 20 20 17.984 20 15.5 C 20 13.016 18.211 11 16 11 z M 16 13 C 17.102 13 18 14.121 18 15.5 C 18 16.879 17.102 18 16 18 C 14.898 18 14 16.879 14 15.5 C 14 14.121 14.898 13 16 13 z M 8.5 14 C 7.672 14 7 14.672 7 15.5 C 7 16.328 7.672 17 8.5 17 C 9.328 17 10 16.328 10 15.5 C 10 14.672 9.328 14 8.5 14 z M 23.5 14 C 22.672 14 22 14.672 22 15.5 C 22 16.328 22.672 17 23.5 17 C 24.328 17 25 16.328 25 15.5 C 25 14.672 24.328 14 23.5 14 z"},child:[]}]})(e)}const sD=[{name:"Overview",icon:c_},{name:"Community",icon:_g},{name:"Financials",icon:d_},{name:"Facilities",icon:a_},{name:"Gate & Security",icon:Pg},{name:"Helpdesk",icon:rD},{name:"Engagement",icon:s_}];function lD(){const[e,t]=I.useState("Overview");return w.jsx("div",{className:"flex gap-[8px] p-3",children:sD.map(n=>{const r=n.icon,i=e===n.name;return w.jsxs("button",{onClick:()=>t(n.name),className:`flex items-center gap-[8px] rounded px-4 py-3 text-[14px] leading-[16px] font-medium transition
|
|
120
|
-
${i?"bg-[#FBF5FF] text-[#884EA7]":"bg-white text-[#64748B] hover:bg-gray-50"}`,children:[w.jsx(r,{className:"h-[15px] w-[15px] font-bold"}),n.name]},n.name)})})}const l0=({color:e})=>w.jsx("span",{style:{display:"inline-block",width:"8px",height:"8px",borderRadius:"50%",backgroundColor:e,marginRight:"6px"}}),El=({active:e,payload:t})=>!e||!t||!t.length?null:w.jsx("div",{className:"bg-[#121212] text-white !text-[12px] p-3 rounded-lg shadow-lg",children:t.map((n,r)=>w.jsxs("div",{className:"capitalize flex gap-[4px] items-center leading-relaxed",children:[n.color&&w.jsx(l0,{color:n.color}),n.payload.color&&w.jsx(l0,{color:n.payload.color}),w.jsx("div",{className:"min-w-[84px] text-[#D1D3D4]",children:n.name}),w.jsx("div",{className:"font-semibold",children:n.value})]},r))}),f_=({value:e})=>{const t=typeof e=="string"?parseFloat(e.replace("%","")):e??0,n=t>=0;return w.jsxs("div",{className:`w-fit p-1 rounded text-[10px] leading-[14px] font-medium flex items-center gap-1 ${n?"bg-[#F7FEFA] text-[#1FA05B]":"bg-[#FFF2F2] text-[#AB0000]"}`,children:[n?w.jsx(QR,{}):w.jsx(JR,{}),Math.abs(t).toFixed(1),"%"]})},$o=({title:e,icon:t,period:n,actionButtons:r,children:i,footer:o,className:a="",childrenClassName:s,titleWeight:l})=>{const c=l==="semi-bold"?600:500;return w.jsxs("div",{className:`relative bg-white !border-[0.5px] !border-[#EBEBEB] !rounded-[12px] !shadow-[0_0_12px_0_#EAF2FF] p-[16px] flex flex-col gap-[24px] ${a}`,children:[w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsxs("div",{className:"flex items-center gap-[12px]",children:[t,w.jsx("div",{style:{fontWeight:c,fontSize:"16px",lineHeight:"20px"},className:"!my-0 !text-[16px] !leading-[20px] !text-[#121212]",children:e})]}),w.jsxs("div",{className:"flex items-center gap-2",children:[r&&r,n&&w.jsx("div",{className:"!text-[12px] !leading-[16px] !text-[#64748B]",children:n})]})]}),w.jsx("div",{className:`flex-1 min-h-0 space-y-[24px] ${s}`,children:i}),o&&w.jsx("div",{className:"mt-3 pt-3 border-t border-gray-100 !text-[12px] text-[#64748B]",children:o})]})};function yi(e,t){sessionStorage.setItem(e,t),(e==="community_id"||e==="export"||e==="widget_id")&&window.dispatchEvent(new StorageEvent("dashboard-update",{key:e}))}var Uf={},Hf={},c0;function cD(){return c0||(c0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t})(Hf)),Hf}var qf={},u0;function p_(){return u0||(u0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t})(qf)),qf}var Kf={},d0;function h_(){return d0||(d0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="string"||typeof n=="symbol"?n:Object.is(n?.valueOf?.(),-0)?"-0":String(n)}e.toKey=t})(Kf)),Kf}var Yf={},f0;function Cg(){return f0||(f0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){const r=[],i=n.length;if(i===0)return r;let o=0,a="",s="",l=!1;for(n.charCodeAt(0)===46&&(r.push(""),o++);o<i;){const c=n[o];s?c==="\\"&&o+1<i?(o++,a+=n[o]):c===s?s="":a+=c:l?c==='"'||c==="'"?s=c:c==="]"?(l=!1,r.push(a),a=""):a+=c:c==="["?(l=!0,a&&(r.push(a),a="")):c==="."?a&&(r.push(a),a=""):a+=c,o++}return a&&r.push(a),r}e.toPath=t})(Yf)),Yf}var p0;function Tg(){return p0||(p0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=cD(),n=p_(),r=h_(),i=Cg();function o(s,l,c){if(s==null)return c;switch(typeof l){case"string":{if(t.isUnsafeProperty(l))return c;const u=s[l];return u===void 0?n.isDeepKey(l)?o(s,i.toPath(l),c):c:u}case"number":case"symbol":{typeof l=="number"&&(l=r.toKey(l));const u=s[l];return u===void 0?c:u}default:{if(Array.isArray(l))return a(s,l,c);if(Object.is(l?.valueOf(),-0)?l="-0":l=String(l),t.isUnsafeProperty(l))return c;const u=s[l];return u===void 0?c:u}}}function a(s,l,c){if(l.length===0)return c;let u=s;for(let d=0;d<l.length;d++){if(u==null||t.isUnsafeProperty(l[d]))return c;u=u[l[d]]}return u===void 0?c:u}e.get=o})(Uf)),Uf}var Gf,h0;function uD(){return h0||(h0=1,Gf=Tg().get),Gf}var dD=uD();const Co=ui(dD);var Ut=e=>e===0?0:e>0?1:-1,Fn=e=>typeof e=="number"&&e!=+e,ho=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,ge=e=>(typeof e=="number"||e instanceof Number)&&!Fn(e),Rr=e=>ge(e)||typeof e=="string",fD=0,qs=e=>{var t=++fD;return"".concat(e||"").concat(t)},un=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ge(t)&&typeof t!="string")return r;var o;if(ho(t)){if(n==null)return r;var a=t.indexOf("%");o=n*parseFloat(t.slice(0,a))/100}else o=+t;return Fn(o)&&(o=r),i&&n!=null&&o>n&&(o=n),o},m_=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[e[r]])n[e[r]]=!0;else return!0;return!1};function wt(e,t,n){return ge(e)&&ge(t)?e+n*(t-e):t}function g_(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):Co(r,t))===n)}var mt=e=>e===null||typeof e>"u",_l=e=>mt(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)),pD=["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 Ag(e){if(typeof e!="string")return!1;var t=pD;return t.includes(e)}var hD=["viewBox","children"],m0=["points","pathLength"],Xf={svg:hD,polygon:m0,polyline:m0},kg=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(I.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var r={};return Object.keys(n).forEach(i=>{Ag(i)&&(r[i]=(o=>n[i](n,o)))}),r},mD=(e,t,n)=>r=>(e(t,n,r),null),Md=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(i=>{var o=e[i];Ag(i)&&typeof o=="function"&&(r||(r={}),r[i]=mD(o,t,n))}),r},gD=["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"];function v_(e){if(typeof e!="string")return!1;var t=gD;return t.includes(e)}function Lr(e){var t=Object.entries(e).filter(n=>{var[r]=n;return v_(r)});return Object.fromEntries(t)}var g0=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",v0=null,Zf=null,y_=e=>{if(e===v0&&Array.isArray(Zf))return Zf;var t=[];return I.Children.forEach(e,n=>{mt(n)||(ki.isFragment(n)?t=t.concat(y_(n.props.children)):t.push(n))}),Zf=t,v0=e,t};function Mg(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(i=>g0(i)):r=[g0(t)],y_(e).forEach(i=>{var o=Co(i,"type.displayName")||Co(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}var b_=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,vD=(e,t,n,r)=>{var i;if(typeof t=="symbol"||typeof t=="number")return!0;var o=(i=r&&Xf?.[r])!==null&&i!==void 0?i:[],a=t.startsWith("data-"),s=typeof e!="function"&&(!!r&&o.includes(t)||v_(t)),l=!!n&&Ag(t);return a||s||l},vt=(e,t,n)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(I.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var i={};return Object.keys(r).forEach(o=>{var a;vD((a=r)===null||a===void 0?void 0:a[o],o,t,n)&&(i[o]=r[o])}),i},yD=["children","width","height","viewBox","className","style","title","desc"];function Gh(){return Gh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gh.apply(null,arguments)}function bD(e,t){if(e==null)return{};var n,r,i=xD(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function xD(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var x_=I.forwardRef((e,t)=>{var{children:n,width:r,height:i,viewBox:o,className:a,style:s,title:l,desc:c}=e,u=bD(e,yD),d=o||{width:r,height:i,x:0,y:0},p=oe("recharts-surface",a);return _.createElement("svg",Gh({},vt(u,!0,"svg"),{className:p,width:r,height:i,style:s,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),ref:t}),_.createElement("title",null,l),_.createElement("desc",null,c),n)}),wD=["children","className"];function Xh(){return Xh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xh.apply(null,arguments)}function OD(e,t){if(e==null)return{};var n,r,i=SD(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function SD(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Qt=_.forwardRef((e,t)=>{var{children:n,className:r}=e,i=OD(e,wD),o=oe("recharts-layer",r);return _.createElement("g",Xh({className:o},vt(i,!0),{ref:t}),n)}),ED=I.createContext(null);function it(e){return function(){return e}}const w_=Math.cos,pu=Math.sin,hr=Math.sqrt,hu=Math.PI,jd=2*hu,Zh=Math.PI,Jh=2*Zh,ro=1e-6,_D=Jh-ro;function O_(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function PD(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return O_;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class CD{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?O_:PD(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,l=r-t,c=i-n,u=a-t,d=s-n,p=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(p>ro)if(!(Math.abs(d*l-c*u)>ro)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-a,g=i-s,m=l*l+c*c,v=h*h+g*g,y=Math.sqrt(m),S=Math.sqrt(p),x=o*Math.tan((Zh-Math.acos((m+p-v)/(2*y*S)))/2),b=x/S,O=x/y;Math.abs(b-1)>ro&&this._append`L${t+b*u},${n+b*d}`,this._append`A${o},${o},0,0,${+(d*h>u*g)},${this._x1=t+O*l},${this._y1=n+O*c}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),c=t+s,u=n+l,d=1^a,p=a?i-o:o-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>ro||Math.abs(this._y1-u)>ro)&&this._append`L${c},${u}`,r&&(p<0&&(p=p%Jh+Jh),p>_D?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:p>ro&&this._append`A${r},${r},0,${+(p>=Zh)},${d},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function jg(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new CD(t)}function Ng(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function S_(e){this._context=e}S_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Nd(e){return new S_(e)}function E_(e){return e[0]}function __(e){return e[1]}function P_(e,t){var n=it(!0),r=null,i=Nd,o=null,a=jg(s);e=typeof e=="function"?e:e===void 0?E_:it(e),t=typeof t=="function"?t:t===void 0?__:it(t);function s(l){var c,u=(l=Ng(l)).length,d,p=!1,h;for(r==null&&(o=i(h=a())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===p&&((p=!p)?o.lineStart():o.lineEnd()),p&&o.point(+e(d,c,l),+t(d,c,l));if(h)return o=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:it(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:it(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:it(!!l),s):n},s.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),s):i},s.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),s):r},s}function ac(e,t,n){var r=null,i=it(!0),o=null,a=Nd,s=null,l=jg(c);e=typeof e=="function"?e:e===void 0?E_:it(+e),t=typeof t=="function"?t:it(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?__:it(+n);function c(d){var p,h,g,m=(d=Ng(d)).length,v,y=!1,S,x=new Array(m),b=new Array(m);for(o==null&&(s=a(S=l())),p=0;p<=m;++p){if(!(p<m&&i(v=d[p],p,d))===y)if(y=!y)h=p,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),g=p-1;g>=h;--g)s.point(x[g],b[g]);s.lineEnd(),s.areaEnd()}y&&(x[p]=+e(v,p,d),b[p]=+t(v,p,d),s.point(r?+r(v,p,d):x[p],n?+n(v,p,d):b[p]))}if(S)return s=null,S+""||null}function u(){return P_().defined(i).curve(a).context(o)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:it(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:it(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:it(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:it(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:it(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:it(+d),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(d){return arguments.length?(i=typeof d=="function"?d:it(!!d),c):i},c.curve=function(d){return arguments.length?(a=d,o!=null&&(s=a(o)),c):a},c.context=function(d){return arguments.length?(d==null?o=s=null:s=a(o=d),c):o},c}class C_{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function TD(e){return new C_(e,!0)}function AD(e){return new C_(e,!1)}const Rg={draw(e,t){const n=hr(t/hu);e.moveTo(n,0),e.arc(0,0,n,0,jd)}},kD={draw(e,t){const n=hr(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},T_=hr(1/3),MD=T_*2,jD={draw(e,t){const n=hr(t/MD),r=n*T_;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},ND={draw(e,t){const n=hr(t),r=-n/2;e.rect(r,r,n,n)}},RD=.8908130915292852,A_=pu(hu/10)/pu(7*hu/10),DD=pu(jd/10)*A_,ID=-w_(jd/10)*A_,$D={draw(e,t){const n=hr(t*RD),r=DD*n,i=ID*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=jd*o/5,s=w_(a),l=pu(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*i,l*r+s*i)}e.closePath()}},Jf=hr(3),LD={draw(e,t){const n=-hr(t/(Jf*3));e.moveTo(0,n*2),e.lineTo(-Jf*n,-n),e.lineTo(Jf*n,-n),e.closePath()}},Yn=-.5,Gn=hr(3)/2,Qh=1/hr(12),FD=(Qh/2+1)*3,BD={draw(e,t){const n=hr(t/FD),r=n/2,i=n*Qh,o=r,a=n*Qh+n,s=-o,l=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,l),e.lineTo(Yn*r-Gn*i,Gn*r+Yn*i),e.lineTo(Yn*o-Gn*a,Gn*o+Yn*a),e.lineTo(Yn*s-Gn*l,Gn*s+Yn*l),e.lineTo(Yn*r+Gn*i,Yn*i-Gn*r),e.lineTo(Yn*o+Gn*a,Yn*a-Gn*o),e.lineTo(Yn*s+Gn*l,Yn*l-Gn*s),e.closePath()}};function zD(e,t){let n=null,r=jg(i);e=typeof e=="function"?e:it(e||Rg),t=typeof t=="function"?t:it(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:it(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:it(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function mu(){}function gu(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function k_(e){this._context=e}k_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:gu(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:gu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function VD(e){return new k_(e)}function M_(e){this._context=e}M_.prototype={areaStart:mu,areaEnd:mu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:gu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function WD(e){return new M_(e)}function j_(e){this._context=e}j_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:gu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function UD(e){return new j_(e)}function N_(e){this._context=e}N_.prototype={areaStart:mu,areaEnd:mu,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function HD(e){return new N_(e)}function y0(e){return e<0?-1:1}function b0(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(y0(o)+y0(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function x0(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Qf(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function vu(e){this._context=e}vu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Qf(this,this._t0,x0(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Qf(this,x0(this,n=b0(this,e,t)),n);break;default:Qf(this,this._t0,n=b0(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function R_(e){this._context=new D_(e)}(R_.prototype=Object.create(vu.prototype)).point=function(e,t){vu.prototype.point.call(this,t,e)};function D_(e){this._context=e}D_.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function qD(e){return new vu(e)}function KD(e){return new R_(e)}function I_(e){this._context=e}I_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=w0(e),i=w0(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function w0(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function YD(e){return new I_(e)}function Rd(e,t){this._context=e,this._t=t}Rd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function GD(e){return new Rd(e,.5)}function XD(e){return new Rd(e,0)}function ZD(e){return new Rd(e,1)}function ya(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function em(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function JD(e,t){return e[t]}function QD(e){const t=[];return t.key=e,t}function eI(){var e=it([]),t=em,n=ya,r=JD;function i(o){var a=Array.from(e.apply(this,arguments),QD),s,l=a.length,c=-1,u;for(const d of o)for(s=0,++c;s<l;++s)(a[s][c]=[0,+r(d,a[s].key,c,o)]).data=d;for(s=0,u=Ng(t(a));s<l;++s)a[u[s]].index=s;return n(a,u),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:it(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:it(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?em:typeof o=="function"?o:it(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??ya,i):n},i}function tI(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}ya(e,t)}}function nI(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,s=0;a<i;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}ya(e,t)}}function rI(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var s=0,l=0,c=0;s<a;++s){for(var u=e[t[s]],d=u[r][1]||0,p=u[r-1][1]||0,h=(d-p)/2,g=0;g<s;++g){var m=e[t[g]],v=m[r][1]||0,y=m[r-1][1]||0;h+=v-y}l+=d,c+=h*d}i[r-1][1]+=i[r-1][0]=n,l&&(n-=c/l)}i[r-1][1]+=i[r-1][0]=n,ya(e,t)}}var iI=["type","size","sizeType"];function tm(){return tm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tm.apply(null,arguments)}function O0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function S0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O0(Object(n),!0).forEach(function(r){oI(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oI(e,t,n){return(t=aI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aI(e){var t=sI(e,"string");return typeof t=="symbol"?t:t+""}function sI(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lI(e,t){if(e==null)return{};var n,r,i=cI(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function cI(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var $_={symbolCircle:Rg,symbolCross:kD,symbolDiamond:jD,symbolSquare:ND,symbolStar:$D,symbolTriangle:LD,symbolWye:BD},uI=Math.PI/180,dI=e=>{var t="symbol".concat(_l(e));return $_[t]||Rg},fI=(e,t,n)=>{if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var r=18*uI;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**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}},pI=(e,t)=>{$_["symbol".concat(_l(e))]=t},L_=e=>{var{type:t="circle",size:n=64,sizeType:r="area"}=e,i=lI(e,iI),o=S0(S0({},i),{},{type:t,size:n,sizeType:r}),a="circle";typeof t=="string"&&(a=t);var s=()=>{var p=dI(a),h=zD().type(p).size(fI(n,r,a));return h()},{className:l,cx:c,cy:u}=o,d=vt(o,!0);return c===+c&&u===+u&&n===+n?_.createElement("path",tm({},d,{className:oe("recharts-symbols",l),transform:"translate(".concat(c,", ").concat(u,")"),d:s()})):null};L_.registerSymbol=pI;var ep={},tp={},E0;function hI(){return E0||(E0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){const i=new Map;for(let o=0;o<n.length;o++){const a=n[o],s=r(a);i.has(s)||i.set(s,a)}return Array.from(i.values())}e.uniqBy=t})(tp)),tp}var np={},_0;function F_(){return _0||(_0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t})(np)),np}var rp={},ip={},op={},P0;function mI(){return P0||(P0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t})(op)),op}var C0;function Dg(){return C0||(C0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=mI();function n(r){return r!=null&&typeof r!="function"&&t.isLength(r.length)}e.isArrayLike=n})(ip)),ip}var ap={},T0;function gI(){return T0||(T0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t})(ap)),ap}var A0;function vI(){return A0||(A0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Dg(),n=gI();function r(i){return n.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=r})(rp)),rp}var sp={},lp={},k0;function yI(){return k0||(k0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Tg();function n(r){return function(i){return t.get(i,r)}}e.property=n})(lp)),lp}var cp={},up={},dp={},fp={},M0;function B_(){return M0||(M0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n!==null&&(typeof n=="object"||typeof n=="function")}e.isObject=t})(fp)),fp}var pp={},j0;function z_(){return j0||(j0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null||typeof n!="object"&&typeof n!="function"}e.isPrimitive=t})(pp)),pp}var hp={},N0;function V_(){return N0||(N0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return n===r||Number.isNaN(n)&&Number.isNaN(r)}e.eq=t})(hp)),hp}var R0;function bI(){return R0||(R0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ig(),n=B_(),r=z_(),i=V_();function o(d,p,h){return typeof h!="function"?t.isMatch(d,p):a(d,p,function g(m,v,y,S,x,b){const O=h(m,v,y,S,x,b);return O!==void 0?!!O:a(m,v,g,b)},new Map)}function a(d,p,h,g){if(p===d)return!0;switch(typeof p){case"object":return s(d,p,h,g);case"function":return Object.keys(p).length>0?a(d,{...p},h,g):i.eq(d,p);default:return n.isObject(d)?typeof p=="string"?p==="":!0:i.eq(d,p)}}function s(d,p,h,g){if(p==null)return!0;if(Array.isArray(p))return c(d,p,h,g);if(p instanceof Map)return l(d,p,h,g);if(p instanceof Set)return u(d,p,h,g);const m=Object.keys(p);if(d==null)return m.length===0;if(m.length===0)return!0;if(g&&g.has(p))return g.get(p)===d;g&&g.set(p,d);try{for(let v=0;v<m.length;v++){const y=m[v];if(!r.isPrimitive(d)&&!(y in d)||p[y]===void 0&&d[y]!==void 0||p[y]===null&&d[y]!==null||!h(d[y],p[y],y,d,p,g))return!1}return!0}finally{g&&g.delete(p)}}function l(d,p,h,g){if(p.size===0)return!0;if(!(d instanceof Map))return!1;for(const[m,v]of p.entries()){const y=d.get(m);if(h(y,v,m,d,p,g)===!1)return!1}return!0}function c(d,p,h,g){if(p.length===0)return!0;if(!Array.isArray(d))return!1;const m=new Set;for(let v=0;v<p.length;v++){const y=p[v];let S=!1;for(let x=0;x<d.length;x++){if(m.has(x))continue;const b=d[x];let O=!1;if(h(b,y,v,d,p,g)&&(O=!0),O){m.add(x),S=!0;break}}if(!S)return!1}return!0}function u(d,p,h,g){return p.size===0?!0:d instanceof Set?c([...d],[...p],h,g):!1}e.isMatchWith=o,e.isSetMatch=u})(dp)),dp}var D0;function Ig(){return D0||(D0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bI();function n(r,i){return t.isMatchWith(r,i,()=>{})}e.isMatch=n})(up)),up}var mp={},gp={},vp={},I0;function xI(){return I0||(I0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Object.getOwnPropertySymbols(n).filter(r=>Object.prototype.propertyIsEnumerable.call(n,r))}e.getSymbols=t})(vp)),vp}var yp={},$0;function W_(){return $0||($0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}e.getTag=t})(yp)),yp}var bp={},L0;function U_(){return L0||(L0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",n="[object String]",r="[object Number]",i="[object Boolean]",o="[object Arguments]",a="[object Symbol]",s="[object Date]",l="[object Map]",c="[object Set]",u="[object Array]",d="[object Function]",p="[object ArrayBuffer]",h="[object Object]",g="[object Error]",m="[object DataView]",v="[object Uint8Array]",y="[object Uint8ClampedArray]",S="[object Uint16Array]",x="[object Uint32Array]",b="[object BigUint64Array]",O="[object Int8Array]",E="[object Int16Array]",C="[object Int32Array]",T="[object BigInt64Array]",k="[object Float32Array]",R="[object Float64Array]";e.argumentsTag=o,e.arrayBufferTag=p,e.arrayTag=u,e.bigInt64ArrayTag=T,e.bigUint64ArrayTag=b,e.booleanTag=i,e.dataViewTag=m,e.dateTag=s,e.errorTag=g,e.float32ArrayTag=k,e.float64ArrayTag=R,e.functionTag=d,e.int16ArrayTag=E,e.int32ArrayTag=C,e.int8ArrayTag=O,e.mapTag=l,e.numberTag=r,e.objectTag=h,e.regexpTag=t,e.setTag=c,e.stringTag=n,e.symbolTag=a,e.uint16ArrayTag=S,e.uint32ArrayTag=x,e.uint8ArrayTag=v,e.uint8ClampedArrayTag=y})(bp)),bp}var xp={},F0;function wI(){return F0||(F0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t})(xp)),xp}var B0;function H_(){return B0||(B0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xI(),n=W_(),r=U_(),i=z_(),o=wI();function a(u,d){return s(u,void 0,u,new Map,d)}function s(u,d,p,h=new Map,g=void 0){const m=g?.(u,d,p,h);if(m!==void 0)return m;if(i.isPrimitive(u))return u;if(h.has(u))return h.get(u);if(Array.isArray(u)){const v=new Array(u.length);h.set(u,v);for(let y=0;y<u.length;y++)v[y]=s(u[y],y,p,h,g);return Object.hasOwn(u,"index")&&(v.index=u.index),Object.hasOwn(u,"input")&&(v.input=u.input),v}if(u instanceof Date)return new Date(u.getTime());if(u instanceof RegExp){const v=new RegExp(u.source,u.flags);return v.lastIndex=u.lastIndex,v}if(u instanceof Map){const v=new Map;h.set(u,v);for(const[y,S]of u)v.set(y,s(S,y,p,h,g));return v}if(u instanceof Set){const v=new Set;h.set(u,v);for(const y of u)v.add(s(y,void 0,p,h,g));return v}if(typeof Buffer<"u"&&Buffer.isBuffer(u))return u.subarray();if(o.isTypedArray(u)){const v=new(Object.getPrototypeOf(u)).constructor(u.length);h.set(u,v);for(let y=0;y<u.length;y++)v[y]=s(u[y],y,p,h,g);return v}if(u instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&u instanceof SharedArrayBuffer)return u.slice(0);if(u instanceof DataView){const v=new DataView(u.buffer.slice(0),u.byteOffset,u.byteLength);return h.set(u,v),l(v,u,p,h,g),v}if(typeof File<"u"&&u instanceof File){const v=new File([u],u.name,{type:u.type});return h.set(u,v),l(v,u,p,h,g),v}if(u instanceof Blob){const v=new Blob([u],{type:u.type});return h.set(u,v),l(v,u,p,h,g),v}if(u instanceof Error){const v=new u.constructor;return h.set(u,v),v.message=u.message,v.name=u.name,v.stack=u.stack,v.cause=u.cause,l(v,u,p,h,g),v}if(typeof u=="object"&&c(u)){const v=Object.create(Object.getPrototypeOf(u));return h.set(u,v),l(v,u,p,h,g),v}return u}function l(u,d,p=u,h,g){const m=[...Object.keys(d),...t.getSymbols(d)];for(let v=0;v<m.length;v++){const y=m[v],S=Object.getOwnPropertyDescriptor(u,y);(S==null||S.writable)&&(u[y]=s(d[y],y,p,h,g))}}function c(u){switch(n.getTag(u)){case r.argumentsTag:case r.arrayTag:case r.arrayBufferTag:case r.dataViewTag:case r.booleanTag:case r.dateTag:case r.float32ArrayTag:case r.float64ArrayTag:case r.int8ArrayTag:case r.int16ArrayTag:case r.int32ArrayTag:case r.mapTag:case r.numberTag:case r.objectTag:case r.regexpTag:case r.setTag:case r.stringTag:case r.symbolTag:case r.uint8ArrayTag:case r.uint8ClampedArrayTag:case r.uint16ArrayTag:case r.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=a,e.cloneDeepWithImpl=s,e.copyProperties=l})(gp)),gp}var z0;function OI(){return z0||(z0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=H_();function n(r){return t.cloneDeepWithImpl(r,void 0,r,new Map,void 0)}e.cloneDeep=n})(mp)),mp}var V0;function SI(){return V0||(V0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ig(),n=OI();function r(i){return i=n.cloneDeep(i),o=>t.isMatch(o,i)}e.matches=r})(cp)),cp}var wp={},Op={},Sp={},W0;function EI(){return W0||(W0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=H_(),n=U_();function r(i,o){return t.cloneDeepWith(i,(a,s,l,c)=>{const u=o?.(a,s,l,c);if(u!==void 0)return u;if(typeof i=="object")switch(Object.prototype.toString.call(i)){case n.numberTag:case n.stringTag:case n.booleanTag:{const d=new i.constructor(i?.valueOf());return t.copyProperties(d,i),d}case n.argumentsTag:{const d={};return t.copyProperties(d,i),d.length=i.length,d[Symbol.iterator]=i[Symbol.iterator],d}default:return}})}e.cloneDeepWith=r})(Sp)),Sp}var U0;function _I(){return U0||(U0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=EI();function n(r){return t.cloneDeepWith(r)}e.cloneDeep=n})(Op)),Op}var Ep={},_p={},H0;function q_(){return H0||(H0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function n(r,i=Number.MAX_SAFE_INTEGER){switch(typeof r){case"number":return Number.isInteger(r)&&r>=0&&r<i;case"symbol":return!1;case"string":return t.test(r)}}e.isIndex=n})(_p)),_p}var Pp={},q0;function PI(){return q0||(q0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=W_();function n(r){return r!==null&&typeof r=="object"&&t.getTag(r)==="[object Arguments]"}e.isArguments=n})(Pp)),Pp}var K0;function CI(){return K0||(K0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=p_(),n=q_(),r=PI(),i=Cg();function o(a,s){let l;if(Array.isArray(s)?l=s:typeof s=="string"&&t.isDeepKey(s)&&a?.[s]==null?l=i.toPath(s):l=[s],l.length===0)return!1;let c=a;for(let u=0;u<l.length;u++){const d=l[u];if((c==null||!Object.hasOwn(c,d))&&!((Array.isArray(c)||r.isArguments(c))&&n.isIndex(d)&&d<c.length))return!1;c=c[d]}return!0}e.has=o})(Ep)),Ep}var Y0;function TI(){return Y0||(Y0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ig(),n=h_(),r=_I(),i=Tg(),o=CI();function a(s,l){switch(typeof s){case"object":{Object.is(s?.valueOf(),-0)&&(s="-0");break}case"number":{s=n.toKey(s);break}}return l=r.cloneDeep(l),function(c){const u=i.get(c,s);return u===void 0?o.has(c,s):l===void 0?u===void 0:t.isMatch(u,l)}}e.matchesProperty=a})(wp)),wp}var G0;function AI(){return G0||(G0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=F_(),n=yI(),r=SI(),i=TI();function o(a){if(a==null)return t.identity;switch(typeof a){case"function":return a;case"object":return Array.isArray(a)&&a.length===2?i.matchesProperty(a[0],a[1]):r.matches(a);case"string":case"symbol":case"number":return n.property(a)}}e.iteratee=o})(sp)),sp}var X0;function kI(){return X0||(X0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hI(),n=F_(),r=vI(),i=AI();function o(a,s=n.identity){return r.isArrayLikeObject(a)?t.uniqBy(Array.from(a),i.iteratee(s)):[]}e.uniqBy=o})(ep)),ep}var Cp,Z0;function MI(){return Z0||(Z0=1,Cp=kI().uniqBy),Cp}var jI=MI();const J0=ui(jI);function NI(e,t,n){return t===!0?J0(e,n):typeof t=="function"?J0(e,t):e}var sc={exports:{}},Tp={},lc={exports:{}},Ap={};/**
|
|
119
|
+
`))},[JSON.stringify(n)])}const c=_.useCallback(u=>{o||s(u)},[]);return[l,c]}function Qr(e){const t=_.useRef(e);return Nr(()=>{t.current=e}),_.useRef((...n)=>(0,t.current)(...n)).current}function Ht(...e){const t=_.useRef(void 0),n=_.useCallback(r=>{const i=e.map(o=>{if(o==null)return null;if(typeof o=="function"){const a=o,s=a(r);return typeof s=="function"?s:()=>{a(null)}}return o.current=r,()=>{o.current=null}});return()=>{i.forEach(o=>o?.())}},e);return _.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function zR(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function r_(e,t){if(!e)return t;function n(a,s){const l={};return Object.keys(s).forEach(c=>{zR(c,s[c])&&typeof a[c]=="function"&&(l[c]=(...u)=>{a[c](...u),s[c](...u)})}),l}if(typeof e=="function"||typeof t=="function")return a=>{const s=typeof t=="function"?t(a):t,l=typeof e=="function"?e({...a,...s}):e,c=oe(a?.className,s?.className,l?.className),u=n(l,s);return{...s,...l,...u,...!!c&&{className:c},...s?.style&&l?.style&&{style:{...s.style,...l.style}},...s?.sx&&l?.sx&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(l.sx)?l.sx:[l.sx]]}}};const r=t,i=n(e,r),o=oe(r?.className,e?.className);return{...t,...e,...i,...!!o&&{className:o},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const VR=Fi(w.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V10h16zm0-13H4V5h16z"}),"CalendarTodayOutlined"),El=Fi(w.jsx("path",{d:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z"}),"DescriptionOutlined"),WR=Fi(w.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5z"}),"FileDownloadOutlined"),qt=Fi(w.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNewOutlined");var i_={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i0=I.createContext&&I.createContext(i_),UR=["attr","size","title"];function HR(e,t){if(e==null)return{};var n=qR(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qR(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function du(){return du=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},du.apply(this,arguments)}function o0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o0(Object(n),!0).forEach(function(r){KR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KR(e,t,n){return t=YR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YR(e){var t=GR(e,"string");return typeof t=="symbol"?t:t+""}function GR(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function o_(e){return e&&e.map((t,n)=>I.createElement(t.tag,fu({key:n},t.attr),o_(t.child)))}function Xe(e){return t=>I.createElement(XR,du({attr:fu({},e.attr)},t),o_(e.child))}function XR(e){var t=n=>{var{attr:r,size:i,title:o}=e,a=HR(e,UR),s=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),I.createElement("svg",du({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:l,style:fu(fu({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&I.createElement("title",null,o),e.children)};return i0!==void 0?I.createElement(i0.Consumer,null,n=>t(n)):t(i_)}function ZR(e){return Xe({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M384 160c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0c17.7 0 32 14.3 32 32l0 160c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-82.7L342.6 374.6c-12.5 12.5-32.8 12.5-45.3 0L192 269.3 54.6 406.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l160-160c12.5-12.5 32.8-12.5 45.3 0L320 306.7 466.7 160 384 160z"},child:[]}]})(e)}function JR(e){return Xe({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"},child:[]}]})(e)}function QR(e){return Xe({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8l256 0c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"},child:[]}]})(e)}function eD(e){return Xe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"},child:[]}]})(e)}function tD(e){return Xe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"},child:[]}]})(e)}function nD({title:e,description:t}){return w.jsxs("div",{className:"flex items-center justify-between px-6 my-6",children:[w.jsxs("div",{children:[w.jsx("div",{className:"!text-[24px] text-[#121212] font-semibold",children:e}),w.jsx("div",{className:"text-gray-500 text-[14px]",children:t})]}),w.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center gap-[12px]",children:[w.jsxs("div",{className:"w-full sm:w-auto flex items-center justify-center gap-[8px] bg-white shadow-sm px-2 md:px-6 py-1 rounded-sm text-[#64748B] text-sm hover:bg-slate-50",children:[w.jsx(VR,{fontSize:"12"}),w.jsx("div",{className:" whitespace-nowrap",children:"Last 7 Days"}),w.jsx(eD,{fontSize:"12"})]}),w.jsxs("div",{className:"w-full flex items-center justify-center gap-[8px] bg-white text-[#884EA7] px-2 md:px-6 py-1 rounded-sm shadow-sm hover:bg-purple-50",children:[w.jsx("div",{className:"font-medium whitespace-nowrap",children:"Export Report"}),w.jsx(WR,{fontSize:"12"})]})]})]})}function a0(e){return Xe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z"},child:[]}]})(e)}function rD(e){return Xe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M192 208c0-17.67-14.33-32-32-32h-16c-35.35 0-64 28.65-64 64v48c0 35.35 28.65 64 64 64h16c17.67 0 32-14.33 32-32V208zm176 144c35.35 0 64-28.65 64-64v-48c0-35.35-28.65-64-64-64h-16c-17.67 0-32 14.33-32 32v112c0 17.67 14.33 32 32 32h16zM256 0C113.18 0 4.58 118.83 0 256v16c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-16c0-114.69 93.31-208 208-208s208 93.31 208 208h-.12c.08 2.43.12 165.72.12 165.72 0 23.35-18.93 42.28-42.28 42.28H320c0-26.51-21.49-48-48-48h-32c-26.51 0-48 21.49-48 48s21.49 48 48 48h181.72c49.86 0 90.28-40.42 90.28-90.28V256C507.42 118.83 398.82 0 256 0z"},child:[]}]})(e)}function _g(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2"},child:[]},{tag:"path",attr:{d:"M9 22v-4h6v4"},child:[]},{tag:"path",attr:{d:"M8 6h.01"},child:[]},{tag:"path",attr:{d:"M16 6h.01"},child:[]},{tag:"path",attr:{d:"M12 6h.01"},child:[]},{tag:"path",attr:{d:"M12 10h.01"},child:[]},{tag:"path",attr:{d:"M12 14h.01"},child:[]},{tag:"path",attr:{d:"M16 10h.01"},child:[]},{tag:"path",attr:{d:"M16 14h.01"},child:[]},{tag:"path",attr:{d:"M8 10h.01"},child:[]},{tag:"path",attr:{d:"M8 14h.01"},child:[]}]})(e)}function iD(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2"},child:[]},{tag:"circle",attr:{cx:"7",cy:"17",r:"2"},child:[]},{tag:"path",attr:{d:"M9 17h6"},child:[]},{tag:"circle",attr:{cx:"17",cy:"17",r:"2"},child:[]}]})(e)}function a_(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M13 4h3a2 2 0 0 1 2 2v14"},child:[]},{tag:"path",attr:{d:"M2 20h3"},child:[]},{tag:"path",attr:{d:"M13 20h9"},child:[]},{tag:"path",attr:{d:"M10 12v.01"},child:[]},{tag:"path",attr:{d:"M13 4.562v16.157a1 1 0 0 1-1.242.97L5 20V5.562a2 2 0 0 1 1.515-1.94l4-1A2 2 0 0 1 13 4.561Z"},child:[]}]})(e)}function oD(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M16 5h6"},child:[]},{tag:"path",attr:{d:"M19 2v6"},child:[]},{tag:"path",attr:{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5"},child:[]},{tag:"path",attr:{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"},child:[]},{tag:"circle",attr:{cx:"9",cy:"9",r:"2"},child:[]}]})(e)}function s_(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"},child:[]}]})(e)}function s0(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z"},child:[]},{tag:"path",attr:{d:"M14 8H8"},child:[]},{tag:"path",attr:{d:"M16 12H8"},child:[]},{tag:"path",attr:{d:"M13 16H8"},child:[]}]})(e)}function l_(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z"},child:[]},{tag:"path",attr:{d:"m9 12 2 2 4-4"},child:[]}]})(e)}function Pg(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"},child:[]},{tag:"path",attr:{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"},child:[]},{tag:"path",attr:{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"},child:[]}]})(e)}function aD(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"},child:[]}]})(e)}function c_(e){return Xe({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.03 2.59a1.501 1.501 0 0 1 1.94 0l7.5 6.363a1.5 1.5 0 0 1 .53 1.144V19.5a1.5 1.5 0 0 1-1.5 1.5h-5.75a.75.75 0 0 1-.75-.75V14h-2v6.25a.75.75 0 0 1-.75.75H4.5A1.5 1.5 0 0 1 3 19.5v-9.403c0-.44.194-.859.53-1.144ZM12 3.734l-7.5 6.363V19.5h5v-6.25a.75.75 0 0 1 .75-.75h3.5a.75.75 0 0 1 .75.75v6.25h5v-9.403Z"},child:[]}]})(e)}function u_(e){return Xe({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3.5 8a5.5 5.5 0 1 1 8.596 4.547 9.005 9.005 0 0 1 5.9 8.18.751.751 0 0 1-1.5.045 7.5 7.5 0 0 0-14.993 0 .75.75 0 0 1-1.499-.044 9.005 9.005 0 0 1 5.9-8.181A5.496 5.496 0 0 1 3.5 8ZM9 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm8.29 4c-.148 0-.292.01-.434.03a.75.75 0 1 1-.212-1.484 4.53 4.53 0 0 1 3.38 8.097 6.69 6.69 0 0 1 3.956 6.107.75.75 0 0 1-1.5 0 5.193 5.193 0 0 0-3.696-4.972l-.534-.16v-1.676l.41-.209A3.03 3.03 0 0 0 17.29 8Z"},child:[]}]})(e)}function d_(e){return Xe({attr:{viewBox:"0 0 32 32"},child:[{tag:"path",attr:{d:"M 2 7 L 2 24 L 30 24 L 30 7 L 2 7 z M 6 9 L 26 9 C 26 10.105 26.895 11 28 11 L 28 20 C 26.895 20 26 20.895 26 22 L 6 22 C 6 20.895 5.105 20 4 20 L 4 11 C 5.105 11 6 10.105 6 9 z M 16 11 C 13.789 11 12 13.016 12 15.5 C 12 17.984 13.789 20 16 20 C 18.211 20 20 17.984 20 15.5 C 20 13.016 18.211 11 16 11 z M 16 13 C 17.102 13 18 14.121 18 15.5 C 18 16.879 17.102 18 16 18 C 14.898 18 14 16.879 14 15.5 C 14 14.121 14.898 13 16 13 z M 8.5 14 C 7.672 14 7 14.672 7 15.5 C 7 16.328 7.672 17 8.5 17 C 9.328 17 10 16.328 10 15.5 C 10 14.672 9.328 14 8.5 14 z M 23.5 14 C 22.672 14 22 14.672 22 15.5 C 22 16.328 22.672 17 23.5 17 C 24.328 17 25 16.328 25 15.5 C 25 14.672 24.328 14 23.5 14 z"},child:[]}]})(e)}const sD=[{name:"Overview",icon:c_},{name:"Community",icon:_g},{name:"Financials",icon:d_},{name:"Facilities",icon:a_},{name:"Gate & Security",icon:Pg},{name:"Helpdesk",icon:rD},{name:"Engagement",icon:s_}];function lD(){const[e,t]=I.useState("Overview");return w.jsx("div",{className:"flex gap-[8px] p-3",children:sD.map(n=>{const r=n.icon,i=e===n.name;return w.jsxs("button",{onClick:()=>t(n.name),className:`flex items-center gap-[8px] rounded px-4 py-3 text-[14px] leading-[16px] font-medium transition
|
|
120
|
+
${i?"bg-[#FBF5FF] text-[#884EA7]":"bg-white text-[#64748B] hover:bg-gray-50"}`,children:[w.jsx(r,{className:"h-[15px] w-[15px] font-bold"}),n.name]},n.name)})})}const l0=({color:e})=>w.jsx("span",{style:{display:"inline-block",width:"8px",height:"8px",borderRadius:"50%",backgroundColor:e,marginRight:"6px"}}),_l=({active:e,payload:t})=>!e||!t||!t.length?null:w.jsx("div",{className:"bg-[#121212] text-white !text-[12px] p-3 rounded-lg shadow-lg",children:t.map((n,r)=>w.jsxs("div",{className:"capitalize flex gap-[4px] items-center leading-relaxed",children:[n.color&&w.jsx(l0,{color:n.color}),n.payload.color&&w.jsx(l0,{color:n.payload.color}),w.jsx("div",{className:"min-w-[84px] text-[#D1D3D4]",children:n.name}),w.jsx("div",{className:"font-semibold",children:n.value})]},r))}),f_=({value:e})=>{const t=typeof e=="string"?parseFloat(e.replace("%","")):e??0,n=t>=0;return w.jsxs("div",{className:`w-fit p-1 rounded text-[10px] leading-[14px] font-medium flex items-center gap-1 ${n?"bg-[#F7FEFA] text-[#1FA05B]":"bg-[#FFF2F2] text-[#AB0000]"}`,children:[n?w.jsx(QR,{}):w.jsx(JR,{}),Math.abs(t).toFixed(1),"%"]})},$o=({title:e,icon:t,period:n,actionButtons:r,children:i,footer:o,className:a="",childrenClassName:s,titleWeight:l})=>{const c=l==="semi-bold"?600:500;return w.jsxs("div",{className:`relative bg-white !border-[0.5px] !border-[#EBEBEB] !rounded-[12px] !shadow-[0_0_12px_0_#EAF2FF] p-[16px] flex flex-col gap-[24px] ${a}`,children:[w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsxs("div",{className:"flex items-center gap-[12px]",children:[t,w.jsx("div",{style:{fontWeight:c,fontSize:"16px",lineHeight:"20px"},className:"!my-0 !text-[16px] !leading-[20px] !text-[#121212]",children:e})]}),w.jsxs("div",{className:"flex items-center gap-2",children:[r&&r,n&&w.jsx("div",{className:"!text-[12px] !leading-[16px] !text-[#64748B]",children:n})]})]}),w.jsx("div",{className:`flex-1 min-h-0 space-y-[24px] ${s}`,children:i}),o&&w.jsx("div",{className:"mt-3 pt-3 border-t border-gray-100 !text-[12px] text-[#64748B]",children:o})]})};function yi(e,t){sessionStorage.setItem(e,t),(e==="community_id"||e==="export"||e==="widget_id")&&window.dispatchEvent(new StorageEvent("dashboard-update",{key:e}))}var Uf={},Hf={},c0;function cD(){return c0||(c0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t})(Hf)),Hf}var qf={},u0;function p_(){return u0||(u0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t})(qf)),qf}var Kf={},d0;function h_(){return d0||(d0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="string"||typeof n=="symbol"?n:Object.is(n?.valueOf?.(),-0)?"-0":String(n)}e.toKey=t})(Kf)),Kf}var Yf={},f0;function Cg(){return f0||(f0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){const r=[],i=n.length;if(i===0)return r;let o=0,a="",s="",l=!1;for(n.charCodeAt(0)===46&&(r.push(""),o++);o<i;){const c=n[o];s?c==="\\"&&o+1<i?(o++,a+=n[o]):c===s?s="":a+=c:l?c==='"'||c==="'"?s=c:c==="]"?(l=!1,r.push(a),a=""):a+=c:c==="["?(l=!0,a&&(r.push(a),a="")):c==="."?a&&(r.push(a),a=""):a+=c,o++}return a&&r.push(a),r}e.toPath=t})(Yf)),Yf}var p0;function Tg(){return p0||(p0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=cD(),n=p_(),r=h_(),i=Cg();function o(s,l,c){if(s==null)return c;switch(typeof l){case"string":{if(t.isUnsafeProperty(l))return c;const u=s[l];return u===void 0?n.isDeepKey(l)?o(s,i.toPath(l),c):c:u}case"number":case"symbol":{typeof l=="number"&&(l=r.toKey(l));const u=s[l];return u===void 0?c:u}default:{if(Array.isArray(l))return a(s,l,c);if(Object.is(l?.valueOf(),-0)?l="-0":l=String(l),t.isUnsafeProperty(l))return c;const u=s[l];return u===void 0?c:u}}}function a(s,l,c){if(l.length===0)return c;let u=s;for(let d=0;d<l.length;d++){if(u==null||t.isUnsafeProperty(l[d]))return c;u=u[l[d]]}return u===void 0?c:u}e.get=o})(Uf)),Uf}var Gf,h0;function uD(){return h0||(h0=1,Gf=Tg().get),Gf}var dD=uD();const Co=ui(dD);var Ut=e=>e===0?0:e>0?1:-1,Fn=e=>typeof e=="number"&&e!=+e,ho=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,ge=e=>(typeof e=="number"||e instanceof Number)&&!Fn(e),Rr=e=>ge(e)||typeof e=="string",fD=0,Ks=e=>{var t=++fD;return"".concat(e||"").concat(t)},un=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ge(t)&&typeof t!="string")return r;var o;if(ho(t)){if(n==null)return r;var a=t.indexOf("%");o=n*parseFloat(t.slice(0,a))/100}else o=+t;return Fn(o)&&(o=r),i&&n!=null&&o>n&&(o=n),o},m_=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[e[r]])n[e[r]]=!0;else return!0;return!1};function wt(e,t,n){return ge(e)&&ge(t)?e+n*(t-e):t}function g_(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):Co(r,t))===n)}var mt=e=>e===null||typeof e>"u",Pl=e=>mt(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)),pD=["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 Ag(e){if(typeof e!="string")return!1;var t=pD;return t.includes(e)}var hD=["viewBox","children"],m0=["points","pathLength"],Xf={svg:hD,polygon:m0,polyline:m0},kg=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(I.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var r={};return Object.keys(n).forEach(i=>{Ag(i)&&(r[i]=(o=>n[i](n,o)))}),r},mD=(e,t,n)=>r=>(e(t,n,r),null),Md=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(i=>{var o=e[i];Ag(i)&&typeof o=="function"&&(r||(r={}),r[i]=mD(o,t,n))}),r},gD=["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"];function v_(e){if(typeof e!="string")return!1;var t=gD;return t.includes(e)}function Lr(e){var t=Object.entries(e).filter(n=>{var[r]=n;return v_(r)});return Object.fromEntries(t)}var g0=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",v0=null,Zf=null,y_=e=>{if(e===v0&&Array.isArray(Zf))return Zf;var t=[];return I.Children.forEach(e,n=>{mt(n)||(ki.isFragment(n)?t=t.concat(y_(n.props.children)):t.push(n))}),Zf=t,v0=e,t};function Mg(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(i=>g0(i)):r=[g0(t)],y_(e).forEach(i=>{var o=Co(i,"type.displayName")||Co(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}var b_=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,vD=(e,t,n,r)=>{var i;if(typeof t=="symbol"||typeof t=="number")return!0;var o=(i=r&&Xf?.[r])!==null&&i!==void 0?i:[],a=t.startsWith("data-"),s=typeof e!="function"&&(!!r&&o.includes(t)||v_(t)),l=!!n&&Ag(t);return a||s||l},vt=(e,t,n)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(I.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var i={};return Object.keys(r).forEach(o=>{var a;vD((a=r)===null||a===void 0?void 0:a[o],o,t,n)&&(i[o]=r[o])}),i},yD=["children","width","height","viewBox","className","style","title","desc"];function Gh(){return Gh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gh.apply(null,arguments)}function bD(e,t){if(e==null)return{};var n,r,i=xD(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function xD(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var x_=I.forwardRef((e,t)=>{var{children:n,width:r,height:i,viewBox:o,className:a,style:s,title:l,desc:c}=e,u=bD(e,yD),d=o||{width:r,height:i,x:0,y:0},p=oe("recharts-surface",a);return _.createElement("svg",Gh({},vt(u,!0,"svg"),{className:p,width:r,height:i,style:s,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),ref:t}),_.createElement("title",null,l),_.createElement("desc",null,c),n)}),wD=["children","className"];function Xh(){return Xh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xh.apply(null,arguments)}function OD(e,t){if(e==null)return{};var n,r,i=SD(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function SD(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Qt=_.forwardRef((e,t)=>{var{children:n,className:r}=e,i=OD(e,wD),o=oe("recharts-layer",r);return _.createElement("g",Xh({className:o},vt(i,!0),{ref:t}),n)}),ED=I.createContext(null);function it(e){return function(){return e}}const w_=Math.cos,pu=Math.sin,hr=Math.sqrt,hu=Math.PI,jd=2*hu,Zh=Math.PI,Jh=2*Zh,ro=1e-6,_D=Jh-ro;function O_(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function PD(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return O_;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class CD{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?O_:PD(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,l=r-t,c=i-n,u=a-t,d=s-n,p=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(p>ro)if(!(Math.abs(d*l-c*u)>ro)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-a,g=i-s,m=l*l+c*c,v=h*h+g*g,y=Math.sqrt(m),S=Math.sqrt(p),x=o*Math.tan((Zh-Math.acos((m+p-v)/(2*y*S)))/2),b=x/S,O=x/y;Math.abs(b-1)>ro&&this._append`L${t+b*u},${n+b*d}`,this._append`A${o},${o},0,0,${+(d*h>u*g)},${this._x1=t+O*l},${this._y1=n+O*c}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),c=t+s,u=n+l,d=1^a,p=a?i-o:o-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>ro||Math.abs(this._y1-u)>ro)&&this._append`L${c},${u}`,r&&(p<0&&(p=p%Jh+Jh),p>_D?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:p>ro&&this._append`A${r},${r},0,${+(p>=Zh)},${d},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function jg(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new CD(t)}function Ng(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function S_(e){this._context=e}S_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Nd(e){return new S_(e)}function E_(e){return e[0]}function __(e){return e[1]}function P_(e,t){var n=it(!0),r=null,i=Nd,o=null,a=jg(s);e=typeof e=="function"?e:e===void 0?E_:it(e),t=typeof t=="function"?t:t===void 0?__:it(t);function s(l){var c,u=(l=Ng(l)).length,d,p=!1,h;for(r==null&&(o=i(h=a())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===p&&((p=!p)?o.lineStart():o.lineEnd()),p&&o.point(+e(d,c,l),+t(d,c,l));if(h)return o=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:it(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:it(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:it(!!l),s):n},s.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),s):i},s.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),s):r},s}function ac(e,t,n){var r=null,i=it(!0),o=null,a=Nd,s=null,l=jg(c);e=typeof e=="function"?e:e===void 0?E_:it(+e),t=typeof t=="function"?t:it(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?__:it(+n);function c(d){var p,h,g,m=(d=Ng(d)).length,v,y=!1,S,x=new Array(m),b=new Array(m);for(o==null&&(s=a(S=l())),p=0;p<=m;++p){if(!(p<m&&i(v=d[p],p,d))===y)if(y=!y)h=p,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),g=p-1;g>=h;--g)s.point(x[g],b[g]);s.lineEnd(),s.areaEnd()}y&&(x[p]=+e(v,p,d),b[p]=+t(v,p,d),s.point(r?+r(v,p,d):x[p],n?+n(v,p,d):b[p]))}if(S)return s=null,S+""||null}function u(){return P_().defined(i).curve(a).context(o)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:it(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:it(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:it(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:it(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:it(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:it(+d),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(d){return arguments.length?(i=typeof d=="function"?d:it(!!d),c):i},c.curve=function(d){return arguments.length?(a=d,o!=null&&(s=a(o)),c):a},c.context=function(d){return arguments.length?(d==null?o=s=null:s=a(o=d),c):o},c}class C_{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function TD(e){return new C_(e,!0)}function AD(e){return new C_(e,!1)}const Rg={draw(e,t){const n=hr(t/hu);e.moveTo(n,0),e.arc(0,0,n,0,jd)}},kD={draw(e,t){const n=hr(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},T_=hr(1/3),MD=T_*2,jD={draw(e,t){const n=hr(t/MD),r=n*T_;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},ND={draw(e,t){const n=hr(t),r=-n/2;e.rect(r,r,n,n)}},RD=.8908130915292852,A_=pu(hu/10)/pu(7*hu/10),DD=pu(jd/10)*A_,ID=-w_(jd/10)*A_,$D={draw(e,t){const n=hr(t*RD),r=DD*n,i=ID*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=jd*o/5,s=w_(a),l=pu(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*i,l*r+s*i)}e.closePath()}},Jf=hr(3),LD={draw(e,t){const n=-hr(t/(Jf*3));e.moveTo(0,n*2),e.lineTo(-Jf*n,-n),e.lineTo(Jf*n,-n),e.closePath()}},Yn=-.5,Gn=hr(3)/2,Qh=1/hr(12),FD=(Qh/2+1)*3,BD={draw(e,t){const n=hr(t/FD),r=n/2,i=n*Qh,o=r,a=n*Qh+n,s=-o,l=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,l),e.lineTo(Yn*r-Gn*i,Gn*r+Yn*i),e.lineTo(Yn*o-Gn*a,Gn*o+Yn*a),e.lineTo(Yn*s-Gn*l,Gn*s+Yn*l),e.lineTo(Yn*r+Gn*i,Yn*i-Gn*r),e.lineTo(Yn*o+Gn*a,Yn*a-Gn*o),e.lineTo(Yn*s+Gn*l,Yn*l-Gn*s),e.closePath()}};function zD(e,t){let n=null,r=jg(i);e=typeof e=="function"?e:it(e||Rg),t=typeof t=="function"?t:it(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:it(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:it(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function mu(){}function gu(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function k_(e){this._context=e}k_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:gu(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:gu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function VD(e){return new k_(e)}function M_(e){this._context=e}M_.prototype={areaStart:mu,areaEnd:mu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:gu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function WD(e){return new M_(e)}function j_(e){this._context=e}j_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:gu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function UD(e){return new j_(e)}function N_(e){this._context=e}N_.prototype={areaStart:mu,areaEnd:mu,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function HD(e){return new N_(e)}function y0(e){return e<0?-1:1}function b0(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(y0(o)+y0(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function x0(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Qf(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function vu(e){this._context=e}vu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Qf(this,this._t0,x0(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Qf(this,x0(this,n=b0(this,e,t)),n);break;default:Qf(this,this._t0,n=b0(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function R_(e){this._context=new D_(e)}(R_.prototype=Object.create(vu.prototype)).point=function(e,t){vu.prototype.point.call(this,t,e)};function D_(e){this._context=e}D_.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function qD(e){return new vu(e)}function KD(e){return new R_(e)}function I_(e){this._context=e}I_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=w0(e),i=w0(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function w0(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function YD(e){return new I_(e)}function Rd(e,t){this._context=e,this._t=t}Rd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function GD(e){return new Rd(e,.5)}function XD(e){return new Rd(e,0)}function ZD(e){return new Rd(e,1)}function ya(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function em(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function JD(e,t){return e[t]}function QD(e){const t=[];return t.key=e,t}function eI(){var e=it([]),t=em,n=ya,r=JD;function i(o){var a=Array.from(e.apply(this,arguments),QD),s,l=a.length,c=-1,u;for(const d of o)for(s=0,++c;s<l;++s)(a[s][c]=[0,+r(d,a[s].key,c,o)]).data=d;for(s=0,u=Ng(t(a));s<l;++s)a[u[s]].index=s;return n(a,u),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:it(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:it(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?em:typeof o=="function"?o:it(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??ya,i):n},i}function tI(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}ya(e,t)}}function nI(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,s=0;a<i;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}ya(e,t)}}function rI(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var s=0,l=0,c=0;s<a;++s){for(var u=e[t[s]],d=u[r][1]||0,p=u[r-1][1]||0,h=(d-p)/2,g=0;g<s;++g){var m=e[t[g]],v=m[r][1]||0,y=m[r-1][1]||0;h+=v-y}l+=d,c+=h*d}i[r-1][1]+=i[r-1][0]=n,l&&(n-=c/l)}i[r-1][1]+=i[r-1][0]=n,ya(e,t)}}var iI=["type","size","sizeType"];function tm(){return tm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tm.apply(null,arguments)}function O0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function S0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O0(Object(n),!0).forEach(function(r){oI(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oI(e,t,n){return(t=aI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aI(e){var t=sI(e,"string");return typeof t=="symbol"?t:t+""}function sI(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lI(e,t){if(e==null)return{};var n,r,i=cI(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function cI(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var $_={symbolCircle:Rg,symbolCross:kD,symbolDiamond:jD,symbolSquare:ND,symbolStar:$D,symbolTriangle:LD,symbolWye:BD},uI=Math.PI/180,dI=e=>{var t="symbol".concat(Pl(e));return $_[t]||Rg},fI=(e,t,n)=>{if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var r=18*uI;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**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}},pI=(e,t)=>{$_["symbol".concat(Pl(e))]=t},L_=e=>{var{type:t="circle",size:n=64,sizeType:r="area"}=e,i=lI(e,iI),o=S0(S0({},i),{},{type:t,size:n,sizeType:r}),a="circle";typeof t=="string"&&(a=t);var s=()=>{var p=dI(a),h=zD().type(p).size(fI(n,r,a));return h()},{className:l,cx:c,cy:u}=o,d=vt(o,!0);return c===+c&&u===+u&&n===+n?_.createElement("path",tm({},d,{className:oe("recharts-symbols",l),transform:"translate(".concat(c,", ").concat(u,")"),d:s()})):null};L_.registerSymbol=pI;var ep={},tp={},E0;function hI(){return E0||(E0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){const i=new Map;for(let o=0;o<n.length;o++){const a=n[o],s=r(a);i.has(s)||i.set(s,a)}return Array.from(i.values())}e.uniqBy=t})(tp)),tp}var np={},_0;function F_(){return _0||(_0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t})(np)),np}var rp={},ip={},op={},P0;function mI(){return P0||(P0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t})(op)),op}var C0;function Dg(){return C0||(C0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=mI();function n(r){return r!=null&&typeof r!="function"&&t.isLength(r.length)}e.isArrayLike=n})(ip)),ip}var ap={},T0;function gI(){return T0||(T0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t})(ap)),ap}var A0;function vI(){return A0||(A0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Dg(),n=gI();function r(i){return n.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=r})(rp)),rp}var sp={},lp={},k0;function yI(){return k0||(k0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Tg();function n(r){return function(i){return t.get(i,r)}}e.property=n})(lp)),lp}var cp={},up={},dp={},fp={},M0;function B_(){return M0||(M0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n!==null&&(typeof n=="object"||typeof n=="function")}e.isObject=t})(fp)),fp}var pp={},j0;function z_(){return j0||(j0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null||typeof n!="object"&&typeof n!="function"}e.isPrimitive=t})(pp)),pp}var hp={},N0;function V_(){return N0||(N0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return n===r||Number.isNaN(n)&&Number.isNaN(r)}e.eq=t})(hp)),hp}var R0;function bI(){return R0||(R0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ig(),n=B_(),r=z_(),i=V_();function o(d,p,h){return typeof h!="function"?t.isMatch(d,p):a(d,p,function g(m,v,y,S,x,b){const O=h(m,v,y,S,x,b);return O!==void 0?!!O:a(m,v,g,b)},new Map)}function a(d,p,h,g){if(p===d)return!0;switch(typeof p){case"object":return s(d,p,h,g);case"function":return Object.keys(p).length>0?a(d,{...p},h,g):i.eq(d,p);default:return n.isObject(d)?typeof p=="string"?p==="":!0:i.eq(d,p)}}function s(d,p,h,g){if(p==null)return!0;if(Array.isArray(p))return c(d,p,h,g);if(p instanceof Map)return l(d,p,h,g);if(p instanceof Set)return u(d,p,h,g);const m=Object.keys(p);if(d==null)return m.length===0;if(m.length===0)return!0;if(g&&g.has(p))return g.get(p)===d;g&&g.set(p,d);try{for(let v=0;v<m.length;v++){const y=m[v];if(!r.isPrimitive(d)&&!(y in d)||p[y]===void 0&&d[y]!==void 0||p[y]===null&&d[y]!==null||!h(d[y],p[y],y,d,p,g))return!1}return!0}finally{g&&g.delete(p)}}function l(d,p,h,g){if(p.size===0)return!0;if(!(d instanceof Map))return!1;for(const[m,v]of p.entries()){const y=d.get(m);if(h(y,v,m,d,p,g)===!1)return!1}return!0}function c(d,p,h,g){if(p.length===0)return!0;if(!Array.isArray(d))return!1;const m=new Set;for(let v=0;v<p.length;v++){const y=p[v];let S=!1;for(let x=0;x<d.length;x++){if(m.has(x))continue;const b=d[x];let O=!1;if(h(b,y,v,d,p,g)&&(O=!0),O){m.add(x),S=!0;break}}if(!S)return!1}return!0}function u(d,p,h,g){return p.size===0?!0:d instanceof Set?c([...d],[...p],h,g):!1}e.isMatchWith=o,e.isSetMatch=u})(dp)),dp}var D0;function Ig(){return D0||(D0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bI();function n(r,i){return t.isMatchWith(r,i,()=>{})}e.isMatch=n})(up)),up}var mp={},gp={},vp={},I0;function xI(){return I0||(I0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Object.getOwnPropertySymbols(n).filter(r=>Object.prototype.propertyIsEnumerable.call(n,r))}e.getSymbols=t})(vp)),vp}var yp={},$0;function W_(){return $0||($0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}e.getTag=t})(yp)),yp}var bp={},L0;function U_(){return L0||(L0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",n="[object String]",r="[object Number]",i="[object Boolean]",o="[object Arguments]",a="[object Symbol]",s="[object Date]",l="[object Map]",c="[object Set]",u="[object Array]",d="[object Function]",p="[object ArrayBuffer]",h="[object Object]",g="[object Error]",m="[object DataView]",v="[object Uint8Array]",y="[object Uint8ClampedArray]",S="[object Uint16Array]",x="[object Uint32Array]",b="[object BigUint64Array]",O="[object Int8Array]",E="[object Int16Array]",C="[object Int32Array]",T="[object BigInt64Array]",k="[object Float32Array]",R="[object Float64Array]";e.argumentsTag=o,e.arrayBufferTag=p,e.arrayTag=u,e.bigInt64ArrayTag=T,e.bigUint64ArrayTag=b,e.booleanTag=i,e.dataViewTag=m,e.dateTag=s,e.errorTag=g,e.float32ArrayTag=k,e.float64ArrayTag=R,e.functionTag=d,e.int16ArrayTag=E,e.int32ArrayTag=C,e.int8ArrayTag=O,e.mapTag=l,e.numberTag=r,e.objectTag=h,e.regexpTag=t,e.setTag=c,e.stringTag=n,e.symbolTag=a,e.uint16ArrayTag=S,e.uint32ArrayTag=x,e.uint8ArrayTag=v,e.uint8ClampedArrayTag=y})(bp)),bp}var xp={},F0;function wI(){return F0||(F0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t})(xp)),xp}var B0;function H_(){return B0||(B0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xI(),n=W_(),r=U_(),i=z_(),o=wI();function a(u,d){return s(u,void 0,u,new Map,d)}function s(u,d,p,h=new Map,g=void 0){const m=g?.(u,d,p,h);if(m!==void 0)return m;if(i.isPrimitive(u))return u;if(h.has(u))return h.get(u);if(Array.isArray(u)){const v=new Array(u.length);h.set(u,v);for(let y=0;y<u.length;y++)v[y]=s(u[y],y,p,h,g);return Object.hasOwn(u,"index")&&(v.index=u.index),Object.hasOwn(u,"input")&&(v.input=u.input),v}if(u instanceof Date)return new Date(u.getTime());if(u instanceof RegExp){const v=new RegExp(u.source,u.flags);return v.lastIndex=u.lastIndex,v}if(u instanceof Map){const v=new Map;h.set(u,v);for(const[y,S]of u)v.set(y,s(S,y,p,h,g));return v}if(u instanceof Set){const v=new Set;h.set(u,v);for(const y of u)v.add(s(y,void 0,p,h,g));return v}if(typeof Buffer<"u"&&Buffer.isBuffer(u))return u.subarray();if(o.isTypedArray(u)){const v=new(Object.getPrototypeOf(u)).constructor(u.length);h.set(u,v);for(let y=0;y<u.length;y++)v[y]=s(u[y],y,p,h,g);return v}if(u instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&u instanceof SharedArrayBuffer)return u.slice(0);if(u instanceof DataView){const v=new DataView(u.buffer.slice(0),u.byteOffset,u.byteLength);return h.set(u,v),l(v,u,p,h,g),v}if(typeof File<"u"&&u instanceof File){const v=new File([u],u.name,{type:u.type});return h.set(u,v),l(v,u,p,h,g),v}if(u instanceof Blob){const v=new Blob([u],{type:u.type});return h.set(u,v),l(v,u,p,h,g),v}if(u instanceof Error){const v=new u.constructor;return h.set(u,v),v.message=u.message,v.name=u.name,v.stack=u.stack,v.cause=u.cause,l(v,u,p,h,g),v}if(typeof u=="object"&&c(u)){const v=Object.create(Object.getPrototypeOf(u));return h.set(u,v),l(v,u,p,h,g),v}return u}function l(u,d,p=u,h,g){const m=[...Object.keys(d),...t.getSymbols(d)];for(let v=0;v<m.length;v++){const y=m[v],S=Object.getOwnPropertyDescriptor(u,y);(S==null||S.writable)&&(u[y]=s(d[y],y,p,h,g))}}function c(u){switch(n.getTag(u)){case r.argumentsTag:case r.arrayTag:case r.arrayBufferTag:case r.dataViewTag:case r.booleanTag:case r.dateTag:case r.float32ArrayTag:case r.float64ArrayTag:case r.int8ArrayTag:case r.int16ArrayTag:case r.int32ArrayTag:case r.mapTag:case r.numberTag:case r.objectTag:case r.regexpTag:case r.setTag:case r.stringTag:case r.symbolTag:case r.uint8ArrayTag:case r.uint8ClampedArrayTag:case r.uint16ArrayTag:case r.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=a,e.cloneDeepWithImpl=s,e.copyProperties=l})(gp)),gp}var z0;function OI(){return z0||(z0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=H_();function n(r){return t.cloneDeepWithImpl(r,void 0,r,new Map,void 0)}e.cloneDeep=n})(mp)),mp}var V0;function SI(){return V0||(V0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ig(),n=OI();function r(i){return i=n.cloneDeep(i),o=>t.isMatch(o,i)}e.matches=r})(cp)),cp}var wp={},Op={},Sp={},W0;function EI(){return W0||(W0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=H_(),n=U_();function r(i,o){return t.cloneDeepWith(i,(a,s,l,c)=>{const u=o?.(a,s,l,c);if(u!==void 0)return u;if(typeof i=="object")switch(Object.prototype.toString.call(i)){case n.numberTag:case n.stringTag:case n.booleanTag:{const d=new i.constructor(i?.valueOf());return t.copyProperties(d,i),d}case n.argumentsTag:{const d={};return t.copyProperties(d,i),d.length=i.length,d[Symbol.iterator]=i[Symbol.iterator],d}default:return}})}e.cloneDeepWith=r})(Sp)),Sp}var U0;function _I(){return U0||(U0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=EI();function n(r){return t.cloneDeepWith(r)}e.cloneDeep=n})(Op)),Op}var Ep={},_p={},H0;function q_(){return H0||(H0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function n(r,i=Number.MAX_SAFE_INTEGER){switch(typeof r){case"number":return Number.isInteger(r)&&r>=0&&r<i;case"symbol":return!1;case"string":return t.test(r)}}e.isIndex=n})(_p)),_p}var Pp={},q0;function PI(){return q0||(q0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=W_();function n(r){return r!==null&&typeof r=="object"&&t.getTag(r)==="[object Arguments]"}e.isArguments=n})(Pp)),Pp}var K0;function CI(){return K0||(K0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=p_(),n=q_(),r=PI(),i=Cg();function o(a,s){let l;if(Array.isArray(s)?l=s:typeof s=="string"&&t.isDeepKey(s)&&a?.[s]==null?l=i.toPath(s):l=[s],l.length===0)return!1;let c=a;for(let u=0;u<l.length;u++){const d=l[u];if((c==null||!Object.hasOwn(c,d))&&!((Array.isArray(c)||r.isArguments(c))&&n.isIndex(d)&&d<c.length))return!1;c=c[d]}return!0}e.has=o})(Ep)),Ep}var Y0;function TI(){return Y0||(Y0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ig(),n=h_(),r=_I(),i=Tg(),o=CI();function a(s,l){switch(typeof s){case"object":{Object.is(s?.valueOf(),-0)&&(s="-0");break}case"number":{s=n.toKey(s);break}}return l=r.cloneDeep(l),function(c){const u=i.get(c,s);return u===void 0?o.has(c,s):l===void 0?u===void 0:t.isMatch(u,l)}}e.matchesProperty=a})(wp)),wp}var G0;function AI(){return G0||(G0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=F_(),n=yI(),r=SI(),i=TI();function o(a){if(a==null)return t.identity;switch(typeof a){case"function":return a;case"object":return Array.isArray(a)&&a.length===2?i.matchesProperty(a[0],a[1]):r.matches(a);case"string":case"symbol":case"number":return n.property(a)}}e.iteratee=o})(sp)),sp}var X0;function kI(){return X0||(X0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hI(),n=F_(),r=vI(),i=AI();function o(a,s=n.identity){return r.isArrayLikeObject(a)?t.uniqBy(Array.from(a),i.iteratee(s)):[]}e.uniqBy=o})(ep)),ep}var Cp,Z0;function MI(){return Z0||(Z0=1,Cp=kI().uniqBy),Cp}var jI=MI();const J0=ui(jI);function NI(e,t,n){return t===!0?J0(e,n):typeof t=="function"?J0(e,t):e}var sc={exports:{}},Tp={},lc={exports:{}},Ap={};/**
|
|
121
121
|
* @license React
|
|
122
122
|
* use-sync-external-store-shim.production.js
|
|
123
123
|
*
|
|
@@ -155,15 +155,15 @@ This could lead to inefficient memoization and unnecessary re-renders.
|
|
|
155
155
|
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:i})}}},UI=(e,t,n)=>{const{memoize:r,memoizeOptions:i}=t,{inputSelectorResults:o,inputSelectorResultsCopy:a}=e,s=r(()=>({}),...i);if(!(s.apply(null,o)===s.apply(null,a))){let c;try{throw new Error}catch(u){({stack:c}=u)}console.warn(`An input selector returned a different result when passed same arguments.
|
|
156
156
|
This means your output selector will likely run more frequently than intended.
|
|
157
157
|
Avoid returning a new reference inside your input selector, e.g.
|
|
158
|
-
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:o,secondInputs:a,stack:c})}},HI={inputStabilityCheck:"once",identityFunctionCheck:"once"};function qI(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function KI(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function YI(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var ox=e=>Array.isArray(e)?e:[e];function GI(e){const t=Array.isArray(e[0])?e[0]:e;return YI(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function ax(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var XI=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:r}={...HI,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:WI},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:UI}}},ZI=class{constructor(e){this.value=e}deref(){return this.value}},JI=typeof WeakRef<"u"?WeakRef:ZI,QI=0,sx=1;function cc(){return{s:QI,v:void 0,o:null,p:null}}function Y_(e,t={}){let n=cc();const{resultEqualityCheck:r}=t;let i,o=0;function a(){let s=n;const{length:l}=arguments;for(let d=0,p=l;d<p;d++){const h=arguments[d];if(typeof h=="function"||typeof h=="object"&&h!==null){let g=s.o;g===null&&(s.o=g=new WeakMap);const m=g.get(h);m===void 0?(s=cc(),g.set(h,s)):s=m}else{let g=s.p;g===null&&(s.p=g=new Map);const m=g.get(h);m===void 0?(s=cc(),g.set(h,s)):s=m}}const c=s;let u;if(s.s===sx)u=s.v;else if(u=e.apply(null,arguments),o++,r){const d=i?.deref?.()??i;d!=null&&r(d,u)&&(u=d,o!==0&&o--),i=typeof u=="object"&&u!==null||typeof u=="function"?new JI(u):u}return c.s=sx,c.v=u,u}return a.clearCache=()=>{n=cc(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function e$(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,a=0,s,l={},c=i.pop();typeof c=="object"&&(l=c,c=i.pop()),qI(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...n,...l},{memoize:d,memoizeOptions:p=[],argsMemoize:h=Y_,argsMemoizeOptions:g=[],devModeChecks:m={}}=u,v=ox(p),y=ox(g),S=GI(i),x=d(function(){return o++,c.apply(null,arguments)},...v);let b=!0;const O=h(function(){a++;const C=ax(S,arguments);if(s=x.apply(null,C),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:T,inputStabilityCheck:k}=XI(b,m);if(T.shouldRun&&T.run(c,C,s),k.shouldRun){const R=ax(S,arguments);k.run({inputSelectorResults:C,inputSelectorResultsCopy:R},{memoize:d,memoizeOptions:v},arguments)}b&&(b=!1)}return s},...y);return Object.assign(O,{resultFunc:c,memoizedResultFunc:x,dependencies:S,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:d,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var V=e$(Y_),t$=Object.assign((e,t=V)=>{KI(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((a,s,l)=>(a[n[l]]=s,a),{}))},{withTypes:()=>t$}),jp={},Np={},Rp={},lx;function n$(){return lx||(lx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"?1:r===null?2:r===void 0?3:r!==r?4:0}const n=(r,i,o)=>{if(r!==i){const a=t(r),s=t(i);if(a===s&&a===0){if(r<i)return o==="desc"?1:-1;if(r>i)return o==="desc"?-1:1}return o==="desc"?s-a:a-s}return 0};e.compareValues=n})(Rp)),Rp}var Dp={},Ip={},cx;function G_(){return cx||(cx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"||n instanceof Symbol}e.isSymbol=t})(Ip)),Ip}var ux;function r$(){return ux||(ux=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=G_(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(o,a){return Array.isArray(o)?!1:typeof o=="number"||typeof o=="boolean"||o==null||t.isSymbol(o)?!0:typeof o=="string"&&(r.test(o)||!n.test(o))||a!=null&&Object.hasOwn(a,o)}e.isKey=i})(Dp)),Dp}var dx;function i$(){return dx||(dx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=n$(),n=r$(),r=Cg();function i(o,a,s,l){if(o==null)return[];s=l?void 0:s,Array.isArray(o)||(o=Object.values(o)),Array.isArray(a)||(a=a==null?[null]:[a]),a.length===0&&(a=[null]),Array.isArray(s)||(s=s==null?[]:[s]),s=s.map(h=>String(h));const c=(h,g)=>{let m=h;for(let v=0;v<g.length&&m!=null;++v)m=m[g[v]];return m},u=(h,g)=>g==null||h==null?g:typeof h=="object"&&"key"in h?Object.hasOwn(g,h.key)?g[h.key]:c(g,h.path):typeof h=="function"?h(g):Array.isArray(h)?c(g,h):typeof g=="object"?g[h]:g,d=a.map(h=>(Array.isArray(h)&&h.length===1&&(h=h[0]),h==null||typeof h=="function"||Array.isArray(h)||n.isKey(h)?h:{key:h,path:r.toPath(h)}));return o.map(h=>({original:h,criteria:d.map(g=>u(g,h))})).slice().sort((h,g)=>{for(let m=0;m<d.length;m++){const v=t.compareValues(h.criteria[m],g.criteria[m],s[m]);if(v!==0)return v}return 0}).map(h=>h.original)}e.orderBy=i})(Np)),Np}var $p={},fx;function o$(){return fx||(fx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r=1){const i=[],o=Math.floor(r),a=(s,l)=>{for(let c=0;c<s.length;c++){const u=s[c];Array.isArray(u)&&l<o?a(u,l+1):i.push(u)}};return a(n,0),i}e.flatten=t})($p)),$p}var Lp={},px;function X_(){return px||(px=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=q_(),n=Dg(),r=B_(),i=V_();function o(a,s,l){return r.isObject(l)&&(typeof s=="number"&&n.isArrayLike(l)&&t.isIndex(s)&&s<l.length||typeof s=="string"&&s in l)?i.eq(l[s],a):!1}e.isIterateeCall=o})(Lp)),Lp}var hx;function a$(){return hx||(hx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=i$(),n=o$(),r=X_();function i(o,...a){const s=a.length;return s>1&&r.isIterateeCall(o,a[0],a[1])?a=[]:s>2&&r.isIterateeCall(a[0],a[1],a[2])&&(a=[a[0]]),t.orderBy(o,n.flatten(a),["asc"])}e.sortBy=i})(jp)),jp}var Fp,mx;function s$(){return mx||(mx=1,Fp=a$().sortBy),Fp}var l$=s$();const Dd=ui(l$);var Z_=e=>e.legend.settings,c$=e=>e.legend.size,u$=e=>e.legend.payload;V([u$,Z_],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?Dd(r,n):r});var uc=1;function d$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,n]=I.useState({height:0,left:0,top:0,width:0}),r=I.useCallback(i=>{if(i!=null){var o=i.getBoundingClientRect(),a={height:o.height,left:o.left,top:o.top,width:o.width};(Math.abs(a.height-t.height)>uc||Math.abs(a.left-t.left)>uc||Math.abs(a.top-t.top)>uc||Math.abs(a.width-t.width)>uc)&&n({height:a.height,left:a.left,top:a.top,width:a.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,r]}function Xt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var f$=typeof Symbol=="function"&&Symbol.observable||"@@observable",gx=f$,Bp=()=>Math.random().toString(36).substring(7).split("").join("."),p$={INIT:`@@redux/INIT${Bp()}`,REPLACE:`@@redux/REPLACE${Bp()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Bp()}`},xo=p$;function Pl(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function h$(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(v$(e))return"date";if(g$(e))return"error";const n=m$(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function m$(e){return typeof e.constructor=="function"?e.constructor.name:null}function g$(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function v$(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function bi(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=h$(e)),t}function J_(e,t,n){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?Xt(2):`Expected the root reducer to be a function. Instead, received: '${bi(e)}'`);if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Xt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Xt(1):`Expected the enhancer to be a function. Instead, received: '${bi(n)}'`);return n(J_)(e,t)}let r=e,i=t,o=new Map,a=o,s=0,l=!1;function c(){a===o&&(a=new Map,o.forEach((v,y)=>{a.set(y,v)}))}function u(){if(l)throw new Error(process.env.NODE_ENV==="production"?Xt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function d(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?Xt(4):`Expected the listener to be a function. Instead, received: '${bi(v)}'`);if(l)throw new Error(process.env.NODE_ENV==="production"?Xt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let y=!0;c();const S=s++;return a.set(S,v),function(){if(y){if(l)throw new Error(process.env.NODE_ENV==="production"?Xt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");y=!1,c(),a.delete(S),o=null}}}function p(v){if(!Pl(v))throw new Error(process.env.NODE_ENV==="production"?Xt(7):`Actions must be plain objects. Instead, the actual type was: '${bi(v)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof v.type>"u")throw new Error(process.env.NODE_ENV==="production"?Xt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof v.type!="string")throw new Error(process.env.NODE_ENV==="production"?Xt(17):`Action "type" property must be a string. Instead, the actual type was: '${bi(v.type)}'. Value was: '${v.type}' (stringified)`);if(l)throw new Error(process.env.NODE_ENV==="production"?Xt(9):"Reducers may not dispatch actions.");try{l=!0,i=r(i,v)}finally{l=!1}return(o=a).forEach(S=>{S()}),v}function h(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?Xt(10):`Expected the nextReducer to be a function. Instead, received: '${bi(v)}`);r=v,p({type:xo.REPLACE})}function g(){const v=d;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(process.env.NODE_ENV==="production"?Xt(11):`Expected the observer to be an object. Instead, received: '${bi(y)}'`);function S(){const b=y;b.next&&b.next(u())}return S(),{unsubscribe:v(S)}},[gx](){return this}}}return p({type:xo.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:h,[gx]:g}}function vx(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function y$(e,t,n,r){const i=Object.keys(t),o=n&&n.type===xo.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Pl(e))return`The ${o} has unexpected type of "${bi(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const a=Object.keys(e).filter(s=>!t.hasOwnProperty(s)&&!r[s]);if(a.forEach(s=>{r[s]=!0}),!(n&&n.type===xo.REPLACE)&&a.length>0)return`Unexpected ${a.length>1?"keys":"key"} "${a.join('", "')}" found in ${o}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function b$(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:xo.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?Xt(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:xo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?Xt(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${xo.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function Q_(e){const t=Object.keys(e),n={};for(let a=0;a<t.length;a++){const s=t[a];process.env.NODE_ENV!=="production"&&typeof e[s]>"u"&&vx(`No reducer provided for key "${s}"`),typeof e[s]=="function"&&(n[s]=e[s])}const r=Object.keys(n);let i;process.env.NODE_ENV!=="production"&&(i={});let o;try{b$(n)}catch(a){o=a}return function(s={},l){if(o)throw o;if(process.env.NODE_ENV!=="production"){const d=y$(s,n,l,i);d&&vx(d)}let c=!1;const u={};for(let d=0;d<r.length;d++){const p=r[d],h=n[p],g=s[p],m=h(g,l);if(typeof m>"u"){const v=l&&l.type;throw new Error(process.env.NODE_ENV==="production"?Xt(14):`When called with an action of type ${v?`"${String(v)}"`:"(unknown type)"}, the slice reducer for key "${p}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}u[p]=m,c=c||m!==g}return c=c||r.length!==Object.keys(s).length,c?u:s}}function yu(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function x$(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(process.env.NODE_ENV==="production"?Xt(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const a={getState:i.getState,dispatch:(l,...c)=>o(l,...c)},s=e.map(l=>l(a));return o=yu(...s)(i.dispatch),{...i,dispatch:o}}}function Lg(e){return Pl(e)&&"type"in e&&typeof e.type=="string"}var eP=Symbol.for("immer-nothing"),yx=Symbol.for("immer-draftable"),Bn=Symbol.for("immer-state"),w$=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function xn(e,...t){if(process.env.NODE_ENV!=="production"){const n=w$[e],r=typeof n=="function"?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ba=Object.getPrototypeOf;function To(e){return!!e&&!!e[Bn]}function ii(e){return e?tP(e)||Array.isArray(e)||!!e[yx]||!!e.constructor?.[yx]||Cl(e)||$d(e):!1}var O$=Object.prototype.constructor.toString();function tP(e){if(!e||typeof e!="object")return!1;const t=ba(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===O$}function bu(e,t){Id(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Id(e){const t=e[Bn];return t?t.type_:Array.isArray(e)?1:Cl(e)?2:$d(e)?3:0}function nm(e,t){return Id(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function nP(e,t,n){const r=Id(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function S$(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Cl(e){return e instanceof Map}function $d(e){return e instanceof Set}function io(e){return e.copy_||e.base_}function rm(e,t){if(Cl(e))return new Map(e);if($d(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=tP(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Bn];let i=Reflect.ownKeys(r);for(let o=0;o<i.length;o++){const a=i[o],s=r[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(r[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(ba(e),r)}else{const r=ba(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function Fg(e,t=!1){return Ld(e)||To(e)||!ii(e)||(Id(e)>1&&Object.defineProperties(e,{set:{value:dc},add:{value:dc},clear:{value:dc},delete:{value:dc}}),Object.freeze(e),t&&Object.values(e).forEach(n=>Fg(n,!0))),e}function dc(){xn(2)}function Ld(e){return Object.isFrozen(e)}var E$={};function Ao(e){const t=E$[e];return t||xn(0,e),t}var Ks;function rP(){return Ks}function _$(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function bx(e,t){t&&(Ao("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function im(e){om(e),e.drafts_.forEach(P$),e.drafts_=null}function om(e){e===Ks&&(Ks=e.parent_)}function xx(e){return Ks=_$(Ks,e)}function P$(e){const t=e[Bn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function wx(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Bn].modified_&&(im(t),xn(4)),ii(e)&&(e=xu(t,e),t.parent_||wu(t,e)),t.patches_&&Ao("Patches").generateReplacementPatches_(n[Bn].base_,e,t.patches_,t.inversePatches_)):e=xu(t,n,[]),im(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==eP?e:void 0}function xu(e,t,n){if(Ld(t))return t;const r=t[Bn];if(!r)return bu(t,(i,o)=>Ox(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return wu(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,a=!1;r.type_===3&&(o=new Set(i),i.clear(),a=!0),bu(o,(s,l)=>Ox(e,r,i,s,l,n,a)),wu(e,i,!1),n&&e.patches_&&Ao("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Ox(e,t,n,r,i,o,a){if(process.env.NODE_ENV!=="production"&&i===n&&xn(5),To(i)){const s=o&&t&&t.type_!==3&&!nm(t.assigned_,r)?o.concat(r):void 0,l=xu(e,i,s);if(nP(n,r,l),To(l))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(ii(i)&&!Ld(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;xu(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&(Cl(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&wu(e,i)}}function wu(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Fg(t,n)}function C$(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:rP(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=Bg;n&&(i=[r],o=Ys);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}var Bg={get(e,t){if(t===Bn)return e;const n=io(e);if(!nm(n,t))return T$(e,n,t);const r=n[t];return e.finalized_||!ii(r)?r:r===zp(e.base_,t)?(Vp(e),e.copy_[t]=sm(r,e)):r},has(e,t){return t in io(e)},ownKeys(e){return Reflect.ownKeys(io(e))},set(e,t,n){const r=iP(io(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=zp(io(e),t),o=i?.[Bn];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(S$(n,i)&&(n!==void 0||nm(e.base_,t)))return!0;Vp(e),am(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return zp(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Vp(e),am(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=io(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){xn(11)},getPrototypeOf(e){return ba(e.base_)},setPrototypeOf(){xn(12)}},Ys={};bu(Bg,(e,t)=>{Ys[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Ys.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&xn(13),Ys.set.call(this,e,t,void 0)};Ys.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&xn(14),Bg.set.call(this,e[0],t,n,e[0])};function zp(e,t){const n=e[Bn];return(n?io(n):e)[t]}function T$(e,t,n){const r=iP(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}function iP(e,t){if(!(t in e))return;let n=ba(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=ba(n)}}function am(e){e.modified_||(e.modified_=!0,e.parent_&&am(e.parent_))}function Vp(e){e.copy_||(e.copy_=rm(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var A$=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const a=this;return function(l=o,...c){return a.produce(l,u=>n.call(this,u,...c))}}typeof n!="function"&&xn(6),r!==void 0&&typeof r!="function"&&xn(7);let i;if(ii(t)){const o=xx(this),a=sm(t,void 0);let s=!0;try{i=n(a),s=!1}finally{s?im(o):om(o)}return bx(o,r),wx(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===eP&&(i=void 0),this.autoFreeze_&&Fg(i,!0),r){const o=[],a=[];Ao("Patches").generateReplacementPatches_(t,i,o,a),r(o,a)}return i}else xn(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let r,i;return[this.produce(t,n,(a,s)=>{r=a,i=s}),r,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){ii(e)||xn(8),To(e)&&(e=ei(e));const t=xx(this),n=sm(e,void 0);return n[Bn].isManual_=!0,om(t),n}finishDraft(e,t){const n=e&&e[Bn];(!n||!n.isManual_)&&xn(9);const{scope_:r}=n;return bx(r,t),wx(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Ao("Patches").applyPatches_;return To(e)?r(e,t):this.produce(e,i=>r(i,t))}};function sm(e,t){const n=Cl(e)?Ao("MapSet").proxyMap_(e,t):$d(e)?Ao("MapSet").proxySet_(e,t):C$(e,t);return(t?t.scope_:rP()).drafts_.push(n),n}function ei(e){return To(e)||xn(10,e),oP(e)}function oP(e){if(!ii(e)||Ld(e))return e;const t=e[Bn];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=rm(e,t.scope_.immer_.useStrictShallowCopy_)}else n=rm(e,!0);return bu(n,(r,i)=>{nP(n,r,oP(i))}),t&&(t.finalized_=!1),n}var k$=new A$,aP=k$.produce;function sP(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var M$=sP(),j$=sP,N$=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?yu:yu.apply(null,arguments)},R$=e=>e&&typeof e.match=="function";function rr(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(process.env.NODE_ENV==="production"?Ne(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>Lg(r)&&r.type===e,n}function D$(e){return typeof e=="function"&&"type"in e&&R$(e)}function I$(e){const t=e?`${e}`.split("/"):[],n=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
|
|
158
|
+
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:o,secondInputs:a,stack:c})}},HI={inputStabilityCheck:"once",identityFunctionCheck:"once"};function qI(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function KI(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function YI(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var ox=e=>Array.isArray(e)?e:[e];function GI(e){const t=Array.isArray(e[0])?e[0]:e;return YI(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function ax(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var XI=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:r}={...HI,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:WI},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:UI}}},ZI=class{constructor(e){this.value=e}deref(){return this.value}},JI=typeof WeakRef<"u"?WeakRef:ZI,QI=0,sx=1;function cc(){return{s:QI,v:void 0,o:null,p:null}}function Y_(e,t={}){let n=cc();const{resultEqualityCheck:r}=t;let i,o=0;function a(){let s=n;const{length:l}=arguments;for(let d=0,p=l;d<p;d++){const h=arguments[d];if(typeof h=="function"||typeof h=="object"&&h!==null){let g=s.o;g===null&&(s.o=g=new WeakMap);const m=g.get(h);m===void 0?(s=cc(),g.set(h,s)):s=m}else{let g=s.p;g===null&&(s.p=g=new Map);const m=g.get(h);m===void 0?(s=cc(),g.set(h,s)):s=m}}const c=s;let u;if(s.s===sx)u=s.v;else if(u=e.apply(null,arguments),o++,r){const d=i?.deref?.()??i;d!=null&&r(d,u)&&(u=d,o!==0&&o--),i=typeof u=="object"&&u!==null||typeof u=="function"?new JI(u):u}return c.s=sx,c.v=u,u}return a.clearCache=()=>{n=cc(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function e$(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,a=0,s,l={},c=i.pop();typeof c=="object"&&(l=c,c=i.pop()),qI(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...n,...l},{memoize:d,memoizeOptions:p=[],argsMemoize:h=Y_,argsMemoizeOptions:g=[],devModeChecks:m={}}=u,v=ox(p),y=ox(g),S=GI(i),x=d(function(){return o++,c.apply(null,arguments)},...v);let b=!0;const O=h(function(){a++;const C=ax(S,arguments);if(s=x.apply(null,C),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:T,inputStabilityCheck:k}=XI(b,m);if(T.shouldRun&&T.run(c,C,s),k.shouldRun){const R=ax(S,arguments);k.run({inputSelectorResults:C,inputSelectorResultsCopy:R},{memoize:d,memoizeOptions:v},arguments)}b&&(b=!1)}return s},...y);return Object.assign(O,{resultFunc:c,memoizedResultFunc:x,dependencies:S,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:d,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var V=e$(Y_),t$=Object.assign((e,t=V)=>{KI(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((a,s,l)=>(a[n[l]]=s,a),{}))},{withTypes:()=>t$}),jp={},Np={},Rp={},lx;function n$(){return lx||(lx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"?1:r===null?2:r===void 0?3:r!==r?4:0}const n=(r,i,o)=>{if(r!==i){const a=t(r),s=t(i);if(a===s&&a===0){if(r<i)return o==="desc"?1:-1;if(r>i)return o==="desc"?-1:1}return o==="desc"?s-a:a-s}return 0};e.compareValues=n})(Rp)),Rp}var Dp={},Ip={},cx;function G_(){return cx||(cx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"||n instanceof Symbol}e.isSymbol=t})(Ip)),Ip}var ux;function r$(){return ux||(ux=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=G_(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(o,a){return Array.isArray(o)?!1:typeof o=="number"||typeof o=="boolean"||o==null||t.isSymbol(o)?!0:typeof o=="string"&&(r.test(o)||!n.test(o))||a!=null&&Object.hasOwn(a,o)}e.isKey=i})(Dp)),Dp}var dx;function i$(){return dx||(dx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=n$(),n=r$(),r=Cg();function i(o,a,s,l){if(o==null)return[];s=l?void 0:s,Array.isArray(o)||(o=Object.values(o)),Array.isArray(a)||(a=a==null?[null]:[a]),a.length===0&&(a=[null]),Array.isArray(s)||(s=s==null?[]:[s]),s=s.map(h=>String(h));const c=(h,g)=>{let m=h;for(let v=0;v<g.length&&m!=null;++v)m=m[g[v]];return m},u=(h,g)=>g==null||h==null?g:typeof h=="object"&&"key"in h?Object.hasOwn(g,h.key)?g[h.key]:c(g,h.path):typeof h=="function"?h(g):Array.isArray(h)?c(g,h):typeof g=="object"?g[h]:g,d=a.map(h=>(Array.isArray(h)&&h.length===1&&(h=h[0]),h==null||typeof h=="function"||Array.isArray(h)||n.isKey(h)?h:{key:h,path:r.toPath(h)}));return o.map(h=>({original:h,criteria:d.map(g=>u(g,h))})).slice().sort((h,g)=>{for(let m=0;m<d.length;m++){const v=t.compareValues(h.criteria[m],g.criteria[m],s[m]);if(v!==0)return v}return 0}).map(h=>h.original)}e.orderBy=i})(Np)),Np}var $p={},fx;function o$(){return fx||(fx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r=1){const i=[],o=Math.floor(r),a=(s,l)=>{for(let c=0;c<s.length;c++){const u=s[c];Array.isArray(u)&&l<o?a(u,l+1):i.push(u)}};return a(n,0),i}e.flatten=t})($p)),$p}var Lp={},px;function X_(){return px||(px=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=q_(),n=Dg(),r=B_(),i=V_();function o(a,s,l){return r.isObject(l)&&(typeof s=="number"&&n.isArrayLike(l)&&t.isIndex(s)&&s<l.length||typeof s=="string"&&s in l)?i.eq(l[s],a):!1}e.isIterateeCall=o})(Lp)),Lp}var hx;function a$(){return hx||(hx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=i$(),n=o$(),r=X_();function i(o,...a){const s=a.length;return s>1&&r.isIterateeCall(o,a[0],a[1])?a=[]:s>2&&r.isIterateeCall(a[0],a[1],a[2])&&(a=[a[0]]),t.orderBy(o,n.flatten(a),["asc"])}e.sortBy=i})(jp)),jp}var Fp,mx;function s$(){return mx||(mx=1,Fp=a$().sortBy),Fp}var l$=s$();const Dd=ui(l$);var Z_=e=>e.legend.settings,c$=e=>e.legend.size,u$=e=>e.legend.payload;V([u$,Z_],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?Dd(r,n):r});var uc=1;function d$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,n]=I.useState({height:0,left:0,top:0,width:0}),r=I.useCallback(i=>{if(i!=null){var o=i.getBoundingClientRect(),a={height:o.height,left:o.left,top:o.top,width:o.width};(Math.abs(a.height-t.height)>uc||Math.abs(a.left-t.left)>uc||Math.abs(a.top-t.top)>uc||Math.abs(a.width-t.width)>uc)&&n({height:a.height,left:a.left,top:a.top,width:a.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,r]}function Xt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var f$=typeof Symbol=="function"&&Symbol.observable||"@@observable",gx=f$,Bp=()=>Math.random().toString(36).substring(7).split("").join("."),p$={INIT:`@@redux/INIT${Bp()}`,REPLACE:`@@redux/REPLACE${Bp()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Bp()}`},xo=p$;function Cl(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function h$(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(v$(e))return"date";if(g$(e))return"error";const n=m$(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function m$(e){return typeof e.constructor=="function"?e.constructor.name:null}function g$(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function v$(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function bi(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=h$(e)),t}function J_(e,t,n){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?Xt(2):`Expected the root reducer to be a function. Instead, received: '${bi(e)}'`);if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Xt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Xt(1):`Expected the enhancer to be a function. Instead, received: '${bi(n)}'`);return n(J_)(e,t)}let r=e,i=t,o=new Map,a=o,s=0,l=!1;function c(){a===o&&(a=new Map,o.forEach((v,y)=>{a.set(y,v)}))}function u(){if(l)throw new Error(process.env.NODE_ENV==="production"?Xt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function d(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?Xt(4):`Expected the listener to be a function. Instead, received: '${bi(v)}'`);if(l)throw new Error(process.env.NODE_ENV==="production"?Xt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let y=!0;c();const S=s++;return a.set(S,v),function(){if(y){if(l)throw new Error(process.env.NODE_ENV==="production"?Xt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");y=!1,c(),a.delete(S),o=null}}}function p(v){if(!Cl(v))throw new Error(process.env.NODE_ENV==="production"?Xt(7):`Actions must be plain objects. Instead, the actual type was: '${bi(v)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof v.type>"u")throw new Error(process.env.NODE_ENV==="production"?Xt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof v.type!="string")throw new Error(process.env.NODE_ENV==="production"?Xt(17):`Action "type" property must be a string. Instead, the actual type was: '${bi(v.type)}'. Value was: '${v.type}' (stringified)`);if(l)throw new Error(process.env.NODE_ENV==="production"?Xt(9):"Reducers may not dispatch actions.");try{l=!0,i=r(i,v)}finally{l=!1}return(o=a).forEach(S=>{S()}),v}function h(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?Xt(10):`Expected the nextReducer to be a function. Instead, received: '${bi(v)}`);r=v,p({type:xo.REPLACE})}function g(){const v=d;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(process.env.NODE_ENV==="production"?Xt(11):`Expected the observer to be an object. Instead, received: '${bi(y)}'`);function S(){const b=y;b.next&&b.next(u())}return S(),{unsubscribe:v(S)}},[gx](){return this}}}return p({type:xo.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:h,[gx]:g}}function vx(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function y$(e,t,n,r){const i=Object.keys(t),o=n&&n.type===xo.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Cl(e))return`The ${o} has unexpected type of "${bi(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const a=Object.keys(e).filter(s=>!t.hasOwnProperty(s)&&!r[s]);if(a.forEach(s=>{r[s]=!0}),!(n&&n.type===xo.REPLACE)&&a.length>0)return`Unexpected ${a.length>1?"keys":"key"} "${a.join('", "')}" found in ${o}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function b$(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:xo.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?Xt(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:xo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?Xt(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${xo.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function Q_(e){const t=Object.keys(e),n={};for(let a=0;a<t.length;a++){const s=t[a];process.env.NODE_ENV!=="production"&&typeof e[s]>"u"&&vx(`No reducer provided for key "${s}"`),typeof e[s]=="function"&&(n[s]=e[s])}const r=Object.keys(n);let i;process.env.NODE_ENV!=="production"&&(i={});let o;try{b$(n)}catch(a){o=a}return function(s={},l){if(o)throw o;if(process.env.NODE_ENV!=="production"){const d=y$(s,n,l,i);d&&vx(d)}let c=!1;const u={};for(let d=0;d<r.length;d++){const p=r[d],h=n[p],g=s[p],m=h(g,l);if(typeof m>"u"){const v=l&&l.type;throw new Error(process.env.NODE_ENV==="production"?Xt(14):`When called with an action of type ${v?`"${String(v)}"`:"(unknown type)"}, the slice reducer for key "${p}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}u[p]=m,c=c||m!==g}return c=c||r.length!==Object.keys(s).length,c?u:s}}function yu(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function x$(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(process.env.NODE_ENV==="production"?Xt(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const a={getState:i.getState,dispatch:(l,...c)=>o(l,...c)},s=e.map(l=>l(a));return o=yu(...s)(i.dispatch),{...i,dispatch:o}}}function Lg(e){return Cl(e)&&"type"in e&&typeof e.type=="string"}var eP=Symbol.for("immer-nothing"),yx=Symbol.for("immer-draftable"),Bn=Symbol.for("immer-state"),w$=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function xn(e,...t){if(process.env.NODE_ENV!=="production"){const n=w$[e],r=typeof n=="function"?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ba=Object.getPrototypeOf;function To(e){return!!e&&!!e[Bn]}function ii(e){return e?tP(e)||Array.isArray(e)||!!e[yx]||!!e.constructor?.[yx]||Tl(e)||$d(e):!1}var O$=Object.prototype.constructor.toString();function tP(e){if(!e||typeof e!="object")return!1;const t=ba(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===O$}function bu(e,t){Id(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Id(e){const t=e[Bn];return t?t.type_:Array.isArray(e)?1:Tl(e)?2:$d(e)?3:0}function nm(e,t){return Id(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function nP(e,t,n){const r=Id(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function S$(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Tl(e){return e instanceof Map}function $d(e){return e instanceof Set}function io(e){return e.copy_||e.base_}function rm(e,t){if(Tl(e))return new Map(e);if($d(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=tP(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Bn];let i=Reflect.ownKeys(r);for(let o=0;o<i.length;o++){const a=i[o],s=r[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(r[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(ba(e),r)}else{const r=ba(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function Fg(e,t=!1){return Ld(e)||To(e)||!ii(e)||(Id(e)>1&&Object.defineProperties(e,{set:{value:dc},add:{value:dc},clear:{value:dc},delete:{value:dc}}),Object.freeze(e),t&&Object.values(e).forEach(n=>Fg(n,!0))),e}function dc(){xn(2)}function Ld(e){return Object.isFrozen(e)}var E$={};function Ao(e){const t=E$[e];return t||xn(0,e),t}var Ys;function rP(){return Ys}function _$(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function bx(e,t){t&&(Ao("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function im(e){om(e),e.drafts_.forEach(P$),e.drafts_=null}function om(e){e===Ys&&(Ys=e.parent_)}function xx(e){return Ys=_$(Ys,e)}function P$(e){const t=e[Bn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function wx(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Bn].modified_&&(im(t),xn(4)),ii(e)&&(e=xu(t,e),t.parent_||wu(t,e)),t.patches_&&Ao("Patches").generateReplacementPatches_(n[Bn].base_,e,t.patches_,t.inversePatches_)):e=xu(t,n,[]),im(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==eP?e:void 0}function xu(e,t,n){if(Ld(t))return t;const r=t[Bn];if(!r)return bu(t,(i,o)=>Ox(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return wu(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,a=!1;r.type_===3&&(o=new Set(i),i.clear(),a=!0),bu(o,(s,l)=>Ox(e,r,i,s,l,n,a)),wu(e,i,!1),n&&e.patches_&&Ao("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Ox(e,t,n,r,i,o,a){if(process.env.NODE_ENV!=="production"&&i===n&&xn(5),To(i)){const s=o&&t&&t.type_!==3&&!nm(t.assigned_,r)?o.concat(r):void 0,l=xu(e,i,s);if(nP(n,r,l),To(l))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(ii(i)&&!Ld(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;xu(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&(Tl(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&wu(e,i)}}function wu(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Fg(t,n)}function C$(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:rP(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=Bg;n&&(i=[r],o=Gs);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}var Bg={get(e,t){if(t===Bn)return e;const n=io(e);if(!nm(n,t))return T$(e,n,t);const r=n[t];return e.finalized_||!ii(r)?r:r===zp(e.base_,t)?(Vp(e),e.copy_[t]=sm(r,e)):r},has(e,t){return t in io(e)},ownKeys(e){return Reflect.ownKeys(io(e))},set(e,t,n){const r=iP(io(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=zp(io(e),t),o=i?.[Bn];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(S$(n,i)&&(n!==void 0||nm(e.base_,t)))return!0;Vp(e),am(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return zp(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Vp(e),am(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=io(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){xn(11)},getPrototypeOf(e){return ba(e.base_)},setPrototypeOf(){xn(12)}},Gs={};bu(Bg,(e,t)=>{Gs[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Gs.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&xn(13),Gs.set.call(this,e,t,void 0)};Gs.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&xn(14),Bg.set.call(this,e[0],t,n,e[0])};function zp(e,t){const n=e[Bn];return(n?io(n):e)[t]}function T$(e,t,n){const r=iP(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}function iP(e,t){if(!(t in e))return;let n=ba(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=ba(n)}}function am(e){e.modified_||(e.modified_=!0,e.parent_&&am(e.parent_))}function Vp(e){e.copy_||(e.copy_=rm(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var A$=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const a=this;return function(l=o,...c){return a.produce(l,u=>n.call(this,u,...c))}}typeof n!="function"&&xn(6),r!==void 0&&typeof r!="function"&&xn(7);let i;if(ii(t)){const o=xx(this),a=sm(t,void 0);let s=!0;try{i=n(a),s=!1}finally{s?im(o):om(o)}return bx(o,r),wx(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===eP&&(i=void 0),this.autoFreeze_&&Fg(i,!0),r){const o=[],a=[];Ao("Patches").generateReplacementPatches_(t,i,o,a),r(o,a)}return i}else xn(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let r,i;return[this.produce(t,n,(a,s)=>{r=a,i=s}),r,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){ii(e)||xn(8),To(e)&&(e=ei(e));const t=xx(this),n=sm(e,void 0);return n[Bn].isManual_=!0,om(t),n}finishDraft(e,t){const n=e&&e[Bn];(!n||!n.isManual_)&&xn(9);const{scope_:r}=n;return bx(r,t),wx(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Ao("Patches").applyPatches_;return To(e)?r(e,t):this.produce(e,i=>r(i,t))}};function sm(e,t){const n=Tl(e)?Ao("MapSet").proxyMap_(e,t):$d(e)?Ao("MapSet").proxySet_(e,t):C$(e,t);return(t?t.scope_:rP()).drafts_.push(n),n}function ei(e){return To(e)||xn(10,e),oP(e)}function oP(e){if(!ii(e)||Ld(e))return e;const t=e[Bn];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=rm(e,t.scope_.immer_.useStrictShallowCopy_)}else n=rm(e,!0);return bu(n,(r,i)=>{nP(n,r,oP(i))}),t&&(t.finalized_=!1),n}var k$=new A$,aP=k$.produce;function sP(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var M$=sP(),j$=sP,N$=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?yu:yu.apply(null,arguments)},R$=e=>e&&typeof e.match=="function";function rr(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(process.env.NODE_ENV==="production"?Ne(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>Lg(r)&&r.type===e,n}function D$(e){return typeof e=="function"&&"type"in e&&R$(e)}function I$(e){const t=e?`${e}`.split("/"):[],n=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
|
|
159
159
|
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${n}())\` instead of \`dispatch(${n})\`. This is necessary even if the action has no payload.`}function $$(e={}){if(process.env.NODE_ENV==="production")return()=>n=>r=>n(r);const{isActionCreator:t=D$}=e;return()=>n=>r=>(t(r)&&console.warn(I$(r.type)),n(r))}function lP(e,t){let n=0;return{measureTime(r){const i=Date.now();try{return r()}finally{const o=Date.now();n+=o-i}},warnIfExceeded(){n>e&&console.warn(`${t} took ${n}ms, which is more than the warning threshold of ${e}ms.
|
|
160
160
|
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
|
|
161
|
-
It is disabled in production builds, so you don't need to worry about that.`)}}}var cP=class
|
|
161
|
+
It is disabled in production builds, so you don't need to worry about that.`)}}}var cP=class Os extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Os.prototype)}static get[Symbol.species](){return Os}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Os(...t[0].concat(this)):new Os(...t.concat(this))}};function Sx(e){return ii(e)?aP(e,()=>{}):e}function fc(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function L$(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function F$(e,t,n){const r=uP(e,t,n);return{detectMutations(){return dP(e,t,r,n)}}}function uP(e,t=[],n,r="",i=new Set){const o={value:n};if(!e(n)&&!i.has(n)){i.add(n),o.children={};for(const a in n){const s=r?r+"."+a:a;t.length&&t.indexOf(s)!==-1||(o.children[a]=uP(e,t,n[a],s))}}return o}function dP(e,t=[],n,r,i=!1,o=""){const a=n?n.value:void 0,s=a===r;if(i&&!s&&!Number.isNaN(r))return{wasMutated:!0,path:o};if(e(a)||e(r))return{wasMutated:!1};const l={};for(let u in n.children)l[u]=!0;for(let u in r)l[u]=!0;const c=t.length>0;for(let u in l){const d=o?o+"."+u:u;if(c&&t.some(g=>g instanceof RegExp?g.test(d):d===g))continue;const p=dP(e,t,n.children[u],r[u],s,d);if(p.wasMutated)return p}return{wasMutated:!1}}function B$(e={}){if(process.env.NODE_ENV==="production")return()=>t=>n=>t(n);{let t=function(s,l,c,u){return JSON.stringify(s,n(l,u),c)},n=function(s,l){let c=[],u=[];return l||(l=function(d,p){return c[0]===p?"[Circular ~]":"[Circular ~."+u.slice(0,c.indexOf(p)).join(".")+"]"}),function(d,p){if(c.length>0){var h=c.indexOf(this);~h?c.splice(h+1):c.push(this),~h?u.splice(h,1/0,d):u.push(d),~c.indexOf(p)&&(p=l.call(this,d,p))}else c.push(p);return s==null?p:s.call(this,d,p)}},{isImmutable:r=L$,ignoredPaths:i,warnAfter:o=32}=e;const a=F$.bind(null,r,i);return({getState:s})=>{let l=s(),c=a(l),u;return d=>p=>{const h=lP(o,"ImmutableStateInvariantMiddleware");h.measureTime(()=>{if(l=s(),u=c.detectMutations(),c=a(l),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Ne(19):`A state mutation was detected between dispatches, in the path '${u.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const g=d(p);return h.measureTime(()=>{if(l=s(),u=c.detectMutations(),c=a(l),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Ne(20):`A state mutation was detected inside a dispatch, in the path: ${u.path||""}. Take a look at the reducer(s) handling the action ${t(p)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),h.warnIfExceeded(),g}}}}function fP(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Cl(e)}function lm(e,t="",n=fP,r,i=[],o){let a;if(!n(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||o?.has(e))return!1;const s=r!=null?r(e):Object.entries(e),l=i.length>0;for(const[c,u]of s){const d=t?t+"."+c:c;if(!(l&&i.some(h=>h instanceof RegExp?h.test(d):d===h))){if(!n(u))return{keyPath:d,value:u};if(typeof u=="object"&&(a=lm(u,d,n,r,i,o),a))return a}}return o&&pP(e)&&o.add(e),!1}function pP(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!pP(t))return!1;return!0}function z$(e={}){if(process.env.NODE_ENV==="production")return()=>t=>n=>t(n);{const{isSerializable:t=fP,getEntries:n,ignoredActions:r=[],ignoredActionPaths:i=["meta.arg","meta.baseQueryMeta"],ignoredPaths:o=[],warnAfter:a=32,ignoreState:s=!1,ignoreActions:l=!1,disableCache:c=!1}=e,u=!c&&WeakSet?new WeakSet:void 0;return d=>p=>h=>{if(!Lg(h))return p(h);const g=p(h),m=lP(a,"SerializableStateInvariantMiddleware");return!l&&!(r.length&&r.indexOf(h.type)!==-1)&&m.measureTime(()=>{const v=lm(h,"",t,n,i,u);if(v){const{keyPath:y,value:S}=v;console.error(`A non-serializable value was detected in an action, in the path: \`${y}\`. Value:`,S,`
|
|
162
162
|
Take a look at the logic that dispatched this action: `,h,`
|
|
163
163
|
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
|
|
164
164
|
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),s||(m.measureTime(()=>{const v=d.getState(),y=lm(v,"",t,n,o,u);if(y){const{keyPath:S,value:x}=y;console.error(`A non-serializable value was detected in the state, in the path: \`${S}\`. Value:`,x,`
|
|
165
165
|
Take a look at the reducer(s) handling this action type: ${h.type}.
|
|
166
|
-
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),m.warnIfExceeded()),g}}}function pc(e){return typeof e=="boolean"}var V$=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new cP;if(n&&(pc(n)?a.push(M$):a.push(j$(n.extraArgument))),process.env.NODE_ENV!=="production"){if(r){let s={};pc(r)||(s=r),a.unshift(B$(s))}if(i){let s={};pc(i)||(s=i),a.push(z$(s))}if(o){let s={};pc(o)||(s=o),a.unshift($$(s))}}return a},W$="RTK_autoBatch",Ex=e=>t=>{setTimeout(t,e)},U$=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,a=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ex(10):e.type==="callback"?e.queueNotification:Ex(e.timeout),c=()=>{a=!1,o&&(o=!1,s.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){const d=()=>i&&u(),p=r.subscribe(d);return s.add(u),()=>{p(),s.delete(u)}},dispatch(u){try{return i=!u?.meta?.[W$],o=!i,o&&(a||(a=!0,l(c))),r.dispatch(u)}finally{i=!0}}})},H$=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new cP(e);return r&&i.push(U$(typeof r=="object"?r:void 0)),i};function q$(e){const t=V$(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:o=!0,preloadedState:a=void 0,enhancers:s=void 0}=e||{};let l;if(typeof n=="function")l=n;else if(Pl(n))l=Q_(n);else throw new Error(process.env.NODE_ENV==="production"?Ne(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&r&&typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?Ne(2):"`middleware` field must be a callback");let c;if(typeof r=="function"){if(c=r(t),process.env.NODE_ENV!=="production"&&!Array.isArray(c))throw new Error(process.env.NODE_ENV==="production"?Ne(3):"when using a middleware builder function, an array of middleware must be returned")}else c=t();if(process.env.NODE_ENV!=="production"&&c.some(m=>typeof m!="function"))throw new Error(process.env.NODE_ENV==="production"?Ne(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&o){let m=new Set;c.forEach(v=>{if(m.has(v))throw new Error(process.env.NODE_ENV==="production"?Ne(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");m.add(v)})}let u=yu;i&&(u=N$({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const d=x$(...c),p=H$(d);if(process.env.NODE_ENV!=="production"&&s&&typeof s!="function")throw new Error(process.env.NODE_ENV==="production"?Ne(5):"`enhancers` field must be a callback");let h=typeof s=="function"?s(p):p();if(process.env.NODE_ENV!=="production"&&!Array.isArray(h))throw new Error(process.env.NODE_ENV==="production"?Ne(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&h.some(m=>typeof m!="function"))throw new Error(process.env.NODE_ENV==="production"?Ne(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&c.length&&!h.includes(d)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=u(...h);return J_(l,a,g)}function hP(e){const t={},n=[];let r;const i={addCase(o,a){if(process.env.NODE_ENV!=="production"){if(n.length>0)throw new Error(process.env.NODE_ENV==="production"?Ne(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?Ne(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const s=typeof o=="string"?o:o.type;if(!s)throw new Error(process.env.NODE_ENV==="production"?Ne(28):"`builder.addCase` cannot be called with an empty action type");if(s in t)throw new Error(process.env.NODE_ENV==="production"?Ne(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${s}'`);return t[s]=a,i},addAsyncThunk(o,a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?Ne(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return a.pending&&(t[o.pending.type]=a.pending),a.rejected&&(t[o.rejected.type]=a.rejected),a.fulfilled&&(t[o.fulfilled.type]=a.fulfilled),a.settled&&n.push({matcher:o.settled,reducer:a.settled}),i},addMatcher(o,a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?Ne(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:o,reducer:a}),i},addDefaultCase(o){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?Ne(31):"`builder.addDefaultCase` can only be called once");return r=o,i}};return e(i),[t,n,r]}function K$(e){return typeof e=="function"}function Y$(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?Ne(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[n,r,i]=hP(t),o;if(K$(e))o=()=>Sx(e());else{const s=Sx(e);o=()=>s}function a(s=o(),l){let c=[n[l.type],...r.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[i]),c.reduce((u,d)=>{if(d)if(To(u)){const h=d(u,l);return h===void 0?u:h}else{if(ii(u))return aP(u,p=>d(p,l));{const p=d(u,l);if(p===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return u},s)}return a.getInitialState=o,a}var G$="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",X$=(e=21)=>{let t="",n=e;for(;n--;)t+=G$[Math.random()*64|0];return t},Z$=Symbol.for("rtk-slice-createasyncthunk");function J$(e,t){return`${e}/${t}`}function Q$({creators:e}={}){const t=e?.asyncThunk?.[Z$];return function(r){const{name:i,reducerPath:o=i}=r;if(!i)throw new Error(process.env.NODE_ENV==="production"?Ne(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&r.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const a=(typeof r.reducers=="function"?r.reducers(t5()):r.reducers)||{},s=Object.keys(a),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(x,b){const O=typeof x=="string"?x:x.type;if(!O)throw new Error(process.env.NODE_ENV==="production"?Ne(12):"`context.addCase` cannot be called with an empty action type");if(O in l.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?Ne(13):"`context.addCase` cannot be called with two reducers for the same action type: "+O);return l.sliceCaseReducersByType[O]=b,c},addMatcher(x,b){return l.sliceMatchers.push({matcher:x,reducer:b}),c},exposeAction(x,b){return l.actionCreators[x]=b,c},exposeCaseReducer(x,b){return l.sliceCaseReducersByName[x]=b,c}};s.forEach(x=>{const b=a[x],O={reducerName:x,type:J$(i,x),createNotation:typeof r.reducers=="function"};r5(b)?o5(O,b,c,t):n5(O,b,c)});function u(){if(process.env.NODE_ENV!=="production"&&typeof r.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?Ne(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[x={},b=[],O=void 0]=typeof r.extraReducers=="function"?hP(r.extraReducers):[r.extraReducers],E={...x,...l.sliceCaseReducersByType};return Y$(r.initialState,C=>{for(let T in E)C.addCase(T,E[T]);for(let T of l.sliceMatchers)C.addMatcher(T.matcher,T.reducer);for(let T of b)C.addMatcher(T.matcher,T.reducer);O&&C.addDefaultCase(O)})}const d=x=>x,p=new Map,h=new WeakMap;let g;function m(x,b){return g||(g=u()),g(x,b)}function v(){return g||(g=u()),g.getInitialState()}function y(x,b=!1){function O(C){let T=C[x];if(typeof T>"u"){if(b)T=fc(h,O,v);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Ne(15):"selectSlice returned undefined for an uninjected slice reducer")}return T}function E(C=d){const T=fc(p,b,()=>new WeakMap);return fc(T,C,()=>{const k={};for(const[R,M]of Object.entries(r.selectors??{}))k[R]=e5(M,C,()=>fc(h,C,v),b);return k})}return{reducerPath:x,getSelectors:E,get selectors(){return E(O)},selectSlice:O}}const S={name:i,reducer:m,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:v,...y(o),injectInto(x,{reducerPath:b,...O}={}){const E=b??o;return x.inject({reducerPath:E,reducer:m},O),{...S,...y(E,!0)}}};return S}}function e5(e,t,n,r){function i(o,...a){let s=t(o);if(typeof s>"u"){if(r)s=n();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Ne(16):"selectState returned undefined for an uninjected slice reducer")}return e(s,...a)}return i.unwrapped=e,i}var Un=Q$();function t5(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function n5({type:e,reducerName:t,createNotation:n},r,i){let o,a;if("reducer"in r){if(n&&!i5(r))throw new Error(process.env.NODE_ENV==="production"?Ne(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");o=r.reducer,a=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?rr(e,a):rr(e))}function r5(e){return e._reducerDefinitionType==="asyncThunk"}function i5(e){return e._reducerDefinitionType==="reducerWithPrepare"}function o5({type:e,reducerName:t},n,r,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?Ne(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:o,fulfilled:a,pending:s,rejected:l,settled:c,options:u}=n,d=i(e,o,u);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a),s&&r.addCase(d.pending,s),l&&r.addCase(d.rejected,l),c&&r.addMatcher(d.settled,c),r.exposeCaseReducer(t,{fulfilled:a||hc,pending:s||hc,rejected:l||hc,settled:c||hc})}function hc(){}var a5="task",mP="listener",gP="completed",zg="cancelled",s5=`task-${zg}`,l5=`task-${gP}`,cm=`${mP}-${zg}`,c5=`${mP}-${gP}`,Fd=class{constructor(e){this.code=e,this.message=`${a5} ${zg} (reason: ${e})`}name="TaskAbortError";message},Vg=(e,t)=>{if(typeof e!="function")throw new TypeError(process.env.NODE_ENV==="production"?Ne(32):`${t} is not a function`)},Ou=()=>{},vP=(e,t=Ou)=>(e.catch(t),e),yP=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),wo=(e,t)=>{const n=e.signal;n.aborted||("reason"in n||Object.defineProperty(n,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},Oo=e=>{if(e.aborted){const{reason:t}=e;throw new Fd(t)}};function bP(e,t){let n=Ou;return new Promise((r,i)=>{const o=()=>i(new Fd(e.reason));if(e.aborted){o();return}n=yP(e,o),t.finally(()=>n()).then(r,i)}).finally(()=>{n=Ou})}var u5=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof Fd?"cancelled":"rejected",error:n}}finally{t?.()}},Su=e=>t=>vP(bP(e,t).then(n=>(Oo(e),n))),xP=e=>{const t=Su(e);return n=>t(new Promise(r=>setTimeout(r,n)))},{assign:da}=Object,_x={},Tl="listenerMiddleware",d5=(e,t)=>{const n=r=>yP(e,()=>wo(r,e.reason));return(r,i)=>{Vg(r,"taskExecutor");const o=new AbortController;n(o);const a=u5(async()=>{Oo(e),Oo(o.signal);const s=await r({pause:Su(o.signal),delay:xP(o.signal),signal:o.signal});return Oo(o.signal),s},()=>wo(o,l5));return i?.autoJoin&&t.push(a.catch(Ou)),{result:Su(e)(a),cancel(){wo(o,s5)}}}},f5=(e,t)=>{const n=async(r,i)=>{Oo(t);let o=()=>{};const s=[new Promise((l,c)=>{let u=e({predicate:r,effect:(d,p)=>{p.unsubscribe(),l([d,p.getState(),p.getOriginalState()])}});o=()=>{u(),c()}})];i!=null&&s.push(new Promise(l=>setTimeout(l,i,null)));try{const l=await bP(t,Promise.race(s));return Oo(t),l}finally{o()}};return(r,i)=>vP(n(r,i))},wP=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=rr(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(process.env.NODE_ENV==="production"?Ne(21):"Creating or removing a listener requires one of the known fields for matching an action");return Vg(o,"options.listener"),{predicate:i,type:t,effect:o}},OP=da(e=>{const{type:t,predicate:n,effect:r}=wP(e);return{id:X$(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?Ne(22):"Unsubscribe not initialized")}}},{withTypes:()=>OP}),Px=(e,t)=>{const{type:n,effect:r,predicate:i}=wP(t);return Array.from(e.values()).find(o=>(typeof n=="string"?o.type===n:o.predicate===i)&&o.effect===r)},um=e=>{e.pending.forEach(t=>{wo(t,cm)})},p5=e=>()=>{e.forEach(um),e.clear()},Cx=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout(()=>{throw r},0)}},SP=da(rr(`${Tl}/add`),{withTypes:()=>SP}),h5=rr(`${Tl}/removeAll`),EP=da(rr(`${Tl}/remove`),{withTypes:()=>EP}),m5=(...e)=>{console.error(`${Tl}/error`,...e)},Al=(e={})=>{const t=new Map,{extra:n,onError:r=m5}=e;Vg(r,"onError");const i=u=>(u.unsubscribe=()=>t.delete(u.id),t.set(u.id,u),d=>{u.unsubscribe(),d?.cancelActive&&um(u)}),o=u=>{const d=Px(t,u)??OP(u);return i(d)};da(o,{withTypes:()=>o});const a=u=>{const d=Px(t,u);return d&&(d.unsubscribe(),u.cancelActive&&um(d)),!!d};da(a,{withTypes:()=>a});const s=async(u,d,p,h)=>{const g=new AbortController,m=f5(o,g.signal),v=[];try{u.pending.add(g),await Promise.resolve(u.effect(d,da({},p,{getOriginalState:h,condition:(y,S)=>m(y,S).then(Boolean),take:m,delay:xP(g.signal),pause:Su(g.signal),extra:n,signal:g.signal,fork:d5(g.signal,v),unsubscribe:u.unsubscribe,subscribe:()=>{t.set(u.id,u)},cancelActiveListeners:()=>{u.pending.forEach((y,S,x)=>{y!==g&&(wo(y,cm),x.delete(y))})},cancel:()=>{wo(g,cm),u.pending.delete(g)},throwIfCancelled:()=>{Oo(g.signal)}})))}catch(y){y instanceof Fd||Cx(r,y,{raisedBy:"effect"})}finally{await Promise.all(v),wo(g,c5),u.pending.delete(g)}},l=p5(t);return{middleware:u=>d=>p=>{if(!Lg(p))return d(p);if(SP.match(p))return o(p.payload);if(h5.match(p)){l();return}if(EP.match(p))return a(p.payload);let h=u.getState();const g=()=>{if(h===_x)throw new Error(process.env.NODE_ENV==="production"?Ne(23):`${Tl}: getOriginalState can only be called synchronously`);return h};let m;try{if(m=d(p),t.size>0){const v=u.getState(),y=Array.from(t.values());for(const S of y){let x=!1;try{x=S.predicate(p,v,h)}catch(b){x=!1,Cx(r,b,{raisedBy:"predicate"})}x&&s(S,p,u,g)}}}finally{h=_x}return m},startListening:o,stopListening:a,clearListeners:l}};function Ne(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var g5={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},_P=Un({name:"chartLayout",initialState:g5,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var n,r,i,o;e.margin.top=(n=t.payload.top)!==null&&n!==void 0?n:0,e.margin.right=(r=t.payload.right)!==null&&r!==void 0?r:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left=(o=t.payload.left)!==null&&o!==void 0?o:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:v5,setLayout:y5,setChartSize:b5,setScale:x5}=_P.actions,w5=_P.reducer;function Tx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ax(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tx(Object(n),!0).forEach(function(r){O5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function O5(e,t,n){return(t=S5(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S5(e){var t=E5(e,"string");return typeof t=="symbol"?t:t+""}function E5(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Eu=Math.PI/180,_5=e=>e*180/Math.PI,Nt=(e,t,n,r)=>({x:e+Math.cos(-Eu*r)*n,y:t+Math.sin(-Eu*r)*n}),PP=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},P5=(e,t)=>{var{x:n,y:r}=e,{x:i,y:o}=t;return Math.sqrt((n-i)**2+(r-o)**2)},C5=(e,t)=>{var{x:n,y:r}=e,{cx:i,cy:o}=t,a=P5({x:n,y:r},{x:i,y:o});if(a<=0)return{radius:a,angle:0};var s=(n-i)/a,l=Math.acos(s);return r>o&&(l=2*Math.PI-l),{radius:a,angle:_5(l),angleInRadian:l}},T5=e=>{var{startAngle:t,endAngle:n}=e,r=Math.floor(t/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:t-o*360,endAngle:n-o*360}},A5=(e,t)=>{var{startAngle:n,endAngle:r}=t,i=Math.floor(n/360),o=Math.floor(r/360),a=Math.min(i,o);return e+a*360},k5=(e,t)=>{var{x:n,y:r}=e,{radius:i,angle:o}=C5({x:n,y:r},t),{innerRadius:a,outerRadius:s}=t;if(i<a||i>s||i===0)return null;var{startAngle:l,endAngle:c}=T5(t),u=o,d;if(l<=c){for(;u>c;)u-=360;for(;u<l;)u+=360;d=u>=l&&u<=c}else{for(;u>l;)u-=360;for(;u<c;)u+=360;d=u>=c&&u<=l}return d?Ax(Ax({},t),{},{radius:i,angle:A5(u,t)}):null};function CP(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function kx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function er(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kx(Object(n),!0).forEach(function(r){M5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function M5(e,t,n){return(t=j5(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j5(e){var t=N5(e,"string");return typeof t=="symbol"?t:t+""}function N5(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function at(e,t,n){return mt(e)||mt(t)?n:Rr(t)?Co(e,t,n):typeof t=="function"?t(e):n}var R5=(e,t,n,r,i)=>{var o,a=-1,s=(o=t?.length)!==null&&o!==void 0?o:0;if(s<=1||e==null)return 0;if(r==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var l=0;l<s;l++){var c=l>0?n[l-1].coordinate:n[s-1].coordinate,u=n[l].coordinate,d=l>=s-1?n[0].coordinate:n[l+1].coordinate,p=void 0;if(Ut(u-c)!==Ut(d-u)){var h=[];if(Ut(d-u)===Ut(i[1]-i[0])){p=d;var g=u+i[1]-i[0];h[0]=Math.min(g,(g+c)/2),h[1]=Math.max(g,(g+c)/2)}else{p=c;var m=d+i[1]-i[0];h[0]=Math.min(u,(m+u)/2),h[1]=Math.max(u,(m+u)/2)}var v=[Math.min(u,(p+u)/2),Math.max(u,(p+u)/2)];if(e>v[0]&&e<=v[1]||e>=h[0]&&e<=h[1]){({index:a}=n[l]);break}}else{var y=Math.min(c,d),S=Math.max(c,d);if(e>(y+u)/2&&e<=(S+u)/2){({index:a}=n[l]);break}}}else if(t){for(var x=0;x<s;x++)if(x===0&&e<=(t[x].coordinate+t[x+1].coordinate)/2||x>0&&x<s-1&&e>(t[x].coordinate+t[x-1].coordinate)/2&&e<=(t[x].coordinate+t[x+1].coordinate)/2||x===s-1&&e>(t[x].coordinate+t[x-1].coordinate)/2){({index:a}=t[x]);break}}return a},D5=(e,t,n)=>{if(t&&n){var{width:r,height:i}=n,{align:o,verticalAlign:a,layout:s}=t;if((s==="vertical"||s==="horizontal"&&a==="middle")&&o!=="center"&&ge(e[o]))return er(er({},e),{},{[o]:e[o]+(r||0)});if((s==="horizontal"||s==="vertical"&&o==="center")&&a!=="middle"&&ge(e[a]))return er(er({},e),{},{[a]:e[a]+(i||0)})}return e},Bi=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",TP=(e,t,n,r)=>{if(r)return e.map(s=>s.coordinate);var i,o,a=e.map(s=>(s.coordinate===t&&(i=!0),s.coordinate===n&&(o=!0),s.coordinate));return i||a.push(t),o||a.push(n),a},AP=(e,t,n)=>{if(!e)return null;var{duplicateDomain:r,type:i,range:o,scale:a,realScaleType:s,isCategorical:l,categoricalDomain:c,tickCount:u,ticks:d,niceTicks:p,axisType:h}=e;if(!a)return null;var g=s==="scaleBand"&&a.bandwidth?a.bandwidth()/2:2,m=i==="category"&&a.bandwidth?a.bandwidth()/g:0;if(m=h==="angleAxis"&&o&&o.length>=2?Ut(o[0]-o[1])*2*m:m,d||p){var v=(d||p||[]).map((y,S)=>{var x=r?r.indexOf(y):y;return{coordinate:a(x)+m,value:y,offset:m,index:S}});return v.filter(y=>!Fn(y.coordinate))}return l&&c?c.map((y,S)=>({coordinate:a(y)+m,value:y,index:S,offset:m})):a.ticks&&u!=null?a.ticks(u).map((y,S)=>({coordinate:a(y)+m,value:y,offset:m,index:S})):a.domain().map((y,S)=>({coordinate:a(y)+m,value:r?r[y]:y,index:S,offset:m}))},Mx=1e-4,I5=e=>{var t=e.domain();if(!(!t||t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-Mx,o=Math.max(r[0],r[1])+Mx,a=e(t[0]),s=e(t[n-1]);(a<i||a>o||s<i||s>o)&&e.domain([t[0],t[n-1]])}},$5=(e,t)=>{if(!t||t.length!==2||!ge(t[0])||!ge(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!ge(e[0])||e[0]<n)&&(i[0]=n),(!ge(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},L5=e=>{var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0,a=0;a<t;++a){var s=Fn(e[a][n][1])?e[a][n][0]:e[a][n][1];s>=0?(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1]):(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1])}},F5=e=>{var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0;o<t;++o){var a=Fn(e[o][n][1])?e[o][n][0]:e[o][n][1];a>=0?(e[o][n][0]=i,e[o][n][1]=i+a,i=e[o][n][1]):(e[o][n][0]=0,e[o][n][1]=0)}},B5={sign:L5,expand:tI,none:ya,silhouette:nI,wiggle:rI,positive:F5},z5=(e,t,n)=>{var r=B5[n],i=eI().keys(t).value((o,a)=>+at(o,a,0)).order(em).offset(r);return i(e)};function V5(e){return e==null?void 0:String(e)}function jx(e){var{axis:t,ticks:n,bandSize:r,entry:i,index:o,dataKey:a}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!mt(i[t.dataKey])){var s=g_(n,"value",i[t.dataKey]);if(s)return s.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var l=at(i,mt(a)?t.dataKey:a);return mt(l)?null:t.scale(l)}var Nx=e=>{var{axis:t,ticks:n,offset:r,bandSize:i,entry:o,index:a}=e;if(t.type==="category")return n[a]?n[a].coordinate+r:null;var s=at(o,t.dataKey,t.scale.domain()[a]);return mt(s)?null:t.scale(s)-i/2+r},W5=e=>{var{numericAxis:t}=e,n=t.scale.domain();if(t.type==="number"){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},U5=e=>{var t=e.flat(2).filter(ge);return[Math.min(...t),Math.max(...t)]},H5=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],q5=(e,t,n)=>{if(e!=null)return H5(Object.keys(e).reduce((r,i)=>{var o=e[i],{stackedData:a}=o,s=a.reduce((l,c)=>{var u=CP(c,t,n),d=U5(u);return[Math.min(l[0],d[0]),Math.max(l[1],d[1])]},[1/0,-1/0]);return[Math.min(s[0],r[0]),Math.max(s[1],r[1])]},[1/0,-1/0]))},Rx=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Dx=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Gs=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=Dd(t,u=>u.coordinate),o=1/0,a=1,s=i.length;a<s;a++){var l=i[a],c=i[a-1];o=Math.min((l.coordinate||0)-(c.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0};function Ix(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:i,name:o}=e;return er(er({},t),{},{dataKey:n,payload:r,value:i,name:o})}function Ra(e,t){if(e)return String(e);if(typeof t=="string")return t}function K5(e,t,n,r,i){if(n==="horizontal"||n==="vertical"){var o=e>=i.left&&e<=i.left+i.width&&t>=i.top&&t<=i.top+i.height;return o?{x:e,y:t}:null}return r?k5({x:e,y:t},r):null}var Y5=(e,t,n,r)=>{var i=t.find(c=>c&&c.index===n);if(i){if(e==="horizontal")return{x:i.coordinate,y:r.y};if(e==="vertical")return{x:r.x,y:i.coordinate};if(e==="centric"){var o=i.coordinate,{radius:a}=r;return er(er(er({},r),Nt(r.cx,r.cy,a,o)),{},{angle:o,radius:a})}var s=i.coordinate,{angle:l}=r;return er(er(er({},r),Nt(r.cx,r.cy,s,l)),{},{angle:l,radius:s})}return{x:0,y:0}},G5=(e,t)=>t==="horizontal"?e.x:t==="vertical"?e.y:t==="centric"?e.angle:e.radius,di=e=>e.layout.width,fi=e=>e.layout.height,X5=e=>e.layout.scale,kP=e=>e.layout.margin,Bd=V(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),zd=V(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),MP="data-recharts-item-index",jP="data-recharts-item-data-key",kl=60;function $x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function mc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$x(Object(n),!0).forEach(function(r){Z5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$x(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Z5(e,t,n){return(t=J5(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J5(e){var t=Q5(e,"string");return typeof t=="symbol"?t:t+""}function Q5(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var eL=e=>e.brush.height;function tL(e){var t=zd(e);return t.reduce((n,r)=>{if(r.orientation==="left"&&!r.mirror&&!r.hide){var i=typeof r.width=="number"?r.width:kl;return n+i}return n},0)}function nL(e){var t=zd(e);return t.reduce((n,r)=>{if(r.orientation==="right"&&!r.mirror&&!r.hide){var i=typeof r.width=="number"?r.width:kl;return n+i}return n},0)}function rL(e){var t=Bd(e);return t.reduce((n,r)=>r.orientation==="top"&&!r.mirror&&!r.hide?n+r.height:n,0)}function iL(e){var t=Bd(e);return t.reduce((n,r)=>r.orientation==="bottom"&&!r.mirror&&!r.hide?n+r.height:n,0)}var $t=V([di,fi,kP,eL,tL,nL,rL,iL,Z_,c$],(e,t,n,r,i,o,a,s,l,c)=>{var u={left:(n.left||0)+i,right:(n.right||0)+o},d={top:(n.top||0)+a,bottom:(n.bottom||0)+s},p=mc(mc({},d),u),h=p.bottom;p.bottom+=r,p=D5(p,l,c);var g=e-p.left-p.right,m=t-p.top-p.bottom;return mc(mc({brushBottom:h},p),{},{width:Math.max(g,0),height:Math.max(m,0)})}),oL=V($t,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Wg=V(di,fi,(e,t)=>({x:0,y:0,width:e,height:t})),aL=I.createContext(null),Cn=()=>I.useContext(aL)!=null,Vd=e=>e.brush,Wd=V([Vd,$t,kP],(e,t,n)=>({height:e.height,x:ge(e.x)?e.x:t.left,y:ge(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:ge(e.width)?e.width:t.width})),Ug=()=>{var e,t=Cn(),n=he(oL),r=he(Wd),i=(e=he(Vd))===null||e===void 0?void 0:e.padding;return!t||!r||!i?n:{width:r.width-i.left-i.right,height:r.height-i.top-i.bottom,x:i.left,y:i.top}},sL={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},NP=()=>{var e;return(e=he($t))!==null&&e!==void 0?e:sL},RP=()=>he(di),DP=()=>he(fi),Ce=e=>e.layout.layoutType,Ud=()=>he(Ce),lL={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},IP=Un({name:"legend",initialState:lL,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload(e,t){e.payload.push(t.payload)},removeLegendPayload(e,t){var n=ei(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)}}}),{setLegendSize:Hte,setLegendSettings:qte,addLegendPayload:$P,removeLegendPayload:LP}=IP.actions,cL=IP.reducer;function dm(){return dm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dm.apply(null,arguments)}function Lx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Wp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Lx(Object(n),!0).forEach(function(r){uL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uL(e,t,n){return(t=dL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dL(e){var t=fL(e,"string");return typeof t=="symbol"?t:t+""}function fL(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pL(e){return Array.isArray(e)&&Rr(e[0])&&Rr(e[1])?e.join(" ~ "):e}var hL=e=>{var{separator:t=" : ",contentStyle:n={},itemStyle:r={},labelStyle:i={},payload:o,formatter:a,itemSorter:s,wrapperClassName:l,labelClassName:c,label:u,labelFormatter:d,accessibilityLayer:p=!1}=e,h=()=>{if(o&&o.length){var O={padding:0,margin:0},E=(s?Dd(o,s):o).map((C,T)=>{if(C.type==="none")return null;var k=C.formatter||a||pL,{value:R,name:M}=C,P=R,D=M;if(k){var j=k(R,M,C,T,o);if(Array.isArray(j))[P,D]=j;else if(j!=null)P=j;else return null}var N=Wp({display:"block",paddingTop:4,paddingBottom:4,color:C.color||"#000"},r);return _.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(T),style:N},Rr(D)?_.createElement("span",{className:"recharts-tooltip-item-name"},D):null,Rr(D)?_.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,_.createElement("span",{className:"recharts-tooltip-item-value"},P),_.createElement("span",{className:"recharts-tooltip-item-unit"},C.unit||""))});return _.createElement("ul",{className:"recharts-tooltip-item-list",style:O},E)}return null},g=Wp({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},n),m=Wp({margin:0},i),v=!mt(u),y=v?u:"",S=oe("recharts-default-tooltip",l),x=oe("recharts-tooltip-label",c);v&&d&&o!==void 0&&o!==null&&(y=d(u,o));var b=p?{role:"status","aria-live":"assertive"}:{};return _.createElement("div",dm({className:S,style:g},b),_.createElement("p",{className:x,style:m},_.isValidElement(y)?y:"".concat(y)),h())},Qa="recharts-tooltip-wrapper",mL={visibility:"hidden"};function gL(e){var{coordinate:t,translateX:n,translateY:r}=e;return oe(Qa,{["".concat(Qa,"-right")]:ge(n)&&t&&ge(t.x)&&n>=t.x,["".concat(Qa,"-left")]:ge(n)&&t&&ge(t.x)&&n<t.x,["".concat(Qa,"-bottom")]:ge(r)&&t&&ge(t.y)&&r>=t.y,["".concat(Qa,"-top")]:ge(r)&&t&&ge(t.y)&&r<t.y})}function Fx(e){var{allowEscapeViewBox:t,coordinate:n,key:r,offsetTopLeft:i,position:o,reverseDirection:a,tooltipDimension:s,viewBox:l,viewBoxDimension:c}=e;if(o&&ge(o[r]))return o[r];var u=n[r]-s-(i>0?i:0),d=n[r]+i;if(t[r])return a[r]?u:d;var p=l[r];if(p==null)return 0;if(a[r]){var h=u,g=p;return h<g?Math.max(d,p):Math.max(u,p)}if(c==null)return 0;var m=d+s,v=p+c;return m>v?Math.max(u,p):Math.max(d,p)}function vL(e){var{translateX:t,translateY:n,useTranslate3d:r}=e;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function yL(e){var{allowEscapeViewBox:t,coordinate:n,offsetTopLeft:r,position:i,reverseDirection:o,tooltipBox:a,useTranslate3d:s,viewBox:l}=e,c,u,d;return a.height>0&&a.width>0&&n?(u=Fx({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:l,viewBoxDimension:l.width}),d=Fx({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:l,viewBoxDimension:l.height}),c=vL({translateX:u,translateY:d,useTranslate3d:s})):c=mL,{cssProperties:c,cssClasses:gL({translateX:u,translateY:d,coordinate:n})}}function Bx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bx(Object(n),!0).forEach(function(r){fm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fm(e,t,n){return(t=bL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bL(e){var t=xL(e,"string");return typeof t=="symbol"?t:t+""}function xL(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class wL extends I.PureComponent{constructor(){super(...arguments),fm(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),fm(this,"handleKeyDown",t=>{if(t.key==="Escape"){var n,r,i,o;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(n=(r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==null&&n!==void 0?n:0,y:(i=(o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==null&&i!==void 0?i:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,n;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((n=this.props.coordinate)===null||n===void 0?void 0:n.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:n,animationDuration:r,animationEasing:i,children:o,coordinate:a,hasPayload:s,isAnimationActive:l,offset:c,position:u,reverseDirection:d,useTranslate3d:p,viewBox:h,wrapperStyle:g,lastBoundingBox:m,innerRef:v,hasPortalFromProps:y}=this.props,{cssClasses:S,cssProperties:x}=yL({allowEscapeViewBox:n,coordinate:a,offsetTopLeft:c,position:u,reverseDirection:d,tooltipBox:{height:m.height,width:m.width},useTranslate3d:p,viewBox:h}),b=y?{}:gc(gc({transition:l&&t?"transform ".concat(r,"ms ").concat(i):void 0},x),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&s?"visible":"hidden",position:"absolute",top:0,left:0}),O=gc(gc({},b),{},{visibility:!this.state.dismissed&&t&&s?"visible":"hidden"},g);return _.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:S,style:O,ref:v},o)}}var OL=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),zi={devToolsEnabled:!1,isSsr:OL()},FP=()=>he(e=>e.rootProps.accessibilityLayer);function zn(e){return Number.isFinite(e)}function xa(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function pm(){return pm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pm.apply(null,arguments)}function zx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Vx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zx(Object(n),!0).forEach(function(r){SL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function SL(e,t,n){return(t=EL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EL(e){var t=_L(e,"string");return typeof t=="symbol"?t:t+""}function _L(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wx={curveBasisClosed:WD,curveBasisOpen:UD,curveBasis:VD,curveBumpX:TD,curveBumpY:AD,curveLinearClosed:HD,curveLinear:Nd,curveMonotoneX:qD,curveMonotoneY:KD,curveNatural:YD,curveStep:GD,curveStepAfter:ZD,curveStepBefore:XD},vc=e=>zn(e.x)&&zn(e.y),es=e=>e.x,ts=e=>e.y,PL=(e,t)=>{if(typeof e=="function")return e;var n="curve".concat(_l(e));return(n==="curveMonotone"||n==="curveBump")&&t?Wx["".concat(n).concat(t==="vertical"?"Y":"X")]:Wx[n]||Nd},CL=e=>{var{type:t="linear",points:n=[],baseLine:r,layout:i,connectNulls:o=!1}=e,a=PL(t,i),s=o?n.filter(vc):n,l;if(Array.isArray(r)){var c=o?r.filter(d=>vc(d)):r,u=s.map((d,p)=>Vx(Vx({},d),{},{base:c[p]}));return i==="vertical"?l=ac().y(ts).x1(es).x0(d=>d.base.x):l=ac().x(es).y1(ts).y0(d=>d.base.y),l.defined(vc).curve(a),l(u)}return i==="vertical"&&ge(r)?l=ac().y(ts).x1(es).x0(r):ge(r)?l=ac().x(es).y1(ts).y0(r):l=P_().x(es).y(ts),l.defined(vc).curve(a),l(s)},Hg=e=>{var{className:t,points:n,path:r,pathRef:i}=e;if((!n||!n.length)&&!r)return null;var o=n&&n.length?CL(e):r;return _.createElement("path",pm({},Lr(e),kg(e),{className:oe("recharts-curve",t),d:o===null?void 0:o,ref:i}))},TL=["x","y","top","left","width","height","className"];function hm(){return hm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hm.apply(null,arguments)}function Ux(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function AL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ux(Object(n),!0).forEach(function(r){kL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ux(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kL(e,t,n){return(t=ML(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ML(e){var t=jL(e,"string");return typeof t=="symbol"?t:t+""}function jL(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function NL(e,t){if(e==null)return{};var n,r,i=RL(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function RL(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var DL=(e,t,n,r,i,o)=>"M".concat(e,",").concat(i,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n),IL=e=>{var{x:t=0,y:n=0,top:r=0,left:i=0,width:o=0,height:a=0,className:s}=e,l=NL(e,TL),c=AL({x:t,y:n,top:r,left:i,width:o,height:a},l);return!ge(t)||!ge(n)||!ge(o)||!ge(a)||!ge(r)||!ge(i)?null:_.createElement("path",hm({},vt(c,!0),{className:oe("recharts-cross",s),d:DL(t,n,o,a,r,i)}))};function $L(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function Hx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function LL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hx(Object(n),!0).forEach(function(r){FL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function FL(e,t,n){return(t=BL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BL(e){var t=zL(e,"string");return typeof t=="symbol"?t:t+""}function zL(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function en(e,t){var n=LL({},e),r=t,i=Object.keys(t),o=i.reduce((a,s)=>(a[s]===void 0&&r[s]!==void 0&&(a[s]=r[s]),a),n);return o}function VL(){}function qx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Kx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qx(Object(n),!0).forEach(function(r){WL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WL(e,t,n){return(t=UL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UL(e){var t=HL(e,"string");return typeof t=="symbol"?t:t+""}function HL(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qL=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),BP=(e,t,n)=>e.map(r=>"".concat(qL(r)," ").concat(t,"ms ").concat(n)).join(","),KL=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((n,r)=>n.filter(i=>r.includes(i))),Xs=(e,t)=>Object.keys(t).reduce((n,r)=>Kx(Kx({},n),{},{[r]:e(r,t[r])}),{});function Yx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Zt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yx(Object(n),!0).forEach(function(r){YL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YL(e,t,n){return(t=GL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GL(e){var t=XL(e,"string");return typeof t=="symbol"?t:t+""}function XL(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _u=(e,t,n)=>e+(t-e)*n,mm=e=>{var{from:t,to:n}=e;return t!==n},zP=(e,t,n)=>{var r=Xs((i,o)=>{if(mm(o)){var[a,s]=e(o.from,o.to,o.velocity);return Zt(Zt({},o),{},{from:a,velocity:s})}return o},t);return n<1?Xs((i,o)=>mm(o)?Zt(Zt({},o),{},{velocity:_u(o.velocity,r[i].velocity,n),from:_u(o.from,r[i].from,n)}):o,t):zP(e,r,n-1)};function ZL(e,t,n,r,i,o){var a,s=r.reduce((p,h)=>Zt(Zt({},p),{},{[h]:{from:e[h],velocity:0,to:t[h]}}),{}),l=()=>Xs((p,h)=>h.from,s),c=()=>!Object.values(s).filter(mm).length,u=null,d=p=>{a||(a=p);var h=p-a,g=h/n.dt;s=zP(n,s,g),i(Zt(Zt(Zt({},e),t),l())),a=p,c()||(u=o.setTimeout(d))};return()=>(u=o.setTimeout(d),()=>{u()})}function JL(e,t,n,r,i,o,a){var s=null,l=i.reduce((d,p)=>Zt(Zt({},d),{},{[p]:[e[p],t[p]]}),{}),c,u=d=>{c||(c=d);var p=(d-c)/r,h=Xs((m,v)=>_u(...v,n(p)),l);if(o(Zt(Zt(Zt({},e),t),h)),p<1)s=a.setTimeout(u);else{var g=Xs((m,v)=>_u(...v,n(1)),l);o(Zt(Zt(Zt({},e),t),g))}};return()=>(s=a.setTimeout(u),()=>{s()})}const QL=(e,t,n,r,i,o)=>{var a=KL(e,t);return n.isStepper===!0?ZL(e,t,n,a,i,o):JL(e,t,n,r,a,i,o)};var Pu=1e-4,VP=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],WP=(e,t)=>e.map((n,r)=>n*t**r).reduce((n,r)=>n+r),Gx=(e,t)=>n=>{var r=VP(e,t);return WP(r,n)},eF=(e,t)=>n=>{var r=VP(e,t),i=[...r.map((o,a)=>o*a).slice(1),0];return WP(i,n)},Xx=function(){for(var t,n,r,i,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];if(a.length===1)switch(a[0]){case"linear":[t,r,n,i]=[0,0,1,1];break;case"ease":[t,r,n,i]=[.25,.1,.25,1];break;case"ease-in":[t,r,n,i]=[.42,0,1,1];break;case"ease-out":[t,r,n,i]=[.42,0,.58,1];break;case"ease-in-out":[t,r,n,i]=[0,0,.58,1];break;default:{var l=a[0].split("(");l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4&&([t,r,n,i]=l[1].split(")")[0].split(",").map(g=>parseFloat(g)))}}else a.length===4&&([t,r,n,i]=a);var c=Gx(t,n),u=Gx(r,i),d=eF(t,n),p=g=>g>1?1:g<0?0:g,h=g=>{for(var m=g>1?1:g,v=m,y=0;y<8;++y){var S=c(v)-m,x=d(v);if(Math.abs(S-m)<Pu||x<Pu)return u(v);v=p(v-S/x)}return u(v)};return h.isStepper=!1,h},tF=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:n=100,damping:r=8,dt:i=17}=t,o=(a,s,l)=>{var c=-(a-s)*n,u=l*r,d=l+(c-u)*i/1e3,p=l*i/1e3+a;return Math.abs(p-s)<Pu&&Math.abs(d)<Pu?[s,0]:[p,d]};return o.isStepper=!0,o.dt=i,o},nF=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Xx(e);case"spring":return tF();default:if(e.split("(")[0]==="cubic-bezier")return Xx(e)}return typeof e=="function"?e:null};function rF(e){var t,n=()=>null,r=!1,i=null,o=a=>{if(!r){if(Array.isArray(a)){if(!a.length)return;var s=a,[l,...c]=s;if(typeof l=="number"){i=e.setTimeout(o.bind(null,c),l);return}o(l),i=e.setTimeout(o.bind(null,c));return}typeof a=="string"&&(t=a,n(t)),typeof a=="object"&&(t=a,n(t)),typeof a=="function"&&a()}};return{stop:()=>{r=!0},start:a=>{r=!1,i&&(i(),i=null),o(a)},subscribe:a=>(n=a,()=>{n=()=>null}),getTimeoutController:()=>e}}class iF{setTimeout(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=performance.now(),i=null,o=a=>{a-r>=n?t(a):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(o))};return i=requestAnimationFrame(o),()=>{cancelAnimationFrame(i)}}}function oF(){return rF(new iF)}var aF=I.createContext(oF);function sF(e,t){var n=I.useContext(aF);return I.useMemo(()=>t??n(e),[e,t,n])}var lF={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},Zx={t:0},Up={t:1};function Ml(e){var t=en(e,lF),{isActive:n,canBegin:r,duration:i,easing:o,begin:a,onAnimationEnd:s,onAnimationStart:l,children:c}=t,u=sF(t.animationId,t.animationManager),[d,p]=I.useState(n?Zx:Up),h=I.useRef(null);return I.useEffect(()=>{n||p(Up)},[n]),I.useEffect(()=>{if(!n||!r)return VL;var g=QL(Zx,Up,nF(o),i,p,u.getTimeoutController()),m=()=>{h.current=g()};return u.start([l,a,m,i,s]),()=>{u.stop(),h.current&&h.current(),s()}},[n,r,i,o,a,l,s,u]),c(d.t)}function jl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",n=I.useRef(qs(t)),r=I.useRef(e);return r.current!==e&&(n.current=qs(t),r.current=e),n.current}function Jx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jx(Object(n),!0).forEach(function(r){cF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cF(e,t,n){return(t=uF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uF(e){var t=dF(e,"string");return typeof t=="symbol"?t:t+""}function dF(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cu(){return Cu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cu.apply(null,arguments)}var e1=(e,t,n,r,i)=>{var o=Math.min(Math.abs(n)/2,Math.abs(r)/2),a=r>=0?1:-1,s=n>=0?1:-1,l=r>=0&&n>=0||r<0&&n<0?1:0,c;if(o>0&&i instanceof Array){for(var u=[0,0,0,0],d=0,p=4;d<p;d++)u[d]=i[d]>o?o:i[d];c="M".concat(e,",").concat(t+a*u[0]),u[0]>0&&(c+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(l,",").concat(e+s*u[0],",").concat(t)),c+="L ".concat(e+n-s*u[1],",").concat(t),u[1]>0&&(c+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(l,`,
|
|
166
|
+
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),m.warnIfExceeded()),g}}}function pc(e){return typeof e=="boolean"}var V$=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new cP;if(n&&(pc(n)?a.push(M$):a.push(j$(n.extraArgument))),process.env.NODE_ENV!=="production"){if(r){let s={};pc(r)||(s=r),a.unshift(B$(s))}if(i){let s={};pc(i)||(s=i),a.push(z$(s))}if(o){let s={};pc(o)||(s=o),a.unshift($$(s))}}return a},W$="RTK_autoBatch",Ex=e=>t=>{setTimeout(t,e)},U$=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,a=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ex(10):e.type==="callback"?e.queueNotification:Ex(e.timeout),c=()=>{a=!1,o&&(o=!1,s.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){const d=()=>i&&u(),p=r.subscribe(d);return s.add(u),()=>{p(),s.delete(u)}},dispatch(u){try{return i=!u?.meta?.[W$],o=!i,o&&(a||(a=!0,l(c))),r.dispatch(u)}finally{i=!0}}})},H$=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new cP(e);return r&&i.push(U$(typeof r=="object"?r:void 0)),i};function q$(e){const t=V$(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:o=!0,preloadedState:a=void 0,enhancers:s=void 0}=e||{};let l;if(typeof n=="function")l=n;else if(Cl(n))l=Q_(n);else throw new Error(process.env.NODE_ENV==="production"?Ne(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&r&&typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?Ne(2):"`middleware` field must be a callback");let c;if(typeof r=="function"){if(c=r(t),process.env.NODE_ENV!=="production"&&!Array.isArray(c))throw new Error(process.env.NODE_ENV==="production"?Ne(3):"when using a middleware builder function, an array of middleware must be returned")}else c=t();if(process.env.NODE_ENV!=="production"&&c.some(m=>typeof m!="function"))throw new Error(process.env.NODE_ENV==="production"?Ne(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&o){let m=new Set;c.forEach(v=>{if(m.has(v))throw new Error(process.env.NODE_ENV==="production"?Ne(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");m.add(v)})}let u=yu;i&&(u=N$({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const d=x$(...c),p=H$(d);if(process.env.NODE_ENV!=="production"&&s&&typeof s!="function")throw new Error(process.env.NODE_ENV==="production"?Ne(5):"`enhancers` field must be a callback");let h=typeof s=="function"?s(p):p();if(process.env.NODE_ENV!=="production"&&!Array.isArray(h))throw new Error(process.env.NODE_ENV==="production"?Ne(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&h.some(m=>typeof m!="function"))throw new Error(process.env.NODE_ENV==="production"?Ne(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&c.length&&!h.includes(d)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=u(...h);return J_(l,a,g)}function hP(e){const t={},n=[];let r;const i={addCase(o,a){if(process.env.NODE_ENV!=="production"){if(n.length>0)throw new Error(process.env.NODE_ENV==="production"?Ne(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?Ne(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const s=typeof o=="string"?o:o.type;if(!s)throw new Error(process.env.NODE_ENV==="production"?Ne(28):"`builder.addCase` cannot be called with an empty action type");if(s in t)throw new Error(process.env.NODE_ENV==="production"?Ne(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${s}'`);return t[s]=a,i},addAsyncThunk(o,a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?Ne(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return a.pending&&(t[o.pending.type]=a.pending),a.rejected&&(t[o.rejected.type]=a.rejected),a.fulfilled&&(t[o.fulfilled.type]=a.fulfilled),a.settled&&n.push({matcher:o.settled,reducer:a.settled}),i},addMatcher(o,a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?Ne(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:o,reducer:a}),i},addDefaultCase(o){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?Ne(31):"`builder.addDefaultCase` can only be called once");return r=o,i}};return e(i),[t,n,r]}function K$(e){return typeof e=="function"}function Y$(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?Ne(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[n,r,i]=hP(t),o;if(K$(e))o=()=>Sx(e());else{const s=Sx(e);o=()=>s}function a(s=o(),l){let c=[n[l.type],...r.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[i]),c.reduce((u,d)=>{if(d)if(To(u)){const h=d(u,l);return h===void 0?u:h}else{if(ii(u))return aP(u,p=>d(p,l));{const p=d(u,l);if(p===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return u},s)}return a.getInitialState=o,a}var G$="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",X$=(e=21)=>{let t="",n=e;for(;n--;)t+=G$[Math.random()*64|0];return t},Z$=Symbol.for("rtk-slice-createasyncthunk");function J$(e,t){return`${e}/${t}`}function Q$({creators:e}={}){const t=e?.asyncThunk?.[Z$];return function(r){const{name:i,reducerPath:o=i}=r;if(!i)throw new Error(process.env.NODE_ENV==="production"?Ne(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&r.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const a=(typeof r.reducers=="function"?r.reducers(t5()):r.reducers)||{},s=Object.keys(a),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(x,b){const O=typeof x=="string"?x:x.type;if(!O)throw new Error(process.env.NODE_ENV==="production"?Ne(12):"`context.addCase` cannot be called with an empty action type");if(O in l.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?Ne(13):"`context.addCase` cannot be called with two reducers for the same action type: "+O);return l.sliceCaseReducersByType[O]=b,c},addMatcher(x,b){return l.sliceMatchers.push({matcher:x,reducer:b}),c},exposeAction(x,b){return l.actionCreators[x]=b,c},exposeCaseReducer(x,b){return l.sliceCaseReducersByName[x]=b,c}};s.forEach(x=>{const b=a[x],O={reducerName:x,type:J$(i,x),createNotation:typeof r.reducers=="function"};r5(b)?o5(O,b,c,t):n5(O,b,c)});function u(){if(process.env.NODE_ENV!=="production"&&typeof r.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?Ne(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[x={},b=[],O=void 0]=typeof r.extraReducers=="function"?hP(r.extraReducers):[r.extraReducers],E={...x,...l.sliceCaseReducersByType};return Y$(r.initialState,C=>{for(let T in E)C.addCase(T,E[T]);for(let T of l.sliceMatchers)C.addMatcher(T.matcher,T.reducer);for(let T of b)C.addMatcher(T.matcher,T.reducer);O&&C.addDefaultCase(O)})}const d=x=>x,p=new Map,h=new WeakMap;let g;function m(x,b){return g||(g=u()),g(x,b)}function v(){return g||(g=u()),g.getInitialState()}function y(x,b=!1){function O(C){let T=C[x];if(typeof T>"u"){if(b)T=fc(h,O,v);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Ne(15):"selectSlice returned undefined for an uninjected slice reducer")}return T}function E(C=d){const T=fc(p,b,()=>new WeakMap);return fc(T,C,()=>{const k={};for(const[R,M]of Object.entries(r.selectors??{}))k[R]=e5(M,C,()=>fc(h,C,v),b);return k})}return{reducerPath:x,getSelectors:E,get selectors(){return E(O)},selectSlice:O}}const S={name:i,reducer:m,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:v,...y(o),injectInto(x,{reducerPath:b,...O}={}){const E=b??o;return x.inject({reducerPath:E,reducer:m},O),{...S,...y(E,!0)}}};return S}}function e5(e,t,n,r){function i(o,...a){let s=t(o);if(typeof s>"u"){if(r)s=n();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Ne(16):"selectState returned undefined for an uninjected slice reducer")}return e(s,...a)}return i.unwrapped=e,i}var Un=Q$();function t5(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function n5({type:e,reducerName:t,createNotation:n},r,i){let o,a;if("reducer"in r){if(n&&!i5(r))throw new Error(process.env.NODE_ENV==="production"?Ne(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");o=r.reducer,a=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?rr(e,a):rr(e))}function r5(e){return e._reducerDefinitionType==="asyncThunk"}function i5(e){return e._reducerDefinitionType==="reducerWithPrepare"}function o5({type:e,reducerName:t},n,r,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?Ne(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:o,fulfilled:a,pending:s,rejected:l,settled:c,options:u}=n,d=i(e,o,u);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a),s&&r.addCase(d.pending,s),l&&r.addCase(d.rejected,l),c&&r.addMatcher(d.settled,c),r.exposeCaseReducer(t,{fulfilled:a||hc,pending:s||hc,rejected:l||hc,settled:c||hc})}function hc(){}var a5="task",mP="listener",gP="completed",zg="cancelled",s5=`task-${zg}`,l5=`task-${gP}`,cm=`${mP}-${zg}`,c5=`${mP}-${gP}`,Fd=class{constructor(e){this.code=e,this.message=`${a5} ${zg} (reason: ${e})`}name="TaskAbortError";message},Vg=(e,t)=>{if(typeof e!="function")throw new TypeError(process.env.NODE_ENV==="production"?Ne(32):`${t} is not a function`)},Ou=()=>{},vP=(e,t=Ou)=>(e.catch(t),e),yP=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),wo=(e,t)=>{const n=e.signal;n.aborted||("reason"in n||Object.defineProperty(n,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},Oo=e=>{if(e.aborted){const{reason:t}=e;throw new Fd(t)}};function bP(e,t){let n=Ou;return new Promise((r,i)=>{const o=()=>i(new Fd(e.reason));if(e.aborted){o();return}n=yP(e,o),t.finally(()=>n()).then(r,i)}).finally(()=>{n=Ou})}var u5=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof Fd?"cancelled":"rejected",error:n}}finally{t?.()}},Su=e=>t=>vP(bP(e,t).then(n=>(Oo(e),n))),xP=e=>{const t=Su(e);return n=>t(new Promise(r=>setTimeout(r,n)))},{assign:da}=Object,_x={},Al="listenerMiddleware",d5=(e,t)=>{const n=r=>yP(e,()=>wo(r,e.reason));return(r,i)=>{Vg(r,"taskExecutor");const o=new AbortController;n(o);const a=u5(async()=>{Oo(e),Oo(o.signal);const s=await r({pause:Su(o.signal),delay:xP(o.signal),signal:o.signal});return Oo(o.signal),s},()=>wo(o,l5));return i?.autoJoin&&t.push(a.catch(Ou)),{result:Su(e)(a),cancel(){wo(o,s5)}}}},f5=(e,t)=>{const n=async(r,i)=>{Oo(t);let o=()=>{};const s=[new Promise((l,c)=>{let u=e({predicate:r,effect:(d,p)=>{p.unsubscribe(),l([d,p.getState(),p.getOriginalState()])}});o=()=>{u(),c()}})];i!=null&&s.push(new Promise(l=>setTimeout(l,i,null)));try{const l=await bP(t,Promise.race(s));return Oo(t),l}finally{o()}};return(r,i)=>vP(n(r,i))},wP=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=rr(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(process.env.NODE_ENV==="production"?Ne(21):"Creating or removing a listener requires one of the known fields for matching an action");return Vg(o,"options.listener"),{predicate:i,type:t,effect:o}},OP=da(e=>{const{type:t,predicate:n,effect:r}=wP(e);return{id:X$(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?Ne(22):"Unsubscribe not initialized")}}},{withTypes:()=>OP}),Px=(e,t)=>{const{type:n,effect:r,predicate:i}=wP(t);return Array.from(e.values()).find(o=>(typeof n=="string"?o.type===n:o.predicate===i)&&o.effect===r)},um=e=>{e.pending.forEach(t=>{wo(t,cm)})},p5=e=>()=>{e.forEach(um),e.clear()},Cx=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout(()=>{throw r},0)}},SP=da(rr(`${Al}/add`),{withTypes:()=>SP}),h5=rr(`${Al}/removeAll`),EP=da(rr(`${Al}/remove`),{withTypes:()=>EP}),m5=(...e)=>{console.error(`${Al}/error`,...e)},kl=(e={})=>{const t=new Map,{extra:n,onError:r=m5}=e;Vg(r,"onError");const i=u=>(u.unsubscribe=()=>t.delete(u.id),t.set(u.id,u),d=>{u.unsubscribe(),d?.cancelActive&&um(u)}),o=u=>{const d=Px(t,u)??OP(u);return i(d)};da(o,{withTypes:()=>o});const a=u=>{const d=Px(t,u);return d&&(d.unsubscribe(),u.cancelActive&&um(d)),!!d};da(a,{withTypes:()=>a});const s=async(u,d,p,h)=>{const g=new AbortController,m=f5(o,g.signal),v=[];try{u.pending.add(g),await Promise.resolve(u.effect(d,da({},p,{getOriginalState:h,condition:(y,S)=>m(y,S).then(Boolean),take:m,delay:xP(g.signal),pause:Su(g.signal),extra:n,signal:g.signal,fork:d5(g.signal,v),unsubscribe:u.unsubscribe,subscribe:()=>{t.set(u.id,u)},cancelActiveListeners:()=>{u.pending.forEach((y,S,x)=>{y!==g&&(wo(y,cm),x.delete(y))})},cancel:()=>{wo(g,cm),u.pending.delete(g)},throwIfCancelled:()=>{Oo(g.signal)}})))}catch(y){y instanceof Fd||Cx(r,y,{raisedBy:"effect"})}finally{await Promise.all(v),wo(g,c5),u.pending.delete(g)}},l=p5(t);return{middleware:u=>d=>p=>{if(!Lg(p))return d(p);if(SP.match(p))return o(p.payload);if(h5.match(p)){l();return}if(EP.match(p))return a(p.payload);let h=u.getState();const g=()=>{if(h===_x)throw new Error(process.env.NODE_ENV==="production"?Ne(23):`${Al}: getOriginalState can only be called synchronously`);return h};let m;try{if(m=d(p),t.size>0){const v=u.getState(),y=Array.from(t.values());for(const S of y){let x=!1;try{x=S.predicate(p,v,h)}catch(b){x=!1,Cx(r,b,{raisedBy:"predicate"})}x&&s(S,p,u,g)}}}finally{h=_x}return m},startListening:o,stopListening:a,clearListeners:l}};function Ne(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var g5={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},_P=Un({name:"chartLayout",initialState:g5,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var n,r,i,o;e.margin.top=(n=t.payload.top)!==null&&n!==void 0?n:0,e.margin.right=(r=t.payload.right)!==null&&r!==void 0?r:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left=(o=t.payload.left)!==null&&o!==void 0?o:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:v5,setLayout:y5,setChartSize:b5,setScale:x5}=_P.actions,w5=_P.reducer;function Tx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ax(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tx(Object(n),!0).forEach(function(r){O5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function O5(e,t,n){return(t=S5(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S5(e){var t=E5(e,"string");return typeof t=="symbol"?t:t+""}function E5(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Eu=Math.PI/180,_5=e=>e*180/Math.PI,Nt=(e,t,n,r)=>({x:e+Math.cos(-Eu*r)*n,y:t+Math.sin(-Eu*r)*n}),PP=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},P5=(e,t)=>{var{x:n,y:r}=e,{x:i,y:o}=t;return Math.sqrt((n-i)**2+(r-o)**2)},C5=(e,t)=>{var{x:n,y:r}=e,{cx:i,cy:o}=t,a=P5({x:n,y:r},{x:i,y:o});if(a<=0)return{radius:a,angle:0};var s=(n-i)/a,l=Math.acos(s);return r>o&&(l=2*Math.PI-l),{radius:a,angle:_5(l),angleInRadian:l}},T5=e=>{var{startAngle:t,endAngle:n}=e,r=Math.floor(t/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:t-o*360,endAngle:n-o*360}},A5=(e,t)=>{var{startAngle:n,endAngle:r}=t,i=Math.floor(n/360),o=Math.floor(r/360),a=Math.min(i,o);return e+a*360},k5=(e,t)=>{var{x:n,y:r}=e,{radius:i,angle:o}=C5({x:n,y:r},t),{innerRadius:a,outerRadius:s}=t;if(i<a||i>s||i===0)return null;var{startAngle:l,endAngle:c}=T5(t),u=o,d;if(l<=c){for(;u>c;)u-=360;for(;u<l;)u+=360;d=u>=l&&u<=c}else{for(;u>l;)u-=360;for(;u<c;)u+=360;d=u>=c&&u<=l}return d?Ax(Ax({},t),{},{radius:i,angle:A5(u,t)}):null};function CP(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function kx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function er(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kx(Object(n),!0).forEach(function(r){M5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function M5(e,t,n){return(t=j5(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j5(e){var t=N5(e,"string");return typeof t=="symbol"?t:t+""}function N5(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function at(e,t,n){return mt(e)||mt(t)?n:Rr(t)?Co(e,t,n):typeof t=="function"?t(e):n}var R5=(e,t,n,r,i)=>{var o,a=-1,s=(o=t?.length)!==null&&o!==void 0?o:0;if(s<=1||e==null)return 0;if(r==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var l=0;l<s;l++){var c=l>0?n[l-1].coordinate:n[s-1].coordinate,u=n[l].coordinate,d=l>=s-1?n[0].coordinate:n[l+1].coordinate,p=void 0;if(Ut(u-c)!==Ut(d-u)){var h=[];if(Ut(d-u)===Ut(i[1]-i[0])){p=d;var g=u+i[1]-i[0];h[0]=Math.min(g,(g+c)/2),h[1]=Math.max(g,(g+c)/2)}else{p=c;var m=d+i[1]-i[0];h[0]=Math.min(u,(m+u)/2),h[1]=Math.max(u,(m+u)/2)}var v=[Math.min(u,(p+u)/2),Math.max(u,(p+u)/2)];if(e>v[0]&&e<=v[1]||e>=h[0]&&e<=h[1]){({index:a}=n[l]);break}}else{var y=Math.min(c,d),S=Math.max(c,d);if(e>(y+u)/2&&e<=(S+u)/2){({index:a}=n[l]);break}}}else if(t){for(var x=0;x<s;x++)if(x===0&&e<=(t[x].coordinate+t[x+1].coordinate)/2||x>0&&x<s-1&&e>(t[x].coordinate+t[x-1].coordinate)/2&&e<=(t[x].coordinate+t[x+1].coordinate)/2||x===s-1&&e>(t[x].coordinate+t[x-1].coordinate)/2){({index:a}=t[x]);break}}return a},D5=(e,t,n)=>{if(t&&n){var{width:r,height:i}=n,{align:o,verticalAlign:a,layout:s}=t;if((s==="vertical"||s==="horizontal"&&a==="middle")&&o!=="center"&&ge(e[o]))return er(er({},e),{},{[o]:e[o]+(r||0)});if((s==="horizontal"||s==="vertical"&&o==="center")&&a!=="middle"&&ge(e[a]))return er(er({},e),{},{[a]:e[a]+(i||0)})}return e},Bi=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",TP=(e,t,n,r)=>{if(r)return e.map(s=>s.coordinate);var i,o,a=e.map(s=>(s.coordinate===t&&(i=!0),s.coordinate===n&&(o=!0),s.coordinate));return i||a.push(t),o||a.push(n),a},AP=(e,t,n)=>{if(!e)return null;var{duplicateDomain:r,type:i,range:o,scale:a,realScaleType:s,isCategorical:l,categoricalDomain:c,tickCount:u,ticks:d,niceTicks:p,axisType:h}=e;if(!a)return null;var g=s==="scaleBand"&&a.bandwidth?a.bandwidth()/2:2,m=i==="category"&&a.bandwidth?a.bandwidth()/g:0;if(m=h==="angleAxis"&&o&&o.length>=2?Ut(o[0]-o[1])*2*m:m,d||p){var v=(d||p||[]).map((y,S)=>{var x=r?r.indexOf(y):y;return{coordinate:a(x)+m,value:y,offset:m,index:S}});return v.filter(y=>!Fn(y.coordinate))}return l&&c?c.map((y,S)=>({coordinate:a(y)+m,value:y,index:S,offset:m})):a.ticks&&u!=null?a.ticks(u).map((y,S)=>({coordinate:a(y)+m,value:y,offset:m,index:S})):a.domain().map((y,S)=>({coordinate:a(y)+m,value:r?r[y]:y,index:S,offset:m}))},Mx=1e-4,I5=e=>{var t=e.domain();if(!(!t||t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-Mx,o=Math.max(r[0],r[1])+Mx,a=e(t[0]),s=e(t[n-1]);(a<i||a>o||s<i||s>o)&&e.domain([t[0],t[n-1]])}},$5=(e,t)=>{if(!t||t.length!==2||!ge(t[0])||!ge(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!ge(e[0])||e[0]<n)&&(i[0]=n),(!ge(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},L5=e=>{var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0,a=0;a<t;++a){var s=Fn(e[a][n][1])?e[a][n][0]:e[a][n][1];s>=0?(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1]):(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1])}},F5=e=>{var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0;o<t;++o){var a=Fn(e[o][n][1])?e[o][n][0]:e[o][n][1];a>=0?(e[o][n][0]=i,e[o][n][1]=i+a,i=e[o][n][1]):(e[o][n][0]=0,e[o][n][1]=0)}},B5={sign:L5,expand:tI,none:ya,silhouette:nI,wiggle:rI,positive:F5},z5=(e,t,n)=>{var r=B5[n],i=eI().keys(t).value((o,a)=>+at(o,a,0)).order(em).offset(r);return i(e)};function V5(e){return e==null?void 0:String(e)}function jx(e){var{axis:t,ticks:n,bandSize:r,entry:i,index:o,dataKey:a}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!mt(i[t.dataKey])){var s=g_(n,"value",i[t.dataKey]);if(s)return s.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var l=at(i,mt(a)?t.dataKey:a);return mt(l)?null:t.scale(l)}var Nx=e=>{var{axis:t,ticks:n,offset:r,bandSize:i,entry:o,index:a}=e;if(t.type==="category")return n[a]?n[a].coordinate+r:null;var s=at(o,t.dataKey,t.scale.domain()[a]);return mt(s)?null:t.scale(s)-i/2+r},W5=e=>{var{numericAxis:t}=e,n=t.scale.domain();if(t.type==="number"){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},U5=e=>{var t=e.flat(2).filter(ge);return[Math.min(...t),Math.max(...t)]},H5=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],q5=(e,t,n)=>{if(e!=null)return H5(Object.keys(e).reduce((r,i)=>{var o=e[i],{stackedData:a}=o,s=a.reduce((l,c)=>{var u=CP(c,t,n),d=U5(u);return[Math.min(l[0],d[0]),Math.max(l[1],d[1])]},[1/0,-1/0]);return[Math.min(s[0],r[0]),Math.max(s[1],r[1])]},[1/0,-1/0]))},Rx=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Dx=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Xs=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=Dd(t,u=>u.coordinate),o=1/0,a=1,s=i.length;a<s;a++){var l=i[a],c=i[a-1];o=Math.min((l.coordinate||0)-(c.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0};function Ix(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:i,name:o}=e;return er(er({},t),{},{dataKey:n,payload:r,value:i,name:o})}function Ra(e,t){if(e)return String(e);if(typeof t=="string")return t}function K5(e,t,n,r,i){if(n==="horizontal"||n==="vertical"){var o=e>=i.left&&e<=i.left+i.width&&t>=i.top&&t<=i.top+i.height;return o?{x:e,y:t}:null}return r?k5({x:e,y:t},r):null}var Y5=(e,t,n,r)=>{var i=t.find(c=>c&&c.index===n);if(i){if(e==="horizontal")return{x:i.coordinate,y:r.y};if(e==="vertical")return{x:r.x,y:i.coordinate};if(e==="centric"){var o=i.coordinate,{radius:a}=r;return er(er(er({},r),Nt(r.cx,r.cy,a,o)),{},{angle:o,radius:a})}var s=i.coordinate,{angle:l}=r;return er(er(er({},r),Nt(r.cx,r.cy,s,l)),{},{angle:l,radius:s})}return{x:0,y:0}},G5=(e,t)=>t==="horizontal"?e.x:t==="vertical"?e.y:t==="centric"?e.angle:e.radius,di=e=>e.layout.width,fi=e=>e.layout.height,X5=e=>e.layout.scale,kP=e=>e.layout.margin,Bd=V(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),zd=V(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),MP="data-recharts-item-index",jP="data-recharts-item-data-key",Ml=60;function $x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function mc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$x(Object(n),!0).forEach(function(r){Z5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$x(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Z5(e,t,n){return(t=J5(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J5(e){var t=Q5(e,"string");return typeof t=="symbol"?t:t+""}function Q5(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var eL=e=>e.brush.height;function tL(e){var t=zd(e);return t.reduce((n,r)=>{if(r.orientation==="left"&&!r.mirror&&!r.hide){var i=typeof r.width=="number"?r.width:Ml;return n+i}return n},0)}function nL(e){var t=zd(e);return t.reduce((n,r)=>{if(r.orientation==="right"&&!r.mirror&&!r.hide){var i=typeof r.width=="number"?r.width:Ml;return n+i}return n},0)}function rL(e){var t=Bd(e);return t.reduce((n,r)=>r.orientation==="top"&&!r.mirror&&!r.hide?n+r.height:n,0)}function iL(e){var t=Bd(e);return t.reduce((n,r)=>r.orientation==="bottom"&&!r.mirror&&!r.hide?n+r.height:n,0)}var $t=V([di,fi,kP,eL,tL,nL,rL,iL,Z_,c$],(e,t,n,r,i,o,a,s,l,c)=>{var u={left:(n.left||0)+i,right:(n.right||0)+o},d={top:(n.top||0)+a,bottom:(n.bottom||0)+s},p=mc(mc({},d),u),h=p.bottom;p.bottom+=r,p=D5(p,l,c);var g=e-p.left-p.right,m=t-p.top-p.bottom;return mc(mc({brushBottom:h},p),{},{width:Math.max(g,0),height:Math.max(m,0)})}),oL=V($t,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Wg=V(di,fi,(e,t)=>({x:0,y:0,width:e,height:t})),aL=I.createContext(null),Cn=()=>I.useContext(aL)!=null,Vd=e=>e.brush,Wd=V([Vd,$t,kP],(e,t,n)=>({height:e.height,x:ge(e.x)?e.x:t.left,y:ge(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:ge(e.width)?e.width:t.width})),Ug=()=>{var e,t=Cn(),n=he(oL),r=he(Wd),i=(e=he(Vd))===null||e===void 0?void 0:e.padding;return!t||!r||!i?n:{width:r.width-i.left-i.right,height:r.height-i.top-i.bottom,x:i.left,y:i.top}},sL={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},NP=()=>{var e;return(e=he($t))!==null&&e!==void 0?e:sL},RP=()=>he(di),DP=()=>he(fi),Ce=e=>e.layout.layoutType,Ud=()=>he(Ce),lL={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},IP=Un({name:"legend",initialState:lL,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload(e,t){e.payload.push(t.payload)},removeLegendPayload(e,t){var n=ei(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)}}}),{setLegendSize:Hte,setLegendSettings:qte,addLegendPayload:$P,removeLegendPayload:LP}=IP.actions,cL=IP.reducer;function dm(){return dm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dm.apply(null,arguments)}function Lx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Wp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Lx(Object(n),!0).forEach(function(r){uL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uL(e,t,n){return(t=dL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dL(e){var t=fL(e,"string");return typeof t=="symbol"?t:t+""}function fL(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pL(e){return Array.isArray(e)&&Rr(e[0])&&Rr(e[1])?e.join(" ~ "):e}var hL=e=>{var{separator:t=" : ",contentStyle:n={},itemStyle:r={},labelStyle:i={},payload:o,formatter:a,itemSorter:s,wrapperClassName:l,labelClassName:c,label:u,labelFormatter:d,accessibilityLayer:p=!1}=e,h=()=>{if(o&&o.length){var O={padding:0,margin:0},E=(s?Dd(o,s):o).map((C,T)=>{if(C.type==="none")return null;var k=C.formatter||a||pL,{value:R,name:M}=C,P=R,D=M;if(k){var j=k(R,M,C,T,o);if(Array.isArray(j))[P,D]=j;else if(j!=null)P=j;else return null}var N=Wp({display:"block",paddingTop:4,paddingBottom:4,color:C.color||"#000"},r);return _.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(T),style:N},Rr(D)?_.createElement("span",{className:"recharts-tooltip-item-name"},D):null,Rr(D)?_.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,_.createElement("span",{className:"recharts-tooltip-item-value"},P),_.createElement("span",{className:"recharts-tooltip-item-unit"},C.unit||""))});return _.createElement("ul",{className:"recharts-tooltip-item-list",style:O},E)}return null},g=Wp({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},n),m=Wp({margin:0},i),v=!mt(u),y=v?u:"",S=oe("recharts-default-tooltip",l),x=oe("recharts-tooltip-label",c);v&&d&&o!==void 0&&o!==null&&(y=d(u,o));var b=p?{role:"status","aria-live":"assertive"}:{};return _.createElement("div",dm({className:S,style:g},b),_.createElement("p",{className:x,style:m},_.isValidElement(y)?y:"".concat(y)),h())},es="recharts-tooltip-wrapper",mL={visibility:"hidden"};function gL(e){var{coordinate:t,translateX:n,translateY:r}=e;return oe(es,{["".concat(es,"-right")]:ge(n)&&t&&ge(t.x)&&n>=t.x,["".concat(es,"-left")]:ge(n)&&t&&ge(t.x)&&n<t.x,["".concat(es,"-bottom")]:ge(r)&&t&&ge(t.y)&&r>=t.y,["".concat(es,"-top")]:ge(r)&&t&&ge(t.y)&&r<t.y})}function Fx(e){var{allowEscapeViewBox:t,coordinate:n,key:r,offsetTopLeft:i,position:o,reverseDirection:a,tooltipDimension:s,viewBox:l,viewBoxDimension:c}=e;if(o&&ge(o[r]))return o[r];var u=n[r]-s-(i>0?i:0),d=n[r]+i;if(t[r])return a[r]?u:d;var p=l[r];if(p==null)return 0;if(a[r]){var h=u,g=p;return h<g?Math.max(d,p):Math.max(u,p)}if(c==null)return 0;var m=d+s,v=p+c;return m>v?Math.max(u,p):Math.max(d,p)}function vL(e){var{translateX:t,translateY:n,useTranslate3d:r}=e;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function yL(e){var{allowEscapeViewBox:t,coordinate:n,offsetTopLeft:r,position:i,reverseDirection:o,tooltipBox:a,useTranslate3d:s,viewBox:l}=e,c,u,d;return a.height>0&&a.width>0&&n?(u=Fx({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:l,viewBoxDimension:l.width}),d=Fx({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:l,viewBoxDimension:l.height}),c=vL({translateX:u,translateY:d,useTranslate3d:s})):c=mL,{cssProperties:c,cssClasses:gL({translateX:u,translateY:d,coordinate:n})}}function Bx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bx(Object(n),!0).forEach(function(r){fm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fm(e,t,n){return(t=bL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bL(e){var t=xL(e,"string");return typeof t=="symbol"?t:t+""}function xL(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class wL extends I.PureComponent{constructor(){super(...arguments),fm(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),fm(this,"handleKeyDown",t=>{if(t.key==="Escape"){var n,r,i,o;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(n=(r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==null&&n!==void 0?n:0,y:(i=(o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==null&&i!==void 0?i:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,n;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((n=this.props.coordinate)===null||n===void 0?void 0:n.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:n,animationDuration:r,animationEasing:i,children:o,coordinate:a,hasPayload:s,isAnimationActive:l,offset:c,position:u,reverseDirection:d,useTranslate3d:p,viewBox:h,wrapperStyle:g,lastBoundingBox:m,innerRef:v,hasPortalFromProps:y}=this.props,{cssClasses:S,cssProperties:x}=yL({allowEscapeViewBox:n,coordinate:a,offsetTopLeft:c,position:u,reverseDirection:d,tooltipBox:{height:m.height,width:m.width},useTranslate3d:p,viewBox:h}),b=y?{}:gc(gc({transition:l&&t?"transform ".concat(r,"ms ").concat(i):void 0},x),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&s?"visible":"hidden",position:"absolute",top:0,left:0}),O=gc(gc({},b),{},{visibility:!this.state.dismissed&&t&&s?"visible":"hidden"},g);return _.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:S,style:O,ref:v},o)}}var OL=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),zi={devToolsEnabled:!1,isSsr:OL()},FP=()=>he(e=>e.rootProps.accessibilityLayer);function zn(e){return Number.isFinite(e)}function xa(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function pm(){return pm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pm.apply(null,arguments)}function zx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Vx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zx(Object(n),!0).forEach(function(r){SL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function SL(e,t,n){return(t=EL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EL(e){var t=_L(e,"string");return typeof t=="symbol"?t:t+""}function _L(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wx={curveBasisClosed:WD,curveBasisOpen:UD,curveBasis:VD,curveBumpX:TD,curveBumpY:AD,curveLinearClosed:HD,curveLinear:Nd,curveMonotoneX:qD,curveMonotoneY:KD,curveNatural:YD,curveStep:GD,curveStepAfter:ZD,curveStepBefore:XD},vc=e=>zn(e.x)&&zn(e.y),ts=e=>e.x,ns=e=>e.y,PL=(e,t)=>{if(typeof e=="function")return e;var n="curve".concat(Pl(e));return(n==="curveMonotone"||n==="curveBump")&&t?Wx["".concat(n).concat(t==="vertical"?"Y":"X")]:Wx[n]||Nd},CL=e=>{var{type:t="linear",points:n=[],baseLine:r,layout:i,connectNulls:o=!1}=e,a=PL(t,i),s=o?n.filter(vc):n,l;if(Array.isArray(r)){var c=o?r.filter(d=>vc(d)):r,u=s.map((d,p)=>Vx(Vx({},d),{},{base:c[p]}));return i==="vertical"?l=ac().y(ns).x1(ts).x0(d=>d.base.x):l=ac().x(ts).y1(ns).y0(d=>d.base.y),l.defined(vc).curve(a),l(u)}return i==="vertical"&&ge(r)?l=ac().y(ns).x1(ts).x0(r):ge(r)?l=ac().x(ts).y1(ns).y0(r):l=P_().x(ts).y(ns),l.defined(vc).curve(a),l(s)},Hg=e=>{var{className:t,points:n,path:r,pathRef:i}=e;if((!n||!n.length)&&!r)return null;var o=n&&n.length?CL(e):r;return _.createElement("path",pm({},Lr(e),kg(e),{className:oe("recharts-curve",t),d:o===null?void 0:o,ref:i}))},TL=["x","y","top","left","width","height","className"];function hm(){return hm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hm.apply(null,arguments)}function Ux(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function AL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ux(Object(n),!0).forEach(function(r){kL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ux(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kL(e,t,n){return(t=ML(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ML(e){var t=jL(e,"string");return typeof t=="symbol"?t:t+""}function jL(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function NL(e,t){if(e==null)return{};var n,r,i=RL(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function RL(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var DL=(e,t,n,r,i,o)=>"M".concat(e,",").concat(i,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n),IL=e=>{var{x:t=0,y:n=0,top:r=0,left:i=0,width:o=0,height:a=0,className:s}=e,l=NL(e,TL),c=AL({x:t,y:n,top:r,left:i,width:o,height:a},l);return!ge(t)||!ge(n)||!ge(o)||!ge(a)||!ge(r)||!ge(i)?null:_.createElement("path",hm({},vt(c,!0),{className:oe("recharts-cross",s),d:DL(t,n,o,a,r,i)}))};function $L(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function Hx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function LL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hx(Object(n),!0).forEach(function(r){FL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function FL(e,t,n){return(t=BL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BL(e){var t=zL(e,"string");return typeof t=="symbol"?t:t+""}function zL(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function en(e,t){var n=LL({},e),r=t,i=Object.keys(t),o=i.reduce((a,s)=>(a[s]===void 0&&r[s]!==void 0&&(a[s]=r[s]),a),n);return o}function VL(){}function qx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Kx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qx(Object(n),!0).forEach(function(r){WL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WL(e,t,n){return(t=UL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UL(e){var t=HL(e,"string");return typeof t=="symbol"?t:t+""}function HL(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qL=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),BP=(e,t,n)=>e.map(r=>"".concat(qL(r)," ").concat(t,"ms ").concat(n)).join(","),KL=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((n,r)=>n.filter(i=>r.includes(i))),Zs=(e,t)=>Object.keys(t).reduce((n,r)=>Kx(Kx({},n),{},{[r]:e(r,t[r])}),{});function Yx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Zt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yx(Object(n),!0).forEach(function(r){YL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YL(e,t,n){return(t=GL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GL(e){var t=XL(e,"string");return typeof t=="symbol"?t:t+""}function XL(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _u=(e,t,n)=>e+(t-e)*n,mm=e=>{var{from:t,to:n}=e;return t!==n},zP=(e,t,n)=>{var r=Zs((i,o)=>{if(mm(o)){var[a,s]=e(o.from,o.to,o.velocity);return Zt(Zt({},o),{},{from:a,velocity:s})}return o},t);return n<1?Zs((i,o)=>mm(o)?Zt(Zt({},o),{},{velocity:_u(o.velocity,r[i].velocity,n),from:_u(o.from,r[i].from,n)}):o,t):zP(e,r,n-1)};function ZL(e,t,n,r,i,o){var a,s=r.reduce((p,h)=>Zt(Zt({},p),{},{[h]:{from:e[h],velocity:0,to:t[h]}}),{}),l=()=>Zs((p,h)=>h.from,s),c=()=>!Object.values(s).filter(mm).length,u=null,d=p=>{a||(a=p);var h=p-a,g=h/n.dt;s=zP(n,s,g),i(Zt(Zt(Zt({},e),t),l())),a=p,c()||(u=o.setTimeout(d))};return()=>(u=o.setTimeout(d),()=>{u()})}function JL(e,t,n,r,i,o,a){var s=null,l=i.reduce((d,p)=>Zt(Zt({},d),{},{[p]:[e[p],t[p]]}),{}),c,u=d=>{c||(c=d);var p=(d-c)/r,h=Zs((m,v)=>_u(...v,n(p)),l);if(o(Zt(Zt(Zt({},e),t),h)),p<1)s=a.setTimeout(u);else{var g=Zs((m,v)=>_u(...v,n(1)),l);o(Zt(Zt(Zt({},e),t),g))}};return()=>(s=a.setTimeout(u),()=>{s()})}const QL=(e,t,n,r,i,o)=>{var a=KL(e,t);return n.isStepper===!0?ZL(e,t,n,a,i,o):JL(e,t,n,r,a,i,o)};var Pu=1e-4,VP=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],WP=(e,t)=>e.map((n,r)=>n*t**r).reduce((n,r)=>n+r),Gx=(e,t)=>n=>{var r=VP(e,t);return WP(r,n)},eF=(e,t)=>n=>{var r=VP(e,t),i=[...r.map((o,a)=>o*a).slice(1),0];return WP(i,n)},Xx=function(){for(var t,n,r,i,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];if(a.length===1)switch(a[0]){case"linear":[t,r,n,i]=[0,0,1,1];break;case"ease":[t,r,n,i]=[.25,.1,.25,1];break;case"ease-in":[t,r,n,i]=[.42,0,1,1];break;case"ease-out":[t,r,n,i]=[.42,0,.58,1];break;case"ease-in-out":[t,r,n,i]=[0,0,.58,1];break;default:{var l=a[0].split("(");l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4&&([t,r,n,i]=l[1].split(")")[0].split(",").map(g=>parseFloat(g)))}}else a.length===4&&([t,r,n,i]=a);var c=Gx(t,n),u=Gx(r,i),d=eF(t,n),p=g=>g>1?1:g<0?0:g,h=g=>{for(var m=g>1?1:g,v=m,y=0;y<8;++y){var S=c(v)-m,x=d(v);if(Math.abs(S-m)<Pu||x<Pu)return u(v);v=p(v-S/x)}return u(v)};return h.isStepper=!1,h},tF=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:n=100,damping:r=8,dt:i=17}=t,o=(a,s,l)=>{var c=-(a-s)*n,u=l*r,d=l+(c-u)*i/1e3,p=l*i/1e3+a;return Math.abs(p-s)<Pu&&Math.abs(d)<Pu?[s,0]:[p,d]};return o.isStepper=!0,o.dt=i,o},nF=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Xx(e);case"spring":return tF();default:if(e.split("(")[0]==="cubic-bezier")return Xx(e)}return typeof e=="function"?e:null};function rF(e){var t,n=()=>null,r=!1,i=null,o=a=>{if(!r){if(Array.isArray(a)){if(!a.length)return;var s=a,[l,...c]=s;if(typeof l=="number"){i=e.setTimeout(o.bind(null,c),l);return}o(l),i=e.setTimeout(o.bind(null,c));return}typeof a=="string"&&(t=a,n(t)),typeof a=="object"&&(t=a,n(t)),typeof a=="function"&&a()}};return{stop:()=>{r=!0},start:a=>{r=!1,i&&(i(),i=null),o(a)},subscribe:a=>(n=a,()=>{n=()=>null}),getTimeoutController:()=>e}}class iF{setTimeout(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=performance.now(),i=null,o=a=>{a-r>=n?t(a):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(o))};return i=requestAnimationFrame(o),()=>{cancelAnimationFrame(i)}}}function oF(){return rF(new iF)}var aF=I.createContext(oF);function sF(e,t){var n=I.useContext(aF);return I.useMemo(()=>t??n(e),[e,t,n])}var lF={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},Zx={t:0},Up={t:1};function jl(e){var t=en(e,lF),{isActive:n,canBegin:r,duration:i,easing:o,begin:a,onAnimationEnd:s,onAnimationStart:l,children:c}=t,u=sF(t.animationId,t.animationManager),[d,p]=I.useState(n?Zx:Up),h=I.useRef(null);return I.useEffect(()=>{n||p(Up)},[n]),I.useEffect(()=>{if(!n||!r)return VL;var g=QL(Zx,Up,nF(o),i,p,u.getTimeoutController()),m=()=>{h.current=g()};return u.start([l,a,m,i,s]),()=>{u.stop(),h.current&&h.current(),s()}},[n,r,i,o,a,l,s,u]),c(d.t)}function Nl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",n=I.useRef(Ks(t)),r=I.useRef(e);return r.current!==e&&(n.current=Ks(t),r.current=e),n.current}function Jx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jx(Object(n),!0).forEach(function(r){cF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cF(e,t,n){return(t=uF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uF(e){var t=dF(e,"string");return typeof t=="symbol"?t:t+""}function dF(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cu(){return Cu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cu.apply(null,arguments)}var e1=(e,t,n,r,i)=>{var o=Math.min(Math.abs(n)/2,Math.abs(r)/2),a=r>=0?1:-1,s=n>=0?1:-1,l=r>=0&&n>=0||r<0&&n<0?1:0,c;if(o>0&&i instanceof Array){for(var u=[0,0,0,0],d=0,p=4;d<p;d++)u[d]=i[d]>o?o:i[d];c="M".concat(e,",").concat(t+a*u[0]),u[0]>0&&(c+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(l,",").concat(e+s*u[0],",").concat(t)),c+="L ".concat(e+n-s*u[1],",").concat(t),u[1]>0&&(c+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(l,`,
|
|
167
167
|
`).concat(e+n,",").concat(t+a*u[1])),c+="L ".concat(e+n,",").concat(t+r-a*u[2]),u[2]>0&&(c+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(l,`,
|
|
168
168
|
`).concat(e+n-s*u[2],",").concat(t+r)),c+="L ".concat(e+s*u[3],",").concat(t+r),u[3]>0&&(c+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(l,`,
|
|
169
169
|
`).concat(e,",").concat(t+r-a*u[3])),c+="Z"}else if(o>0&&i===+i&&i>0){var h=Math.min(o,i);c="M ".concat(e,",").concat(t+a*h,`
|
|
@@ -173,7 +173,7 @@ Take a look at the reducer(s) handling this action type: ${h.type}.
|
|
|
173
173
|
L `).concat(e+n,",").concat(t+r-a*h,`
|
|
174
174
|
A `).concat(h,",").concat(h,",0,0,").concat(l,",").concat(e+n-s*h,",").concat(t+r,`
|
|
175
175
|
L `).concat(e+s*h,",").concat(t+r,`
|
|
176
|
-
A `).concat(h,",").concat(h,",0,0,").concat(l,",").concat(e,",").concat(t+r-a*h," Z")}else c="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return c},fF={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},UP=e=>{var t=en(e,fF),n=I.useRef(null),[r,i]=I.useState(-1);I.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var j=n.current.getTotalLength();j&&i(j)}catch{}},[]);var{x:o,y:a,width:s,height:l,radius:c,className:u}=t,{animationEasing:d,animationDuration:p,animationBegin:h,isAnimationActive:g,isUpdateAnimationActive:m}=t,v=I.useRef(s),y=I.useRef(l),S=I.useRef(o),x=I.useRef(a),b=I.useMemo(()=>({x:o,y:a,width:s,height:l,radius:c}),[o,a,s,l,c]),O=
|
|
176
|
+
A `).concat(h,",").concat(h,",0,0,").concat(l,",").concat(e,",").concat(t+r-a*h," Z")}else c="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return c},fF={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},UP=e=>{var t=en(e,fF),n=I.useRef(null),[r,i]=I.useState(-1);I.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var j=n.current.getTotalLength();j&&i(j)}catch{}},[]);var{x:o,y:a,width:s,height:l,radius:c,className:u}=t,{animationEasing:d,animationDuration:p,animationBegin:h,isAnimationActive:g,isUpdateAnimationActive:m}=t,v=I.useRef(s),y=I.useRef(l),S=I.useRef(o),x=I.useRef(a),b=I.useMemo(()=>({x:o,y:a,width:s,height:l,radius:c}),[o,a,s,l,c]),O=Nl(b,"rectangle-");if(o!==+o||a!==+a||s!==+s||l!==+l||s===0||l===0)return null;var E=oe("recharts-rectangle",u);if(!m)return _.createElement("path",Cu({},vt(t,!0),{className:E,d:e1(o,a,s,l,c)}));var C=v.current,T=y.current,k=S.current,R=x.current,M="0px ".concat(r===-1?1:r,"px"),P="".concat(r,"px 0px"),D=BP(["strokeDasharray"],p,typeof d=="string"?d:void 0);return _.createElement(jl,{animationId:O,key:O,canBegin:r>0,duration:p,easing:d,isActive:m,begin:h},j=>{var N=wt(C,s,j),L=wt(T,l,j),B=wt(k,o,j),K=wt(R,a,j);n.current&&(v.current=N,y.current=L,S.current=B,x.current=K);var z;return g?j>0?z={transition:D,strokeDasharray:P}:z={strokeDasharray:M}:z={strokeDasharray:P},_.createElement("path",Cu({},vt(t,!0),{className:E,d:e1(B,K,N,L,c),ref:n,style:Qx(Qx({},z),t.style)}))})};function HP(e){var{cx:t,cy:n,radius:r,startAngle:i,endAngle:o}=e,a=Nt(t,n,r,i),s=Nt(t,n,r,o);return{points:[a,s],cx:t,cy:n,radius:r,startAngle:i,endAngle:o}}function gm(){return gm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gm.apply(null,arguments)}var pF=(e,t)=>{var n=Ut(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},yc=e=>{var{cx:t,cy:n,radius:r,angle:i,sign:o,isExternal:a,cornerRadius:s,cornerIsExternal:l}=e,c=s*(a?1:-1)+r,u=Math.asin(s/c)/Eu,d=l?i:i+o*u,p=Nt(t,n,c,d),h=Nt(t,n,r,d),g=l?i-o*u:i,m=Nt(t,n,c*Math.cos(u*Eu),g);return{center:p,circleTangency:h,lineTangency:m,theta:u}},qP=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:o,endAngle:a}=e,s=pF(o,a),l=o+s,c=Nt(t,n,i,o),u=Nt(t,n,i,l),d="M ".concat(c.x,",").concat(c.y,`
|
|
177
177
|
A `).concat(i,",").concat(i,`,0,
|
|
178
178
|
`).concat(+(Math.abs(s)>180),",").concat(+(o>l),`,
|
|
179
179
|
`).concat(u.x,",").concat(u.y,`
|
|
@@ -190,13 +190,13 @@ Take a look at the reducer(s) handling this action type: ${h.type}.
|
|
|
190
190
|
`);if(r>0){var{circleTangency:x,lineTangency:b,theta:O}=yc({cx:t,cy:n,radius:r,angle:l,sign:u,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),{circleTangency:E,lineTangency:C,theta:T}=yc({cx:t,cy:n,radius:r,angle:c,sign:-u,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),k=s?Math.abs(l-c):Math.abs(l-c)-O-T;if(k<0&&o===0)return"".concat(S,"L").concat(t,",").concat(n,"Z");S+="L".concat(C.x,",").concat(C.y,`
|
|
191
191
|
A`).concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(E.x,",").concat(E.y,`
|
|
192
192
|
A`).concat(r,",").concat(r,",0,").concat(+(k>180),",").concat(+(u>0),",").concat(x.x,",").concat(x.y,`
|
|
193
|
-
A`).concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(b.x,",").concat(b.y,"Z")}else S+="L".concat(t,",").concat(n,"Z");return S},mF={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},KP=e=>{var t=en(e,mF),{cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:a,forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u,className:d}=t;if(o<i||c===u)return null;var p=oe("recharts-sector",d),h=o-i,g=un(a,h,0,!0),m;return g>0&&Math.abs(c-u)<360?m=hF({cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:Math.min(g,h/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u}):m=qP({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:c,endAngle:u}),_.createElement("path",gm({},vt(t,!0),{className:p,d:m}))};function gF(e,t,n){var r,i,o,a;if(e==="horizontal")r=t.x,o=r,i=n.top,a=n.top+n.height;else if(e==="vertical")i=t.y,a=i,r=n.left,o=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var{cx:s,cy:l,innerRadius:c,outerRadius:u,angle:d}=t,p=Nt(s,l,c,d),h=Nt(s,l,u,d);r=p.x,i=p.y,o=h.x,a=h.y}else return HP(t);return[{x:r,y:i},{x:o,y:a}]}var Hp={},qp={},Kp={},t1;function vF(){return t1||(t1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=G_();function n(r){return t.isSymbol(r)?NaN:Number(r)}e.toNumber=n})(Kp)),Kp}var n1;function yF(){return n1||(n1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vF();function n(r){return r?(r=t.toNumber(r),r===1/0||r===-1/0?(r<0?-1:1)*Number.MAX_VALUE:r===r?r:0):r===0?r:0}e.toFinite=n})(qp)),qp}var r1;function bF(){return r1||(r1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=X_(),n=yF();function r(i,o,a){a&&typeof a!="number"&&t.isIterateeCall(i,o,a)&&(o=a=void 0),i=n.toFinite(i),o===void 0?(o=i,i=0):o=n.toFinite(o),a=a===void 0?i<o?1:-1:n.toFinite(a);const s=Math.max(Math.ceil((o-i)/(a||1)),0),l=new Array(s);for(let c=0;c<s;c++)l[c]=i,i+=a;return l}e.range=r})(Hp)),Hp}var Yp,i1;function xF(){return i1||(i1=1,Yp=bF().range),Yp}var wF=xF();const YP=ui(wF);function Ti(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function OF(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function qg(e){let t,n,r;e.length!==2?(t=Ti,n=(s,l)=>Ti(e(s),l),r=(s,l)=>e(s)-l):(t=e===Ti||e===OF?e:SF,n=e,r=e);function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<0?c=d+1:u=d}while(c<u)}return c}function o(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function a(s,l,c=0,u=s.length){const d=i(s,l,c,u-1);return d>c&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:i,center:a,right:o}}function SF(){return 0}function GP(e){return e===null?NaN:+e}function*EF(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const _F=qg(Ti),Nl=_F.right;qg(GP).center;class o1 extends Map{constructor(t,n=TF){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(a1(this,t))}has(t){return super.has(a1(this,t))}set(t,n){return super.set(PF(this,t),n)}delete(t){return super.delete(CF(this,t))}}function a1({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function PF({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function CF({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function TF(e){return e!==null&&typeof e=="object"?e.valueOf():e}function AF(e=Ti){if(e===Ti)return XP;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function XP(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const kF=Math.sqrt(50),MF=Math.sqrt(10),jF=Math.sqrt(2);function Tu(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=kF?10:o>=MF?5:o>=jF?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/a,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*a,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?Tu(e,t,n*2):[s,l,c]}function vm(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,a]=r?Tu(t,e,n):Tu(e,t,n);if(!(o>=i))return[];const s=o-i+1,l=new Array(s);if(r)if(a<0)for(let c=0;c<s;++c)l[c]=(o-c)/-a;else for(let c=0;c<s;++c)l[c]=(o-c)*a;else if(a<0)for(let c=0;c<s;++c)l[c]=(i+c)/-a;else for(let c=0;c<s;++c)l[c]=(i+c)*a;return l}function ym(e,t,n){return t=+t,e=+e,n=+n,Tu(e,t,n)[2]}function bm(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?ym(t,e,n):ym(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function s1(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function l1(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function ZP(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?XP:AF(i);r>n;){if(r-n>600){const l=r-n+1,c=t-n+1,u=Math.log(l),d=.5*Math.exp(2*u/3),p=.5*Math.sqrt(u*d*(l-d)/l)*(c-l/2<0?-1:1),h=Math.max(n,Math.floor(t-c*d/l+p)),g=Math.min(r,Math.floor(t+(l-c)*d/l+p));ZP(e,t,h,g,i)}const o=e[t];let a=n,s=r;for(ns(e,n,t),i(e[r],o)>0&&ns(e,n,r);a<s;){for(ns(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}i(e[n],o)===0?ns(e,n,s):(++s,ns(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function ns(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function NF(e,t,n){if(e=Float64Array.from(EF(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return l1(e);if(t>=1)return s1(e);var r,i=(r-1)*t,o=Math.floor(i),a=s1(ZP(e,o).subarray(0,o+1)),s=l1(e.subarray(o+1));return a+(s-a)*(i-o)}}function RF(e,t,n=GP){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e),s=+n(e[o+1],o+1,e);return a+(s-a)*(i-o)}}function DF(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function cr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function pi(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const xm=Symbol("implicit");function Kg(){var e=new o1,t=[],n=[],r=xm;function i(o){let a=e.get(o);if(a===void 0){if(r!==xm)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new o1;for(const a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return Kg(t,n).unknown(r)},cr.apply(i,arguments),i}function Yg(){var e=Kg().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,s=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var p=t().length,h=i<r,g=h?i:r,m=h?r:i;o=(m-g)/Math.max(1,p-l+c*2),s&&(o=Math.floor(o)),g+=(m-g-o*(p-l))*u,a=o*(1-l),s&&(g=Math.round(g),a=Math.round(a));var v=DF(p).map(function(y){return g+o*y});return n(h?v.reverse():v)}return e.domain=function(p){return arguments.length?(t(p),d()):t()},e.range=function(p){return arguments.length?([r,i]=p,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(p){return[r,i]=p,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(p){return arguments.length?(s=!!p,d()):s},e.padding=function(p){return arguments.length?(l=Math.min(1,c=+p),d()):l},e.paddingInner=function(p){return arguments.length?(l=Math.min(1,p),d()):l},e.paddingOuter=function(p){return arguments.length?(c=+p,d()):c},e.align=function(p){return arguments.length?(u=Math.max(0,Math.min(1,p)),d()):u},e.copy=function(){return Yg(t(),[r,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},cr.apply(d(),arguments)}function JP(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return JP(t())},e}function IF(){return JP(Yg.apply(null,arguments).paddingInner(1))}function Gg(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function QP(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Rl(){}var Zs=.7,Au=1/Zs,fa="\\s*([+-]?\\d+)\\s*",Js="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ar="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$F=/^#([0-9a-f]{3,8})$/,LF=new RegExp(`^rgb\\(${fa},${fa},${fa}\\)$`),FF=new RegExp(`^rgb\\(${Ar},${Ar},${Ar}\\)$`),BF=new RegExp(`^rgba\\(${fa},${fa},${fa},${Js}\\)$`),zF=new RegExp(`^rgba\\(${Ar},${Ar},${Ar},${Js}\\)$`),VF=new RegExp(`^hsl\\(${Js},${Ar},${Ar}\\)$`),WF=new RegExp(`^hsla\\(${Js},${Ar},${Ar},${Js}\\)$`),c1={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Gg(Rl,Qs,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:u1,formatHex:u1,formatHex8:UF,formatHsl:HF,formatRgb:d1,toString:d1});function u1(){return this.rgb().formatHex()}function UF(){return this.rgb().formatHex8()}function HF(){return e2(this).formatHsl()}function d1(){return this.rgb().formatRgb()}function Qs(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=$F.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?f1(t):n===3?new On(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?bc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?bc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=LF.exec(e))?new On(t[1],t[2],t[3],1):(t=FF.exec(e))?new On(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=BF.exec(e))?bc(t[1],t[2],t[3],t[4]):(t=zF.exec(e))?bc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=VF.exec(e))?m1(t[1],t[2]/100,t[3]/100,1):(t=WF.exec(e))?m1(t[1],t[2]/100,t[3]/100,t[4]):c1.hasOwnProperty(e)?f1(c1[e]):e==="transparent"?new On(NaN,NaN,NaN,0):null}function f1(e){return new On(e>>16&255,e>>8&255,e&255,1)}function bc(e,t,n,r){return r<=0&&(e=t=n=NaN),new On(e,t,n,r)}function qF(e){return e instanceof Rl||(e=Qs(e)),e?(e=e.rgb(),new On(e.r,e.g,e.b,e.opacity)):new On}function wm(e,t,n,r){return arguments.length===1?qF(e):new On(e,t,n,r??1)}function On(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Gg(On,wm,QP(Rl,{brighter(e){return e=e==null?Au:Math.pow(Au,e),new On(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Zs:Math.pow(Zs,e),new On(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new On(So(this.r),So(this.g),So(this.b),ku(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:p1,formatHex:p1,formatHex8:KF,formatRgb:h1,toString:h1}));function p1(){return`#${mo(this.r)}${mo(this.g)}${mo(this.b)}`}function KF(){return`#${mo(this.r)}${mo(this.g)}${mo(this.b)}${mo((isNaN(this.opacity)?1:this.opacity)*255)}`}function h1(){const e=ku(this.opacity);return`${e===1?"rgb(":"rgba("}${So(this.r)}, ${So(this.g)}, ${So(this.b)}${e===1?")":`, ${e})`}`}function ku(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function So(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function mo(e){return e=So(e),(e<16?"0":"")+e.toString(16)}function m1(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new fr(e,t,n,r)}function e2(e){if(e instanceof fr)return new fr(e.h,e.s,e.l,e.opacity);if(e instanceof Rl||(e=Qs(e)),!e)return new fr;if(e instanceof fr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new fr(a,s,l,e.opacity)}function YF(e,t,n,r){return arguments.length===1?e2(e):new fr(e,t,n,r??1)}function fr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Gg(fr,YF,QP(Rl,{brighter(e){return e=e==null?Au:Math.pow(Au,e),new fr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Zs:Math.pow(Zs,e),new fr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new On(Gp(e>=240?e-240:e+120,i,r),Gp(e,i,r),Gp(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new fr(g1(this.h),xc(this.s),xc(this.l),ku(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ku(this.opacity);return`${e===1?"hsl(":"hsla("}${g1(this.h)}, ${xc(this.s)*100}%, ${xc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function g1(e){return e=(e||0)%360,e<0?e+360:e}function xc(e){return Math.max(0,Math.min(1,e||0))}function Gp(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Xg=e=>()=>e;function GF(e,t){return function(n){return e+n*t}}function XF(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function ZF(e){return(e=+e)==1?t2:function(t,n){return n-t?XF(t,n,e):Xg(isNaN(t)?n:t)}}function t2(e,t){var n=t-e;return n?GF(e,n):Xg(isNaN(e)?t:e)}const v1=(function e(t){var n=ZF(t);function r(i,o){var a=n((i=wm(i)).r,(o=wm(o)).r),s=n(i.g,o.g),l=n(i.b,o.b),c=t2(i.opacity,o.opacity);return function(u){return i.r=a(u),i.g=s(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r})(1);function JF(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function QF(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function e4(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=Da(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function t4(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Mu(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function n4(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Da(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Om=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Xp=new RegExp(Om.source,"g");function r4(e){return function(){return e}}function i4(e){return function(t){return e(t)+""}}function o4(e,t){var n=Om.lastIndex=Xp.lastIndex=0,r,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=Om.exec(e))&&(i=Xp.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:Mu(r,i)})),n=Xp.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?i4(l[0].x):r4(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)s[(d=l[u]).i]=d.x(c);return s.join("")})}function Da(e,t){var n=typeof t,r;return t==null||n==="boolean"?Xg(t):(n==="number"?Mu:n==="string"?(r=Qs(t))?(t=r,v1):o4:t instanceof Qs?v1:t instanceof Date?t4:QF(t)?JF:Array.isArray(t)?e4:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?n4:Mu)(e,t)}function Zg(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function a4(e,t){t===void 0&&(t=e,e=Da);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(a){var s=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return o[s](a-s)}}function s4(e){return function(){return e}}function ju(e){return+e}var y1=[0,1];function hn(e){return e}function Sm(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:s4(isNaN(t)?NaN:.5)}function l4(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function c4(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=Sm(i,r),o=n(a,o)):(r=Sm(r,i),o=n(o,a)),function(s){return o(r(s))}}function u4(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=Sm(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var l=Nl(e,s,1,r)-1;return o[l](i[l](s))}}function Dl(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Hd(){var e=y1,t=y1,n=Da,r,i,o,a=hn,s,l,c;function u(){var p=Math.min(e.length,t.length);return a!==hn&&(a=l4(e[0],e[p-1])),s=p>2?u4:c4,l=c=null,d}function d(p){return p==null||isNaN(p=+p)?o:(l||(l=s(e.map(r),t,n)))(r(a(p)))}return d.invert=function(p){return a(i((c||(c=s(t,e.map(r),Mu)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,ju),u()):e.slice()},d.range=function(p){return arguments.length?(t=Array.from(p),u()):t.slice()},d.rangeRound=function(p){return t=Array.from(p),n=Zg,u()},d.clamp=function(p){return arguments.length?(a=p?!0:hn,u()):a!==hn},d.interpolate=function(p){return arguments.length?(n=p,u()):n},d.unknown=function(p){return arguments.length?(o=p,d):o},function(p,h){return r=p,i=h,u()}}function Jg(){return Hd()(hn,hn)}function d4(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Nu(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function wa(e){return e=Nu(Math.abs(e)),e?e[1]:NaN}function f4(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function p4(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var h4=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function el(e){if(!(t=h4.exec(e)))throw new Error("invalid format: "+e);var t;return new Qg({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}el.prototype=Qg.prototype;function Qg(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Qg.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function m4(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var n2;function g4(e,t){var n=Nu(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(n2=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Nu(e,Math.max(0,t+o-1))[0]}function b1(e,t){var n=Nu(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const x1={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:d4,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>b1(e*100,t),r:b1,s:g4,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function w1(e){return e}var O1=Array.prototype.map,S1=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function v4(e){var t=e.grouping===void 0||e.thousands===void 0?w1:f4(O1.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?w1:p4(O1.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=el(d);var p=d.fill,h=d.align,g=d.sign,m=d.symbol,v=d.zero,y=d.width,S=d.comma,x=d.precision,b=d.trim,O=d.type;O==="n"?(S=!0,O="g"):x1[O]||(x===void 0&&(x=12),b=!0,O="g"),(v||p==="0"&&h==="=")&&(v=!0,p="0",h="=");var E=m==="$"?n:m==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():"",C=m==="$"?r:/[%p]/.test(O)?a:"",T=x1[O],k=/[defgprs%]/.test(O);x=x===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function R(M){var P=E,D=C,j,N,L;if(O==="c")D=T(M)+D,M="";else{M=+M;var B=M<0||1/M<0;if(M=isNaN(M)?l:T(Math.abs(M),x),b&&(M=m4(M)),B&&+M==0&&g!=="+"&&(B=!1),P=(B?g==="("?g:s:g==="-"||g==="("?"":g)+P,D=(O==="s"?S1[8+n2/3]:"")+D+(B&&g==="("?")":""),k){for(j=-1,N=M.length;++j<N;)if(L=M.charCodeAt(j),48>L||L>57){D=(L===46?i+M.slice(j+1):M.slice(j))+D,M=M.slice(0,j);break}}}S&&!v&&(M=t(M,1/0));var K=P.length+M.length+D.length,z=K<y?new Array(y-K+1).join(p):"";switch(S&&v&&(M=t(z+M,z.length?y-D.length:1/0),z=""),h){case"<":M=P+M+D+z;break;case"=":M=P+z+M+D;break;case"^":M=z.slice(0,K=z.length>>1)+P+M+D+z.slice(K);break;default:M=z+P+M+D;break}return o(M)}return R.toString=function(){return d+""},R}function u(d,p){var h=c((d=el(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(wa(p)/3)))*3,m=Math.pow(10,-g),v=S1[8+g/3];return function(y){return h(m*y)+v}}return{format:c,formatPrefix:u}}var wc,ev,r2;y4({thousands:",",grouping:[3],currency:["$",""]});function y4(e){return wc=v4(e),ev=wc.format,r2=wc.formatPrefix,wc}function b4(e){return Math.max(0,-wa(Math.abs(e)))}function x4(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(wa(t)/3)))*3-wa(Math.abs(e)))}function w4(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,wa(t)-wa(e))+1}function i2(e,t,n,r){var i=bm(e,t,n),o;switch(r=el(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=x4(i,a))&&(r.precision=o),r2(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=w4(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=b4(i))&&(r.precision=o-(r.type==="%")*2);break}}return ev(r)}function Vi(e){var t=e.domain;return e.ticks=function(n){var r=t();return vm(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return i2(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],s=r[o],l,c,u=10;for(s<a&&(c=a,a=s,s=c,c=i,i=o,o=c);u-- >0;){if(c=ym(a,s,n),c===l)return r[i]=a,r[o]=s,t(r);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function o2(){var e=Jg();return e.copy=function(){return Dl(e,o2())},cr.apply(e,arguments),Vi(e)}function a2(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,ju),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return a2(e).unknown(t)},e=arguments.length?Array.from(e,ju):[0,1],Vi(n)}function s2(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),e[n]=t.floor(i),e[r]=t.ceil(o),e}function E1(e){return Math.log(e)}function _1(e){return Math.exp(e)}function O4(e){return-Math.log(-e)}function S4(e){return-Math.exp(-e)}function E4(e){return isFinite(e)?+("1e"+e):e<0?0:e}function _4(e){return e===10?E4:e===Math.E?Math.exp:t=>Math.pow(e,t)}function P4(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 P1(e){return(t,n)=>-e(-t,n)}function tv(e){const t=e(E1,_1),n=t.domain;let r=10,i,o;function a(){return i=P4(r),o=_4(r),n()[0]<0?(i=P1(i),o=P1(o),e(O4,S4)):e(E1,_1),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const l=n();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let p=i(c),h=i(u),g,m;const v=s==null?10:+s;let y=[];if(!(r%1)&&h-p<v){if(p=Math.floor(p),h=Math.ceil(h),c>0){for(;p<=h;++p)for(g=1;g<r;++g)if(m=p<0?g/o(-p):g*o(p),!(m<c)){if(m>u)break;y.push(m)}}else for(;p<=h;++p)for(g=r-1;g>=1;--g)if(m=p>0?g/o(-p):g*o(p),!(m<c)){if(m>u)break;y.push(m)}y.length*2<v&&(y=vm(c,u,v))}else y=vm(p,h,Math.min(h-p,v)).map(o);return d?y.reverse():y},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=el(l)).precision==null&&(l.trim=!0),l=ev(l)),s===1/0)return l;const c=Math.max(1,r*s/t.ticks().length);return u=>{let d=u/o(Math.round(i(u)));return d*r<r-.5&&(d*=r),d<=c?l(u):""}},t.nice=()=>n(s2(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function l2(){const e=tv(Hd()).domain([1,10]);return e.copy=()=>Dl(e,l2()).base(e.base()),cr.apply(e,arguments),e}function C1(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function T1(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function nv(e){var t=1,n=e(C1(t),T1(t));return n.constant=function(r){return arguments.length?e(C1(t=+r),T1(t)):t},Vi(n)}function c2(){var e=nv(Hd());return e.copy=function(){return Dl(e,c2()).constant(e.constant())},cr.apply(e,arguments)}function A1(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function C4(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function T4(e){return e<0?-e*e:e*e}function rv(e){var t=e(hn,hn),n=1;function r(){return n===1?e(hn,hn):n===.5?e(C4,T4):e(A1(n),A1(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Vi(t)}function iv(){var e=rv(Hd());return e.copy=function(){return Dl(e,iv()).exponent(e.exponent())},cr.apply(e,arguments),e}function A4(){return iv.apply(null,arguments).exponent(.5)}function k1(e){return Math.sign(e)*e*e}function k4(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function u2(){var e=Jg(),t=[0,1],n=!1,r;function i(o){var a=k4(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(k1(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,ju)).map(k1)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return u2(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},cr.apply(i,arguments),Vi(i)}function d2(){var e=[],t=[],n=[],r;function i(){var a=0,s=Math.max(1,t.length);for(n=new Array(s-1);++a<s;)n[a-1]=RF(e,a/s);return o}function o(a){return a==null||isNaN(a=+a)?r:t[Nl(n,a)]}return o.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},o.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Ti),i()},o.range=function(a){return arguments.length?(t=Array.from(a),i()):t.slice()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return d2().domain(e).range(t).unknown(r)},cr.apply(o,arguments)}function f2(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function a(l){return l!=null&&l<=l?i[Nl(r,l,0,n)]:o}function s(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},a.range=function(l){return arguments.length?(n=(i=Array.from(l)).length-1,s()):i.slice()},a.invertExtent=function(l){var c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},a.unknown=function(l){return arguments.length&&(o=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return f2().domain([e,t]).range(i).unknown(o)},cr.apply(Vi(a),arguments)}function p2(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[Nl(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return p2().domain(e).range(t).unknown(n)},cr.apply(i,arguments)}const Zp=new Date,Jp=new Date;function Lt(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const l=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;let c;do l.push(c=new Date(+o)),t(o,s),e(o);while(c<o&&o<a);return l},i.filter=o=>Lt(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),n&&(i.count=(o,a)=>(Zp.setTime(+o),Jp.setTime(+a),e(Zp),e(Jp),Math.floor(n(Zp,Jp))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const Ru=Lt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ru.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Lt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Ru);Ru.range;const Xr=1e3,tr=Xr*60,Zr=tr*60,oi=Zr*24,ov=oi*7,M1=oi*30,Qp=oi*365,go=Lt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Xr)},(e,t)=>(t-e)/Xr,e=>e.getUTCSeconds());go.range;const av=Lt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Xr)},(e,t)=>{e.setTime(+e+t*tr)},(e,t)=>(t-e)/tr,e=>e.getMinutes());av.range;const sv=Lt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*tr)},(e,t)=>(t-e)/tr,e=>e.getUTCMinutes());sv.range;const lv=Lt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Xr-e.getMinutes()*tr)},(e,t)=>{e.setTime(+e+t*Zr)},(e,t)=>(t-e)/Zr,e=>e.getHours());lv.range;const cv=Lt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Zr)},(e,t)=>(t-e)/Zr,e=>e.getUTCHours());cv.range;const Il=Lt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*tr)/oi,e=>e.getDate()-1);Il.range;const qd=Lt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/oi,e=>e.getUTCDate()-1);qd.range;const h2=Lt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/oi,e=>Math.floor(e/oi));h2.range;function Lo(e){return Lt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*tr)/ov)}const Kd=Lo(0),Du=Lo(1),M4=Lo(2),j4=Lo(3),Oa=Lo(4),N4=Lo(5),R4=Lo(6);Kd.range;Du.range;M4.range;j4.range;Oa.range;N4.range;R4.range;function Fo(e){return Lt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/ov)}const Yd=Fo(0),Iu=Fo(1),D4=Fo(2),I4=Fo(3),Sa=Fo(4),$4=Fo(5),L4=Fo(6);Yd.range;Iu.range;D4.range;I4.range;Sa.range;$4.range;L4.range;const uv=Lt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());uv.range;const dv=Lt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());dv.range;const ai=Lt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ai.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Lt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ai.range;const si=Lt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());si.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Lt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});si.range;function m2(e,t,n,r,i,o){const a=[[go,1,Xr],[go,5,5*Xr],[go,15,15*Xr],[go,30,30*Xr],[o,1,tr],[o,5,5*tr],[o,15,15*tr],[o,30,30*tr],[i,1,Zr],[i,3,3*Zr],[i,6,6*Zr],[i,12,12*Zr],[r,1,oi],[r,2,2*oi],[n,1,ov],[t,1,M1],[t,3,3*M1],[e,1,Qp]];function s(c,u,d){const p=u<c;p&&([c,u]=[u,c]);const h=d&&typeof d.range=="function"?d:l(c,u,d),g=h?h.range(c,+u+1):[];return p?g.reverse():g}function l(c,u,d){const p=Math.abs(u-c)/d,h=qg(([,,v])=>v).right(a,p);if(h===a.length)return e.every(bm(c/Qp,u/Qp,d));if(h===0)return Ru.every(Math.max(bm(c,u,d),1));const[g,m]=a[p/a[h-1][2]<a[h][2]/p?h-1:h];return g.every(m)}return[s,l]}const[F4,B4]=m2(si,dv,Yd,h2,cv,sv),[z4,V4]=m2(ai,uv,Kd,Il,lv,av);function eh(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function th(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function rs(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function W4(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=is(i),u=os(i),d=is(o),p=os(o),h=is(a),g=os(a),m=is(s),v=os(s),y=is(l),S=os(l),x={a:B,A:K,b:z,B:F,c:null,d:$1,e:$1,f:fB,g:OB,G:EB,H:cB,I:uB,j:dB,L:g2,m:pB,M:hB,p:G,q:Y,Q:B1,s:z1,S:mB,u:gB,U:vB,V:yB,w:bB,W:xB,x:null,X:null,y:wB,Y:SB,Z:_B,"%":F1},b={a:ne,A:Q,b:X,B:te,c:null,d:L1,e:L1,f:AB,g:FB,G:zB,H:PB,I:CB,j:TB,L:y2,m:kB,M:MB,p:ie,q:ae,Q:B1,s:z1,S:jB,u:NB,U:RB,V:DB,w:IB,W:$B,x:null,X:null,y:LB,Y:BB,Z:VB,"%":F1},O={a:R,A:M,b:P,B:D,c:j,d:D1,e:D1,f:oB,g:R1,G:N1,H:I1,I:I1,j:tB,L:iB,m:eB,M:nB,p:k,q:Q4,Q:sB,s:lB,S:rB,u:Y4,U:G4,V:X4,w:K4,W:Z4,x:N,X:L,y:R1,Y:N1,Z:J4,"%":aB};x.x=E(n,x),x.X=E(r,x),x.c=E(t,x),b.x=E(n,b),b.X=E(r,b),b.c=E(t,b);function E(W,H){return function(J){var A=[],fe=-1,re=0,me=W.length,we,Se,_e;for(J instanceof Date||(J=new Date(+J));++fe<me;)W.charCodeAt(fe)===37&&(A.push(W.slice(re,fe)),(Se=j1[we=W.charAt(++fe)])!=null?we=W.charAt(++fe):Se=we==="e"?" ":"0",(_e=H[we])&&(we=_e(J,Se)),A.push(we),re=fe+1);return A.push(W.slice(re,fe)),A.join("")}}function C(W,H){return function(J){var A=rs(1900,void 0,1),fe=T(A,W,J+="",0),re,me;if(fe!=J.length)return null;if("Q"in A)return new Date(A.Q);if("s"in A)return new Date(A.s*1e3+("L"in A?A.L:0));if(H&&!("Z"in A)&&(A.Z=0),"p"in A&&(A.H=A.H%12+A.p*12),A.m===void 0&&(A.m="q"in A?A.q:0),"V"in A){if(A.V<1||A.V>53)return null;"w"in A||(A.w=1),"Z"in A?(re=th(rs(A.y,0,1)),me=re.getUTCDay(),re=me>4||me===0?Iu.ceil(re):Iu(re),re=qd.offset(re,(A.V-1)*7),A.y=re.getUTCFullYear(),A.m=re.getUTCMonth(),A.d=re.getUTCDate()+(A.w+6)%7):(re=eh(rs(A.y,0,1)),me=re.getDay(),re=me>4||me===0?Du.ceil(re):Du(re),re=Il.offset(re,(A.V-1)*7),A.y=re.getFullYear(),A.m=re.getMonth(),A.d=re.getDate()+(A.w+6)%7)}else("W"in A||"U"in A)&&("w"in A||(A.w="u"in A?A.u%7:"W"in A?1:0),me="Z"in A?th(rs(A.y,0,1)).getUTCDay():eh(rs(A.y,0,1)).getDay(),A.m=0,A.d="W"in A?(A.w+6)%7+A.W*7-(me+5)%7:A.w+A.U*7-(me+6)%7);return"Z"in A?(A.H+=A.Z/100|0,A.M+=A.Z%100,th(A)):eh(A)}}function T(W,H,J,A){for(var fe=0,re=H.length,me=J.length,we,Se;fe<re;){if(A>=me)return-1;if(we=H.charCodeAt(fe++),we===37){if(we=H.charAt(fe++),Se=O[we in j1?H.charAt(fe++):we],!Se||(A=Se(W,J,A))<0)return-1}else if(we!=J.charCodeAt(A++))return-1}return A}function k(W,H,J){var A=c.exec(H.slice(J));return A?(W.p=u.get(A[0].toLowerCase()),J+A[0].length):-1}function R(W,H,J){var A=h.exec(H.slice(J));return A?(W.w=g.get(A[0].toLowerCase()),J+A[0].length):-1}function M(W,H,J){var A=d.exec(H.slice(J));return A?(W.w=p.get(A[0].toLowerCase()),J+A[0].length):-1}function P(W,H,J){var A=y.exec(H.slice(J));return A?(W.m=S.get(A[0].toLowerCase()),J+A[0].length):-1}function D(W,H,J){var A=m.exec(H.slice(J));return A?(W.m=v.get(A[0].toLowerCase()),J+A[0].length):-1}function j(W,H,J){return T(W,t,H,J)}function N(W,H,J){return T(W,n,H,J)}function L(W,H,J){return T(W,r,H,J)}function B(W){return a[W.getDay()]}function K(W){return o[W.getDay()]}function z(W){return l[W.getMonth()]}function F(W){return s[W.getMonth()]}function G(W){return i[+(W.getHours()>=12)]}function Y(W){return 1+~~(W.getMonth()/3)}function ne(W){return a[W.getUTCDay()]}function Q(W){return o[W.getUTCDay()]}function X(W){return l[W.getUTCMonth()]}function te(W){return s[W.getUTCMonth()]}function ie(W){return i[+(W.getUTCHours()>=12)]}function ae(W){return 1+~~(W.getUTCMonth()/3)}return{format:function(W){var H=E(W+="",x);return H.toString=function(){return W},H},parse:function(W){var H=C(W+="",!1);return H.toString=function(){return W},H},utcFormat:function(W){var H=E(W+="",b);return H.toString=function(){return W},H},utcParse:function(W){var H=C(W+="",!0);return H.toString=function(){return W},H}}}var j1={"-":"",_:" ",0:"0"},Kt=/^\s*\d+/,U4=/^%/,H4=/[\\^$*+?|[\]().{}]/g;function ke(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function q4(e){return e.replace(H4,"\\$&")}function is(e){return new RegExp("^(?:"+e.map(q4).join("|")+")","i")}function os(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function K4(e,t,n){var r=Kt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Y4(e,t,n){var r=Kt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function G4(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function X4(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Z4(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function N1(e,t,n){var r=Kt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function R1(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function J4(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Q4(e,t,n){var r=Kt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function eB(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function D1(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function tB(e,t,n){var r=Kt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function I1(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function nB(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function rB(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function iB(e,t,n){var r=Kt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function oB(e,t,n){var r=Kt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function aB(e,t,n){var r=U4.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function sB(e,t,n){var r=Kt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function lB(e,t,n){var r=Kt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function $1(e,t){return ke(e.getDate(),t,2)}function cB(e,t){return ke(e.getHours(),t,2)}function uB(e,t){return ke(e.getHours()%12||12,t,2)}function dB(e,t){return ke(1+Il.count(ai(e),e),t,3)}function g2(e,t){return ke(e.getMilliseconds(),t,3)}function fB(e,t){return g2(e,t)+"000"}function pB(e,t){return ke(e.getMonth()+1,t,2)}function hB(e,t){return ke(e.getMinutes(),t,2)}function mB(e,t){return ke(e.getSeconds(),t,2)}function gB(e){var t=e.getDay();return t===0?7:t}function vB(e,t){return ke(Kd.count(ai(e)-1,e),t,2)}function v2(e){var t=e.getDay();return t>=4||t===0?Oa(e):Oa.ceil(e)}function yB(e,t){return e=v2(e),ke(Oa.count(ai(e),e)+(ai(e).getDay()===4),t,2)}function bB(e){return e.getDay()}function xB(e,t){return ke(Du.count(ai(e)-1,e),t,2)}function wB(e,t){return ke(e.getFullYear()%100,t,2)}function OB(e,t){return e=v2(e),ke(e.getFullYear()%100,t,2)}function SB(e,t){return ke(e.getFullYear()%1e4,t,4)}function EB(e,t){var n=e.getDay();return e=n>=4||n===0?Oa(e):Oa.ceil(e),ke(e.getFullYear()%1e4,t,4)}function _B(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ke(t/60|0,"0",2)+ke(t%60,"0",2)}function L1(e,t){return ke(e.getUTCDate(),t,2)}function PB(e,t){return ke(e.getUTCHours(),t,2)}function CB(e,t){return ke(e.getUTCHours()%12||12,t,2)}function TB(e,t){return ke(1+qd.count(si(e),e),t,3)}function y2(e,t){return ke(e.getUTCMilliseconds(),t,3)}function AB(e,t){return y2(e,t)+"000"}function kB(e,t){return ke(e.getUTCMonth()+1,t,2)}function MB(e,t){return ke(e.getUTCMinutes(),t,2)}function jB(e,t){return ke(e.getUTCSeconds(),t,2)}function NB(e){var t=e.getUTCDay();return t===0?7:t}function RB(e,t){return ke(Yd.count(si(e)-1,e),t,2)}function b2(e){var t=e.getUTCDay();return t>=4||t===0?Sa(e):Sa.ceil(e)}function DB(e,t){return e=b2(e),ke(Sa.count(si(e),e)+(si(e).getUTCDay()===4),t,2)}function IB(e){return e.getUTCDay()}function $B(e,t){return ke(Iu.count(si(e)-1,e),t,2)}function LB(e,t){return ke(e.getUTCFullYear()%100,t,2)}function FB(e,t){return e=b2(e),ke(e.getUTCFullYear()%100,t,2)}function BB(e,t){return ke(e.getUTCFullYear()%1e4,t,4)}function zB(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Sa(e):Sa.ceil(e),ke(e.getUTCFullYear()%1e4,t,4)}function VB(){return"+0000"}function F1(){return"%"}function B1(e){return+e}function z1(e){return Math.floor(+e/1e3)}var Jo,x2,w2;WB({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function WB(e){return Jo=W4(e),x2=Jo.format,Jo.parse,w2=Jo.utcFormat,Jo.utcParse,Jo}function UB(e){return new Date(e)}function HB(e){return e instanceof Date?+e:+new Date(+e)}function fv(e,t,n,r,i,o,a,s,l,c){var u=Jg(),d=u.invert,p=u.domain,h=c(".%L"),g=c(":%S"),m=c("%I:%M"),v=c("%I %p"),y=c("%a %d"),S=c("%b %d"),x=c("%B"),b=c("%Y");function O(E){return(l(E)<E?h:s(E)<E?g:a(E)<E?m:o(E)<E?v:r(E)<E?i(E)<E?y:S:n(E)<E?x:b)(E)}return u.invert=function(E){return new Date(d(E))},u.domain=function(E){return arguments.length?p(Array.from(E,HB)):p().map(UB)},u.ticks=function(E){var C=p();return e(C[0],C[C.length-1],E??10)},u.tickFormat=function(E,C){return C==null?O:c(C)},u.nice=function(E){var C=p();return(!E||typeof E.range!="function")&&(E=t(C[0],C[C.length-1],E??10)),E?p(s2(C,E)):u},u.copy=function(){return Dl(u,fv(e,t,n,r,i,o,a,s,l,c))},u}function qB(){return cr.apply(fv(z4,V4,ai,uv,Kd,Il,lv,av,go,x2).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function KB(){return cr.apply(fv(F4,B4,si,dv,Yd,qd,cv,sv,go,w2).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Gd(){var e=0,t=1,n,r,i,o,a=hn,s=!1,l;function c(d){return d==null||isNaN(d=+d)?l:a(i===0?.5:(d=(o(d)-n)*i,s?Math.max(0,Math.min(1,d)):d))}c.domain=function(d){return arguments.length?([e,t]=d,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(d){return arguments.length?(s=!!d,c):s},c.interpolator=function(d){return arguments.length?(a=d,c):a};function u(d){return function(p){var h,g;return arguments.length?([h,g]=p,a=d(h,g),c):[a(0),a(1)]}}return c.range=u(Da),c.rangeRound=u(Zg),c.unknown=function(d){return arguments.length?(l=d,c):l},function(d){return o=d,n=d(e),r=d(t),i=n===r?0:1/(r-n),c}}function Wi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function O2(){var e=Vi(Gd()(hn));return e.copy=function(){return Wi(e,O2())},pi.apply(e,arguments)}function S2(){var e=tv(Gd()).domain([1,10]);return e.copy=function(){return Wi(e,S2()).base(e.base())},pi.apply(e,arguments)}function E2(){var e=nv(Gd());return e.copy=function(){return Wi(e,E2()).constant(e.constant())},pi.apply(e,arguments)}function pv(){var e=rv(Gd());return e.copy=function(){return Wi(e,pv()).exponent(e.exponent())},pi.apply(e,arguments)}function YB(){return pv.apply(null,arguments).exponent(.5)}function _2(){var e=[],t=hn;function n(r){if(r!=null&&!isNaN(r=+r))return t((Nl(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Ti),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>NF(e,o/r))},n.copy=function(){return _2(t).domain(e)},pi.apply(n,arguments)}function Xd(){var e=0,t=.5,n=1,r=1,i,o,a,s,l,c=hn,u,d=!1,p;function h(m){return isNaN(m=+m)?p:(m=.5+((m=+u(m))-o)*(r*m<r*o?s:l),c(d?Math.max(0,Math.min(1,m)):m))}h.domain=function(m){return arguments.length?([e,t,n]=m,i=u(e=+e),o=u(t=+t),a=u(n=+n),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),r=o<i?-1:1,h):[e,t,n]},h.clamp=function(m){return arguments.length?(d=!!m,h):d},h.interpolator=function(m){return arguments.length?(c=m,h):c};function g(m){return function(v){var y,S,x;return arguments.length?([y,S,x]=v,c=a4(m,[y,S,x]),h):[c(0),c(.5),c(1)]}}return h.range=g(Da),h.rangeRound=g(Zg),h.unknown=function(m){return arguments.length?(p=m,h):p},function(m){return u=m,i=m(e),o=m(t),a=m(n),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),r=o<i?-1:1,h}}function P2(){var e=Vi(Xd()(hn));return e.copy=function(){return Wi(e,P2())},pi.apply(e,arguments)}function C2(){var e=tv(Xd()).domain([.1,1,10]);return e.copy=function(){return Wi(e,C2()).base(e.base())},pi.apply(e,arguments)}function T2(){var e=nv(Xd());return e.copy=function(){return Wi(e,T2()).constant(e.constant())},pi.apply(e,arguments)}function hv(){var e=rv(Xd());return e.copy=function(){return Wi(e,hv()).exponent(e.exponent())},pi.apply(e,arguments)}function GB(){return hv.apply(null,arguments).exponent(.5)}const Os=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Yg,scaleDiverging:P2,scaleDivergingLog:C2,scaleDivergingPow:hv,scaleDivergingSqrt:GB,scaleDivergingSymlog:T2,scaleIdentity:a2,scaleImplicit:xm,scaleLinear:o2,scaleLog:l2,scaleOrdinal:Kg,scalePoint:IF,scalePow:iv,scaleQuantile:d2,scaleQuantize:f2,scaleRadial:u2,scaleSequential:O2,scaleSequentialLog:S2,scaleSequentialPow:pv,scaleSequentialQuantile:_2,scaleSequentialSqrt:YB,scaleSequentialSymlog:E2,scaleSqrt:A4,scaleSymlog:c2,scaleThreshold:p2,scaleTime:qB,scaleUtc:KB,tickFormat:i2},Symbol.toStringTag,{value:"Module"}));var Ui=e=>e.chartData,mv=V([Ui],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),Zd=(e,t,n,r)=>r?mv(e):Ui(e);function Ea(e){if(Array.isArray(e)&&e.length===2){var[t,n]=e;if(zn(t)&&zn(n))return!0}return!1}function V1(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function XB(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[n,r]=e,i,o;if(zn(n))i=n;else if(typeof n=="function")return;if(zn(r))o=r;else if(typeof r=="function")return;var a=[i,o];if(Ea(a))return a}}function ZB(e,t,n){if(!(!n&&t==null)){if(typeof e=="function"&&t!=null)try{var r=e(t,n);if(Ea(r))return V1(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var[i,o]=e,a,s;if(i==="auto")t!=null&&(a=Math.min(...t));else if(ge(i))a=i;else if(typeof i=="function")try{t!=null&&(a=i(t?.[0]))}catch{}else if(typeof i=="string"&&Rx.test(i)){var l=Rx.exec(i);if(l==null||t==null)a=void 0;else{var c=+l[1];a=t[0]-c}}else a=t?.[0];if(o==="auto")t!=null&&(s=Math.max(...t));else if(ge(o))s=o;else if(typeof o=="function")try{t!=null&&(s=o(t?.[1]))}catch{}else if(typeof o=="string"&&Dx.test(o)){var u=Dx.exec(o);if(u==null||t==null)s=void 0;else{var d=+u[1];s=t[1]+d}}else s=t?.[1];var p=[a,s];if(Ea(p))return t==null?p:V1(p,t,n)}}}var Ia=1e9,JB={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},vv,ht=!0,ir="[DecimalError] ",Eo=ir+"Invalid argument: ",gv=ir+"Exponent out of range: ",$a=Math.floor,oo=Math.pow,QB=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Dn,Vt=1e7,ct=7,A2=9007199254740991,$u=$a(A2/ct),ue={};ue.absoluteValue=ue.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ue.comparedTo=ue.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1};ue.decimalPlaces=ue.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*ct;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};ue.dividedBy=ue.div=function(e){return ti(this,new this.constructor(e))};ue.dividedToIntegerBy=ue.idiv=function(e){var t=this,n=t.constructor;return nt(ti(t,new n(e),0,1),n.precision)};ue.equals=ue.eq=function(e){return!this.cmp(e)};ue.exponent=function(){return Rt(this)};ue.greaterThan=ue.gt=function(e){return this.cmp(e)>0};ue.greaterThanOrEqualTo=ue.gte=function(e){return this.cmp(e)>=0};ue.isInteger=ue.isint=function(){return this.e>this.d.length-2};ue.isNegative=ue.isneg=function(){return this.s<0};ue.isPositive=ue.ispos=function(){return this.s>0};ue.isZero=function(){return this.s===0};ue.lessThan=ue.lt=function(e){return this.cmp(e)<0};ue.lessThanOrEqualTo=ue.lte=function(e){return this.cmp(e)<1};ue.logarithm=ue.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Dn))throw Error(ir+"NaN");if(n.s<1)throw Error(ir+(n.s?"NaN":"-Infinity"));return n.eq(Dn)?new r(0):(ht=!1,t=ti(tl(n,o),tl(e,o),o),ht=!0,nt(t,i))};ue.minus=ue.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?j2(t,e):k2(t,(e.s=-e.s,e))};ue.modulo=ue.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(ir+"NaN");return n.s?(ht=!1,t=ti(n,e,0,1).times(e),ht=!0,n.minus(t)):nt(new r(n),i)};ue.naturalExponential=ue.exp=function(){return M2(this)};ue.naturalLogarithm=ue.ln=function(){return tl(this)};ue.negated=ue.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ue.plus=ue.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?k2(t,e):j2(t,(e.s=-e.s,e))};ue.precision=ue.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Eo+e);if(t=Rt(i)+1,r=i.d.length-1,n=r*ct+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};ue.squareRoot=ue.sqrt=function(){var e,t,n,r,i,o,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(ir+"NaN")}for(e=Rt(s),ht=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Cr(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=$a((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(i.toString()),n=l.precision,i=a=n+3;;)if(o=r,r=o.plus(ti(s,o,a+2)).times(.5),Cr(o.d).slice(0,a)===(t=Cr(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(nt(o,n+1,0),o.times(o).eq(s)){r=o;break}}else if(t!="9999")break;a+=4}return ht=!0,nt(r,n)};ue.times=ue.mul=function(e){var t,n,r,i,o,a,s,l,c,u=this,d=u.constructor,p=u.d,h=(e=new d(e)).d;if(!u.s||!e.s)return new d(0);for(e.s*=u.s,n=u.e+e.e,l=p.length,c=h.length,l<c&&(o=p,p=h,h=o,a=l,l=c,c=a),o=[],a=l+c,r=a;r--;)o.push(0);for(r=c;--r>=0;){for(t=0,i=l+r;i>r;)s=o[i]+h[r]*p[i-r-1]+t,o[i--]=s%Vt|0,t=s/Vt|0;o[i]=(o[i]+t)%Vt|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,ht?nt(e,d.precision):e};ue.toDecimalPlaces=ue.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Dr(e,0,Ia),t===void 0?t=r.rounding:Dr(t,0,8),nt(n,e+Rt(n)+1,t))};ue.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=ko(r,!0):(Dr(e,0,Ia),t===void 0?t=i.rounding:Dr(t,0,8),r=nt(new i(r),e+1,t),n=ko(r,!0,e+1)),n};ue.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?ko(i):(Dr(e,0,Ia),t===void 0?t=o.rounding:Dr(t,0,8),r=nt(new o(i),e+Rt(i)+1,t),n=ko(r.abs(),!1,e+Rt(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};ue.toInteger=ue.toint=function(){var e=this,t=e.constructor;return nt(new t(e),Rt(e)+1,t.rounding)};ue.toNumber=function(){return+this};ue.toPower=ue.pow=function(e){var t,n,r,i,o,a,s=this,l=s.constructor,c=12,u=+(e=new l(e));if(!e.s)return new l(Dn);if(s=new l(s),!s.s){if(e.s<1)throw Error(ir+"Infinity");return s}if(s.eq(Dn))return s;if(r=l.precision,e.eq(Dn))return nt(s,r);if(t=e.e,n=e.d.length-1,a=t>=n,o=s.s,a){if((n=u<0?-u:u)<=A2){for(i=new l(Dn),t=Math.ceil(r/ct+4),ht=!1;n%2&&(i=i.times(s),U1(i.d,t)),n=$a(n/2),n!==0;)s=s.times(s),U1(s.d,t);return ht=!0,e.s<0?new l(Dn).div(i):nt(i,r)}}else if(o<0)throw Error(ir+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,ht=!1,i=e.times(tl(s,r+c)),ht=!0,i=M2(i),i.s=o,i};ue.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=Rt(i),r=ko(i,n<=o.toExpNeg||n>=o.toExpPos)):(Dr(e,1,Ia),t===void 0?t=o.rounding:Dr(t,0,8),i=nt(new o(i),e,t),n=Rt(i),r=ko(i,e<=n||n<=o.toExpNeg,e)),r};ue.toSignificantDigits=ue.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Dr(e,1,Ia),t===void 0?t=r.rounding:Dr(t,0,8)),nt(new r(n),e,t)};ue.toString=ue.valueOf=ue.val=ue.toJSON=ue[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Rt(e),n=e.constructor;return ko(e,t<=n.toExpNeg||t>=n.toExpPos)};function k2(e,t){var n,r,i,o,a,s,l,c,u=e.constructor,d=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),ht?nt(t,d):t;if(l=e.d,c=t.d,a=e.e,i=t.e,l=l.slice(),o=a-i,o){for(o<0?(r=l,o=-o,s=c.length):(r=c,i=a,s=l.length),a=Math.ceil(d/ct),s=a>s?a+1:s+1,o>s&&(o=s,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(s=l.length,o=c.length,s-o<0&&(o=s,r=c,c=l,l=r),n=0;o;)n=(l[--o]=l[o]+c[o]+n)/Vt|0,l[o]%=Vt;for(n&&(l.unshift(n),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,ht?nt(t,d):t}function Dr(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Eo+e)}function Cr(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)r=e[t]+"",n=ct-r.length,n&&(o+=xi(n)),o+=r;a=e[t],r=a+"",n=ct-r.length,n&&(o+=xi(n))}else if(a===0)return"0";for(;a%10===0;)a/=10;return o+a}var ti=(function(){function e(r,i){var o,a=0,s=r.length;for(r=r.slice();s--;)o=r[s]*i+a,r[s]=o%Vt|0,a=o/Vt|0;return a&&r.unshift(a),r}function t(r,i,o,a){var s,l;if(o!=a)l=o>a?1:-1;else for(s=l=0;s<o;s++)if(r[s]!=i[s]){l=r[s]>i[s]?1:-1;break}return l}function n(r,i,o){for(var a=0;o--;)r[o]-=a,a=r[o]<i[o]?1:0,r[o]=a*Vt+r[o]-i[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,o,a){var s,l,c,u,d,p,h,g,m,v,y,S,x,b,O,E,C,T,k=r.constructor,R=r.s==i.s?1:-1,M=r.d,P=i.d;if(!r.s)return new k(r);if(!i.s)throw Error(ir+"Division by zero");for(l=r.e-i.e,C=P.length,O=M.length,h=new k(R),g=h.d=[],c=0;P[c]==(M[c]||0);)++c;if(P[c]>(M[c]||0)&&--l,o==null?S=o=k.precision:a?S=o+(Rt(r)-Rt(i))+1:S=o,S<0)return new k(0);if(S=S/ct+2|0,c=0,C==1)for(u=0,P=P[0],S++;(c<O||u)&&S--;c++)x=u*Vt+(M[c]||0),g[c]=x/P|0,u=x%P|0;else{for(u=Vt/(P[0]+1)|0,u>1&&(P=e(P,u),M=e(M,u),C=P.length,O=M.length),b=C,m=M.slice(0,C),v=m.length;v<C;)m[v++]=0;T=P.slice(),T.unshift(0),E=P[0],P[1]>=Vt/2&&++E;do u=0,s=t(P,m,C,v),s<0?(y=m[0],C!=v&&(y=y*Vt+(m[1]||0)),u=y/E|0,u>1?(u>=Vt&&(u=Vt-1),d=e(P,u),p=d.length,v=m.length,s=t(d,m,p,v),s==1&&(u--,n(d,C<p?T:P,p))):(u==0&&(s=u=1),d=P.slice()),p=d.length,p<v&&d.unshift(0),n(m,d,v),s==-1&&(v=m.length,s=t(P,m,C,v),s<1&&(u++,n(m,C<v?T:P,v))),v=m.length):s===0&&(u++,m=[0]),g[c++]=u,s&&m[0]?m[v++]=M[b]||0:(m=[M[b]],v=1);while((b++<O||m[0]!==void 0)&&S--)}return g[0]||g.shift(),h.e=l,nt(h,a?o+Rt(h)+1:o)}})();function M2(e,t){var n,r,i,o,a,s,l=0,c=0,u=e.constructor,d=u.precision;if(Rt(e)>16)throw Error(gv+Rt(e));if(!e.s)return new u(Dn);for(ht=!1,s=d,a=new u(.03125);e.abs().gte(.1);)e=e.times(a),c+=5;for(r=Math.log(oo(2,c))/Math.LN10*2+5|0,s+=r,n=i=o=new u(Dn),u.precision=s;;){if(i=nt(i.times(e),s),n=n.times(++l),a=o.plus(ti(i,n,s)),Cr(a.d).slice(0,s)===Cr(o.d).slice(0,s)){for(;c--;)o=nt(o.times(o),s);return u.precision=d,t==null?(ht=!0,nt(o,d)):o}o=a}}function Rt(e){for(var t=e.e*ct,n=e.d[0];n>=10;n/=10)t++;return t}function nh(e,t,n){if(t>e.LN10.sd())throw ht=!0,n&&(e.precision=n),Error(ir+"LN10 precision limit exceeded");return nt(new e(e.LN10),t)}function xi(e){for(var t="";e--;)t+="0";return t}function tl(e,t){var n,r,i,o,a,s,l,c,u,d=1,p=10,h=e,g=h.d,m=h.constructor,v=m.precision;if(h.s<1)throw Error(ir+(h.s?"NaN":"-Infinity"));if(h.eq(Dn))return new m(0);if(t==null?(ht=!1,c=v):c=t,h.eq(10))return t==null&&(ht=!0),nh(m,c);if(c+=p,m.precision=c,n=Cr(g),r=n.charAt(0),o=Rt(h),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)h=h.times(e),n=Cr(h.d),r=n.charAt(0),d++;o=Rt(h),r>1?(h=new m("0."+n),o++):h=new m(r+"."+n.slice(1))}else return l=nh(m,c+2,v).times(o+""),h=tl(new m(r+"."+n.slice(1)),c-p).plus(l),m.precision=v,t==null?(ht=!0,nt(h,v)):h;for(s=a=h=ti(h.minus(Dn),h.plus(Dn),c),u=nt(h.times(h),c),i=3;;){if(a=nt(a.times(u),c),l=s.plus(ti(a,new m(i),c)),Cr(l.d).slice(0,c)===Cr(s.d).slice(0,c))return s=s.times(2),o!==0&&(s=s.plus(nh(m,c+2,v).times(o+""))),s=ti(s,new m(d),c),m.precision=v,t==null?(ht=!0,nt(s,v)):s;s=l,i+=2}}function W1(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=$a(n/ct),e.d=[],r=(n+1)%ct,n<0&&(r+=ct),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=ct;r<i;)e.d.push(+t.slice(r,r+=ct));t=t.slice(r),r=ct-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),ht&&(e.e>$u||e.e<-$u))throw Error(gv+n)}else e.s=0,e.e=0,e.d=[0];return e}function nt(e,t,n){var r,i,o,a,s,l,c,u,d=e.d;for(a=1,o=d[0];o>=10;o/=10)a++;if(r=t-a,r<0)r+=ct,i=t,c=d[u=0];else{if(u=Math.ceil((r+1)/ct),o=d.length,u>=o)return e;for(c=o=d[u],a=1;o>=10;o/=10)a++;r%=ct,i=r-ct+a}if(n!==void 0&&(o=oo(10,a-i-1),s=c/o%10|0,l=t<0||d[u+1]!==void 0||c%o,l=n<4?(s||l)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||l||n==6&&(r>0?i>0?c/oo(10,a-i):0:d[u-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return l?(o=Rt(e),d.length=1,t=t-o-1,d[0]=oo(10,(ct-t%ct)%ct),e.e=$a(-t/ct)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=u,o=1,u--):(d.length=u+1,o=oo(10,ct-r),d[u]=i>0?(c/oo(10,a-i)%oo(10,i)|0)*o:0),l)for(;;)if(u==0){(d[0]+=o)==Vt&&(d[0]=1,++e.e);break}else{if(d[u]+=o,d[u]!=Vt)break;d[u--]=0,o=1}for(r=d.length;d[--r]===0;)d.pop();if(ht&&(e.e>$u||e.e<-$u))throw Error(gv+Rt(e));return e}function j2(e,t){var n,r,i,o,a,s,l,c,u,d,p=e.constructor,h=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),ht?nt(t,h):t;if(l=e.d,d=t.d,r=t.e,c=e.e,l=l.slice(),a=c-r,a){for(u=a<0,u?(n=l,a=-a,s=d.length):(n=d,r=c,s=l.length),i=Math.max(Math.ceil(h/ct),s)+2,a>i&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for(i=l.length,s=d.length,u=i<s,u&&(s=i),i=0;i<s;i++)if(l[i]!=d[i]){u=l[i]<d[i];break}a=0}for(u&&(n=l,l=d,d=n,t.s=-t.s),s=l.length,i=d.length-s;i>0;--i)l[s++]=0;for(i=d.length;i>a;){if(l[--i]<d[i]){for(o=i;o&&l[--o]===0;)l[o]=Vt-1;--l[o],l[i]+=Vt}l[i]-=d[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,ht?nt(t,h):t):new p(0)}function ko(e,t,n){var r,i=Rt(e),o=Cr(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+xi(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+xi(-i-1)+o,n&&(r=n-a)>0&&(o+=xi(r))):i>=a?(o+=xi(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+xi(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=xi(r))),e.s<0?"-"+o:o}function U1(e,t){if(e.length>t)return e.length=t,!0}function N2(e){var t,n,r;function i(o){var a=this;if(!(a instanceof i))return new i(o);if(a.constructor=i,o instanceof i){a.s=o.s,a.e=o.e,a.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(Eo+o);if(o>0)a.s=1;else if(o<0)o=-o,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(o===~~o&&o<1e7){a.e=0,a.d=[o];return}return W1(a,o.toString())}else if(typeof o!="string")throw Error(Eo+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,QB.test(o))W1(a,o);else throw Error(Eo+o)}if(i.prototype=ue,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=N2,i.config=i.set=e6,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function e6(e){if(!e||typeof e!="object")throw Error(ir+"Object expected");var t,n,r,i=["precision",1,Ia,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if($a(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Eo+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Eo+n+": "+r);return this}var vv=N2(JB);Dn=new vv(1);const He=vv;var t6=e=>e,R2={},D2=e=>e===R2,H1=e=>function t(){return arguments.length===0||arguments.length===1&&D2(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},I2=(e,t)=>e===1?t:H1(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=r.filter(a=>a!==R2).length;return o>=e?t(...r):I2(e-o,H1(function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=r.map(u=>D2(u)?s.shift():u);return t(...c,...s)}))}),Jd=e=>I2(e.length,e),Em=(e,t)=>{for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},n6=Jd((e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(n=>t[n]).map(e)),r6=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return t6;var i=n.reverse(),o=i[0],a=i.slice(1);return function(){return a.reduce((s,l)=>l(s),o(...arguments))}},_m=e=>Array.isArray(e)?e.reverse():e.split("").reverse().join(""),$2=e=>{var t=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t&&i.every((a,s)=>{var l;return a===((l=t)===null||l===void 0?void 0:l[s])})||(t=i,n=e(...i)),n}};function L2(e){var t;return e===0?t=1:t=Math.floor(new He(e).abs().log(10).toNumber())+1,t}function F2(e,t,n){for(var r=new He(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}Jd((e,t,n)=>{var r=+e,i=+t;return r+n*(i-r)});Jd((e,t,n)=>{var r=t-+e;return r=r||1/0,(n-e)/r});Jd((e,t,n)=>{var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});var B2=e=>{var[t,n]=e,[r,i]=[t,n];return t>n&&([r,i]=[n,t]),[r,i]},z2=(e,t,n)=>{if(e.lte(0))return new He(0);var r=L2(e.toNumber()),i=new He(10).pow(r),o=e.div(i),a=r!==1?.05:.1,s=new He(Math.ceil(o.div(a).toNumber())).add(n).mul(a),l=s.mul(i);return t?new He(l.toNumber()):new He(Math.ceil(l.toNumber()))},i6=(e,t,n)=>{var r=new He(1),i=new He(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new He(10).pow(L2(e)-1),i=new He(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new He(Math.floor(e)))}else e===0?i=new He(Math.floor((t-1)/2)):n||(i=new He(Math.floor(e)));var a=Math.floor((t-1)/2),s=r6(n6(l=>i.add(new He(l-a).mul(r)).toNumber()),Em);return s(0,t)},V2=function(t,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((n-t)/(r-1)))return{step:new He(0),tickMin:new He(0),tickMax:new He(0)};var a=z2(new He(n).sub(t).div(r-1),i,o),s;t<=0&&n>=0?s=new He(0):(s=new He(t).add(n).div(2),s=s.sub(new He(s).mod(a)));var l=Math.ceil(s.sub(t).div(a).toNumber()),c=Math.ceil(new He(n).sub(s).div(a).toNumber()),u=l+c+1;return u>r?V2(t,n,r,i,o+1):(u<r&&(c=n>0?c+(r-u):c,l=n>0?l:l+(r-u)),{step:a,tickMin:s.sub(new He(l).mul(a)),tickMax:s.add(new He(c).mul(a))})};function o6(e){var[t,n]=e,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(r,2),[a,s]=B2([t,n]);if(a===-1/0||s===1/0){var l=s===1/0?[a,...Em(0,r-1).map(()=>1/0)]:[...Em(0,r-1).map(()=>-1/0),s];return t>n?_m(l):l}if(a===s)return i6(a,r,i);var{step:c,tickMin:u,tickMax:d}=V2(a,s,o,i,0),p=F2(u,d.add(new He(.1).mul(c)),c);return t>n?_m(p):p}function a6(e,t){var[n,r]=e,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[o,a]=B2([n,r]);if(o===-1/0||a===1/0)return[n,r];if(o===a)return[o];var s=Math.max(t,2),l=z2(new He(a).sub(o).div(s-1),i,0),c=[...F2(new He(o),new He(a),l),a];return i===!1&&(c=c.map(u=>Math.round(u))),n>r?_m(c):c}var s6=$2(o6),l6=$2(a6),W2=e=>e.rootProps.maxBarSize,c6=e=>e.rootProps.barGap,U2=e=>e.rootProps.barCategoryGap,u6=e=>e.rootProps.barSize,$l=e=>e.rootProps.stackOffset,yv=e=>e.options.chartName,bv=e=>e.rootProps.syncId,H2=e=>e.rootProps.syncMethod,xv=e=>e.options.eventEmitter,Yr={allowDuplicatedCategory:!0,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"category"},jn={allowDataOverflow:!1,allowDuplicatedCategory:!0,radiusAxisId:0,scale:"auto",tick:!0,tickCount:5,type:"number"},Qd=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t},d6={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:Yr.angleAxisId,includeHidden:!1,name:void 0,reversed:Yr.reversed,scale:Yr.scale,tick:Yr.tick,tickCount:void 0,ticks:void 0,type:Yr.type,unit:void 0},f6={allowDataOverflow:jn.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:jn.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:jn.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:jn.scale,tick:jn.tick,tickCount:jn.tickCount,ticks:void 0,type:jn.type,unit:void 0},p6={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:Yr.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Yr.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Yr.scale,tick:Yr.tick,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},h6={allowDataOverflow:jn.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:jn.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:jn.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:jn.scale,tick:jn.tick,tickCount:jn.tickCount,ticks:void 0,type:"category",unit:void 0},wv=(e,t)=>e.polarAxis.angleAxis[t]!=null?e.polarAxis.angleAxis[t]:e.layout.layoutType==="radial"?p6:d6,Ov=(e,t)=>e.polarAxis.radiusAxis[t]!=null?e.polarAxis.radiusAxis[t]:e.layout.layoutType==="radial"?h6:f6,ef=e=>e.polarOptions,Sv=V([di,fi,$t],PP),q2=V([ef,Sv],(e,t)=>{if(e!=null)return un(e.innerRadius,t,0)}),K2=V([ef,Sv],(e,t)=>{if(e!=null)return un(e.outerRadius,t,t*.8)}),m6=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]},Y2=V([ef],m6);V([wv,Y2],Qd);var G2=V([Sv,q2,K2],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});V([Ov,G2],Qd);var X2=V([Ce,ef,q2,K2,di,fi],(e,t,n,r,i,o)=>{if(!(e!=="centric"&&e!=="radial"||t==null||n==null||r==null)){var{cx:a,cy:s,startAngle:l,endAngle:c}=t;return{cx:un(a,i,i/2),cy:un(s,o,o/2),innerRadius:n,outerRadius:r,startAngle:l,endAngle:c,clockWise:!1}}}),gt=(e,t)=>t,Ll=(e,t,n)=>n;function Ev(e){return e?.id}var Ft=e=>{var t=Ce(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},La=e=>e.tooltip.settings.axisId,Yt=e=>{var t=Ft(e),n=La(e);return Fl(e,t,n)},Z2=V([Yt],e=>e?.dataKey);function J2(e,t,n){var{chartData:r=[]}=t,{allowDuplicatedCategory:i,dataKey:o}=n,a=new Map;return e.forEach(s=>{var l,c=(l=s.data)!==null&&l!==void 0?l:r;if(!(c==null||c.length===0)){var u=Ev(s);c.forEach((d,p)=>{var h=o==null||i?p:String(at(d,o,null)),g=at(d,s.dataKey,0),m;a.has(h)?m=a.get(h):m={},Object.assign(m,{[u]:g}),a.set(h,m)})}}),Array.from(a.values())}function tf(e){return e.stackId!=null&&e.dataKey!=null}function q1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Lu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q1(Object(n),!0).forEach(function(r){g6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function g6(e,t,n){return(t=v6(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v6(e){var t=y6(e,"string");return typeof t=="symbol"?t:t+""}function y6(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Pm=[0,"auto"],An={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},Q2=(e,t)=>e.cartesianAxis.xAxis[t],hi=(e,t)=>{var n=Q2(e,t);return n??An},kn={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Pm,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:kl},eC=(e,t)=>e.cartesianAxis.yAxis[t],mi=(e,t)=>{var n=eC(e,t);return n??kn},b6={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},_v=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return n??b6},kt=(e,t,n)=>{switch(t){case"xAxis":return hi(e,n);case"yAxis":return mi(e,n);case"zAxis":return _v(e,n);case"angleAxis":return wv(e,n);case"radiusAxis":return Ov(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},x6=(e,t,n)=>{switch(t){case"xAxis":return hi(e,n);case"yAxis":return mi(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Fl=(e,t,n)=>{switch(t){case"xAxis":return hi(e,n);case"yAxis":return mi(e,n);case"angleAxis":return wv(e,n);case"radiusAxis":return Ov(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},tC=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function Pv(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var nf=e=>e.graphicalItems.cartesianItems,w6=V([gt,Ll],Pv),Cv=(e,t,n)=>e.filter(n).filter(r=>t?.includeHidden===!0?!0:!r.hide),Bl=V([nf,kt,w6],Cv),nC=V([Bl],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(tf)),rC=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),iC=V([Bl],rC),Tv=e=>e.map(t=>t.data).filter(Boolean).flat(1),O6=V([Bl],Tv),Av=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:i}=t;return e.length>0?e:n.slice(r,i+1)},kv=V([O6,Zd],Av),Mv=(e,t,n)=>t?.dataKey!=null?e.map(r=>({value:at(r,t.dataKey)})):n.length>0?n.map(r=>r.dataKey).flatMap(r=>e.map(i=>({value:at(i,r)}))):e.map(r=>({value:r})),rf=V([kv,kt,Bl],Mv);function oC(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function Bo(e){return e.filter(t=>Rr(t)||t instanceof Date).map(Number).filter(t=>Fn(t)===!1)}function S6(e,t,n){return!n||typeof t!="number"||Fn(t)?[]:n.length?Bo(n.flatMap(r=>{var i=at(e,r.dataKey),o,a;if(Array.isArray(i)?[o,a]=i:o=a=i,!(!zn(o)||!zn(a)))return[t-o,t+a]})):[]}var E6=V([nC,Zd,Yt],J2),aC=(e,t,n)=>{var r={},i=t.reduce((o,a)=>(a.stackId==null||(o[a.stackId]==null&&(o[a.stackId]=[]),o[a.stackId].push(a)),o),r);return Object.fromEntries(Object.entries(i).map(o=>{var[a,s]=o,l=s.map(Ev);return[a,{stackedData:z5(e,l,n),graphicalItems:s}]}))},Cm=V([E6,nC,$l],aC),sC=(e,t,n)=>{var{dataStartIndex:r,dataEndIndex:i}=t;if(n!=="zAxis"){var o=q5(e,r,i);if(!(o!=null&&o[0]===0&&o[1]===0))return o}},_6=V([Cm,Ui,gt],sC),lC=(e,t,n,r,i)=>n.length>0?e.flatMap(o=>n.flatMap(a=>{var s,l,c=(s=r[a.id])===null||s===void 0?void 0:s.filter(d=>oC(i,d)),u=at(o,(l=t.dataKey)!==null&&l!==void 0?l:a.dataKey);return{value:u,errorDomain:S6(o,u,c)}})).filter(Boolean):t?.dataKey!=null?e.map(o=>({value:at(o,t.dataKey),errorDomain:[]})):e.map(o=>({value:o,errorDomain:[]})),of=e=>e.errorBars,cC=(e,t,n)=>e.flatMap(r=>t[r.id]).filter(Boolean).filter(r=>oC(n,r));V([iC,of,gt],cC);var P6=V([kv,kt,iC,of,gt],lC);function C6(e){var{value:t}=e;if(Rr(t)||t instanceof Date)return t}var K1=e=>{var t=e.flatMap(r=>[r.value,r.errorDomain]).flat(1),n=Bo(t);if(n.length!==0)return[Math.min(...n),Math.max(...n)]},T6=(e,t,n)=>{var r=e.map(C6).filter(i=>i!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&m_(r))?YP(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},jv=e=>{var t;if(e==null||!("domain"in e))return Pm;if(e.domain!=null)return e.domain;if(e.ticks!=null){if(e.type==="number"){var n=Bo(e.ticks);return[Math.min(...n),Math.max(...n)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:Pm},Fu=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.filter(Boolean);if(i.length!==0){var o=i.flat(),a=Math.min(...o),s=Math.max(...o);return[a,s]}},uC=e=>e.referenceElements.dots,Fa=(e,t,n)=>e.filter(r=>r.ifOverflow==="extendDomain").filter(r=>t==="xAxis"?r.xAxisId===n:r.yAxisId===n),A6=V([uC,gt,Ll],Fa),dC=e=>e.referenceElements.areas,k6=V([dC,gt,Ll],Fa),fC=e=>e.referenceElements.lines,M6=V([fC,gt,Ll],Fa),pC=(e,t)=>{var n=Bo(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]},j6=V(A6,gt,pC),hC=(e,t)=>{var n=Bo(e.flatMap(r=>[t==="xAxis"?r.x1:r.y1,t==="xAxis"?r.x2:r.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]},N6=V([k6,gt],hC),mC=(e,t)=>{var n=Bo(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]},R6=V(M6,gt,mC),D6=V(j6,R6,N6,(e,t,n)=>Fu(e,n,t)),gC=V([kt],jv),Nv=(e,t,n,r,i,o,a)=>{var s=XB(t,e.allowDataOverflow);if(s!=null)return s;var l=o==="vertical"&&a==="xAxis"||o==="horizontal"&&a==="yAxis",c=l?Fu(n,i,K1(r)):Fu(i,K1(r));return ZB(t,c,e.allowDataOverflow)},I6=V([kt,gC,_6,P6,D6,Ce,gt],Nv),$6=[0,1],Rv=(e,t,n,r,i,o,a)=>{if(!((e==null||n==null||n.length===0)&&a===void 0)){var{dataKey:s,type:l}=e,c=Bi(t,o);return c&&s==null?YP(0,n.length):l==="category"?T6(r,e,c):i==="expand"?$6:a}},Dv=V([kt,Ce,kv,rf,$l,gt,I6],Rv),vC=(e,t,n,r,i)=>{if(e!=null){var{scale:o,type:a}=e;if(o==="auto")return t==="radial"&&i==="radiusAxis"?"band":t==="radial"&&i==="angleAxis"?"linear":a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?"point":a==="category"?"band":"linear";if(typeof o=="string"){var s="scale".concat(_l(o));return s in Os?s:"point"}}},Ba=V([kt,Ce,tC,yv,gt],vC);function L6(e){if(e!=null){if(e in Os)return Os[e]();var t="scale".concat(_l(e));if(t in Os)return Os[t]()}}function Iv(e,t,n,r){if(!(n==null||r==null)){if(typeof e.scale=="function")return e.scale.copy().domain(n).range(r);var i=L6(t);if(i!=null){var o=i.domain(n).range(r);return I5(o),o}}}var $v=(e,t,n)=>{var r=jv(t);if(!(n!=="auto"&&n!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(r)&&(r[0]==="auto"||r[1]==="auto")&&Ea(e))return s6(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&Ea(e))return l6(e,t.tickCount,t.allowDecimals)}},Lv=V([Dv,Fl,Ba],$v),Fv=(e,t,n,r)=>{if(r!=="angleAxis"&&e?.type==="number"&&Ea(t)&&Array.isArray(n)&&n.length>0){var i=t[0],o=n[0],a=t[1],s=n[n.length-1];return[Math.min(i,o),Math.max(a,s)]}return t},F6=V([kt,Dv,Lv,gt],Fv),B6=V(rf,kt,(e,t)=>{if(!(!t||t.type!=="number")){var n=1/0,r=Array.from(Bo(e.map(s=>s.value))).sort((s,l)=>s-l);if(r.length<2)return 1/0;var i=r[r.length-1]-r[0];if(i===0)return 1/0;for(var o=0;o<r.length-1;o++){var a=r[o+1]-r[o];n=Math.min(n,a)}return n/i}}),yC=V(B6,Ce,U2,$t,(e,t,n,r)=>r,(e,t,n,r,i)=>{if(!zn(e))return 0;var o=t==="vertical"?r.height:r.width;if(i==="gap")return e*o/2;if(i==="no-gap"){var a=un(n,e*o),s=e*o/2;return s-a-(s-a)/o*a}return 0}),z6=(e,t)=>{var n=hi(e,t);return n==null||typeof n.padding!="string"?0:yC(e,"xAxis",t,n.padding)},V6=(e,t)=>{var n=mi(e,t);return n==null||typeof n.padding!="string"?0:yC(e,"yAxis",t,n.padding)},W6=V(hi,z6,(e,t)=>{var n,r;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((n=i.left)!==null&&n!==void 0?n:0)+t,right:((r=i.right)!==null&&r!==void 0?r:0)+t}}),U6=V(mi,V6,(e,t)=>{var n,r;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((n=i.top)!==null&&n!==void 0?n:0)+t,bottom:((r=i.bottom)!==null&&r!==void 0?r:0)+t}}),H6=V([$t,W6,Wd,Vd,(e,t,n)=>n],(e,t,n,r,i)=>{var{padding:o}=r;return i?[o.left,n.width-o.right]:[e.left+t.left,e.left+e.width-t.right]}),q6=V([$t,Ce,U6,Wd,Vd,(e,t,n)=>n],(e,t,n,r,i,o)=>{var{padding:a}=i;return o?[r.height-a.bottom,a.top]:t==="horizontal"?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),zl=(e,t,n,r)=>{var i;switch(t){case"xAxis":return H6(e,n,r);case"yAxis":return q6(e,n,r);case"zAxis":return(i=_v(e,n))===null||i===void 0?void 0:i.range;case"angleAxis":return Y2(e);case"radiusAxis":return G2(e,n);default:return}},bC=V([kt,zl],Qd),za=V([kt,Ba,F6,bC],Iv);V([Bl,of,gt],cC);function xC(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var af=(e,t)=>t,sf=(e,t,n)=>n,K6=V(Bd,af,sf,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(xC)),Y6=V(zd,af,sf,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(xC)),wC=(e,t)=>({width:e.width,height:t.height}),G6=(e,t)=>{var n=typeof t.width=="number"?t.width:kl;return{width:n,height:e.height}},OC=V($t,hi,wC),X6=(e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}},Z6=(e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}},J6=V(fi,$t,K6,af,sf,(e,t,n,r,i)=>{var o={},a;return n.forEach(s=>{var l=wC(t,s);a==null&&(a=X6(t,r,e));var c=r==="top"&&!i||r==="bottom"&&i;o[s.id]=a-Number(c)*l.height,a+=(c?-1:1)*l.height}),o}),Q6=V(di,$t,Y6,af,sf,(e,t,n,r,i)=>{var o={},a;return n.forEach(s=>{var l=G6(t,s);a==null&&(a=Z6(t,r,e));var c=r==="left"&&!i||r==="right"&&i;o[s.id]=a-Number(c)*l.width,a+=(c?-1:1)*l.width}),o}),e3=(e,t)=>{var n=hi(e,t);if(n!=null)return J6(e,n.orientation,n.mirror)},t3=V([$t,hi,e3,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n?.[r];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),n3=(e,t)=>{var n=mi(e,t);if(n!=null)return Q6(e,n.orientation,n.mirror)},r3=V([$t,mi,n3,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n?.[r];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),SC=V($t,mi,(e,t)=>{var n=typeof t.width=="number"?t.width:kl;return{width:n,height:e.height}}),Y1=(e,t,n)=>{switch(t){case"xAxis":return OC(e,n).width;case"yAxis":return SC(e,n).height;default:return}},EC=(e,t,n,r)=>{if(n!=null){var{allowDuplicatedCategory:i,type:o,dataKey:a}=n,s=Bi(e,r),l=t.map(c=>c.value);if(a&&s&&o==="category"&&i&&m_(l))return l}},Bv=V([Ce,rf,kt,gt],EC),_C=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var{type:i,scale:o}=n,a=Bi(e,r);if(a&&(i==="number"||o!=="auto"))return t.map(s=>s.value)}},zv=V([Ce,rf,Fl,gt],_C),G1=V([Ce,x6,Ba,za,Bv,zv,zl,Lv,gt],(e,t,n,r,i,o,a,s,l)=>{if(t==null)return null;var c=Bi(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:o,duplicateDomain:i,isCategorical:c,niceTicks:s,range:a,realScaleType:n,scale:r}}),i3=(e,t,n,r,i,o,a,s,l)=>{if(!(t==null||r==null)){var c=Bi(e,l),{type:u,ticks:d,tickCount:p}=t,h=n==="scaleBand"&&typeof r.bandwidth=="function"?r.bandwidth()/2:2,g=u==="category"&&r.bandwidth?r.bandwidth()/h:0;g=l==="angleAxis"&&o!=null&&o.length>=2?Ut(o[0]-o[1])*2*g:g;var m=d||i;if(m){var v=m.map((y,S)=>{var x=a?a.indexOf(y):y;return{index:S,coordinate:r(x)+g,value:y,offset:g}});return v.filter(y=>!Fn(y.coordinate))}return c&&s?s.map((y,S)=>({coordinate:r(y)+g,value:y,index:S,offset:g})):r.ticks?r.ticks(p).map(y=>({coordinate:r(y)+g,value:y,offset:g})):r.domain().map((y,S)=>({coordinate:r(y)+g,value:a?a[y]:y,index:S,offset:g}))}},PC=V([Ce,Fl,Ba,za,Lv,zl,Bv,zv,gt],i3),o3=(e,t,n,r,i,o,a)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var s=Bi(e,a),{tickCount:l}=t,c=0;return c=a==="angleAxis"&&r?.length>=2?Ut(r[0]-r[1])*2*c:c,s&&o?o.map((u,d)=>({coordinate:n(u)+c,value:u,index:d,offset:c})):n.ticks?n.ticks(l).map(u=>({coordinate:n(u)+c,value:u,offset:c})):n.domain().map((u,d)=>({coordinate:n(u)+c,value:i?i[u]:u,index:d,offset:c}))}},ji=V([Ce,Fl,za,zl,Bv,zv,gt],o3),Ni=V(kt,za,(e,t)=>{if(!(e==null||t==null))return Lu(Lu({},e),{},{scale:t})}),a3=V([kt,Ba,Dv,bC],Iv);V((e,t,n)=>_v(e,n),a3,(e,t)=>{if(!(e==null||t==null))return Lu(Lu({},e),{},{scale:t})});var s3=V([Ce,Bd,zd],(e,t,n)=>{switch(e){case"horizontal":return t.some(r=>r.reversed)?"right-to-left":"left-to-right";case"vertical":return n.some(r=>r.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),CC=e=>e.options.defaultTooltipEventType,TC=e=>e.options.validateTooltipEventTypes;function AC(e,t,n){if(e==null)return t;var r=e?"axis":"item";return n==null?t:n.includes(r)?r:t}function Vv(e,t){var n=CC(e),r=TC(e);return AC(t,n,r)}function l3(e){return he(t=>Vv(t,e))}var kC=(e,t)=>{var n,r=Number(t);if(!(Fn(r)||t==null))return r>=0?e==null||(n=e[r])===null||n===void 0?void 0:n.value:void 0},c3=e=>e.tooltip.settings,Oi={active:!1,index:null,dataKey:void 0,coordinate:void 0},u3={itemInteraction:{click:Oi,hover:Oi},axisInteraction:{click:Oi,hover:Oi},keyboardInteraction:Oi,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},MC=Un({name:"tooltip",initialState:u3,reducers:{addTooltipEntrySettings(e,t){e.tooltipItemPayloads.push(t.payload)},removeTooltipEntrySettings(e,t){var n=ei(e).tooltipItemPayloads.indexOf(t.payload);n>-1&&e.tooltipItemPayloads.splice(n,1)},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate,e.keyboardInteraction.dataKey=t.payload.activeDataKey}}}),{addTooltipEntrySettings:d3,removeTooltipEntrySettings:f3,setTooltipSettingsState:p3,setActiveMouseOverItemIndex:jC,mouseLeaveItem:h3,mouseLeaveChart:NC,setActiveClickItemIndex:m3,setMouseOverAxisIndex:RC,setMouseClickAxisIndex:g3,setSyncInteraction:Tm,setKeyboardInteraction:Am}=MC.actions,v3=MC.reducer;function X1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Oc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X1(Object(n),!0).forEach(function(r){y3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function y3(e,t,n){return(t=b3(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b3(e){var t=x3(e,"string");return typeof t=="symbol"?t:t+""}function x3(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function w3(e,t,n){return t==="axis"?n==="click"?e.axisInteraction.click:e.axisInteraction.hover:n==="click"?e.itemInteraction.click:e.itemInteraction.hover}function O3(e){return e.index!=null}var DC=(e,t,n,r)=>{if(t==null)return Oi;var i=w3(e,t,n);if(i==null)return Oi;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var o=e.settings.active===!0;if(O3(i)){if(o)return Oc(Oc({},i),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r};return Oc(Oc({},Oi),{},{coordinate:i.coordinate})},Wv=(e,t)=>{var n=e?.index;if(n==null)return null;var r=Number(n);if(!zn(r))return n;var i=0,o=1/0;return t.length>0&&(o=t.length-1),String(Math.max(i,Math.min(r,o)))},IC=(e,t,n,r,i,o,a,s)=>{if(!(o==null||s==null)){var l=a[0],c=l==null?void 0:s(l.positions,o);if(c!=null)return c;var u=i?.[Number(o)];if(u)switch(n){case"horizontal":return{x:u.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:u.coordinate}}}},$C=(e,t,n,r)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;return n==="hover"?i=e.itemInteraction.hover.dataKey:i=e.itemInteraction.click.dataKey,i==null&&r!=null?[e.tooltipItemPayloads[0]]:e.tooltipItemPayloads.filter(o=>{var a;return((a=o.settings)===null||a===void 0?void 0:a.dataKey)===i})},Vl=e=>e.options.tooltipPayloadSearcher,Va=e=>e.tooltip;function Z1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function J1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Z1(Object(n),!0).forEach(function(r){S3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function S3(e,t,n){return(t=E3(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E3(e){var t=_3(e,"string");return typeof t=="symbol"?t:t+""}function _3(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function P3(e,t){return e??t}var LC=(e,t,n,r,i,o,a)=>{if(!(t==null||o==null)){var{chartData:s,computedData:l,dataStartIndex:c,dataEndIndex:u}=n,d=[];return e.reduce((p,h)=>{var g,{dataDefinedOnItem:m,settings:v}=h,y=P3(m,s),S=Array.isArray(y)?CP(y,c,u):y,x=(g=v?.dataKey)!==null&&g!==void 0?g:r,b=v?.nameKey,O;if(r&&Array.isArray(S)&&!Array.isArray(S[0])&&a==="axis"?O=g_(S,r,i):O=o(S,t,l,b),Array.isArray(O))O.forEach(C=>{var T=J1(J1({},v),{},{name:C.name,unit:C.unit,color:void 0,fill:void 0});p.push(Ix({tooltipEntrySettings:T,dataKey:C.dataKey,payload:C.payload,value:at(C.payload,C.dataKey),name:C.name}))});else{var E;p.push(Ix({tooltipEntrySettings:v,dataKey:x,payload:O,value:at(O,x),name:(E=at(O,b))!==null&&E!==void 0?E:v?.name}))}return p},d)}},Uv=V([Yt,Ce,tC,yv,Ft],vC),C3=V([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),T3=V([Ft,La],Pv),Wl=V([C3,Yt,T3],Cv),A3=V([Wl],e=>e.filter(tf)),k3=V([Wl],Tv),Wa=V([k3,Ui],Av),M3=V([A3,Ui,Yt],J2),Hv=V([Wa,Yt,Wl],Mv),j3=V([Yt],jv),N3=V([Wl],e=>e.filter(tf)),R3=V([M3,N3,$l],aC),D3=V([R3,Ui,Ft],sC),I3=V([Wl],rC),$3=V([Wa,Yt,I3,of,Ft],lC),L3=V([uC,Ft,La],Fa),F3=V([L3,Ft],pC),B3=V([dC,Ft,La],Fa),z3=V([B3,Ft],hC),V3=V([fC,Ft,La],Fa),W3=V([V3,Ft],mC),U3=V([F3,W3,z3],Fu),H3=V([Yt,j3,D3,$3,U3,Ce,Ft],Nv),FC=V([Yt,Ce,Wa,Hv,$l,Ft,H3],Rv),q3=V([FC,Yt,Uv],$v),K3=V([Yt,FC,q3,Ft],Fv),BC=e=>{var t=Ft(e),n=La(e),r=!1;return zl(e,t,n,r)},zC=V([Yt,BC],Qd),VC=V([Yt,Uv,K3,zC],Iv),Y3=V([Ce,Hv,Yt,Ft],EC),G3=V([Ce,Hv,Yt,Ft],_C),X3=(e,t,n,r,i,o,a,s)=>{if(t){var{type:l}=t,c=Bi(e,s);if(r){var u=n==="scaleBand"&&r.bandwidth?r.bandwidth()/2:2,d=l==="category"&&r.bandwidth?r.bandwidth()/u:0;return d=s==="angleAxis"&&i!=null&&i?.length>=2?Ut(i[0]-i[1])*2*d:d,c&&a?a.map((p,h)=>({coordinate:r(p)+d,value:p,index:h,offset:d})):r.domain().map((p,h)=>({coordinate:r(p)+d,value:o?o[p]:p,index:h,offset:d}))}}},gi=V([Ce,Yt,Uv,VC,BC,Y3,G3,Ft],X3),qv=V([CC,TC,c3],(e,t,n)=>AC(n.shared,e,t)),WC=e=>e.tooltip.settings.trigger,Kv=e=>e.tooltip.settings.defaultIndex,lf=V([Va,qv,WC,Kv],DC),Ri=V([lf,Wa],Wv),UC=V([gi,Ri],kC),HC=V([lf],e=>{if(e)return e.dataKey}),qC=V([Va,qv,WC,Kv],$C),Z3=V([di,fi,Ce,$t,gi,Kv,qC,Vl],IC),J3=V([lf,Z3],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),Q3=V([lf],e=>e.active),e8=V([qC,Ri,Ui,Z2,UC,Vl,qv],LC),t8=V([e8],e=>{if(e!=null){var t=e.map(n=>n.payload).filter(n=>n!=null);return Array.from(new Set(t))}});function Q1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ew(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Q1(Object(n),!0).forEach(function(r){n8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function n8(e,t,n){return(t=r8(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r8(e){var t=i8(e,"string");return typeof t=="symbol"?t:t+""}function i8(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var o8=()=>he(Yt),a8=()=>{var e=o8(),t=he(gi),n=he(VC);return Gs(ew(ew({},e),{},{scale:n}),t)},s8=()=>he(yv),Yv=(e,t)=>t,KC=(e,t,n)=>n,Gv=(e,t,n,r)=>r,l8=V(gi,e=>Dd(e,t=>t.coordinate)),Xv=V([Va,Yv,KC,Gv],DC),YC=V([Xv,Wa],Wv),c8=(e,t,n)=>{if(t!=null){var r=Va(e);return t==="axis"?n==="hover"?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n==="hover"?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},GC=V([Va,Yv,KC,Gv],$C),Bu=V([di,fi,Ce,$t,gi,Gv,GC,Vl],IC),u8=V([Xv,Bu],(e,t)=>{var n;return(n=e.coordinate)!==null&&n!==void 0?n:t}),XC=V(gi,YC,kC),d8=V([GC,YC,Ui,Z2,XC,Vl,Yv],LC),f8=V([Xv],e=>({isActive:e.active,activeIndex:e.index})),p8=(e,t,n,r,i,o,a,s)=>{if(!(!e||!t||!r||!i||!o)){var l=K5(e.chartX,e.chartY,t,n,s);if(l){var c=G5(l,t),u=R5(c,a,o,r,i),d=Y5(t,o,u,l);return{activeIndex:String(u),activeCoordinate:d}}}};function km(){return km=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},km.apply(null,arguments)}function tw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Sc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tw(Object(n),!0).forEach(function(r){h8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function h8(e,t,n){return(t=m8(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m8(e){var t=g8(e,"string");return typeof t=="symbol"?t:t+""}function g8(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function v8(e){var{coordinate:t,payload:n,index:r,offset:i,tooltipAxisBandSize:o,layout:a,cursor:s,tooltipEventType:l,chartName:c}=e,u=t,d=n,p=r;if(!s||!u||c!=="ScatterChart"&&l!=="axis")return null;var h,g;if(c==="ScatterChart")h=u,g=IL;else if(c==="BarChart")h=$L(a,u,i,o),g=UP;else if(a==="radial"){var{cx:m,cy:v,radius:y,startAngle:S,endAngle:x}=HP(u);h={cx:m,cy:v,startAngle:S,endAngle:x,innerRadius:y,outerRadius:y},g=KP}else h={points:gF(a,u,i)},g=Hg;var b=typeof s=="object"&&"className"in s?s.className:void 0,O=Sc(Sc(Sc(Sc({stroke:"#ccc",pointerEvents:"none"},i),h),vt(s,!1)),{},{payload:d,payloadIndex:p,className:oe("recharts-tooltip-cursor",b)});return I.isValidElement(s)?I.cloneElement(s,O):I.createElement(g,O)}function y8(e){var t=a8(),n=NP(),r=Ud(),i=s8();return _.createElement(v8,km({},e,{coordinate:e.coordinate,index:e.index,payload:e.payload,offset:n,layout:r,tooltipAxisBandSize:t,chartName:i}))}var ZC=I.createContext(null),b8=()=>I.useContext(ZC),rh={exports:{}},nw;function x8(){return nw||(nw=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function o(l,c,u,d,p){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new i(u,d||l,p),g=n?n+c:c;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],h]:l._events[g].push(h):(l._events[g]=h,l._eventsCount++),l}function a(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],u,d;if(this._eventsCount===0)return c;for(d in u=this._events)t.call(u,d)&&c.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},s.prototype.listeners=function(c){var u=n?n+c:c,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,h=d.length,g=new Array(h);p<h;p++)g[p]=d[p].fn;return g},s.prototype.listenerCount=function(c){var u=n?n+c:c,d=this._events[u];return d?d.fn?1:d.length:0},s.prototype.emit=function(c,u,d,p,h,g){var m=n?n+c:c;if(!this._events[m])return!1;var v=this._events[m],y=arguments.length,S,x;if(v.fn){switch(v.once&&this.removeListener(c,v.fn,void 0,!0),y){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,u),!0;case 3:return v.fn.call(v.context,u,d),!0;case 4:return v.fn.call(v.context,u,d,p),!0;case 5:return v.fn.call(v.context,u,d,p,h),!0;case 6:return v.fn.call(v.context,u,d,p,h,g),!0}for(x=1,S=new Array(y-1);x<y;x++)S[x-1]=arguments[x];v.fn.apply(v.context,S)}else{var b=v.length,O;for(x=0;x<b;x++)switch(v[x].once&&this.removeListener(c,v[x].fn,void 0,!0),y){case 1:v[x].fn.call(v[x].context);break;case 2:v[x].fn.call(v[x].context,u);break;case 3:v[x].fn.call(v[x].context,u,d);break;case 4:v[x].fn.call(v[x].context,u,d,p);break;default:if(!S)for(O=1,S=new Array(y-1);O<y;O++)S[O-1]=arguments[O];v[x].fn.apply(v[x].context,S)}}return!0},s.prototype.on=function(c,u,d){return o(this,c,u,d,!1)},s.prototype.once=function(c,u,d){return o(this,c,u,d,!0)},s.prototype.removeListener=function(c,u,d,p){var h=n?n+c:c;if(!this._events[h])return this;if(!u)return a(this,h),this;var g=this._events[h];if(g.fn)g.fn===u&&(!p||g.once)&&(!d||g.context===d)&&a(this,h);else{for(var m=0,v=[],y=g.length;m<y;m++)(g[m].fn!==u||p&&!g[m].once||d&&g[m].context!==d)&&v.push(g[m]);v.length?this._events[h]=v.length===1?v[0]:v:a(this,h)}return this},s.prototype.removeAllListeners=function(c){var u;return c?(u=n?n+c:c,this._events[u]&&a(this,u)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})(rh)),rh.exports}var w8=x8();const O8=ui(w8);var nl=new O8,Mm="recharts.syncEvent.tooltip",rw="recharts.syncEvent.brush";function Zv(e,t){if(t){var n=Number.parseInt(t,10);if(!Fn(n))return e?.[n]}}var S8={chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},JC=Un({name:"options",initialState:S8,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),E8=JC.reducer,{createEventEmitter:_8}=JC.actions;function P8(e){return e.tooltip.syncInteraction}var C8={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},QC=Un({name:"chartData",initialState:C8,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:n,endIndex:r}=t.payload;n!=null&&(e.dataStartIndex=n),r!=null&&(e.dataEndIndex=r)}}}),{setChartData:iw,setDataStartEndIndexes:T8,setComputedData:Kte}=QC.actions,A8=QC.reducer,k8=["x","y"];function ow(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ji(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ow(Object(n),!0).forEach(function(r){M8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ow(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function M8(e,t,n){return(t=j8(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j8(e){var t=N8(e,"string");return typeof t=="symbol"?t:t+""}function N8(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function R8(e,t){if(e==null)return{};var n,r,i=D8(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function D8(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var eT=()=>{};function I8(){var e=he(bv),t=he(xv),n=At(),r=he(H2),i=he(gi),o=Ud(),a=Ug(),s=he(l=>l.rootProps.className);I.useEffect(()=>{if(e==null)return eT;var l=(c,u,d)=>{if(t!==d&&e===c){if(r==="index"){var p;if(a&&u!==null&&u!==void 0&&(p=u.payload)!==null&&p!==void 0&&p.coordinate){var h=u.payload.coordinate,{x:g,y:m}=h,v=R8(h,k8),y=Ji(Ji(Ji({},v),typeof g=="number"&&{x:Math.max(a.x,Math.min(g,a.x+a.width))}),typeof m=="number"&&{y:Math.max(a.y,Math.min(m,a.y+a.height))}),S=Ji(Ji({},u),{},{payload:Ji(Ji({},u.payload),{},{coordinate:y})});n(S)}else n(u);return}if(i!=null){var x;if(typeof r=="function"){var b={activeTooltipIndex:u.payload.index==null?void 0:Number(u.payload.index),isTooltipActive:u.payload.active,activeIndex:u.payload.index==null?void 0:Number(u.payload.index),activeLabel:u.payload.label,activeDataKey:u.payload.dataKey,activeCoordinate:u.payload.coordinate},O=r(i,b);x=i[O]}else r==="value"&&(x=i.find(D=>String(D.value)===u.payload.label));var{coordinate:E}=u.payload;if(x==null||u.payload.active===!1||E==null||a==null){n(Tm({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0}));return}var{x:C,y:T}=E,k=Math.min(C,a.x+a.width),R=Math.min(T,a.y+a.height),M={x:o==="horizontal"?x.coordinate:k,y:o==="horizontal"?R:x.coordinate},P=Tm({active:u.payload.active,coordinate:M,dataKey:u.payload.dataKey,index:String(x.index),label:u.payload.label});n(P)}}};return nl.on(Mm,l),()=>{nl.off(Mm,l)}},[s,n,t,e,r,i,o,a])}function $8(){var e=he(bv),t=he(xv),n=At();I.useEffect(()=>{if(e==null)return eT;var r=(i,o,a)=>{t!==a&&e===i&&n(T8(o))};return nl.on(rw,r),()=>{nl.off(rw,r)}},[n,t,e])}function L8(){var e=At();I.useEffect(()=>{e(_8())},[e]),I8(),$8()}function F8(e,t,n,r,i,o){var a=he(p=>c8(p,e,t)),s=he(xv),l=he(bv),c=he(H2),u=he(P8),d=u?.active;I.useEffect(()=>{if(!d&&l!=null&&s!=null){var p=Tm({active:o,coordinate:n,dataKey:a,index:i,label:typeof r=="number"?String(r):r});nl.emit(Mm,l,p,s)}},[d,n,a,i,r,s,l,c,o])}function aw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aw(Object(n),!0).forEach(function(r){B8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function B8(e,t,n){return(t=z8(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z8(e){var t=V8(e,"string");return typeof t=="symbol"?t:t+""}function V8(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function W8(e){return e.dataKey}function U8(e,t){return _.isValidElement(e)?_.cloneElement(e,t):typeof e=="function"?_.createElement(e,t):_.createElement(hL,t)}var lw=[],H8={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,isAnimationActive:!zi.isSsr,itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function zo(e){var t=en(e,H8),{active:n,allowEscapeViewBox:r,animationDuration:i,animationEasing:o,content:a,filterNull:s,isAnimationActive:l,offset:c,payloadUniqBy:u,position:d,reverseDirection:p,useTranslate3d:h,wrapperStyle:g,cursor:m,shared:v,trigger:y,defaultIndex:S,portal:x,axisId:b}=t,O=At(),E=typeof S=="number"?String(S):S;I.useEffect(()=>{O(p3({shared:v,trigger:y,axisId:b,active:n,defaultIndex:E}))},[O,v,y,b,n,E]);var C=Ug(),T=FP(),k=l3(v),{activeIndex:R,isActive:M}=he(X=>f8(X,k,y,E)),P=he(X=>d8(X,k,y,E)),D=he(X=>XC(X,k,y,E)),j=he(X=>u8(X,k,y,E)),N=P,L=b8(),B=n??M,[K,z]=d$([N,B]),F=k==="axis"?D:void 0;F8(k,y,j,F,R,B);var G=x??L;if(G==null)return null;var Y=N??lw;B||(Y=lw),s&&Y.length&&(Y=NI(N.filter(X=>X.value!=null&&(X.hide!==!0||t.includeHidden)),u,W8));var ne=Y.length>0,Q=_.createElement(wL,{allowEscapeViewBox:r,animationDuration:i,animationEasing:o,isAnimationActive:l,active:B,coordinate:j,hasPayload:ne,offset:c,position:d,reverseDirection:p,useTranslate3d:h,viewBox:C,wrapperStyle:g,lastBoundingBox:K,innerRef:z,hasPortalFromProps:!!x},U8(a,sw(sw({},t),{},{payload:Y,label:F,active:B,coordinate:j,accessibilityLayer:T})));return _.createElement(_.Fragment,null,fo.createPortal(Q,G),B&&_.createElement(y8,{cursor:m,tooltipEventType:k,coordinate:j,payload:N,index:R}))}var ih={},oh={},ah={},cw;function q8(){return cw||(cw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r,{signal:i,edges:o}={}){let a,s=null;const l=o!=null&&o.includes("leading"),c=o==null||o.includes("trailing"),u=()=>{s!==null&&(n.apply(a,s),a=void 0,s=null)},d=()=>{c&&u(),m()};let p=null;const h=()=>{p!=null&&clearTimeout(p),p=setTimeout(()=>{p=null,d()},r)},g=()=>{p!==null&&(clearTimeout(p),p=null)},m=()=>{g(),a=void 0,s=null},v=()=>{u()},y=function(...S){if(i?.aborted)return;a=this,s=S;const x=p==null;h(),l&&x&&u()};return y.schedule=h,y.cancel=m,y.flush=v,i?.addEventListener("abort",m,{once:!0}),y}e.debounce=t})(ah)),ah}var uw;function K8(){return uw||(uw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=q8();function n(r,i=0,o={}){typeof o!="object"&&(o={});const{leading:a=!1,trailing:s=!0,maxWait:l}=o,c=Array(2);a&&(c[0]="leading"),s&&(c[1]="trailing");let u,d=null;const p=t.debounce(function(...m){u=r.apply(this,m),d=null},i,{edges:c}),h=function(...m){return l!=null&&(d===null&&(d=Date.now()),Date.now()-d>=l)?(u=r.apply(this,m),d=Date.now(),p.cancel(),p.schedule(),u):(p.apply(this,m),u)},g=()=>(p.flush(),u);return h.cancel=p.cancel,h.flush=g,h}e.debounce=n})(oh)),oh}var dw;function Y8(){return dw||(dw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=K8();function n(r,i=0,o={}){const{leading:a=!0,trailing:s=!0}=o;return t.debounce(r,i,{leading:a,maxWait:i,trailing:s})}e.throttle=n})(ih)),ih}var sh,fw;function G8(){return fw||(fw=1,sh=Y8().throttle),sh}var X8=G8();const Z8=ui(X8);var J8=process.env.NODE_ENV!=="production",Ms=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];if(J8&&typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;console.warn(n.replace(/%s/g,()=>i[a++]))}};function pw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pw(Object(n),!0).forEach(function(r){Q8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Q8(e,t,n){return(t=ez(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ez(e){var t=tz(e,"string");return typeof t=="symbol"?t:t+""}function tz(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vo=I.forwardRef((e,t)=>{var{aspect:n,initialDimension:r={width:-1,height:-1},width:i="100%",height:o="100%",minWidth:a=0,minHeight:s,maxHeight:l,children:c,debounce:u=0,id:d,className:p,onResize:h,style:g={}}=e,m=I.useRef(null),v=I.useRef();v.current=h,I.useImperativeHandle(t,()=>m.current);var[y,S]=I.useState({containerWidth:r.width,containerHeight:r.height}),x=I.useCallback((O,E)=>{S(C=>{var T=Math.round(O),k=Math.round(E);return C.containerWidth===T&&C.containerHeight===k?C:{containerWidth:T,containerHeight:k}})},[]);I.useEffect(()=>{var O=k=>{var R,{width:M,height:P}=k[0].contentRect;x(M,P),(R=v.current)===null||R===void 0||R.call(v,M,P)};u>0&&(O=Z8(O,u,{trailing:!0,leading:!1}));var E=new ResizeObserver(O),{width:C,height:T}=m.current.getBoundingClientRect();return x(C,T),E.observe(m.current),()=>{E.disconnect()}},[x,u]);var b=I.useMemo(()=>{var{containerWidth:O,containerHeight:E}=y;if(O<0||E<0)return null;Ms(ho(i)||ho(o),`The width(%s) and height(%s) are both fixed numbers,
|
|
194
|
-
maybe you don't need to use a ResponsiveContainer.`,i,o),
|
|
193
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(b.x,",").concat(b.y,"Z")}else S+="L".concat(t,",").concat(n,"Z");return S},mF={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},KP=e=>{var t=en(e,mF),{cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:a,forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u,className:d}=t;if(o<i||c===u)return null;var p=oe("recharts-sector",d),h=o-i,g=un(a,h,0,!0),m;return g>0&&Math.abs(c-u)<360?m=hF({cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:Math.min(g,h/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u}):m=qP({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:c,endAngle:u}),_.createElement("path",gm({},vt(t,!0),{className:p,d:m}))};function gF(e,t,n){var r,i,o,a;if(e==="horizontal")r=t.x,o=r,i=n.top,a=n.top+n.height;else if(e==="vertical")i=t.y,a=i,r=n.left,o=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var{cx:s,cy:l,innerRadius:c,outerRadius:u,angle:d}=t,p=Nt(s,l,c,d),h=Nt(s,l,u,d);r=p.x,i=p.y,o=h.x,a=h.y}else return HP(t);return[{x:r,y:i},{x:o,y:a}]}var Hp={},qp={},Kp={},t1;function vF(){return t1||(t1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=G_();function n(r){return t.isSymbol(r)?NaN:Number(r)}e.toNumber=n})(Kp)),Kp}var n1;function yF(){return n1||(n1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vF();function n(r){return r?(r=t.toNumber(r),r===1/0||r===-1/0?(r<0?-1:1)*Number.MAX_VALUE:r===r?r:0):r===0?r:0}e.toFinite=n})(qp)),qp}var r1;function bF(){return r1||(r1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=X_(),n=yF();function r(i,o,a){a&&typeof a!="number"&&t.isIterateeCall(i,o,a)&&(o=a=void 0),i=n.toFinite(i),o===void 0?(o=i,i=0):o=n.toFinite(o),a=a===void 0?i<o?1:-1:n.toFinite(a);const s=Math.max(Math.ceil((o-i)/(a||1)),0),l=new Array(s);for(let c=0;c<s;c++)l[c]=i,i+=a;return l}e.range=r})(Hp)),Hp}var Yp,i1;function xF(){return i1||(i1=1,Yp=bF().range),Yp}var wF=xF();const YP=ui(wF);function Ti(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function OF(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function qg(e){let t,n,r;e.length!==2?(t=Ti,n=(s,l)=>Ti(e(s),l),r=(s,l)=>e(s)-l):(t=e===Ti||e===OF?e:SF,n=e,r=e);function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<0?c=d+1:u=d}while(c<u)}return c}function o(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function a(s,l,c=0,u=s.length){const d=i(s,l,c,u-1);return d>c&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:i,center:a,right:o}}function SF(){return 0}function GP(e){return e===null?NaN:+e}function*EF(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const _F=qg(Ti),Rl=_F.right;qg(GP).center;class o1 extends Map{constructor(t,n=TF){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(a1(this,t))}has(t){return super.has(a1(this,t))}set(t,n){return super.set(PF(this,t),n)}delete(t){return super.delete(CF(this,t))}}function a1({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function PF({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function CF({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function TF(e){return e!==null&&typeof e=="object"?e.valueOf():e}function AF(e=Ti){if(e===Ti)return XP;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function XP(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const kF=Math.sqrt(50),MF=Math.sqrt(10),jF=Math.sqrt(2);function Tu(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=kF?10:o>=MF?5:o>=jF?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/a,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*a,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?Tu(e,t,n*2):[s,l,c]}function vm(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,a]=r?Tu(t,e,n):Tu(e,t,n);if(!(o>=i))return[];const s=o-i+1,l=new Array(s);if(r)if(a<0)for(let c=0;c<s;++c)l[c]=(o-c)/-a;else for(let c=0;c<s;++c)l[c]=(o-c)*a;else if(a<0)for(let c=0;c<s;++c)l[c]=(i+c)/-a;else for(let c=0;c<s;++c)l[c]=(i+c)*a;return l}function ym(e,t,n){return t=+t,e=+e,n=+n,Tu(e,t,n)[2]}function bm(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?ym(t,e,n):ym(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function s1(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function l1(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function ZP(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?XP:AF(i);r>n;){if(r-n>600){const l=r-n+1,c=t-n+1,u=Math.log(l),d=.5*Math.exp(2*u/3),p=.5*Math.sqrt(u*d*(l-d)/l)*(c-l/2<0?-1:1),h=Math.max(n,Math.floor(t-c*d/l+p)),g=Math.min(r,Math.floor(t+(l-c)*d/l+p));ZP(e,t,h,g,i)}const o=e[t];let a=n,s=r;for(rs(e,n,t),i(e[r],o)>0&&rs(e,n,r);a<s;){for(rs(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}i(e[n],o)===0?rs(e,n,s):(++s,rs(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function rs(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function NF(e,t,n){if(e=Float64Array.from(EF(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return l1(e);if(t>=1)return s1(e);var r,i=(r-1)*t,o=Math.floor(i),a=s1(ZP(e,o).subarray(0,o+1)),s=l1(e.subarray(o+1));return a+(s-a)*(i-o)}}function RF(e,t,n=GP){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e),s=+n(e[o+1],o+1,e);return a+(s-a)*(i-o)}}function DF(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function cr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function pi(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const xm=Symbol("implicit");function Kg(){var e=new o1,t=[],n=[],r=xm;function i(o){let a=e.get(o);if(a===void 0){if(r!==xm)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new o1;for(const a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return Kg(t,n).unknown(r)},cr.apply(i,arguments),i}function Yg(){var e=Kg().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,s=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var p=t().length,h=i<r,g=h?i:r,m=h?r:i;o=(m-g)/Math.max(1,p-l+c*2),s&&(o=Math.floor(o)),g+=(m-g-o*(p-l))*u,a=o*(1-l),s&&(g=Math.round(g),a=Math.round(a));var v=DF(p).map(function(y){return g+o*y});return n(h?v.reverse():v)}return e.domain=function(p){return arguments.length?(t(p),d()):t()},e.range=function(p){return arguments.length?([r,i]=p,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(p){return[r,i]=p,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(p){return arguments.length?(s=!!p,d()):s},e.padding=function(p){return arguments.length?(l=Math.min(1,c=+p),d()):l},e.paddingInner=function(p){return arguments.length?(l=Math.min(1,p),d()):l},e.paddingOuter=function(p){return arguments.length?(c=+p,d()):c},e.align=function(p){return arguments.length?(u=Math.max(0,Math.min(1,p)),d()):u},e.copy=function(){return Yg(t(),[r,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},cr.apply(d(),arguments)}function JP(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return JP(t())},e}function IF(){return JP(Yg.apply(null,arguments).paddingInner(1))}function Gg(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function QP(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Dl(){}var Js=.7,Au=1/Js,fa="\\s*([+-]?\\d+)\\s*",Qs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ar="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$F=/^#([0-9a-f]{3,8})$/,LF=new RegExp(`^rgb\\(${fa},${fa},${fa}\\)$`),FF=new RegExp(`^rgb\\(${Ar},${Ar},${Ar}\\)$`),BF=new RegExp(`^rgba\\(${fa},${fa},${fa},${Qs}\\)$`),zF=new RegExp(`^rgba\\(${Ar},${Ar},${Ar},${Qs}\\)$`),VF=new RegExp(`^hsl\\(${Qs},${Ar},${Ar}\\)$`),WF=new RegExp(`^hsla\\(${Qs},${Ar},${Ar},${Qs}\\)$`),c1={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Gg(Dl,el,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:u1,formatHex:u1,formatHex8:UF,formatHsl:HF,formatRgb:d1,toString:d1});function u1(){return this.rgb().formatHex()}function UF(){return this.rgb().formatHex8()}function HF(){return e2(this).formatHsl()}function d1(){return this.rgb().formatRgb()}function el(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=$F.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?f1(t):n===3?new On(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?bc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?bc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=LF.exec(e))?new On(t[1],t[2],t[3],1):(t=FF.exec(e))?new On(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=BF.exec(e))?bc(t[1],t[2],t[3],t[4]):(t=zF.exec(e))?bc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=VF.exec(e))?m1(t[1],t[2]/100,t[3]/100,1):(t=WF.exec(e))?m1(t[1],t[2]/100,t[3]/100,t[4]):c1.hasOwnProperty(e)?f1(c1[e]):e==="transparent"?new On(NaN,NaN,NaN,0):null}function f1(e){return new On(e>>16&255,e>>8&255,e&255,1)}function bc(e,t,n,r){return r<=0&&(e=t=n=NaN),new On(e,t,n,r)}function qF(e){return e instanceof Dl||(e=el(e)),e?(e=e.rgb(),new On(e.r,e.g,e.b,e.opacity)):new On}function wm(e,t,n,r){return arguments.length===1?qF(e):new On(e,t,n,r??1)}function On(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Gg(On,wm,QP(Dl,{brighter(e){return e=e==null?Au:Math.pow(Au,e),new On(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Js:Math.pow(Js,e),new On(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new On(So(this.r),So(this.g),So(this.b),ku(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:p1,formatHex:p1,formatHex8:KF,formatRgb:h1,toString:h1}));function p1(){return`#${mo(this.r)}${mo(this.g)}${mo(this.b)}`}function KF(){return`#${mo(this.r)}${mo(this.g)}${mo(this.b)}${mo((isNaN(this.opacity)?1:this.opacity)*255)}`}function h1(){const e=ku(this.opacity);return`${e===1?"rgb(":"rgba("}${So(this.r)}, ${So(this.g)}, ${So(this.b)}${e===1?")":`, ${e})`}`}function ku(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function So(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function mo(e){return e=So(e),(e<16?"0":"")+e.toString(16)}function m1(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new fr(e,t,n,r)}function e2(e){if(e instanceof fr)return new fr(e.h,e.s,e.l,e.opacity);if(e instanceof Dl||(e=el(e)),!e)return new fr;if(e instanceof fr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new fr(a,s,l,e.opacity)}function YF(e,t,n,r){return arguments.length===1?e2(e):new fr(e,t,n,r??1)}function fr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Gg(fr,YF,QP(Dl,{brighter(e){return e=e==null?Au:Math.pow(Au,e),new fr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Js:Math.pow(Js,e),new fr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new On(Gp(e>=240?e-240:e+120,i,r),Gp(e,i,r),Gp(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new fr(g1(this.h),xc(this.s),xc(this.l),ku(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ku(this.opacity);return`${e===1?"hsl(":"hsla("}${g1(this.h)}, ${xc(this.s)*100}%, ${xc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function g1(e){return e=(e||0)%360,e<0?e+360:e}function xc(e){return Math.max(0,Math.min(1,e||0))}function Gp(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Xg=e=>()=>e;function GF(e,t){return function(n){return e+n*t}}function XF(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function ZF(e){return(e=+e)==1?t2:function(t,n){return n-t?XF(t,n,e):Xg(isNaN(t)?n:t)}}function t2(e,t){var n=t-e;return n?GF(e,n):Xg(isNaN(e)?t:e)}const v1=(function e(t){var n=ZF(t);function r(i,o){var a=n((i=wm(i)).r,(o=wm(o)).r),s=n(i.g,o.g),l=n(i.b,o.b),c=t2(i.opacity,o.opacity);return function(u){return i.r=a(u),i.g=s(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r})(1);function JF(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function QF(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function e4(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=Da(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function t4(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Mu(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function n4(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Da(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Om=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Xp=new RegExp(Om.source,"g");function r4(e){return function(){return e}}function i4(e){return function(t){return e(t)+""}}function o4(e,t){var n=Om.lastIndex=Xp.lastIndex=0,r,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=Om.exec(e))&&(i=Xp.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:Mu(r,i)})),n=Xp.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?i4(l[0].x):r4(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)s[(d=l[u]).i]=d.x(c);return s.join("")})}function Da(e,t){var n=typeof t,r;return t==null||n==="boolean"?Xg(t):(n==="number"?Mu:n==="string"?(r=el(t))?(t=r,v1):o4:t instanceof el?v1:t instanceof Date?t4:QF(t)?JF:Array.isArray(t)?e4:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?n4:Mu)(e,t)}function Zg(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function a4(e,t){t===void 0&&(t=e,e=Da);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(a){var s=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return o[s](a-s)}}function s4(e){return function(){return e}}function ju(e){return+e}var y1=[0,1];function hn(e){return e}function Sm(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:s4(isNaN(t)?NaN:.5)}function l4(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function c4(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=Sm(i,r),o=n(a,o)):(r=Sm(r,i),o=n(o,a)),function(s){return o(r(s))}}function u4(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=Sm(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var l=Rl(e,s,1,r)-1;return o[l](i[l](s))}}function Il(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Hd(){var e=y1,t=y1,n=Da,r,i,o,a=hn,s,l,c;function u(){var p=Math.min(e.length,t.length);return a!==hn&&(a=l4(e[0],e[p-1])),s=p>2?u4:c4,l=c=null,d}function d(p){return p==null||isNaN(p=+p)?o:(l||(l=s(e.map(r),t,n)))(r(a(p)))}return d.invert=function(p){return a(i((c||(c=s(t,e.map(r),Mu)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,ju),u()):e.slice()},d.range=function(p){return arguments.length?(t=Array.from(p),u()):t.slice()},d.rangeRound=function(p){return t=Array.from(p),n=Zg,u()},d.clamp=function(p){return arguments.length?(a=p?!0:hn,u()):a!==hn},d.interpolate=function(p){return arguments.length?(n=p,u()):n},d.unknown=function(p){return arguments.length?(o=p,d):o},function(p,h){return r=p,i=h,u()}}function Jg(){return Hd()(hn,hn)}function d4(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Nu(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function wa(e){return e=Nu(Math.abs(e)),e?e[1]:NaN}function f4(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function p4(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var h4=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function tl(e){if(!(t=h4.exec(e)))throw new Error("invalid format: "+e);var t;return new Qg({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}tl.prototype=Qg.prototype;function Qg(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Qg.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function m4(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var n2;function g4(e,t){var n=Nu(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(n2=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Nu(e,Math.max(0,t+o-1))[0]}function b1(e,t){var n=Nu(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const x1={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:d4,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>b1(e*100,t),r:b1,s:g4,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function w1(e){return e}var O1=Array.prototype.map,S1=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function v4(e){var t=e.grouping===void 0||e.thousands===void 0?w1:f4(O1.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?w1:p4(O1.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=tl(d);var p=d.fill,h=d.align,g=d.sign,m=d.symbol,v=d.zero,y=d.width,S=d.comma,x=d.precision,b=d.trim,O=d.type;O==="n"?(S=!0,O="g"):x1[O]||(x===void 0&&(x=12),b=!0,O="g"),(v||p==="0"&&h==="=")&&(v=!0,p="0",h="=");var E=m==="$"?n:m==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():"",C=m==="$"?r:/[%p]/.test(O)?a:"",T=x1[O],k=/[defgprs%]/.test(O);x=x===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function R(M){var P=E,D=C,j,N,L;if(O==="c")D=T(M)+D,M="";else{M=+M;var B=M<0||1/M<0;if(M=isNaN(M)?l:T(Math.abs(M),x),b&&(M=m4(M)),B&&+M==0&&g!=="+"&&(B=!1),P=(B?g==="("?g:s:g==="-"||g==="("?"":g)+P,D=(O==="s"?S1[8+n2/3]:"")+D+(B&&g==="("?")":""),k){for(j=-1,N=M.length;++j<N;)if(L=M.charCodeAt(j),48>L||L>57){D=(L===46?i+M.slice(j+1):M.slice(j))+D,M=M.slice(0,j);break}}}S&&!v&&(M=t(M,1/0));var K=P.length+M.length+D.length,z=K<y?new Array(y-K+1).join(p):"";switch(S&&v&&(M=t(z+M,z.length?y-D.length:1/0),z=""),h){case"<":M=P+M+D+z;break;case"=":M=P+z+M+D;break;case"^":M=z.slice(0,K=z.length>>1)+P+M+D+z.slice(K);break;default:M=z+P+M+D;break}return o(M)}return R.toString=function(){return d+""},R}function u(d,p){var h=c((d=tl(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(wa(p)/3)))*3,m=Math.pow(10,-g),v=S1[8+g/3];return function(y){return h(m*y)+v}}return{format:c,formatPrefix:u}}var wc,ev,r2;y4({thousands:",",grouping:[3],currency:["$",""]});function y4(e){return wc=v4(e),ev=wc.format,r2=wc.formatPrefix,wc}function b4(e){return Math.max(0,-wa(Math.abs(e)))}function x4(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(wa(t)/3)))*3-wa(Math.abs(e)))}function w4(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,wa(t)-wa(e))+1}function i2(e,t,n,r){var i=bm(e,t,n),o;switch(r=tl(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=x4(i,a))&&(r.precision=o),r2(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=w4(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=b4(i))&&(r.precision=o-(r.type==="%")*2);break}}return ev(r)}function Vi(e){var t=e.domain;return e.ticks=function(n){var r=t();return vm(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return i2(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],s=r[o],l,c,u=10;for(s<a&&(c=a,a=s,s=c,c=i,i=o,o=c);u-- >0;){if(c=ym(a,s,n),c===l)return r[i]=a,r[o]=s,t(r);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function o2(){var e=Jg();return e.copy=function(){return Il(e,o2())},cr.apply(e,arguments),Vi(e)}function a2(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,ju),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return a2(e).unknown(t)},e=arguments.length?Array.from(e,ju):[0,1],Vi(n)}function s2(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),e[n]=t.floor(i),e[r]=t.ceil(o),e}function E1(e){return Math.log(e)}function _1(e){return Math.exp(e)}function O4(e){return-Math.log(-e)}function S4(e){return-Math.exp(-e)}function E4(e){return isFinite(e)?+("1e"+e):e<0?0:e}function _4(e){return e===10?E4:e===Math.E?Math.exp:t=>Math.pow(e,t)}function P4(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 P1(e){return(t,n)=>-e(-t,n)}function tv(e){const t=e(E1,_1),n=t.domain;let r=10,i,o;function a(){return i=P4(r),o=_4(r),n()[0]<0?(i=P1(i),o=P1(o),e(O4,S4)):e(E1,_1),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const l=n();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let p=i(c),h=i(u),g,m;const v=s==null?10:+s;let y=[];if(!(r%1)&&h-p<v){if(p=Math.floor(p),h=Math.ceil(h),c>0){for(;p<=h;++p)for(g=1;g<r;++g)if(m=p<0?g/o(-p):g*o(p),!(m<c)){if(m>u)break;y.push(m)}}else for(;p<=h;++p)for(g=r-1;g>=1;--g)if(m=p>0?g/o(-p):g*o(p),!(m<c)){if(m>u)break;y.push(m)}y.length*2<v&&(y=vm(c,u,v))}else y=vm(p,h,Math.min(h-p,v)).map(o);return d?y.reverse():y},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=tl(l)).precision==null&&(l.trim=!0),l=ev(l)),s===1/0)return l;const c=Math.max(1,r*s/t.ticks().length);return u=>{let d=u/o(Math.round(i(u)));return d*r<r-.5&&(d*=r),d<=c?l(u):""}},t.nice=()=>n(s2(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function l2(){const e=tv(Hd()).domain([1,10]);return e.copy=()=>Il(e,l2()).base(e.base()),cr.apply(e,arguments),e}function C1(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function T1(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function nv(e){var t=1,n=e(C1(t),T1(t));return n.constant=function(r){return arguments.length?e(C1(t=+r),T1(t)):t},Vi(n)}function c2(){var e=nv(Hd());return e.copy=function(){return Il(e,c2()).constant(e.constant())},cr.apply(e,arguments)}function A1(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function C4(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function T4(e){return e<0?-e*e:e*e}function rv(e){var t=e(hn,hn),n=1;function r(){return n===1?e(hn,hn):n===.5?e(C4,T4):e(A1(n),A1(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Vi(t)}function iv(){var e=rv(Hd());return e.copy=function(){return Il(e,iv()).exponent(e.exponent())},cr.apply(e,arguments),e}function A4(){return iv.apply(null,arguments).exponent(.5)}function k1(e){return Math.sign(e)*e*e}function k4(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function u2(){var e=Jg(),t=[0,1],n=!1,r;function i(o){var a=k4(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(k1(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,ju)).map(k1)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return u2(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},cr.apply(i,arguments),Vi(i)}function d2(){var e=[],t=[],n=[],r;function i(){var a=0,s=Math.max(1,t.length);for(n=new Array(s-1);++a<s;)n[a-1]=RF(e,a/s);return o}function o(a){return a==null||isNaN(a=+a)?r:t[Rl(n,a)]}return o.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},o.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Ti),i()},o.range=function(a){return arguments.length?(t=Array.from(a),i()):t.slice()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return d2().domain(e).range(t).unknown(r)},cr.apply(o,arguments)}function f2(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function a(l){return l!=null&&l<=l?i[Rl(r,l,0,n)]:o}function s(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},a.range=function(l){return arguments.length?(n=(i=Array.from(l)).length-1,s()):i.slice()},a.invertExtent=function(l){var c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},a.unknown=function(l){return arguments.length&&(o=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return f2().domain([e,t]).range(i).unknown(o)},cr.apply(Vi(a),arguments)}function p2(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[Rl(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return p2().domain(e).range(t).unknown(n)},cr.apply(i,arguments)}const Zp=new Date,Jp=new Date;function Lt(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const l=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;let c;do l.push(c=new Date(+o)),t(o,s),e(o);while(c<o&&o<a);return l},i.filter=o=>Lt(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),n&&(i.count=(o,a)=>(Zp.setTime(+o),Jp.setTime(+a),e(Zp),e(Jp),Math.floor(n(Zp,Jp))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const Ru=Lt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ru.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Lt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Ru);Ru.range;const Xr=1e3,tr=Xr*60,Zr=tr*60,oi=Zr*24,ov=oi*7,M1=oi*30,Qp=oi*365,go=Lt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Xr)},(e,t)=>(t-e)/Xr,e=>e.getUTCSeconds());go.range;const av=Lt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Xr)},(e,t)=>{e.setTime(+e+t*tr)},(e,t)=>(t-e)/tr,e=>e.getMinutes());av.range;const sv=Lt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*tr)},(e,t)=>(t-e)/tr,e=>e.getUTCMinutes());sv.range;const lv=Lt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Xr-e.getMinutes()*tr)},(e,t)=>{e.setTime(+e+t*Zr)},(e,t)=>(t-e)/Zr,e=>e.getHours());lv.range;const cv=Lt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Zr)},(e,t)=>(t-e)/Zr,e=>e.getUTCHours());cv.range;const $l=Lt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*tr)/oi,e=>e.getDate()-1);$l.range;const qd=Lt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/oi,e=>e.getUTCDate()-1);qd.range;const h2=Lt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/oi,e=>Math.floor(e/oi));h2.range;function Lo(e){return Lt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*tr)/ov)}const Kd=Lo(0),Du=Lo(1),M4=Lo(2),j4=Lo(3),Oa=Lo(4),N4=Lo(5),R4=Lo(6);Kd.range;Du.range;M4.range;j4.range;Oa.range;N4.range;R4.range;function Fo(e){return Lt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/ov)}const Yd=Fo(0),Iu=Fo(1),D4=Fo(2),I4=Fo(3),Sa=Fo(4),$4=Fo(5),L4=Fo(6);Yd.range;Iu.range;D4.range;I4.range;Sa.range;$4.range;L4.range;const uv=Lt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());uv.range;const dv=Lt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());dv.range;const ai=Lt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ai.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Lt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ai.range;const si=Lt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());si.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Lt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});si.range;function m2(e,t,n,r,i,o){const a=[[go,1,Xr],[go,5,5*Xr],[go,15,15*Xr],[go,30,30*Xr],[o,1,tr],[o,5,5*tr],[o,15,15*tr],[o,30,30*tr],[i,1,Zr],[i,3,3*Zr],[i,6,6*Zr],[i,12,12*Zr],[r,1,oi],[r,2,2*oi],[n,1,ov],[t,1,M1],[t,3,3*M1],[e,1,Qp]];function s(c,u,d){const p=u<c;p&&([c,u]=[u,c]);const h=d&&typeof d.range=="function"?d:l(c,u,d),g=h?h.range(c,+u+1):[];return p?g.reverse():g}function l(c,u,d){const p=Math.abs(u-c)/d,h=qg(([,,v])=>v).right(a,p);if(h===a.length)return e.every(bm(c/Qp,u/Qp,d));if(h===0)return Ru.every(Math.max(bm(c,u,d),1));const[g,m]=a[p/a[h-1][2]<a[h][2]/p?h-1:h];return g.every(m)}return[s,l]}const[F4,B4]=m2(si,dv,Yd,h2,cv,sv),[z4,V4]=m2(ai,uv,Kd,$l,lv,av);function eh(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function th(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function is(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function W4(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=os(i),u=as(i),d=os(o),p=as(o),h=os(a),g=as(a),m=os(s),v=as(s),y=os(l),S=as(l),x={a:B,A:K,b:z,B:F,c:null,d:$1,e:$1,f:fB,g:OB,G:EB,H:cB,I:uB,j:dB,L:g2,m:pB,M:hB,p:G,q:Y,Q:B1,s:z1,S:mB,u:gB,U:vB,V:yB,w:bB,W:xB,x:null,X:null,y:wB,Y:SB,Z:_B,"%":F1},b={a:ne,A:Q,b:X,B:te,c:null,d:L1,e:L1,f:AB,g:FB,G:zB,H:PB,I:CB,j:TB,L:y2,m:kB,M:MB,p:ie,q:ae,Q:B1,s:z1,S:jB,u:NB,U:RB,V:DB,w:IB,W:$B,x:null,X:null,y:LB,Y:BB,Z:VB,"%":F1},O={a:R,A:M,b:P,B:D,c:j,d:D1,e:D1,f:oB,g:R1,G:N1,H:I1,I:I1,j:tB,L:iB,m:eB,M:nB,p:k,q:Q4,Q:sB,s:lB,S:rB,u:Y4,U:G4,V:X4,w:K4,W:Z4,x:N,X:L,y:R1,Y:N1,Z:J4,"%":aB};x.x=E(n,x),x.X=E(r,x),x.c=E(t,x),b.x=E(n,b),b.X=E(r,b),b.c=E(t,b);function E(W,H){return function(J){var A=[],fe=-1,re=0,me=W.length,we,Se,_e;for(J instanceof Date||(J=new Date(+J));++fe<me;)W.charCodeAt(fe)===37&&(A.push(W.slice(re,fe)),(Se=j1[we=W.charAt(++fe)])!=null?we=W.charAt(++fe):Se=we==="e"?" ":"0",(_e=H[we])&&(we=_e(J,Se)),A.push(we),re=fe+1);return A.push(W.slice(re,fe)),A.join("")}}function C(W,H){return function(J){var A=is(1900,void 0,1),fe=T(A,W,J+="",0),re,me;if(fe!=J.length)return null;if("Q"in A)return new Date(A.Q);if("s"in A)return new Date(A.s*1e3+("L"in A?A.L:0));if(H&&!("Z"in A)&&(A.Z=0),"p"in A&&(A.H=A.H%12+A.p*12),A.m===void 0&&(A.m="q"in A?A.q:0),"V"in A){if(A.V<1||A.V>53)return null;"w"in A||(A.w=1),"Z"in A?(re=th(is(A.y,0,1)),me=re.getUTCDay(),re=me>4||me===0?Iu.ceil(re):Iu(re),re=qd.offset(re,(A.V-1)*7),A.y=re.getUTCFullYear(),A.m=re.getUTCMonth(),A.d=re.getUTCDate()+(A.w+6)%7):(re=eh(is(A.y,0,1)),me=re.getDay(),re=me>4||me===0?Du.ceil(re):Du(re),re=$l.offset(re,(A.V-1)*7),A.y=re.getFullYear(),A.m=re.getMonth(),A.d=re.getDate()+(A.w+6)%7)}else("W"in A||"U"in A)&&("w"in A||(A.w="u"in A?A.u%7:"W"in A?1:0),me="Z"in A?th(is(A.y,0,1)).getUTCDay():eh(is(A.y,0,1)).getDay(),A.m=0,A.d="W"in A?(A.w+6)%7+A.W*7-(me+5)%7:A.w+A.U*7-(me+6)%7);return"Z"in A?(A.H+=A.Z/100|0,A.M+=A.Z%100,th(A)):eh(A)}}function T(W,H,J,A){for(var fe=0,re=H.length,me=J.length,we,Se;fe<re;){if(A>=me)return-1;if(we=H.charCodeAt(fe++),we===37){if(we=H.charAt(fe++),Se=O[we in j1?H.charAt(fe++):we],!Se||(A=Se(W,J,A))<0)return-1}else if(we!=J.charCodeAt(A++))return-1}return A}function k(W,H,J){var A=c.exec(H.slice(J));return A?(W.p=u.get(A[0].toLowerCase()),J+A[0].length):-1}function R(W,H,J){var A=h.exec(H.slice(J));return A?(W.w=g.get(A[0].toLowerCase()),J+A[0].length):-1}function M(W,H,J){var A=d.exec(H.slice(J));return A?(W.w=p.get(A[0].toLowerCase()),J+A[0].length):-1}function P(W,H,J){var A=y.exec(H.slice(J));return A?(W.m=S.get(A[0].toLowerCase()),J+A[0].length):-1}function D(W,H,J){var A=m.exec(H.slice(J));return A?(W.m=v.get(A[0].toLowerCase()),J+A[0].length):-1}function j(W,H,J){return T(W,t,H,J)}function N(W,H,J){return T(W,n,H,J)}function L(W,H,J){return T(W,r,H,J)}function B(W){return a[W.getDay()]}function K(W){return o[W.getDay()]}function z(W){return l[W.getMonth()]}function F(W){return s[W.getMonth()]}function G(W){return i[+(W.getHours()>=12)]}function Y(W){return 1+~~(W.getMonth()/3)}function ne(W){return a[W.getUTCDay()]}function Q(W){return o[W.getUTCDay()]}function X(W){return l[W.getUTCMonth()]}function te(W){return s[W.getUTCMonth()]}function ie(W){return i[+(W.getUTCHours()>=12)]}function ae(W){return 1+~~(W.getUTCMonth()/3)}return{format:function(W){var H=E(W+="",x);return H.toString=function(){return W},H},parse:function(W){var H=C(W+="",!1);return H.toString=function(){return W},H},utcFormat:function(W){var H=E(W+="",b);return H.toString=function(){return W},H},utcParse:function(W){var H=C(W+="",!0);return H.toString=function(){return W},H}}}var j1={"-":"",_:" ",0:"0"},Kt=/^\s*\d+/,U4=/^%/,H4=/[\\^$*+?|[\]().{}]/g;function ke(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function q4(e){return e.replace(H4,"\\$&")}function os(e){return new RegExp("^(?:"+e.map(q4).join("|")+")","i")}function as(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function K4(e,t,n){var r=Kt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Y4(e,t,n){var r=Kt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function G4(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function X4(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Z4(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function N1(e,t,n){var r=Kt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function R1(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function J4(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Q4(e,t,n){var r=Kt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function eB(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function D1(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function tB(e,t,n){var r=Kt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function I1(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function nB(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function rB(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function iB(e,t,n){var r=Kt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function oB(e,t,n){var r=Kt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function aB(e,t,n){var r=U4.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function sB(e,t,n){var r=Kt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function lB(e,t,n){var r=Kt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function $1(e,t){return ke(e.getDate(),t,2)}function cB(e,t){return ke(e.getHours(),t,2)}function uB(e,t){return ke(e.getHours()%12||12,t,2)}function dB(e,t){return ke(1+$l.count(ai(e),e),t,3)}function g2(e,t){return ke(e.getMilliseconds(),t,3)}function fB(e,t){return g2(e,t)+"000"}function pB(e,t){return ke(e.getMonth()+1,t,2)}function hB(e,t){return ke(e.getMinutes(),t,2)}function mB(e,t){return ke(e.getSeconds(),t,2)}function gB(e){var t=e.getDay();return t===0?7:t}function vB(e,t){return ke(Kd.count(ai(e)-1,e),t,2)}function v2(e){var t=e.getDay();return t>=4||t===0?Oa(e):Oa.ceil(e)}function yB(e,t){return e=v2(e),ke(Oa.count(ai(e),e)+(ai(e).getDay()===4),t,2)}function bB(e){return e.getDay()}function xB(e,t){return ke(Du.count(ai(e)-1,e),t,2)}function wB(e,t){return ke(e.getFullYear()%100,t,2)}function OB(e,t){return e=v2(e),ke(e.getFullYear()%100,t,2)}function SB(e,t){return ke(e.getFullYear()%1e4,t,4)}function EB(e,t){var n=e.getDay();return e=n>=4||n===0?Oa(e):Oa.ceil(e),ke(e.getFullYear()%1e4,t,4)}function _B(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ke(t/60|0,"0",2)+ke(t%60,"0",2)}function L1(e,t){return ke(e.getUTCDate(),t,2)}function PB(e,t){return ke(e.getUTCHours(),t,2)}function CB(e,t){return ke(e.getUTCHours()%12||12,t,2)}function TB(e,t){return ke(1+qd.count(si(e),e),t,3)}function y2(e,t){return ke(e.getUTCMilliseconds(),t,3)}function AB(e,t){return y2(e,t)+"000"}function kB(e,t){return ke(e.getUTCMonth()+1,t,2)}function MB(e,t){return ke(e.getUTCMinutes(),t,2)}function jB(e,t){return ke(e.getUTCSeconds(),t,2)}function NB(e){var t=e.getUTCDay();return t===0?7:t}function RB(e,t){return ke(Yd.count(si(e)-1,e),t,2)}function b2(e){var t=e.getUTCDay();return t>=4||t===0?Sa(e):Sa.ceil(e)}function DB(e,t){return e=b2(e),ke(Sa.count(si(e),e)+(si(e).getUTCDay()===4),t,2)}function IB(e){return e.getUTCDay()}function $B(e,t){return ke(Iu.count(si(e)-1,e),t,2)}function LB(e,t){return ke(e.getUTCFullYear()%100,t,2)}function FB(e,t){return e=b2(e),ke(e.getUTCFullYear()%100,t,2)}function BB(e,t){return ke(e.getUTCFullYear()%1e4,t,4)}function zB(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Sa(e):Sa.ceil(e),ke(e.getUTCFullYear()%1e4,t,4)}function VB(){return"+0000"}function F1(){return"%"}function B1(e){return+e}function z1(e){return Math.floor(+e/1e3)}var Jo,x2,w2;WB({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function WB(e){return Jo=W4(e),x2=Jo.format,Jo.parse,w2=Jo.utcFormat,Jo.utcParse,Jo}function UB(e){return new Date(e)}function HB(e){return e instanceof Date?+e:+new Date(+e)}function fv(e,t,n,r,i,o,a,s,l,c){var u=Jg(),d=u.invert,p=u.domain,h=c(".%L"),g=c(":%S"),m=c("%I:%M"),v=c("%I %p"),y=c("%a %d"),S=c("%b %d"),x=c("%B"),b=c("%Y");function O(E){return(l(E)<E?h:s(E)<E?g:a(E)<E?m:o(E)<E?v:r(E)<E?i(E)<E?y:S:n(E)<E?x:b)(E)}return u.invert=function(E){return new Date(d(E))},u.domain=function(E){return arguments.length?p(Array.from(E,HB)):p().map(UB)},u.ticks=function(E){var C=p();return e(C[0],C[C.length-1],E??10)},u.tickFormat=function(E,C){return C==null?O:c(C)},u.nice=function(E){var C=p();return(!E||typeof E.range!="function")&&(E=t(C[0],C[C.length-1],E??10)),E?p(s2(C,E)):u},u.copy=function(){return Il(u,fv(e,t,n,r,i,o,a,s,l,c))},u}function qB(){return cr.apply(fv(z4,V4,ai,uv,Kd,$l,lv,av,go,x2).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function KB(){return cr.apply(fv(F4,B4,si,dv,Yd,qd,cv,sv,go,w2).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Gd(){var e=0,t=1,n,r,i,o,a=hn,s=!1,l;function c(d){return d==null||isNaN(d=+d)?l:a(i===0?.5:(d=(o(d)-n)*i,s?Math.max(0,Math.min(1,d)):d))}c.domain=function(d){return arguments.length?([e,t]=d,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(d){return arguments.length?(s=!!d,c):s},c.interpolator=function(d){return arguments.length?(a=d,c):a};function u(d){return function(p){var h,g;return arguments.length?([h,g]=p,a=d(h,g),c):[a(0),a(1)]}}return c.range=u(Da),c.rangeRound=u(Zg),c.unknown=function(d){return arguments.length?(l=d,c):l},function(d){return o=d,n=d(e),r=d(t),i=n===r?0:1/(r-n),c}}function Wi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function O2(){var e=Vi(Gd()(hn));return e.copy=function(){return Wi(e,O2())},pi.apply(e,arguments)}function S2(){var e=tv(Gd()).domain([1,10]);return e.copy=function(){return Wi(e,S2()).base(e.base())},pi.apply(e,arguments)}function E2(){var e=nv(Gd());return e.copy=function(){return Wi(e,E2()).constant(e.constant())},pi.apply(e,arguments)}function pv(){var e=rv(Gd());return e.copy=function(){return Wi(e,pv()).exponent(e.exponent())},pi.apply(e,arguments)}function YB(){return pv.apply(null,arguments).exponent(.5)}function _2(){var e=[],t=hn;function n(r){if(r!=null&&!isNaN(r=+r))return t((Rl(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Ti),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>NF(e,o/r))},n.copy=function(){return _2(t).domain(e)},pi.apply(n,arguments)}function Xd(){var e=0,t=.5,n=1,r=1,i,o,a,s,l,c=hn,u,d=!1,p;function h(m){return isNaN(m=+m)?p:(m=.5+((m=+u(m))-o)*(r*m<r*o?s:l),c(d?Math.max(0,Math.min(1,m)):m))}h.domain=function(m){return arguments.length?([e,t,n]=m,i=u(e=+e),o=u(t=+t),a=u(n=+n),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),r=o<i?-1:1,h):[e,t,n]},h.clamp=function(m){return arguments.length?(d=!!m,h):d},h.interpolator=function(m){return arguments.length?(c=m,h):c};function g(m){return function(v){var y,S,x;return arguments.length?([y,S,x]=v,c=a4(m,[y,S,x]),h):[c(0),c(.5),c(1)]}}return h.range=g(Da),h.rangeRound=g(Zg),h.unknown=function(m){return arguments.length?(p=m,h):p},function(m){return u=m,i=m(e),o=m(t),a=m(n),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),r=o<i?-1:1,h}}function P2(){var e=Vi(Xd()(hn));return e.copy=function(){return Wi(e,P2())},pi.apply(e,arguments)}function C2(){var e=tv(Xd()).domain([.1,1,10]);return e.copy=function(){return Wi(e,C2()).base(e.base())},pi.apply(e,arguments)}function T2(){var e=nv(Xd());return e.copy=function(){return Wi(e,T2()).constant(e.constant())},pi.apply(e,arguments)}function hv(){var e=rv(Xd());return e.copy=function(){return Wi(e,hv()).exponent(e.exponent())},pi.apply(e,arguments)}function GB(){return hv.apply(null,arguments).exponent(.5)}const Ss=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Yg,scaleDiverging:P2,scaleDivergingLog:C2,scaleDivergingPow:hv,scaleDivergingSqrt:GB,scaleDivergingSymlog:T2,scaleIdentity:a2,scaleImplicit:xm,scaleLinear:o2,scaleLog:l2,scaleOrdinal:Kg,scalePoint:IF,scalePow:iv,scaleQuantile:d2,scaleQuantize:f2,scaleRadial:u2,scaleSequential:O2,scaleSequentialLog:S2,scaleSequentialPow:pv,scaleSequentialQuantile:_2,scaleSequentialSqrt:YB,scaleSequentialSymlog:E2,scaleSqrt:A4,scaleSymlog:c2,scaleThreshold:p2,scaleTime:qB,scaleUtc:KB,tickFormat:i2},Symbol.toStringTag,{value:"Module"}));var Ui=e=>e.chartData,mv=V([Ui],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),Zd=(e,t,n,r)=>r?mv(e):Ui(e);function Ea(e){if(Array.isArray(e)&&e.length===2){var[t,n]=e;if(zn(t)&&zn(n))return!0}return!1}function V1(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function XB(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[n,r]=e,i,o;if(zn(n))i=n;else if(typeof n=="function")return;if(zn(r))o=r;else if(typeof r=="function")return;var a=[i,o];if(Ea(a))return a}}function ZB(e,t,n){if(!(!n&&t==null)){if(typeof e=="function"&&t!=null)try{var r=e(t,n);if(Ea(r))return V1(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var[i,o]=e,a,s;if(i==="auto")t!=null&&(a=Math.min(...t));else if(ge(i))a=i;else if(typeof i=="function")try{t!=null&&(a=i(t?.[0]))}catch{}else if(typeof i=="string"&&Rx.test(i)){var l=Rx.exec(i);if(l==null||t==null)a=void 0;else{var c=+l[1];a=t[0]-c}}else a=t?.[0];if(o==="auto")t!=null&&(s=Math.max(...t));else if(ge(o))s=o;else if(typeof o=="function")try{t!=null&&(s=o(t?.[1]))}catch{}else if(typeof o=="string"&&Dx.test(o)){var u=Dx.exec(o);if(u==null||t==null)s=void 0;else{var d=+u[1];s=t[1]+d}}else s=t?.[1];var p=[a,s];if(Ea(p))return t==null?p:V1(p,t,n)}}}var Ia=1e9,JB={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},vv,ht=!0,ir="[DecimalError] ",Eo=ir+"Invalid argument: ",gv=ir+"Exponent out of range: ",$a=Math.floor,oo=Math.pow,QB=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Dn,Vt=1e7,ct=7,A2=9007199254740991,$u=$a(A2/ct),ue={};ue.absoluteValue=ue.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ue.comparedTo=ue.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1};ue.decimalPlaces=ue.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*ct;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};ue.dividedBy=ue.div=function(e){return ti(this,new this.constructor(e))};ue.dividedToIntegerBy=ue.idiv=function(e){var t=this,n=t.constructor;return nt(ti(t,new n(e),0,1),n.precision)};ue.equals=ue.eq=function(e){return!this.cmp(e)};ue.exponent=function(){return Rt(this)};ue.greaterThan=ue.gt=function(e){return this.cmp(e)>0};ue.greaterThanOrEqualTo=ue.gte=function(e){return this.cmp(e)>=0};ue.isInteger=ue.isint=function(){return this.e>this.d.length-2};ue.isNegative=ue.isneg=function(){return this.s<0};ue.isPositive=ue.ispos=function(){return this.s>0};ue.isZero=function(){return this.s===0};ue.lessThan=ue.lt=function(e){return this.cmp(e)<0};ue.lessThanOrEqualTo=ue.lte=function(e){return this.cmp(e)<1};ue.logarithm=ue.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Dn))throw Error(ir+"NaN");if(n.s<1)throw Error(ir+(n.s?"NaN":"-Infinity"));return n.eq(Dn)?new r(0):(ht=!1,t=ti(nl(n,o),nl(e,o),o),ht=!0,nt(t,i))};ue.minus=ue.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?j2(t,e):k2(t,(e.s=-e.s,e))};ue.modulo=ue.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(ir+"NaN");return n.s?(ht=!1,t=ti(n,e,0,1).times(e),ht=!0,n.minus(t)):nt(new r(n),i)};ue.naturalExponential=ue.exp=function(){return M2(this)};ue.naturalLogarithm=ue.ln=function(){return nl(this)};ue.negated=ue.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ue.plus=ue.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?k2(t,e):j2(t,(e.s=-e.s,e))};ue.precision=ue.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Eo+e);if(t=Rt(i)+1,r=i.d.length-1,n=r*ct+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};ue.squareRoot=ue.sqrt=function(){var e,t,n,r,i,o,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(ir+"NaN")}for(e=Rt(s),ht=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Cr(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=$a((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(i.toString()),n=l.precision,i=a=n+3;;)if(o=r,r=o.plus(ti(s,o,a+2)).times(.5),Cr(o.d).slice(0,a)===(t=Cr(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(nt(o,n+1,0),o.times(o).eq(s)){r=o;break}}else if(t!="9999")break;a+=4}return ht=!0,nt(r,n)};ue.times=ue.mul=function(e){var t,n,r,i,o,a,s,l,c,u=this,d=u.constructor,p=u.d,h=(e=new d(e)).d;if(!u.s||!e.s)return new d(0);for(e.s*=u.s,n=u.e+e.e,l=p.length,c=h.length,l<c&&(o=p,p=h,h=o,a=l,l=c,c=a),o=[],a=l+c,r=a;r--;)o.push(0);for(r=c;--r>=0;){for(t=0,i=l+r;i>r;)s=o[i]+h[r]*p[i-r-1]+t,o[i--]=s%Vt|0,t=s/Vt|0;o[i]=(o[i]+t)%Vt|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,ht?nt(e,d.precision):e};ue.toDecimalPlaces=ue.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Dr(e,0,Ia),t===void 0?t=r.rounding:Dr(t,0,8),nt(n,e+Rt(n)+1,t))};ue.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=ko(r,!0):(Dr(e,0,Ia),t===void 0?t=i.rounding:Dr(t,0,8),r=nt(new i(r),e+1,t),n=ko(r,!0,e+1)),n};ue.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?ko(i):(Dr(e,0,Ia),t===void 0?t=o.rounding:Dr(t,0,8),r=nt(new o(i),e+Rt(i)+1,t),n=ko(r.abs(),!1,e+Rt(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};ue.toInteger=ue.toint=function(){var e=this,t=e.constructor;return nt(new t(e),Rt(e)+1,t.rounding)};ue.toNumber=function(){return+this};ue.toPower=ue.pow=function(e){var t,n,r,i,o,a,s=this,l=s.constructor,c=12,u=+(e=new l(e));if(!e.s)return new l(Dn);if(s=new l(s),!s.s){if(e.s<1)throw Error(ir+"Infinity");return s}if(s.eq(Dn))return s;if(r=l.precision,e.eq(Dn))return nt(s,r);if(t=e.e,n=e.d.length-1,a=t>=n,o=s.s,a){if((n=u<0?-u:u)<=A2){for(i=new l(Dn),t=Math.ceil(r/ct+4),ht=!1;n%2&&(i=i.times(s),U1(i.d,t)),n=$a(n/2),n!==0;)s=s.times(s),U1(s.d,t);return ht=!0,e.s<0?new l(Dn).div(i):nt(i,r)}}else if(o<0)throw Error(ir+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,ht=!1,i=e.times(nl(s,r+c)),ht=!0,i=M2(i),i.s=o,i};ue.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=Rt(i),r=ko(i,n<=o.toExpNeg||n>=o.toExpPos)):(Dr(e,1,Ia),t===void 0?t=o.rounding:Dr(t,0,8),i=nt(new o(i),e,t),n=Rt(i),r=ko(i,e<=n||n<=o.toExpNeg,e)),r};ue.toSignificantDigits=ue.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Dr(e,1,Ia),t===void 0?t=r.rounding:Dr(t,0,8)),nt(new r(n),e,t)};ue.toString=ue.valueOf=ue.val=ue.toJSON=ue[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Rt(e),n=e.constructor;return ko(e,t<=n.toExpNeg||t>=n.toExpPos)};function k2(e,t){var n,r,i,o,a,s,l,c,u=e.constructor,d=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),ht?nt(t,d):t;if(l=e.d,c=t.d,a=e.e,i=t.e,l=l.slice(),o=a-i,o){for(o<0?(r=l,o=-o,s=c.length):(r=c,i=a,s=l.length),a=Math.ceil(d/ct),s=a>s?a+1:s+1,o>s&&(o=s,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(s=l.length,o=c.length,s-o<0&&(o=s,r=c,c=l,l=r),n=0;o;)n=(l[--o]=l[o]+c[o]+n)/Vt|0,l[o]%=Vt;for(n&&(l.unshift(n),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,ht?nt(t,d):t}function Dr(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Eo+e)}function Cr(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)r=e[t]+"",n=ct-r.length,n&&(o+=xi(n)),o+=r;a=e[t],r=a+"",n=ct-r.length,n&&(o+=xi(n))}else if(a===0)return"0";for(;a%10===0;)a/=10;return o+a}var ti=(function(){function e(r,i){var o,a=0,s=r.length;for(r=r.slice();s--;)o=r[s]*i+a,r[s]=o%Vt|0,a=o/Vt|0;return a&&r.unshift(a),r}function t(r,i,o,a){var s,l;if(o!=a)l=o>a?1:-1;else for(s=l=0;s<o;s++)if(r[s]!=i[s]){l=r[s]>i[s]?1:-1;break}return l}function n(r,i,o){for(var a=0;o--;)r[o]-=a,a=r[o]<i[o]?1:0,r[o]=a*Vt+r[o]-i[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,o,a){var s,l,c,u,d,p,h,g,m,v,y,S,x,b,O,E,C,T,k=r.constructor,R=r.s==i.s?1:-1,M=r.d,P=i.d;if(!r.s)return new k(r);if(!i.s)throw Error(ir+"Division by zero");for(l=r.e-i.e,C=P.length,O=M.length,h=new k(R),g=h.d=[],c=0;P[c]==(M[c]||0);)++c;if(P[c]>(M[c]||0)&&--l,o==null?S=o=k.precision:a?S=o+(Rt(r)-Rt(i))+1:S=o,S<0)return new k(0);if(S=S/ct+2|0,c=0,C==1)for(u=0,P=P[0],S++;(c<O||u)&&S--;c++)x=u*Vt+(M[c]||0),g[c]=x/P|0,u=x%P|0;else{for(u=Vt/(P[0]+1)|0,u>1&&(P=e(P,u),M=e(M,u),C=P.length,O=M.length),b=C,m=M.slice(0,C),v=m.length;v<C;)m[v++]=0;T=P.slice(),T.unshift(0),E=P[0],P[1]>=Vt/2&&++E;do u=0,s=t(P,m,C,v),s<0?(y=m[0],C!=v&&(y=y*Vt+(m[1]||0)),u=y/E|0,u>1?(u>=Vt&&(u=Vt-1),d=e(P,u),p=d.length,v=m.length,s=t(d,m,p,v),s==1&&(u--,n(d,C<p?T:P,p))):(u==0&&(s=u=1),d=P.slice()),p=d.length,p<v&&d.unshift(0),n(m,d,v),s==-1&&(v=m.length,s=t(P,m,C,v),s<1&&(u++,n(m,C<v?T:P,v))),v=m.length):s===0&&(u++,m=[0]),g[c++]=u,s&&m[0]?m[v++]=M[b]||0:(m=[M[b]],v=1);while((b++<O||m[0]!==void 0)&&S--)}return g[0]||g.shift(),h.e=l,nt(h,a?o+Rt(h)+1:o)}})();function M2(e,t){var n,r,i,o,a,s,l=0,c=0,u=e.constructor,d=u.precision;if(Rt(e)>16)throw Error(gv+Rt(e));if(!e.s)return new u(Dn);for(ht=!1,s=d,a=new u(.03125);e.abs().gte(.1);)e=e.times(a),c+=5;for(r=Math.log(oo(2,c))/Math.LN10*2+5|0,s+=r,n=i=o=new u(Dn),u.precision=s;;){if(i=nt(i.times(e),s),n=n.times(++l),a=o.plus(ti(i,n,s)),Cr(a.d).slice(0,s)===Cr(o.d).slice(0,s)){for(;c--;)o=nt(o.times(o),s);return u.precision=d,t==null?(ht=!0,nt(o,d)):o}o=a}}function Rt(e){for(var t=e.e*ct,n=e.d[0];n>=10;n/=10)t++;return t}function nh(e,t,n){if(t>e.LN10.sd())throw ht=!0,n&&(e.precision=n),Error(ir+"LN10 precision limit exceeded");return nt(new e(e.LN10),t)}function xi(e){for(var t="";e--;)t+="0";return t}function nl(e,t){var n,r,i,o,a,s,l,c,u,d=1,p=10,h=e,g=h.d,m=h.constructor,v=m.precision;if(h.s<1)throw Error(ir+(h.s?"NaN":"-Infinity"));if(h.eq(Dn))return new m(0);if(t==null?(ht=!1,c=v):c=t,h.eq(10))return t==null&&(ht=!0),nh(m,c);if(c+=p,m.precision=c,n=Cr(g),r=n.charAt(0),o=Rt(h),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)h=h.times(e),n=Cr(h.d),r=n.charAt(0),d++;o=Rt(h),r>1?(h=new m("0."+n),o++):h=new m(r+"."+n.slice(1))}else return l=nh(m,c+2,v).times(o+""),h=nl(new m(r+"."+n.slice(1)),c-p).plus(l),m.precision=v,t==null?(ht=!0,nt(h,v)):h;for(s=a=h=ti(h.minus(Dn),h.plus(Dn),c),u=nt(h.times(h),c),i=3;;){if(a=nt(a.times(u),c),l=s.plus(ti(a,new m(i),c)),Cr(l.d).slice(0,c)===Cr(s.d).slice(0,c))return s=s.times(2),o!==0&&(s=s.plus(nh(m,c+2,v).times(o+""))),s=ti(s,new m(d),c),m.precision=v,t==null?(ht=!0,nt(s,v)):s;s=l,i+=2}}function W1(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=$a(n/ct),e.d=[],r=(n+1)%ct,n<0&&(r+=ct),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=ct;r<i;)e.d.push(+t.slice(r,r+=ct));t=t.slice(r),r=ct-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),ht&&(e.e>$u||e.e<-$u))throw Error(gv+n)}else e.s=0,e.e=0,e.d=[0];return e}function nt(e,t,n){var r,i,o,a,s,l,c,u,d=e.d;for(a=1,o=d[0];o>=10;o/=10)a++;if(r=t-a,r<0)r+=ct,i=t,c=d[u=0];else{if(u=Math.ceil((r+1)/ct),o=d.length,u>=o)return e;for(c=o=d[u],a=1;o>=10;o/=10)a++;r%=ct,i=r-ct+a}if(n!==void 0&&(o=oo(10,a-i-1),s=c/o%10|0,l=t<0||d[u+1]!==void 0||c%o,l=n<4?(s||l)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||l||n==6&&(r>0?i>0?c/oo(10,a-i):0:d[u-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return l?(o=Rt(e),d.length=1,t=t-o-1,d[0]=oo(10,(ct-t%ct)%ct),e.e=$a(-t/ct)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=u,o=1,u--):(d.length=u+1,o=oo(10,ct-r),d[u]=i>0?(c/oo(10,a-i)%oo(10,i)|0)*o:0),l)for(;;)if(u==0){(d[0]+=o)==Vt&&(d[0]=1,++e.e);break}else{if(d[u]+=o,d[u]!=Vt)break;d[u--]=0,o=1}for(r=d.length;d[--r]===0;)d.pop();if(ht&&(e.e>$u||e.e<-$u))throw Error(gv+Rt(e));return e}function j2(e,t){var n,r,i,o,a,s,l,c,u,d,p=e.constructor,h=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),ht?nt(t,h):t;if(l=e.d,d=t.d,r=t.e,c=e.e,l=l.slice(),a=c-r,a){for(u=a<0,u?(n=l,a=-a,s=d.length):(n=d,r=c,s=l.length),i=Math.max(Math.ceil(h/ct),s)+2,a>i&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for(i=l.length,s=d.length,u=i<s,u&&(s=i),i=0;i<s;i++)if(l[i]!=d[i]){u=l[i]<d[i];break}a=0}for(u&&(n=l,l=d,d=n,t.s=-t.s),s=l.length,i=d.length-s;i>0;--i)l[s++]=0;for(i=d.length;i>a;){if(l[--i]<d[i]){for(o=i;o&&l[--o]===0;)l[o]=Vt-1;--l[o],l[i]+=Vt}l[i]-=d[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,ht?nt(t,h):t):new p(0)}function ko(e,t,n){var r,i=Rt(e),o=Cr(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+xi(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+xi(-i-1)+o,n&&(r=n-a)>0&&(o+=xi(r))):i>=a?(o+=xi(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+xi(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=xi(r))),e.s<0?"-"+o:o}function U1(e,t){if(e.length>t)return e.length=t,!0}function N2(e){var t,n,r;function i(o){var a=this;if(!(a instanceof i))return new i(o);if(a.constructor=i,o instanceof i){a.s=o.s,a.e=o.e,a.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(Eo+o);if(o>0)a.s=1;else if(o<0)o=-o,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(o===~~o&&o<1e7){a.e=0,a.d=[o];return}return W1(a,o.toString())}else if(typeof o!="string")throw Error(Eo+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,QB.test(o))W1(a,o);else throw Error(Eo+o)}if(i.prototype=ue,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=N2,i.config=i.set=e6,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function e6(e){if(!e||typeof e!="object")throw Error(ir+"Object expected");var t,n,r,i=["precision",1,Ia,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if($a(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Eo+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Eo+n+": "+r);return this}var vv=N2(JB);Dn=new vv(1);const He=vv;var t6=e=>e,R2={},D2=e=>e===R2,H1=e=>function t(){return arguments.length===0||arguments.length===1&&D2(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},I2=(e,t)=>e===1?t:H1(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=r.filter(a=>a!==R2).length;return o>=e?t(...r):I2(e-o,H1(function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=r.map(u=>D2(u)?s.shift():u);return t(...c,...s)}))}),Jd=e=>I2(e.length,e),Em=(e,t)=>{for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},n6=Jd((e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(n=>t[n]).map(e)),r6=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return t6;var i=n.reverse(),o=i[0],a=i.slice(1);return function(){return a.reduce((s,l)=>l(s),o(...arguments))}},_m=e=>Array.isArray(e)?e.reverse():e.split("").reverse().join(""),$2=e=>{var t=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t&&i.every((a,s)=>{var l;return a===((l=t)===null||l===void 0?void 0:l[s])})||(t=i,n=e(...i)),n}};function L2(e){var t;return e===0?t=1:t=Math.floor(new He(e).abs().log(10).toNumber())+1,t}function F2(e,t,n){for(var r=new He(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}Jd((e,t,n)=>{var r=+e,i=+t;return r+n*(i-r)});Jd((e,t,n)=>{var r=t-+e;return r=r||1/0,(n-e)/r});Jd((e,t,n)=>{var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});var B2=e=>{var[t,n]=e,[r,i]=[t,n];return t>n&&([r,i]=[n,t]),[r,i]},z2=(e,t,n)=>{if(e.lte(0))return new He(0);var r=L2(e.toNumber()),i=new He(10).pow(r),o=e.div(i),a=r!==1?.05:.1,s=new He(Math.ceil(o.div(a).toNumber())).add(n).mul(a),l=s.mul(i);return t?new He(l.toNumber()):new He(Math.ceil(l.toNumber()))},i6=(e,t,n)=>{var r=new He(1),i=new He(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new He(10).pow(L2(e)-1),i=new He(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new He(Math.floor(e)))}else e===0?i=new He(Math.floor((t-1)/2)):n||(i=new He(Math.floor(e)));var a=Math.floor((t-1)/2),s=r6(n6(l=>i.add(new He(l-a).mul(r)).toNumber()),Em);return s(0,t)},V2=function(t,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((n-t)/(r-1)))return{step:new He(0),tickMin:new He(0),tickMax:new He(0)};var a=z2(new He(n).sub(t).div(r-1),i,o),s;t<=0&&n>=0?s=new He(0):(s=new He(t).add(n).div(2),s=s.sub(new He(s).mod(a)));var l=Math.ceil(s.sub(t).div(a).toNumber()),c=Math.ceil(new He(n).sub(s).div(a).toNumber()),u=l+c+1;return u>r?V2(t,n,r,i,o+1):(u<r&&(c=n>0?c+(r-u):c,l=n>0?l:l+(r-u)),{step:a,tickMin:s.sub(new He(l).mul(a)),tickMax:s.add(new He(c).mul(a))})};function o6(e){var[t,n]=e,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(r,2),[a,s]=B2([t,n]);if(a===-1/0||s===1/0){var l=s===1/0?[a,...Em(0,r-1).map(()=>1/0)]:[...Em(0,r-1).map(()=>-1/0),s];return t>n?_m(l):l}if(a===s)return i6(a,r,i);var{step:c,tickMin:u,tickMax:d}=V2(a,s,o,i,0),p=F2(u,d.add(new He(.1).mul(c)),c);return t>n?_m(p):p}function a6(e,t){var[n,r]=e,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[o,a]=B2([n,r]);if(o===-1/0||a===1/0)return[n,r];if(o===a)return[o];var s=Math.max(t,2),l=z2(new He(a).sub(o).div(s-1),i,0),c=[...F2(new He(o),new He(a),l),a];return i===!1&&(c=c.map(u=>Math.round(u))),n>r?_m(c):c}var s6=$2(o6),l6=$2(a6),W2=e=>e.rootProps.maxBarSize,c6=e=>e.rootProps.barGap,U2=e=>e.rootProps.barCategoryGap,u6=e=>e.rootProps.barSize,Ll=e=>e.rootProps.stackOffset,yv=e=>e.options.chartName,bv=e=>e.rootProps.syncId,H2=e=>e.rootProps.syncMethod,xv=e=>e.options.eventEmitter,Yr={allowDuplicatedCategory:!0,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"category"},jn={allowDataOverflow:!1,allowDuplicatedCategory:!0,radiusAxisId:0,scale:"auto",tick:!0,tickCount:5,type:"number"},Qd=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t},d6={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:Yr.angleAxisId,includeHidden:!1,name:void 0,reversed:Yr.reversed,scale:Yr.scale,tick:Yr.tick,tickCount:void 0,ticks:void 0,type:Yr.type,unit:void 0},f6={allowDataOverflow:jn.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:jn.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:jn.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:jn.scale,tick:jn.tick,tickCount:jn.tickCount,ticks:void 0,type:jn.type,unit:void 0},p6={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:Yr.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Yr.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Yr.scale,tick:Yr.tick,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},h6={allowDataOverflow:jn.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:jn.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:jn.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:jn.scale,tick:jn.tick,tickCount:jn.tickCount,ticks:void 0,type:"category",unit:void 0},wv=(e,t)=>e.polarAxis.angleAxis[t]!=null?e.polarAxis.angleAxis[t]:e.layout.layoutType==="radial"?p6:d6,Ov=(e,t)=>e.polarAxis.radiusAxis[t]!=null?e.polarAxis.radiusAxis[t]:e.layout.layoutType==="radial"?h6:f6,ef=e=>e.polarOptions,Sv=V([di,fi,$t],PP),q2=V([ef,Sv],(e,t)=>{if(e!=null)return un(e.innerRadius,t,0)}),K2=V([ef,Sv],(e,t)=>{if(e!=null)return un(e.outerRadius,t,t*.8)}),m6=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]},Y2=V([ef],m6);V([wv,Y2],Qd);var G2=V([Sv,q2,K2],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});V([Ov,G2],Qd);var X2=V([Ce,ef,q2,K2,di,fi],(e,t,n,r,i,o)=>{if(!(e!=="centric"&&e!=="radial"||t==null||n==null||r==null)){var{cx:a,cy:s,startAngle:l,endAngle:c}=t;return{cx:un(a,i,i/2),cy:un(s,o,o/2),innerRadius:n,outerRadius:r,startAngle:l,endAngle:c,clockWise:!1}}}),gt=(e,t)=>t,Fl=(e,t,n)=>n;function Ev(e){return e?.id}var Ft=e=>{var t=Ce(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},La=e=>e.tooltip.settings.axisId,Yt=e=>{var t=Ft(e),n=La(e);return Bl(e,t,n)},Z2=V([Yt],e=>e?.dataKey);function J2(e,t,n){var{chartData:r=[]}=t,{allowDuplicatedCategory:i,dataKey:o}=n,a=new Map;return e.forEach(s=>{var l,c=(l=s.data)!==null&&l!==void 0?l:r;if(!(c==null||c.length===0)){var u=Ev(s);c.forEach((d,p)=>{var h=o==null||i?p:String(at(d,o,null)),g=at(d,s.dataKey,0),m;a.has(h)?m=a.get(h):m={},Object.assign(m,{[u]:g}),a.set(h,m)})}}),Array.from(a.values())}function tf(e){return e.stackId!=null&&e.dataKey!=null}function q1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Lu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q1(Object(n),!0).forEach(function(r){g6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function g6(e,t,n){return(t=v6(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v6(e){var t=y6(e,"string");return typeof t=="symbol"?t:t+""}function y6(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Pm=[0,"auto"],An={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},Q2=(e,t)=>e.cartesianAxis.xAxis[t],hi=(e,t)=>{var n=Q2(e,t);return n??An},kn={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Pm,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:Ml},eC=(e,t)=>e.cartesianAxis.yAxis[t],mi=(e,t)=>{var n=eC(e,t);return n??kn},b6={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},_v=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return n??b6},kt=(e,t,n)=>{switch(t){case"xAxis":return hi(e,n);case"yAxis":return mi(e,n);case"zAxis":return _v(e,n);case"angleAxis":return wv(e,n);case"radiusAxis":return Ov(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},x6=(e,t,n)=>{switch(t){case"xAxis":return hi(e,n);case"yAxis":return mi(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Bl=(e,t,n)=>{switch(t){case"xAxis":return hi(e,n);case"yAxis":return mi(e,n);case"angleAxis":return wv(e,n);case"radiusAxis":return Ov(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},tC=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function Pv(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var nf=e=>e.graphicalItems.cartesianItems,w6=V([gt,Fl],Pv),Cv=(e,t,n)=>e.filter(n).filter(r=>t?.includeHidden===!0?!0:!r.hide),zl=V([nf,kt,w6],Cv),nC=V([zl],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(tf)),rC=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),iC=V([zl],rC),Tv=e=>e.map(t=>t.data).filter(Boolean).flat(1),O6=V([zl],Tv),Av=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:i}=t;return e.length>0?e:n.slice(r,i+1)},kv=V([O6,Zd],Av),Mv=(e,t,n)=>t?.dataKey!=null?e.map(r=>({value:at(r,t.dataKey)})):n.length>0?n.map(r=>r.dataKey).flatMap(r=>e.map(i=>({value:at(i,r)}))):e.map(r=>({value:r})),rf=V([kv,kt,zl],Mv);function oC(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function Bo(e){return e.filter(t=>Rr(t)||t instanceof Date).map(Number).filter(t=>Fn(t)===!1)}function S6(e,t,n){return!n||typeof t!="number"||Fn(t)?[]:n.length?Bo(n.flatMap(r=>{var i=at(e,r.dataKey),o,a;if(Array.isArray(i)?[o,a]=i:o=a=i,!(!zn(o)||!zn(a)))return[t-o,t+a]})):[]}var E6=V([nC,Zd,Yt],J2),aC=(e,t,n)=>{var r={},i=t.reduce((o,a)=>(a.stackId==null||(o[a.stackId]==null&&(o[a.stackId]=[]),o[a.stackId].push(a)),o),r);return Object.fromEntries(Object.entries(i).map(o=>{var[a,s]=o,l=s.map(Ev);return[a,{stackedData:z5(e,l,n),graphicalItems:s}]}))},Cm=V([E6,nC,Ll],aC),sC=(e,t,n)=>{var{dataStartIndex:r,dataEndIndex:i}=t;if(n!=="zAxis"){var o=q5(e,r,i);if(!(o!=null&&o[0]===0&&o[1]===0))return o}},_6=V([Cm,Ui,gt],sC),lC=(e,t,n,r,i)=>n.length>0?e.flatMap(o=>n.flatMap(a=>{var s,l,c=(s=r[a.id])===null||s===void 0?void 0:s.filter(d=>oC(i,d)),u=at(o,(l=t.dataKey)!==null&&l!==void 0?l:a.dataKey);return{value:u,errorDomain:S6(o,u,c)}})).filter(Boolean):t?.dataKey!=null?e.map(o=>({value:at(o,t.dataKey),errorDomain:[]})):e.map(o=>({value:o,errorDomain:[]})),of=e=>e.errorBars,cC=(e,t,n)=>e.flatMap(r=>t[r.id]).filter(Boolean).filter(r=>oC(n,r));V([iC,of,gt],cC);var P6=V([kv,kt,iC,of,gt],lC);function C6(e){var{value:t}=e;if(Rr(t)||t instanceof Date)return t}var K1=e=>{var t=e.flatMap(r=>[r.value,r.errorDomain]).flat(1),n=Bo(t);if(n.length!==0)return[Math.min(...n),Math.max(...n)]},T6=(e,t,n)=>{var r=e.map(C6).filter(i=>i!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&m_(r))?YP(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},jv=e=>{var t;if(e==null||!("domain"in e))return Pm;if(e.domain!=null)return e.domain;if(e.ticks!=null){if(e.type==="number"){var n=Bo(e.ticks);return[Math.min(...n),Math.max(...n)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:Pm},Fu=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.filter(Boolean);if(i.length!==0){var o=i.flat(),a=Math.min(...o),s=Math.max(...o);return[a,s]}},uC=e=>e.referenceElements.dots,Fa=(e,t,n)=>e.filter(r=>r.ifOverflow==="extendDomain").filter(r=>t==="xAxis"?r.xAxisId===n:r.yAxisId===n),A6=V([uC,gt,Fl],Fa),dC=e=>e.referenceElements.areas,k6=V([dC,gt,Fl],Fa),fC=e=>e.referenceElements.lines,M6=V([fC,gt,Fl],Fa),pC=(e,t)=>{var n=Bo(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]},j6=V(A6,gt,pC),hC=(e,t)=>{var n=Bo(e.flatMap(r=>[t==="xAxis"?r.x1:r.y1,t==="xAxis"?r.x2:r.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]},N6=V([k6,gt],hC),mC=(e,t)=>{var n=Bo(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]},R6=V(M6,gt,mC),D6=V(j6,R6,N6,(e,t,n)=>Fu(e,n,t)),gC=V([kt],jv),Nv=(e,t,n,r,i,o,a)=>{var s=XB(t,e.allowDataOverflow);if(s!=null)return s;var l=o==="vertical"&&a==="xAxis"||o==="horizontal"&&a==="yAxis",c=l?Fu(n,i,K1(r)):Fu(i,K1(r));return ZB(t,c,e.allowDataOverflow)},I6=V([kt,gC,_6,P6,D6,Ce,gt],Nv),$6=[0,1],Rv=(e,t,n,r,i,o,a)=>{if(!((e==null||n==null||n.length===0)&&a===void 0)){var{dataKey:s,type:l}=e,c=Bi(t,o);return c&&s==null?YP(0,n.length):l==="category"?T6(r,e,c):i==="expand"?$6:a}},Dv=V([kt,Ce,kv,rf,Ll,gt,I6],Rv),vC=(e,t,n,r,i)=>{if(e!=null){var{scale:o,type:a}=e;if(o==="auto")return t==="radial"&&i==="radiusAxis"?"band":t==="radial"&&i==="angleAxis"?"linear":a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?"point":a==="category"?"band":"linear";if(typeof o=="string"){var s="scale".concat(Pl(o));return s in Ss?s:"point"}}},Ba=V([kt,Ce,tC,yv,gt],vC);function L6(e){if(e!=null){if(e in Ss)return Ss[e]();var t="scale".concat(Pl(e));if(t in Ss)return Ss[t]()}}function Iv(e,t,n,r){if(!(n==null||r==null)){if(typeof e.scale=="function")return e.scale.copy().domain(n).range(r);var i=L6(t);if(i!=null){var o=i.domain(n).range(r);return I5(o),o}}}var $v=(e,t,n)=>{var r=jv(t);if(!(n!=="auto"&&n!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(r)&&(r[0]==="auto"||r[1]==="auto")&&Ea(e))return s6(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&Ea(e))return l6(e,t.tickCount,t.allowDecimals)}},Lv=V([Dv,Bl,Ba],$v),Fv=(e,t,n,r)=>{if(r!=="angleAxis"&&e?.type==="number"&&Ea(t)&&Array.isArray(n)&&n.length>0){var i=t[0],o=n[0],a=t[1],s=n[n.length-1];return[Math.min(i,o),Math.max(a,s)]}return t},F6=V([kt,Dv,Lv,gt],Fv),B6=V(rf,kt,(e,t)=>{if(!(!t||t.type!=="number")){var n=1/0,r=Array.from(Bo(e.map(s=>s.value))).sort((s,l)=>s-l);if(r.length<2)return 1/0;var i=r[r.length-1]-r[0];if(i===0)return 1/0;for(var o=0;o<r.length-1;o++){var a=r[o+1]-r[o];n=Math.min(n,a)}return n/i}}),yC=V(B6,Ce,U2,$t,(e,t,n,r)=>r,(e,t,n,r,i)=>{if(!zn(e))return 0;var o=t==="vertical"?r.height:r.width;if(i==="gap")return e*o/2;if(i==="no-gap"){var a=un(n,e*o),s=e*o/2;return s-a-(s-a)/o*a}return 0}),z6=(e,t)=>{var n=hi(e,t);return n==null||typeof n.padding!="string"?0:yC(e,"xAxis",t,n.padding)},V6=(e,t)=>{var n=mi(e,t);return n==null||typeof n.padding!="string"?0:yC(e,"yAxis",t,n.padding)},W6=V(hi,z6,(e,t)=>{var n,r;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((n=i.left)!==null&&n!==void 0?n:0)+t,right:((r=i.right)!==null&&r!==void 0?r:0)+t}}),U6=V(mi,V6,(e,t)=>{var n,r;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((n=i.top)!==null&&n!==void 0?n:0)+t,bottom:((r=i.bottom)!==null&&r!==void 0?r:0)+t}}),H6=V([$t,W6,Wd,Vd,(e,t,n)=>n],(e,t,n,r,i)=>{var{padding:o}=r;return i?[o.left,n.width-o.right]:[e.left+t.left,e.left+e.width-t.right]}),q6=V([$t,Ce,U6,Wd,Vd,(e,t,n)=>n],(e,t,n,r,i,o)=>{var{padding:a}=i;return o?[r.height-a.bottom,a.top]:t==="horizontal"?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),Vl=(e,t,n,r)=>{var i;switch(t){case"xAxis":return H6(e,n,r);case"yAxis":return q6(e,n,r);case"zAxis":return(i=_v(e,n))===null||i===void 0?void 0:i.range;case"angleAxis":return Y2(e);case"radiusAxis":return G2(e,n);default:return}},bC=V([kt,Vl],Qd),za=V([kt,Ba,F6,bC],Iv);V([zl,of,gt],cC);function xC(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var af=(e,t)=>t,sf=(e,t,n)=>n,K6=V(Bd,af,sf,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(xC)),Y6=V(zd,af,sf,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(xC)),wC=(e,t)=>({width:e.width,height:t.height}),G6=(e,t)=>{var n=typeof t.width=="number"?t.width:Ml;return{width:n,height:e.height}},OC=V($t,hi,wC),X6=(e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}},Z6=(e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}},J6=V(fi,$t,K6,af,sf,(e,t,n,r,i)=>{var o={},a;return n.forEach(s=>{var l=wC(t,s);a==null&&(a=X6(t,r,e));var c=r==="top"&&!i||r==="bottom"&&i;o[s.id]=a-Number(c)*l.height,a+=(c?-1:1)*l.height}),o}),Q6=V(di,$t,Y6,af,sf,(e,t,n,r,i)=>{var o={},a;return n.forEach(s=>{var l=G6(t,s);a==null&&(a=Z6(t,r,e));var c=r==="left"&&!i||r==="right"&&i;o[s.id]=a-Number(c)*l.width,a+=(c?-1:1)*l.width}),o}),e3=(e,t)=>{var n=hi(e,t);if(n!=null)return J6(e,n.orientation,n.mirror)},t3=V([$t,hi,e3,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n?.[r];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),n3=(e,t)=>{var n=mi(e,t);if(n!=null)return Q6(e,n.orientation,n.mirror)},r3=V([$t,mi,n3,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n?.[r];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),SC=V($t,mi,(e,t)=>{var n=typeof t.width=="number"?t.width:Ml;return{width:n,height:e.height}}),Y1=(e,t,n)=>{switch(t){case"xAxis":return OC(e,n).width;case"yAxis":return SC(e,n).height;default:return}},EC=(e,t,n,r)=>{if(n!=null){var{allowDuplicatedCategory:i,type:o,dataKey:a}=n,s=Bi(e,r),l=t.map(c=>c.value);if(a&&s&&o==="category"&&i&&m_(l))return l}},Bv=V([Ce,rf,kt,gt],EC),_C=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var{type:i,scale:o}=n,a=Bi(e,r);if(a&&(i==="number"||o!=="auto"))return t.map(s=>s.value)}},zv=V([Ce,rf,Bl,gt],_C),G1=V([Ce,x6,Ba,za,Bv,zv,Vl,Lv,gt],(e,t,n,r,i,o,a,s,l)=>{if(t==null)return null;var c=Bi(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:o,duplicateDomain:i,isCategorical:c,niceTicks:s,range:a,realScaleType:n,scale:r}}),i3=(e,t,n,r,i,o,a,s,l)=>{if(!(t==null||r==null)){var c=Bi(e,l),{type:u,ticks:d,tickCount:p}=t,h=n==="scaleBand"&&typeof r.bandwidth=="function"?r.bandwidth()/2:2,g=u==="category"&&r.bandwidth?r.bandwidth()/h:0;g=l==="angleAxis"&&o!=null&&o.length>=2?Ut(o[0]-o[1])*2*g:g;var m=d||i;if(m){var v=m.map((y,S)=>{var x=a?a.indexOf(y):y;return{index:S,coordinate:r(x)+g,value:y,offset:g}});return v.filter(y=>!Fn(y.coordinate))}return c&&s?s.map((y,S)=>({coordinate:r(y)+g,value:y,index:S,offset:g})):r.ticks?r.ticks(p).map(y=>({coordinate:r(y)+g,value:y,offset:g})):r.domain().map((y,S)=>({coordinate:r(y)+g,value:a?a[y]:y,index:S,offset:g}))}},PC=V([Ce,Bl,Ba,za,Lv,Vl,Bv,zv,gt],i3),o3=(e,t,n,r,i,o,a)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var s=Bi(e,a),{tickCount:l}=t,c=0;return c=a==="angleAxis"&&r?.length>=2?Ut(r[0]-r[1])*2*c:c,s&&o?o.map((u,d)=>({coordinate:n(u)+c,value:u,index:d,offset:c})):n.ticks?n.ticks(l).map(u=>({coordinate:n(u)+c,value:u,offset:c})):n.domain().map((u,d)=>({coordinate:n(u)+c,value:i?i[u]:u,index:d,offset:c}))}},ji=V([Ce,Bl,za,Vl,Bv,zv,gt],o3),Ni=V(kt,za,(e,t)=>{if(!(e==null||t==null))return Lu(Lu({},e),{},{scale:t})}),a3=V([kt,Ba,Dv,bC],Iv);V((e,t,n)=>_v(e,n),a3,(e,t)=>{if(!(e==null||t==null))return Lu(Lu({},e),{},{scale:t})});var s3=V([Ce,Bd,zd],(e,t,n)=>{switch(e){case"horizontal":return t.some(r=>r.reversed)?"right-to-left":"left-to-right";case"vertical":return n.some(r=>r.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),CC=e=>e.options.defaultTooltipEventType,TC=e=>e.options.validateTooltipEventTypes;function AC(e,t,n){if(e==null)return t;var r=e?"axis":"item";return n==null?t:n.includes(r)?r:t}function Vv(e,t){var n=CC(e),r=TC(e);return AC(t,n,r)}function l3(e){return he(t=>Vv(t,e))}var kC=(e,t)=>{var n,r=Number(t);if(!(Fn(r)||t==null))return r>=0?e==null||(n=e[r])===null||n===void 0?void 0:n.value:void 0},c3=e=>e.tooltip.settings,Oi={active:!1,index:null,dataKey:void 0,coordinate:void 0},u3={itemInteraction:{click:Oi,hover:Oi},axisInteraction:{click:Oi,hover:Oi},keyboardInteraction:Oi,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},MC=Un({name:"tooltip",initialState:u3,reducers:{addTooltipEntrySettings(e,t){e.tooltipItemPayloads.push(t.payload)},removeTooltipEntrySettings(e,t){var n=ei(e).tooltipItemPayloads.indexOf(t.payload);n>-1&&e.tooltipItemPayloads.splice(n,1)},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate,e.keyboardInteraction.dataKey=t.payload.activeDataKey}}}),{addTooltipEntrySettings:d3,removeTooltipEntrySettings:f3,setTooltipSettingsState:p3,setActiveMouseOverItemIndex:jC,mouseLeaveItem:h3,mouseLeaveChart:NC,setActiveClickItemIndex:m3,setMouseOverAxisIndex:RC,setMouseClickAxisIndex:g3,setSyncInteraction:Tm,setKeyboardInteraction:Am}=MC.actions,v3=MC.reducer;function X1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Oc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X1(Object(n),!0).forEach(function(r){y3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function y3(e,t,n){return(t=b3(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b3(e){var t=x3(e,"string");return typeof t=="symbol"?t:t+""}function x3(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function w3(e,t,n){return t==="axis"?n==="click"?e.axisInteraction.click:e.axisInteraction.hover:n==="click"?e.itemInteraction.click:e.itemInteraction.hover}function O3(e){return e.index!=null}var DC=(e,t,n,r)=>{if(t==null)return Oi;var i=w3(e,t,n);if(i==null)return Oi;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var o=e.settings.active===!0;if(O3(i)){if(o)return Oc(Oc({},i),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r};return Oc(Oc({},Oi),{},{coordinate:i.coordinate})},Wv=(e,t)=>{var n=e?.index;if(n==null)return null;var r=Number(n);if(!zn(r))return n;var i=0,o=1/0;return t.length>0&&(o=t.length-1),String(Math.max(i,Math.min(r,o)))},IC=(e,t,n,r,i,o,a,s)=>{if(!(o==null||s==null)){var l=a[0],c=l==null?void 0:s(l.positions,o);if(c!=null)return c;var u=i?.[Number(o)];if(u)switch(n){case"horizontal":return{x:u.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:u.coordinate}}}},$C=(e,t,n,r)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;return n==="hover"?i=e.itemInteraction.hover.dataKey:i=e.itemInteraction.click.dataKey,i==null&&r!=null?[e.tooltipItemPayloads[0]]:e.tooltipItemPayloads.filter(o=>{var a;return((a=o.settings)===null||a===void 0?void 0:a.dataKey)===i})},Wl=e=>e.options.tooltipPayloadSearcher,Va=e=>e.tooltip;function Z1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function J1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Z1(Object(n),!0).forEach(function(r){S3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function S3(e,t,n){return(t=E3(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E3(e){var t=_3(e,"string");return typeof t=="symbol"?t:t+""}function _3(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function P3(e,t){return e??t}var LC=(e,t,n,r,i,o,a)=>{if(!(t==null||o==null)){var{chartData:s,computedData:l,dataStartIndex:c,dataEndIndex:u}=n,d=[];return e.reduce((p,h)=>{var g,{dataDefinedOnItem:m,settings:v}=h,y=P3(m,s),S=Array.isArray(y)?CP(y,c,u):y,x=(g=v?.dataKey)!==null&&g!==void 0?g:r,b=v?.nameKey,O;if(r&&Array.isArray(S)&&!Array.isArray(S[0])&&a==="axis"?O=g_(S,r,i):O=o(S,t,l,b),Array.isArray(O))O.forEach(C=>{var T=J1(J1({},v),{},{name:C.name,unit:C.unit,color:void 0,fill:void 0});p.push(Ix({tooltipEntrySettings:T,dataKey:C.dataKey,payload:C.payload,value:at(C.payload,C.dataKey),name:C.name}))});else{var E;p.push(Ix({tooltipEntrySettings:v,dataKey:x,payload:O,value:at(O,x),name:(E=at(O,b))!==null&&E!==void 0?E:v?.name}))}return p},d)}},Uv=V([Yt,Ce,tC,yv,Ft],vC),C3=V([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),T3=V([Ft,La],Pv),Ul=V([C3,Yt,T3],Cv),A3=V([Ul],e=>e.filter(tf)),k3=V([Ul],Tv),Wa=V([k3,Ui],Av),M3=V([A3,Ui,Yt],J2),Hv=V([Wa,Yt,Ul],Mv),j3=V([Yt],jv),N3=V([Ul],e=>e.filter(tf)),R3=V([M3,N3,Ll],aC),D3=V([R3,Ui,Ft],sC),I3=V([Ul],rC),$3=V([Wa,Yt,I3,of,Ft],lC),L3=V([uC,Ft,La],Fa),F3=V([L3,Ft],pC),B3=V([dC,Ft,La],Fa),z3=V([B3,Ft],hC),V3=V([fC,Ft,La],Fa),W3=V([V3,Ft],mC),U3=V([F3,W3,z3],Fu),H3=V([Yt,j3,D3,$3,U3,Ce,Ft],Nv),FC=V([Yt,Ce,Wa,Hv,Ll,Ft,H3],Rv),q3=V([FC,Yt,Uv],$v),K3=V([Yt,FC,q3,Ft],Fv),BC=e=>{var t=Ft(e),n=La(e),r=!1;return Vl(e,t,n,r)},zC=V([Yt,BC],Qd),VC=V([Yt,Uv,K3,zC],Iv),Y3=V([Ce,Hv,Yt,Ft],EC),G3=V([Ce,Hv,Yt,Ft],_C),X3=(e,t,n,r,i,o,a,s)=>{if(t){var{type:l}=t,c=Bi(e,s);if(r){var u=n==="scaleBand"&&r.bandwidth?r.bandwidth()/2:2,d=l==="category"&&r.bandwidth?r.bandwidth()/u:0;return d=s==="angleAxis"&&i!=null&&i?.length>=2?Ut(i[0]-i[1])*2*d:d,c&&a?a.map((p,h)=>({coordinate:r(p)+d,value:p,index:h,offset:d})):r.domain().map((p,h)=>({coordinate:r(p)+d,value:o?o[p]:p,index:h,offset:d}))}}},gi=V([Ce,Yt,Uv,VC,BC,Y3,G3,Ft],X3),qv=V([CC,TC,c3],(e,t,n)=>AC(n.shared,e,t)),WC=e=>e.tooltip.settings.trigger,Kv=e=>e.tooltip.settings.defaultIndex,lf=V([Va,qv,WC,Kv],DC),Ri=V([lf,Wa],Wv),UC=V([gi,Ri],kC),HC=V([lf],e=>{if(e)return e.dataKey}),qC=V([Va,qv,WC,Kv],$C),Z3=V([di,fi,Ce,$t,gi,Kv,qC,Wl],IC),J3=V([lf,Z3],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),Q3=V([lf],e=>e.active),e8=V([qC,Ri,Ui,Z2,UC,Wl,qv],LC),t8=V([e8],e=>{if(e!=null){var t=e.map(n=>n.payload).filter(n=>n!=null);return Array.from(new Set(t))}});function Q1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ew(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Q1(Object(n),!0).forEach(function(r){n8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function n8(e,t,n){return(t=r8(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r8(e){var t=i8(e,"string");return typeof t=="symbol"?t:t+""}function i8(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var o8=()=>he(Yt),a8=()=>{var e=o8(),t=he(gi),n=he(VC);return Xs(ew(ew({},e),{},{scale:n}),t)},s8=()=>he(yv),Yv=(e,t)=>t,KC=(e,t,n)=>n,Gv=(e,t,n,r)=>r,l8=V(gi,e=>Dd(e,t=>t.coordinate)),Xv=V([Va,Yv,KC,Gv],DC),YC=V([Xv,Wa],Wv),c8=(e,t,n)=>{if(t!=null){var r=Va(e);return t==="axis"?n==="hover"?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n==="hover"?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},GC=V([Va,Yv,KC,Gv],$C),Bu=V([di,fi,Ce,$t,gi,Gv,GC,Wl],IC),u8=V([Xv,Bu],(e,t)=>{var n;return(n=e.coordinate)!==null&&n!==void 0?n:t}),XC=V(gi,YC,kC),d8=V([GC,YC,Ui,Z2,XC,Wl,Yv],LC),f8=V([Xv],e=>({isActive:e.active,activeIndex:e.index})),p8=(e,t,n,r,i,o,a,s)=>{if(!(!e||!t||!r||!i||!o)){var l=K5(e.chartX,e.chartY,t,n,s);if(l){var c=G5(l,t),u=R5(c,a,o,r,i),d=Y5(t,o,u,l);return{activeIndex:String(u),activeCoordinate:d}}}};function km(){return km=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},km.apply(null,arguments)}function tw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Sc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tw(Object(n),!0).forEach(function(r){h8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function h8(e,t,n){return(t=m8(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m8(e){var t=g8(e,"string");return typeof t=="symbol"?t:t+""}function g8(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function v8(e){var{coordinate:t,payload:n,index:r,offset:i,tooltipAxisBandSize:o,layout:a,cursor:s,tooltipEventType:l,chartName:c}=e,u=t,d=n,p=r;if(!s||!u||c!=="ScatterChart"&&l!=="axis")return null;var h,g;if(c==="ScatterChart")h=u,g=IL;else if(c==="BarChart")h=$L(a,u,i,o),g=UP;else if(a==="radial"){var{cx:m,cy:v,radius:y,startAngle:S,endAngle:x}=HP(u);h={cx:m,cy:v,startAngle:S,endAngle:x,innerRadius:y,outerRadius:y},g=KP}else h={points:gF(a,u,i)},g=Hg;var b=typeof s=="object"&&"className"in s?s.className:void 0,O=Sc(Sc(Sc(Sc({stroke:"#ccc",pointerEvents:"none"},i),h),vt(s,!1)),{},{payload:d,payloadIndex:p,className:oe("recharts-tooltip-cursor",b)});return I.isValidElement(s)?I.cloneElement(s,O):I.createElement(g,O)}function y8(e){var t=a8(),n=NP(),r=Ud(),i=s8();return _.createElement(v8,km({},e,{coordinate:e.coordinate,index:e.index,payload:e.payload,offset:n,layout:r,tooltipAxisBandSize:t,chartName:i}))}var ZC=I.createContext(null),b8=()=>I.useContext(ZC),rh={exports:{}},nw;function x8(){return nw||(nw=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function o(l,c,u,d,p){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new i(u,d||l,p),g=n?n+c:c;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],h]:l._events[g].push(h):(l._events[g]=h,l._eventsCount++),l}function a(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],u,d;if(this._eventsCount===0)return c;for(d in u=this._events)t.call(u,d)&&c.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},s.prototype.listeners=function(c){var u=n?n+c:c,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,h=d.length,g=new Array(h);p<h;p++)g[p]=d[p].fn;return g},s.prototype.listenerCount=function(c){var u=n?n+c:c,d=this._events[u];return d?d.fn?1:d.length:0},s.prototype.emit=function(c,u,d,p,h,g){var m=n?n+c:c;if(!this._events[m])return!1;var v=this._events[m],y=arguments.length,S,x;if(v.fn){switch(v.once&&this.removeListener(c,v.fn,void 0,!0),y){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,u),!0;case 3:return v.fn.call(v.context,u,d),!0;case 4:return v.fn.call(v.context,u,d,p),!0;case 5:return v.fn.call(v.context,u,d,p,h),!0;case 6:return v.fn.call(v.context,u,d,p,h,g),!0}for(x=1,S=new Array(y-1);x<y;x++)S[x-1]=arguments[x];v.fn.apply(v.context,S)}else{var b=v.length,O;for(x=0;x<b;x++)switch(v[x].once&&this.removeListener(c,v[x].fn,void 0,!0),y){case 1:v[x].fn.call(v[x].context);break;case 2:v[x].fn.call(v[x].context,u);break;case 3:v[x].fn.call(v[x].context,u,d);break;case 4:v[x].fn.call(v[x].context,u,d,p);break;default:if(!S)for(O=1,S=new Array(y-1);O<y;O++)S[O-1]=arguments[O];v[x].fn.apply(v[x].context,S)}}return!0},s.prototype.on=function(c,u,d){return o(this,c,u,d,!1)},s.prototype.once=function(c,u,d){return o(this,c,u,d,!0)},s.prototype.removeListener=function(c,u,d,p){var h=n?n+c:c;if(!this._events[h])return this;if(!u)return a(this,h),this;var g=this._events[h];if(g.fn)g.fn===u&&(!p||g.once)&&(!d||g.context===d)&&a(this,h);else{for(var m=0,v=[],y=g.length;m<y;m++)(g[m].fn!==u||p&&!g[m].once||d&&g[m].context!==d)&&v.push(g[m]);v.length?this._events[h]=v.length===1?v[0]:v:a(this,h)}return this},s.prototype.removeAllListeners=function(c){var u;return c?(u=n?n+c:c,this._events[u]&&a(this,u)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})(rh)),rh.exports}var w8=x8();const O8=ui(w8);var rl=new O8,Mm="recharts.syncEvent.tooltip",rw="recharts.syncEvent.brush";function Zv(e,t){if(t){var n=Number.parseInt(t,10);if(!Fn(n))return e?.[n]}}var S8={chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},JC=Un({name:"options",initialState:S8,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),E8=JC.reducer,{createEventEmitter:_8}=JC.actions;function P8(e){return e.tooltip.syncInteraction}var C8={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},QC=Un({name:"chartData",initialState:C8,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:n,endIndex:r}=t.payload;n!=null&&(e.dataStartIndex=n),r!=null&&(e.dataEndIndex=r)}}}),{setChartData:iw,setDataStartEndIndexes:T8,setComputedData:Kte}=QC.actions,A8=QC.reducer,k8=["x","y"];function ow(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ji(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ow(Object(n),!0).forEach(function(r){M8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ow(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function M8(e,t,n){return(t=j8(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j8(e){var t=N8(e,"string");return typeof t=="symbol"?t:t+""}function N8(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function R8(e,t){if(e==null)return{};var n,r,i=D8(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function D8(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var eT=()=>{};function I8(){var e=he(bv),t=he(xv),n=At(),r=he(H2),i=he(gi),o=Ud(),a=Ug(),s=he(l=>l.rootProps.className);I.useEffect(()=>{if(e==null)return eT;var l=(c,u,d)=>{if(t!==d&&e===c){if(r==="index"){var p;if(a&&u!==null&&u!==void 0&&(p=u.payload)!==null&&p!==void 0&&p.coordinate){var h=u.payload.coordinate,{x:g,y:m}=h,v=R8(h,k8),y=Ji(Ji(Ji({},v),typeof g=="number"&&{x:Math.max(a.x,Math.min(g,a.x+a.width))}),typeof m=="number"&&{y:Math.max(a.y,Math.min(m,a.y+a.height))}),S=Ji(Ji({},u),{},{payload:Ji(Ji({},u.payload),{},{coordinate:y})});n(S)}else n(u);return}if(i!=null){var x;if(typeof r=="function"){var b={activeTooltipIndex:u.payload.index==null?void 0:Number(u.payload.index),isTooltipActive:u.payload.active,activeIndex:u.payload.index==null?void 0:Number(u.payload.index),activeLabel:u.payload.label,activeDataKey:u.payload.dataKey,activeCoordinate:u.payload.coordinate},O=r(i,b);x=i[O]}else r==="value"&&(x=i.find(D=>String(D.value)===u.payload.label));var{coordinate:E}=u.payload;if(x==null||u.payload.active===!1||E==null||a==null){n(Tm({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0}));return}var{x:C,y:T}=E,k=Math.min(C,a.x+a.width),R=Math.min(T,a.y+a.height),M={x:o==="horizontal"?x.coordinate:k,y:o==="horizontal"?R:x.coordinate},P=Tm({active:u.payload.active,coordinate:M,dataKey:u.payload.dataKey,index:String(x.index),label:u.payload.label});n(P)}}};return rl.on(Mm,l),()=>{rl.off(Mm,l)}},[s,n,t,e,r,i,o,a])}function $8(){var e=he(bv),t=he(xv),n=At();I.useEffect(()=>{if(e==null)return eT;var r=(i,o,a)=>{t!==a&&e===i&&n(T8(o))};return rl.on(rw,r),()=>{rl.off(rw,r)}},[n,t,e])}function L8(){var e=At();I.useEffect(()=>{e(_8())},[e]),I8(),$8()}function F8(e,t,n,r,i,o){var a=he(p=>c8(p,e,t)),s=he(xv),l=he(bv),c=he(H2),u=he(P8),d=u?.active;I.useEffect(()=>{if(!d&&l!=null&&s!=null){var p=Tm({active:o,coordinate:n,dataKey:a,index:i,label:typeof r=="number"?String(r):r});rl.emit(Mm,l,p,s)}},[d,n,a,i,r,s,l,c,o])}function aw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aw(Object(n),!0).forEach(function(r){B8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function B8(e,t,n){return(t=z8(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z8(e){var t=V8(e,"string");return typeof t=="symbol"?t:t+""}function V8(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function W8(e){return e.dataKey}function U8(e,t){return _.isValidElement(e)?_.cloneElement(e,t):typeof e=="function"?_.createElement(e,t):_.createElement(hL,t)}var lw=[],H8={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,isAnimationActive:!zi.isSsr,itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function zo(e){var t=en(e,H8),{active:n,allowEscapeViewBox:r,animationDuration:i,animationEasing:o,content:a,filterNull:s,isAnimationActive:l,offset:c,payloadUniqBy:u,position:d,reverseDirection:p,useTranslate3d:h,wrapperStyle:g,cursor:m,shared:v,trigger:y,defaultIndex:S,portal:x,axisId:b}=t,O=At(),E=typeof S=="number"?String(S):S;I.useEffect(()=>{O(p3({shared:v,trigger:y,axisId:b,active:n,defaultIndex:E}))},[O,v,y,b,n,E]);var C=Ug(),T=FP(),k=l3(v),{activeIndex:R,isActive:M}=he(X=>f8(X,k,y,E)),P=he(X=>d8(X,k,y,E)),D=he(X=>XC(X,k,y,E)),j=he(X=>u8(X,k,y,E)),N=P,L=b8(),B=n??M,[K,z]=d$([N,B]),F=k==="axis"?D:void 0;F8(k,y,j,F,R,B);var G=x??L;if(G==null)return null;var Y=N??lw;B||(Y=lw),s&&Y.length&&(Y=NI(N.filter(X=>X.value!=null&&(X.hide!==!0||t.includeHidden)),u,W8));var ne=Y.length>0,Q=_.createElement(wL,{allowEscapeViewBox:r,animationDuration:i,animationEasing:o,isAnimationActive:l,active:B,coordinate:j,hasPayload:ne,offset:c,position:d,reverseDirection:p,useTranslate3d:h,viewBox:C,wrapperStyle:g,lastBoundingBox:K,innerRef:z,hasPortalFromProps:!!x},U8(a,sw(sw({},t),{},{payload:Y,label:F,active:B,coordinate:j,accessibilityLayer:T})));return _.createElement(_.Fragment,null,fo.createPortal(Q,G),B&&_.createElement(y8,{cursor:m,tooltipEventType:k,coordinate:j,payload:N,index:R}))}var ih={},oh={},ah={},cw;function q8(){return cw||(cw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r,{signal:i,edges:o}={}){let a,s=null;const l=o!=null&&o.includes("leading"),c=o==null||o.includes("trailing"),u=()=>{s!==null&&(n.apply(a,s),a=void 0,s=null)},d=()=>{c&&u(),m()};let p=null;const h=()=>{p!=null&&clearTimeout(p),p=setTimeout(()=>{p=null,d()},r)},g=()=>{p!==null&&(clearTimeout(p),p=null)},m=()=>{g(),a=void 0,s=null},v=()=>{u()},y=function(...S){if(i?.aborted)return;a=this,s=S;const x=p==null;h(),l&&x&&u()};return y.schedule=h,y.cancel=m,y.flush=v,i?.addEventListener("abort",m,{once:!0}),y}e.debounce=t})(ah)),ah}var uw;function K8(){return uw||(uw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=q8();function n(r,i=0,o={}){typeof o!="object"&&(o={});const{leading:a=!1,trailing:s=!0,maxWait:l}=o,c=Array(2);a&&(c[0]="leading"),s&&(c[1]="trailing");let u,d=null;const p=t.debounce(function(...m){u=r.apply(this,m),d=null},i,{edges:c}),h=function(...m){return l!=null&&(d===null&&(d=Date.now()),Date.now()-d>=l)?(u=r.apply(this,m),d=Date.now(),p.cancel(),p.schedule(),u):(p.apply(this,m),u)},g=()=>(p.flush(),u);return h.cancel=p.cancel,h.flush=g,h}e.debounce=n})(oh)),oh}var dw;function Y8(){return dw||(dw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=K8();function n(r,i=0,o={}){const{leading:a=!0,trailing:s=!0}=o;return t.debounce(r,i,{leading:a,maxWait:i,trailing:s})}e.throttle=n})(ih)),ih}var sh,fw;function G8(){return fw||(fw=1,sh=Y8().throttle),sh}var X8=G8();const Z8=ui(X8);var J8=process.env.NODE_ENV!=="production",js=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];if(J8&&typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;console.warn(n.replace(/%s/g,()=>i[a++]))}};function pw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pw(Object(n),!0).forEach(function(r){Q8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Q8(e,t,n){return(t=ez(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ez(e){var t=tz(e,"string");return typeof t=="symbol"?t:t+""}function tz(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vo=I.forwardRef((e,t)=>{var{aspect:n,initialDimension:r={width:-1,height:-1},width:i="100%",height:o="100%",minWidth:a=0,minHeight:s,maxHeight:l,children:c,debounce:u=0,id:d,className:p,onResize:h,style:g={}}=e,m=I.useRef(null),v=I.useRef();v.current=h,I.useImperativeHandle(t,()=>m.current);var[y,S]=I.useState({containerWidth:r.width,containerHeight:r.height}),x=I.useCallback((O,E)=>{S(C=>{var T=Math.round(O),k=Math.round(E);return C.containerWidth===T&&C.containerHeight===k?C:{containerWidth:T,containerHeight:k}})},[]);I.useEffect(()=>{var O=k=>{var R,{width:M,height:P}=k[0].contentRect;x(M,P),(R=v.current)===null||R===void 0||R.call(v,M,P)};u>0&&(O=Z8(O,u,{trailing:!0,leading:!1}));var E=new ResizeObserver(O),{width:C,height:T}=m.current.getBoundingClientRect();return x(C,T),E.observe(m.current),()=>{E.disconnect()}},[x,u]);var b=I.useMemo(()=>{var{containerWidth:O,containerHeight:E}=y;if(O<0||E<0)return null;js(ho(i)||ho(o),`The width(%s) and height(%s) are both fixed numbers,
|
|
194
|
+
maybe you don't need to use a ResponsiveContainer.`,i,o),js(!n||n>0,"The aspect(%s) must be greater than zero.",n);var C=ho(i)?O:i,T=ho(o)?E:o;return n&&n>0&&(C?T=C/n:T&&(C=T*n),l&&T>l&&(T=l)),js(C>0||T>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
195
195
|
please check the style of container, or the props width(%s) and height(%s),
|
|
196
196
|
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
197
|
-
height and width.`,C,T,i,o,a,s,n),_.Children.map(c,k=>I.cloneElement(k,{width:C,height:T,style:lh({width:C,height:T},k.props.style)}))},[n,c,o,l,s,a,y,i]);return _.createElement("div",{id:d?"".concat(d):void 0,className:oe("recharts-responsive-container",p),style:lh(lh({},g),{},{width:i,height:o,minWidth:a,minHeight:s,maxHeight:l}),ref:m},_.createElement("div",{style:{width:0,height:0,overflow:"visible"}},b))}),Ir=e=>null;Ir.displayName="Cell";function nz(e,t,n){return(t=rz(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rz(e){var t=iz(e,"string");return typeof t=="symbol"?t:t+""}function iz(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class oz{constructor(t){nz(this,"cache",new Map),this.maxSize=t}get(t){var n=this.cache.get(t);return n!==void 0&&(this.cache.delete(t),this.cache.set(t,n)),n}set(t,n){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var r=this.cache.keys().next().value;this.cache.delete(r)}this.cache.set(t,n)}clear(){this.cache.clear()}size(){return this.cache.size}}function hw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function az(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hw(Object(n),!0).forEach(function(r){sz(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sz(e,t,n){return(t=lz(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lz(e){var t=cz(e,"string");return typeof t=="symbol"?t:t+""}function cz(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uz={cacheSize:2e3,enableCache:!0},tT=az({},uz),mw=new oz(tT.cacheSize),dz={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},gw="recharts_measurement_span";function fz(e,t){var n=t.fontSize||"",r=t.fontFamily||"",i=t.fontWeight||"",o=t.fontStyle||"",a=t.letterSpacing||"",s=t.textTransform||"";return"".concat(e,"|").concat(n,"|").concat(r,"|").concat(i,"|").concat(o,"|").concat(a,"|").concat(s)}var vw=(e,t)=>{try{var n=document.getElementById(gw);n||(n=document.createElement("span"),n.setAttribute("id",gw),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),Object.assign(n.style,dz,t),n.textContent="".concat(e);var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},js=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||zi.isSsr)return{width:0,height:0};if(!tT.enableCache)return vw(t,n);var r=fz(t,n),i=mw.get(r);if(i)return i;var o=vw(t,n);return mw.set(r,o),o},yw=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,bw=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,pz=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,hz=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,nT={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},mz=Object.keys(nT),aa="NaN";function gz(e,t){return e*nT[t]}class bn{static parse(t){var n,[,r,i]=(n=hz.exec(t))!==null&&n!==void 0?n:[];return new bn(parseFloat(r),i??"")}constructor(t,n){this.num=t,this.unit=n,this.num=t,this.unit=n,Fn(t)&&(this.unit=""),n!==""&&!pz.test(n)&&(this.num=NaN,this.unit=""),mz.includes(n)&&(this.num=gz(t,n),this.unit="px")}add(t){return this.unit!==t.unit?new bn(NaN,""):new bn(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new bn(NaN,""):new bn(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new bn(NaN,""):new bn(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new bn(NaN,""):new bn(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return Fn(this.num)}}function rT(e){if(e.includes(aa))return aa;for(var t=e;t.includes("*")||t.includes("/");){var n,[,r,i,o]=(n=yw.exec(t))!==null&&n!==void 0?n:[],a=bn.parse(r??""),s=bn.parse(o??""),l=i==="*"?a.multiply(s):a.divide(s);if(l.isNaN())return aa;t=t.replace(yw,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,u,d,p]=(c=bw.exec(t))!==null&&c!==void 0?c:[],h=bn.parse(u??""),g=bn.parse(p??""),m=d==="+"?h.add(g):h.subtract(g);if(m.isNaN())return aa;t=t.replace(bw,m.toString())}return t}var xw=/\(([^()]*)\)/;function vz(e){for(var t=e,n;(n=xw.exec(t))!=null;){var[,r]=n;t=t.replace(xw,rT(r))}return t}function yz(e){var t=e.replace(/\s+/g,"");return t=vz(t),t=rT(t),t}function bz(e){try{return yz(e)}catch{return aa}}function ch(e){var t=bz(e.slice(5,-1));return t===aa?"":t}var xz=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],wz=["dx","dy","angle","className","breakAll"];function jm(){return jm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jm.apply(null,arguments)}function ww(e,t){if(e==null)return{};var n,r,i=Oz(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Oz(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var iT=/[ \f\n\r\t\v\u2028\u2029]+/,oT=e=>{var{children:t,breakAll:n,style:r}=e;try{var i=[];mt(t)||(n?i=t.toString().split(""):i=t.toString().split(iT));var o=i.map(s=>({word:s,width:js(s,r).width})),a=n?0:js(" ",r).width;return{wordsWithComputedWidth:o,spaceWidth:a}}catch{return null}},Sz=(e,t,n,r,i)=>{var{maxLines:o,children:a,style:s,breakAll:l}=e,c=ge(o),u=a,d=function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return M.reduce((P,D)=>{var{word:j,width:N}=D,L=P[P.length-1];if(L&&(r==null||i||L.width+N+n<Number(r)))L.words.push(j),L.width+=N+n;else{var B={words:[j],width:N};P.push(B)}return P},[])},p=d(t),h=R=>R.reduce((M,P)=>M.width>P.width?M:P);if(!c||i)return p;var g=p.length>o||h(p).width>Number(r);if(!g)return p;for(var m="…",v=R=>{var M=u.slice(0,R),P=oT({breakAll:l,style:s,children:M+m}).wordsWithComputedWidth,D=d(P),j=D.length>o||h(D).width>Number(r);return[j,D]},y=0,S=u.length-1,x=0,b;y<=S&&x<=u.length-1;){var O=Math.floor((y+S)/2),E=O-1,[C,T]=v(E),[k]=v(O);if(!C&&!k&&(y=O+1),C&&k&&(S=O-1),!C&&k){b=T;break}x++}return b||p},Ow=e=>{var t=mt(e)?[]:e.toString().split(iT);return[{words:t}]},Ez=e=>{var{width:t,scaleToFit:n,children:r,style:i,breakAll:o,maxLines:a}=e;if((t||n)&&!zi.isSsr){var s,l,c=oT({breakAll:o,children:r,style:i});if(c){var{wordsWithComputedWidth:u,spaceWidth:d}=c;s=u,l=d}else return Ow(r);return Sz({breakAll:o,children:r,maxLines:a,style:i},s,l,t,n)}return Ow(r)},Sw="#808080",cf=I.forwardRef((e,t)=>{var{x:n=0,y:r=0,lineHeight:i="1em",capHeight:o="0.71em",scaleToFit:a=!1,textAnchor:s="start",verticalAnchor:l="end",fill:c=Sw}=e,u=ww(e,xz),d=I.useMemo(()=>Ez({breakAll:u.breakAll,children:u.children,maxLines:u.maxLines,scaleToFit:a,style:u.style,width:u.width}),[u.breakAll,u.children,u.maxLines,a,u.style,u.width]),{dx:p,dy:h,angle:g,className:m,breakAll:v}=u,y=ww(u,wz);if(!Rr(n)||!Rr(r)||d.length===0)return null;var S=n+(ge(p)?p:0),x=r+(ge(h)?h:0),b;switch(l){case"start":b=ch("calc(".concat(o,")"));break;case"middle":b=ch("calc(".concat((d.length-1)/2," * -").concat(i," + (").concat(o," / 2))"));break;default:b=ch("calc(".concat(d.length-1," * -").concat(i,")"));break}var O=[];if(a){var E=d[0].width,{width:C}=u;O.push("scale(".concat(ge(C)?C/E:1,")"))}return g&&O.push("rotate(".concat(g,", ").concat(S,", ").concat(x,")")),O.length&&(y.transform=O.join(" ")),_.createElement("text",jm({},vt(y,!0),{ref:t,x:S,y:x,className:oe("recharts-text",m),textAnchor:s,fill:c.includes("url")?Sw:c}),d.map((T,k)=>{var R=T.words.join(v?"":" ");return _.createElement("tspan",{x:S,dy:k===0?b:i,key:"".concat(R,"-").concat(k)},R)}))});cf.displayName="Text";var _z=["labelRef"];function Pz(e,t){if(e==null)return{};var n,r,i=Cz(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Cz(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ew(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ew(Object(n),!0).forEach(function(r){Tz(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ew(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tz(e,t,n){return(t=Az(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Az(e){var t=kz(e,"string");return typeof t=="symbol"?t:t+""}function kz(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gr(){return Gr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gr.apply(null,arguments)}var aT=I.createContext(null),Mz=e=>{var{x:t,y:n,width:r,height:i,children:o}=e,a=I.useMemo(()=>({x:t,y:n,width:r,height:i}),[t,n,r,i]);return _.createElement(aT.Provider,{value:a},o)},sT=()=>{var e=I.useContext(aT),t=Ug();return e||t},jz=I.createContext(null),Nz=()=>{var e=I.useContext(jz),t=he(X2);return e||t},Rz=e=>{var{value:t,formatter:n}=e,r=mt(e.children)?t:e.children;return typeof n=="function"?n(r):r},Jv=e=>e!=null&&typeof e=="function",Dz=(e,t)=>{var n=Ut(t-e),r=Math.min(Math.abs(t-e),360);return n*r},Iz=(e,t,n,r,i)=>{var{offset:o,className:a}=e,{cx:s,cy:l,innerRadius:c,outerRadius:u,startAngle:d,endAngle:p,clockWise:h}=i,g=(c+u)/2,m=Dz(d,p),v=m>=0?1:-1,y,S;switch(t){case"insideStart":y=d+v*o,S=h;break;case"insideEnd":y=p-v*o,S=!h;break;case"end":y=p+v*o,S=h;break;default:throw new Error("Unsupported position ".concat(t))}S=m<=0?S:!S;var x=Nt(s,l,g,y),b=Nt(s,l,g,y+(S?1:-1)*359),O="M".concat(x.x,",").concat(x.y,`
|
|
197
|
+
height and width.`,C,T,i,o,a,s,n),_.Children.map(c,k=>I.cloneElement(k,{width:C,height:T,style:lh({width:C,height:T},k.props.style)}))},[n,c,o,l,s,a,y,i]);return _.createElement("div",{id:d?"".concat(d):void 0,className:oe("recharts-responsive-container",p),style:lh(lh({},g),{},{width:i,height:o,minWidth:a,minHeight:s,maxHeight:l}),ref:m},_.createElement("div",{style:{width:0,height:0,overflow:"visible"}},b))}),Ir=e=>null;Ir.displayName="Cell";function nz(e,t,n){return(t=rz(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rz(e){var t=iz(e,"string");return typeof t=="symbol"?t:t+""}function iz(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class oz{constructor(t){nz(this,"cache",new Map),this.maxSize=t}get(t){var n=this.cache.get(t);return n!==void 0&&(this.cache.delete(t),this.cache.set(t,n)),n}set(t,n){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var r=this.cache.keys().next().value;this.cache.delete(r)}this.cache.set(t,n)}clear(){this.cache.clear()}size(){return this.cache.size}}function hw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function az(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hw(Object(n),!0).forEach(function(r){sz(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sz(e,t,n){return(t=lz(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lz(e){var t=cz(e,"string");return typeof t=="symbol"?t:t+""}function cz(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uz={cacheSize:2e3,enableCache:!0},tT=az({},uz),mw=new oz(tT.cacheSize),dz={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},gw="recharts_measurement_span";function fz(e,t){var n=t.fontSize||"",r=t.fontFamily||"",i=t.fontWeight||"",o=t.fontStyle||"",a=t.letterSpacing||"",s=t.textTransform||"";return"".concat(e,"|").concat(n,"|").concat(r,"|").concat(i,"|").concat(o,"|").concat(a,"|").concat(s)}var vw=(e,t)=>{try{var n=document.getElementById(gw);n||(n=document.createElement("span"),n.setAttribute("id",gw),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),Object.assign(n.style,dz,t),n.textContent="".concat(e);var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},Ns=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||zi.isSsr)return{width:0,height:0};if(!tT.enableCache)return vw(t,n);var r=fz(t,n),i=mw.get(r);if(i)return i;var o=vw(t,n);return mw.set(r,o),o},yw=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,bw=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,pz=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,hz=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,nT={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},mz=Object.keys(nT),aa="NaN";function gz(e,t){return e*nT[t]}class bn{static parse(t){var n,[,r,i]=(n=hz.exec(t))!==null&&n!==void 0?n:[];return new bn(parseFloat(r),i??"")}constructor(t,n){this.num=t,this.unit=n,this.num=t,this.unit=n,Fn(t)&&(this.unit=""),n!==""&&!pz.test(n)&&(this.num=NaN,this.unit=""),mz.includes(n)&&(this.num=gz(t,n),this.unit="px")}add(t){return this.unit!==t.unit?new bn(NaN,""):new bn(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new bn(NaN,""):new bn(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new bn(NaN,""):new bn(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new bn(NaN,""):new bn(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return Fn(this.num)}}function rT(e){if(e.includes(aa))return aa;for(var t=e;t.includes("*")||t.includes("/");){var n,[,r,i,o]=(n=yw.exec(t))!==null&&n!==void 0?n:[],a=bn.parse(r??""),s=bn.parse(o??""),l=i==="*"?a.multiply(s):a.divide(s);if(l.isNaN())return aa;t=t.replace(yw,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,u,d,p]=(c=bw.exec(t))!==null&&c!==void 0?c:[],h=bn.parse(u??""),g=bn.parse(p??""),m=d==="+"?h.add(g):h.subtract(g);if(m.isNaN())return aa;t=t.replace(bw,m.toString())}return t}var xw=/\(([^()]*)\)/;function vz(e){for(var t=e,n;(n=xw.exec(t))!=null;){var[,r]=n;t=t.replace(xw,rT(r))}return t}function yz(e){var t=e.replace(/\s+/g,"");return t=vz(t),t=rT(t),t}function bz(e){try{return yz(e)}catch{return aa}}function ch(e){var t=bz(e.slice(5,-1));return t===aa?"":t}var xz=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],wz=["dx","dy","angle","className","breakAll"];function jm(){return jm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jm.apply(null,arguments)}function ww(e,t){if(e==null)return{};var n,r,i=Oz(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Oz(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var iT=/[ \f\n\r\t\v\u2028\u2029]+/,oT=e=>{var{children:t,breakAll:n,style:r}=e;try{var i=[];mt(t)||(n?i=t.toString().split(""):i=t.toString().split(iT));var o=i.map(s=>({word:s,width:Ns(s,r).width})),a=n?0:Ns(" ",r).width;return{wordsWithComputedWidth:o,spaceWidth:a}}catch{return null}},Sz=(e,t,n,r,i)=>{var{maxLines:o,children:a,style:s,breakAll:l}=e,c=ge(o),u=a,d=function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return M.reduce((P,D)=>{var{word:j,width:N}=D,L=P[P.length-1];if(L&&(r==null||i||L.width+N+n<Number(r)))L.words.push(j),L.width+=N+n;else{var B={words:[j],width:N};P.push(B)}return P},[])},p=d(t),h=R=>R.reduce((M,P)=>M.width>P.width?M:P);if(!c||i)return p;var g=p.length>o||h(p).width>Number(r);if(!g)return p;for(var m="…",v=R=>{var M=u.slice(0,R),P=oT({breakAll:l,style:s,children:M+m}).wordsWithComputedWidth,D=d(P),j=D.length>o||h(D).width>Number(r);return[j,D]},y=0,S=u.length-1,x=0,b;y<=S&&x<=u.length-1;){var O=Math.floor((y+S)/2),E=O-1,[C,T]=v(E),[k]=v(O);if(!C&&!k&&(y=O+1),C&&k&&(S=O-1),!C&&k){b=T;break}x++}return b||p},Ow=e=>{var t=mt(e)?[]:e.toString().split(iT);return[{words:t}]},Ez=e=>{var{width:t,scaleToFit:n,children:r,style:i,breakAll:o,maxLines:a}=e;if((t||n)&&!zi.isSsr){var s,l,c=oT({breakAll:o,children:r,style:i});if(c){var{wordsWithComputedWidth:u,spaceWidth:d}=c;s=u,l=d}else return Ow(r);return Sz({breakAll:o,children:r,maxLines:a,style:i},s,l,t,n)}return Ow(r)},Sw="#808080",cf=I.forwardRef((e,t)=>{var{x:n=0,y:r=0,lineHeight:i="1em",capHeight:o="0.71em",scaleToFit:a=!1,textAnchor:s="start",verticalAnchor:l="end",fill:c=Sw}=e,u=ww(e,xz),d=I.useMemo(()=>Ez({breakAll:u.breakAll,children:u.children,maxLines:u.maxLines,scaleToFit:a,style:u.style,width:u.width}),[u.breakAll,u.children,u.maxLines,a,u.style,u.width]),{dx:p,dy:h,angle:g,className:m,breakAll:v}=u,y=ww(u,wz);if(!Rr(n)||!Rr(r)||d.length===0)return null;var S=n+(ge(p)?p:0),x=r+(ge(h)?h:0),b;switch(l){case"start":b=ch("calc(".concat(o,")"));break;case"middle":b=ch("calc(".concat((d.length-1)/2," * -").concat(i," + (").concat(o," / 2))"));break;default:b=ch("calc(".concat(d.length-1," * -").concat(i,")"));break}var O=[];if(a){var E=d[0].width,{width:C}=u;O.push("scale(".concat(ge(C)?C/E:1,")"))}return g&&O.push("rotate(".concat(g,", ").concat(S,", ").concat(x,")")),O.length&&(y.transform=O.join(" ")),_.createElement("text",jm({},vt(y,!0),{ref:t,x:S,y:x,className:oe("recharts-text",m),textAnchor:s,fill:c.includes("url")?Sw:c}),d.map((T,k)=>{var R=T.words.join(v?"":" ");return _.createElement("tspan",{x:S,dy:k===0?b:i,key:"".concat(R,"-").concat(k)},R)}))});cf.displayName="Text";var _z=["labelRef"];function Pz(e,t){if(e==null)return{};var n,r,i=Cz(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Cz(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ew(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ew(Object(n),!0).forEach(function(r){Tz(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ew(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tz(e,t,n){return(t=Az(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Az(e){var t=kz(e,"string");return typeof t=="symbol"?t:t+""}function kz(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gr(){return Gr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gr.apply(null,arguments)}var aT=I.createContext(null),Mz=e=>{var{x:t,y:n,width:r,height:i,children:o}=e,a=I.useMemo(()=>({x:t,y:n,width:r,height:i}),[t,n,r,i]);return _.createElement(aT.Provider,{value:a},o)},sT=()=>{var e=I.useContext(aT),t=Ug();return e||t},jz=I.createContext(null),Nz=()=>{var e=I.useContext(jz),t=he(X2);return e||t},Rz=e=>{var{value:t,formatter:n}=e,r=mt(e.children)?t:e.children;return typeof n=="function"?n(r):r},Jv=e=>e!=null&&typeof e=="function",Dz=(e,t)=>{var n=Ut(t-e),r=Math.min(Math.abs(t-e),360);return n*r},Iz=(e,t,n,r,i)=>{var{offset:o,className:a}=e,{cx:s,cy:l,innerRadius:c,outerRadius:u,startAngle:d,endAngle:p,clockWise:h}=i,g=(c+u)/2,m=Dz(d,p),v=m>=0?1:-1,y,S;switch(t){case"insideStart":y=d+v*o,S=h;break;case"insideEnd":y=p-v*o,S=!h;break;case"end":y=p+v*o,S=h;break;default:throw new Error("Unsupported position ".concat(t))}S=m<=0?S:!S;var x=Nt(s,l,g,y),b=Nt(s,l,g,y+(S?1:-1)*359),O="M".concat(x.x,",").concat(x.y,`
|
|
198
198
|
A`).concat(g,",").concat(g,",0,1,").concat(S?0:1,`,
|
|
199
|
-
`).concat(b.x,",").concat(b.y),E=mt(e.id)?qs("recharts-radial-line-"):e.id;return _.createElement("text",Gr({},r,{dominantBaseline:"central",className:oe("recharts-radial-bar-label",a)}),_.createElement("defs",null,_.createElement("path",{id:E,d:O})),_.createElement("textPath",{xlinkHref:"#".concat(E)},n))},$z=(e,t,n)=>{var{cx:r,cy:i,innerRadius:o,outerRadius:a,startAngle:s,endAngle:l}=e,c=(s+l)/2;if(n==="outside"){var{x:u,y:d}=Nt(r,i,a+t,c);return{x:u,y:d,textAnchor:u>=r?"start":"end",verticalAnchor:"middle"}}if(n==="center")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(n==="centerTop")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"start"};if(n==="centerBottom")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"end"};var p=(o+a)/2,{x:h,y:g}=Nt(r,i,p,c);return{x:h,y:g,textAnchor:"middle",verticalAnchor:"middle"}},lT=e=>"cx"in e&&ge(e.cx),Lz=(e,t)=>{var{parentViewBox:n,offset:r,position:i}=e,o;n!=null&&!lT(n)&&(o=n);var{x:a,y:s,width:l,height:c}=t,u=c>=0?1:-1,d=u*r,p=u>0?"end":"start",h=u>0?"start":"end",g=l>=0?1:-1,m=g*r,v=g>0?"end":"start",y=g>0?"start":"end";if(i==="top"){var S={x:a+l/2,y:s-u*r,textAnchor:"middle",verticalAnchor:p};return Pt(Pt({},S),o?{height:Math.max(s-o.y,0),width:l}:{})}if(i==="bottom"){var x={x:a+l/2,y:s+c+d,textAnchor:"middle",verticalAnchor:h};return Pt(Pt({},x),o?{height:Math.max(o.y+o.height-(s+c),0),width:l}:{})}if(i==="left"){var b={x:a-m,y:s+c/2,textAnchor:v,verticalAnchor:"middle"};return Pt(Pt({},b),o?{width:Math.max(b.x-o.x,0),height:c}:{})}if(i==="right"){var O={x:a+l+m,y:s+c/2,textAnchor:y,verticalAnchor:"middle"};return Pt(Pt({},O),o?{width:Math.max(o.x+o.width-O.x,0),height:c}:{})}var E=o?{width:l,height:c}:{};return i==="insideLeft"?Pt({x:a+m,y:s+c/2,textAnchor:y,verticalAnchor:"middle"},E):i==="insideRight"?Pt({x:a+l-m,y:s+c/2,textAnchor:v,verticalAnchor:"middle"},E):i==="insideTop"?Pt({x:a+l/2,y:s+d,textAnchor:"middle",verticalAnchor:h},E):i==="insideBottom"?Pt({x:a+l/2,y:s+c-d,textAnchor:"middle",verticalAnchor:p},E):i==="insideTopLeft"?Pt({x:a+m,y:s+d,textAnchor:y,verticalAnchor:h},E):i==="insideTopRight"?Pt({x:a+l-m,y:s+d,textAnchor:v,verticalAnchor:h},E):i==="insideBottomLeft"?Pt({x:a+m,y:s+c-d,textAnchor:y,verticalAnchor:p},E):i==="insideBottomRight"?Pt({x:a+l-m,y:s+c-d,textAnchor:v,verticalAnchor:p},E):i&&typeof i=="object"&&(ge(i.x)||ho(i.x))&&(ge(i.y)||ho(i.y))?Pt({x:a+un(i.x,l),y:s+un(i.y,c),textAnchor:"end",verticalAnchor:"end"},E):Pt({x:a+l/2,y:s+c/2,textAnchor:"middle",verticalAnchor:"middle"},E)},Fz={offset:5};function wi(e){var t=en(e,Fz),{viewBox:n,position:r,value:i,children:o,content:a,className:s="",textBreakAll:l,labelRef:c}=t,u=Nz(),d=sT(),p=r==="center"?d:u??d,h=n||p;if(!h||mt(i)&&mt(o)&&!I.isValidElement(a)&&typeof a!="function")return null;var g=Pt(Pt({},t),{},{viewBox:h});if(I.isValidElement(a)){var{labelRef:m}=g,v=Pz(g,_z);return I.cloneElement(a,v)}var y;if(typeof a=="function"){if(y=I.createElement(a,g),I.isValidElement(y))return y}else y=Rz(t);var S=lT(h),x=vt(t,!0);if(S&&(r==="insideStart"||r==="insideEnd"||r==="end"))return Iz(t,r,y,x,h);var b=S?$z(h,t.offset,t.position):Lz(t,h);return _.createElement(cf,Gr({ref:c,className:oe("recharts-label",s)},x,b,{breakAll:l}),y)}wi.displayName="Label";var Bz=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?_.createElement(wi,Gr({key:"label-implicit"},r)):Rr(e)?_.createElement(wi,Gr({key:"label-implicit",value:e},r)):I.isValidElement(e)?e.type===wi?I.cloneElement(e,Pt({key:"label-implicit"},r)):_.createElement(wi,Gr({key:"label-implicit",content:e},r)):Jv(e)?_.createElement(wi,Gr({key:"label-implicit",content:e},r)):e&&typeof e=="object"?_.createElement(wi,Gr({},e,{key:"label-implicit"},r)):null};function zz(e){var{label:t}=e,n=sT();return Bz(t,n)||null}var uh={},dh={},_w;function Vz(){return _w||(_w=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n[n.length-1]}e.last=t})(dh)),dh}var fh={},Pw;function Wz(){return Pw||(Pw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Array.isArray(n)?n:Array.from(n)}e.toArray=t})(fh)),fh}var Cw;function Uz(){return Cw||(Cw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Vz(),n=Wz(),r=Dg();function i(o){if(r.isArrayLike(o))return t.last(n.toArray(o))}e.last=i})(uh)),uh}var ph,Tw;function Hz(){return Tw||(Tw=1,ph=Uz().last),ph}var qz=Hz();const Kz=ui(qz);var Yz=["valueAccessor"],Gz=["dataKey","clockWise","id","textBreakAll"];function zu(){return zu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zu.apply(null,arguments)}function Aw(e,t){if(e==null)return{};var n,r,i=Xz(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Xz(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Zz=e=>Array.isArray(e.value)?Kz(e.value):e.value,cT=I.createContext(void 0),uT=cT.Provider,dT=I.createContext(void 0),Jz=dT.Provider;function Qz(){return I.useContext(cT)}function eV(){return I.useContext(dT)}function Qc(e){var{valueAccessor:t=Zz}=e,n=Aw(e,Yz),{dataKey:r,clockWise:i,id:o,textBreakAll:a}=n,s=Aw(n,Gz),l=Qz(),c=eV(),u=l||c;return!u||!u.length?null:_.createElement(Qt,{className:"recharts-label-list"},u.map((d,p)=>{var h,g=mt(r)?t(d,p):at(d&&d.payload,r),m=mt(o)?{}:{id:"".concat(o,"-").concat(p)};return _.createElement(wi,zu({},vt(d,!0),s,m,{fill:(h=n.fill)!==null&&h!==void 0?h:d.fill,parentViewBox:d.parentViewBox,value:g,textBreakAll:a,viewBox:d.viewBox,key:"label-".concat(p),index:p}))}))}Qc.displayName="LabelList";function Qv(e){var{label:t}=e;return t?t===!0?_.createElement(Qc,{key:"labelList-implicit"}):_.isValidElement(t)||Jv(t)?_.createElement(Qc,{key:"labelList-implicit",content:t}):typeof t=="object"?_.createElement(Qc,zu({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function Nm(){return Nm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nm.apply(null,arguments)}var fT=e=>{var{cx:t,cy:n,r,className:i}=e,o=oe("recharts-dot",i);return t===+t&&n===+n&&r===+r?_.createElement("circle",Nm({},Lr(e),kg(e),{className:o,cx:t,cy:n,r})):null},pT=e=>e.graphicalItems.polarItems,tV=V([gt,Ll],Pv),ey=V([pT,kt,tV],Cv),nV=V([ey],Tv),ty=V([nV,mv],Av),rV=V([ty,kt,ey],Mv),iV=V([ty,kt,ey],(e,t,n)=>n.length>0?e.flatMap(r=>n.flatMap(i=>{var o,a=at(r,(o=t.dataKey)!==null&&o!==void 0?o:i.dataKey);return{value:a,errorDomain:[]}})).filter(Boolean):t?.dataKey!=null?e.map(r=>({value:at(r,t.dataKey),errorDomain:[]})):e.map(r=>({value:r,errorDomain:[]}))),kw=()=>{},oV=V([kt,gC,kw,iV,kw,Ce,gt],Nv),hT=V([kt,Ce,ty,rV,$l,gt,oV],Rv),aV=V([hT,kt,Ba],$v);V([kt,hT,aV,gt],Fv);var sV={radiusAxis:{},angleAxis:{}},mT=Un({name:"polarAxis",initialState:sV,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:Yte,removeRadiusAxis:Gte,addAngleAxis:Xte,removeAngleAxis:Zte}=mT.actions,lV=mT.reducer;function Mw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Mw(Object(n),!0).forEach(function(r){cV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cV(e,t,n){return(t=uV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uV(e){var t=dV(e,"string");return typeof t=="symbol"?t:t+""}function dV(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fV=(e,t)=>t,ny=V([pT,fV],(e,t)=>e.filter(n=>n.type==="pie").find(n=>n.id===t)),pV=[],ry=(e,t,n)=>n?.length===0?pV:n,gT=V([mv,ny,ry],(e,t,n)=>{var{chartData:r}=e;if(t!=null){var i;if(t?.data!=null&&t.data.length>0?i=t.data:i=r,(!i||!i.length)&&n!=null&&(i=n.map(o=>jw(jw({},t.presentationProps),o.props))),i!=null)return i}}),hV=V([gT,ny,ry],(e,t,n)=>{if(!(e==null||t==null))return e.map((r,i)=>{var o,a=at(r,t.nameKey,t.name),s;return n!=null&&(o=n[i])!==null&&o!==void 0&&(o=o.props)!==null&&o!==void 0&&o.fill?s=n[i].props.fill:typeof r=="object"&&r!=null&&"fill"in r?s=r.fill:s=t.fill,{value:Ra(a,t.dataKey),color:s,payload:r,type:t.legendType}})}),mV=V([gT,ny,ry,$t],(e,t,n,r)=>{if(!(t==null||e==null))return fW({offset:r,pieSettings:t,displayedData:e,cells:n})}),hh={},Nw;function gV(){return Nw||(Nw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(typeof n!="object"||n==null)return!1;if(Object.getPrototypeOf(n)===null)return!0;if(Object.prototype.toString.call(n)!=="[object Object]"){const i=n[Symbol.toStringTag];return i==null||!Object.getOwnPropertyDescriptor(n,Symbol.toStringTag)?.writable?!1:n.toString()===`[object ${i}]`}let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r}e.isPlainObject=t})(hh)),hh}var mh,Rw;function vV(){return Rw||(Rw=1,mh=gV().isPlainObject),mh}var yV=vV();const bV=ui(yV);function Dw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Iw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dw(Object(n),!0).forEach(function(r){xV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xV(e,t,n){return(t=wV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wV(e){var t=OV(e,"string");return typeof t=="symbol"?t:t+""}function OV(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vu(){return Vu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vu.apply(null,arguments)}var $w=(e,t,n,r,i)=>{var o=n-r,a;return a="M ".concat(e,",").concat(t),a+="L ".concat(e+n,",").concat(t),a+="L ".concat(e+n-o/2,",").concat(t+i),a+="L ".concat(e+n-o/2-r,",").concat(t+i),a+="L ".concat(e,",").concat(t," Z"),a},SV={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},EV=e=>{var t=en(e,SV),{x:n,y:r,upperWidth:i,lowerWidth:o,height:a,className:s}=t,{animationEasing:l,animationDuration:c,animationBegin:u,isUpdateAnimationActive:d}=t,p=I.useRef(),[h,g]=I.useState(-1),m=I.useRef(i),v=I.useRef(o),y=I.useRef(a),S=I.useRef(n),x=I.useRef(r),b=jl(e,"trapezoid-");if(I.useEffect(()=>{if(p.current&&p.current.getTotalLength)try{var j=p.current.getTotalLength();j&&g(j)}catch{}},[]),n!==+n||r!==+r||i!==+i||o!==+o||a!==+a||i===0&&o===0||a===0)return null;var O=oe("recharts-trapezoid",s);if(!d)return _.createElement("g",null,_.createElement("path",Vu({},vt(t,!0),{className:O,d:$w(n,r,i,o,a)})));var E=m.current,C=v.current,T=y.current,k=S.current,R=x.current,M="0px ".concat(h===-1?1:h,"px"),P="".concat(h,"px 0px"),D=BP(["strokeDasharray"],c,l);return _.createElement(Ml,{animationId:b,key:b,canBegin:h>0,duration:c,easing:l,isActive:d,begin:u},j=>{var N=wt(E,i,j),L=wt(C,o,j),B=wt(T,a,j),K=wt(k,n,j),z=wt(R,r,j);p.current&&(m.current=N,v.current=L,y.current=B,S.current=K,x.current=z);var F=j>0?{transition:D,strokeDasharray:P}:{strokeDasharray:M};return _.createElement("path",Vu({},vt(t,!0),{className:O,d:$w(K,z,N,L,B),ref:p,style:Iw(Iw({},F),t.style)}))})},_V=["option","shapeType","propTransformer","activeClassName","isActive"];function PV(e,t){if(e==null)return{};var n,r,i=CV(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function CV(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Lw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Wu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Lw(Object(n),!0).forEach(function(r){TV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function TV(e,t,n){return(t=AV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AV(e){var t=kV(e,"string");return typeof t=="symbol"?t:t+""}function kV(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function MV(e,t){return Wu(Wu({},t),e)}function jV(e,t){return e==="symbols"}function Fw(e){var{shapeType:t,elementProps:n}=e;switch(t){case"rectangle":return _.createElement(UP,n);case"trapezoid":return _.createElement(EV,n);case"sector":return _.createElement(KP,n);case"symbols":if(jV(t))return _.createElement(L_,n);break;default:return null}}function NV(e){return I.isValidElement(e)?e.props:e}function vT(e){var{option:t,shapeType:n,propTransformer:r=MV,activeClassName:i="recharts-active-shape",isActive:o}=e,a=PV(e,_V),s;if(I.isValidElement(t))s=I.cloneElement(t,Wu(Wu({},a),NV(t)));else if(typeof t=="function")s=t(a);else if(bV(t)&&typeof t!="boolean"){var l=r(t,a);s=_.createElement(Fw,{shapeType:n,elementProps:l})}else{var c=a;s=_.createElement(Fw,{shapeType:n,elementProps:c})}return o?_.createElement(Qt,{className:i},s):s}var iy=(e,t)=>{var n=At();return(r,i)=>o=>{e?.(r,i,o),n(jC({activeIndex:String(i),activeDataKey:t,activeCoordinate:r.tooltipPosition}))}},oy=e=>{var t=At();return(n,r)=>i=>{e?.(n,r,i),t(h3())}},ay=(e,t)=>{var n=At();return(r,i)=>o=>{e?.(r,i,o),n(m3({activeIndex:String(i),activeDataKey:t,activeCoordinate:r.tooltipPosition}))}};function sy(e){var{fn:t,args:n}=e,r=At(),i=Cn();return I.useEffect(()=>{if(!i){var o=t(n);return r(d3(o)),()=>{r(f3(o))}}},[t,n,r,i]),null}var yT=()=>{};function bT(e){var{legendPayload:t}=e,n=At(),r=Cn();return I.useEffect(()=>r?yT:(n($P(t)),()=>{n(LP(t))}),[n,r,t]),null}function RV(e){var{legendPayload:t}=e,n=At(),r=he(Ce);return I.useEffect(()=>r!=="centric"&&r!=="radial"?yT:(n($P(t)),()=>{n(LP(t))}),[n,r,t]),null}var gh,DV=()=>{var[e]=_.useState(()=>qs("uid-"));return e},IV=(gh=_.useId)!==null&&gh!==void 0?gh:DV;function $V(e,t){var n=IV();return t||(e?"".concat(e,"-").concat(n):n)}var LV=I.createContext(void 0),ly=e=>{var{id:t,type:n,children:r}=e,i=$V("recharts-".concat(n),t);return _.createElement(LV.Provider,{value:i},r(i))},FV={cartesianItems:[],polarItems:[]},xT=Un({name:"graphicalItems",initialState:FV,reducers:{addCartesianGraphicalItem(e,t){e.cartesianItems.push(t.payload)},replaceCartesianGraphicalItem(e,t){var{prev:n,next:r}=t.payload,i=ei(e).cartesianItems.indexOf(n);i>-1&&(e.cartesianItems[i]=r)},removeCartesianGraphicalItem(e,t){var n=ei(e).cartesianItems.indexOf(t.payload);n>-1&&e.cartesianItems.splice(n,1)},addPolarGraphicalItem(e,t){e.polarItems.push(t.payload)},removePolarGraphicalItem(e,t){var n=ei(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)}}}),{addCartesianGraphicalItem:BV,replaceCartesianGraphicalItem:zV,removeCartesianGraphicalItem:VV,addPolarGraphicalItem:WV,removePolarGraphicalItem:UV}=xT.actions,HV=xT.reducer;function wT(e){var t=At(),n=I.useRef(null);return I.useEffect(()=>{n.current===null?t(BV(e)):n.current!==e&&t(zV({prev:n.current,next:e})),n.current=e},[t,e]),I.useEffect(()=>()=>{n.current&&(t(VV(n.current)),n.current=null)},[t]),null}function qV(e){var t=At();return I.useEffect(()=>(t(WV(e)),()=>{t(UV(e))}),[t,e]),null}var KV=["onMouseEnter","onClick","onMouseLeave"],YV=["id"],GV=["id"];function cy(e,t){if(e==null)return{};var n,r,i=XV(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function XV(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Bw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bw(Object(n),!0).forEach(function(r){ZV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZV(e,t,n){return(t=JV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JV(e){var t=QV(e,"string");return typeof t=="symbol"?t:t+""}function QV(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Di(){return Di=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Di.apply(null,arguments)}function eW(e){var t=I.useMemo(()=>Mg(e.children,Ir),[e.children]),n=he(r=>hV(r,e.id,t));return n==null?null:_.createElement(RV,{legendPayload:n})}function tW(e){var{dataKey:t,nameKey:n,sectors:r,stroke:i,strokeWidth:o,fill:a,name:s,hide:l,tooltipType:c}=e;return{dataDefinedOnItem:r.map(u=>u.tooltipPayload),positions:r.map(u=>u.tooltipPosition),settings:{stroke:i,strokeWidth:o,fill:a,dataKey:t,nameKey:n,name:Ra(s,t),hide:l,type:c,color:a,unit:""}}}var nW=(e,t)=>e>t?"start":e<t?"end":"middle",rW=(e,t,n)=>un(typeof t=="function"?t(e):t,n,n*.8),iW=(e,t,n)=>{var{top:r,left:i,width:o,height:a}=t,s=PP(o,a),l=i+un(e.cx,o,o/2),c=r+un(e.cy,a,a/2),u=un(e.innerRadius,s,0),d=rW(n,e.outerRadius,s),p=e.maxRadius||Math.sqrt(o*o+a*a)/2;return{cx:l,cy:c,innerRadius:u,outerRadius:d,maxRadius:p}},oW=(e,t)=>{var n=Ut(t-e),r=Math.min(Math.abs(t-e),360);return n*r};function aW(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var sW=(e,t)=>{if(_.isValidElement(e))return _.cloneElement(e,t);if(typeof e=="function")return e(t);var n=oe("recharts-pie-label-line",typeof e!="boolean"?e.className:"");return _.createElement(Hg,Di({},t,{type:"linear",className:n}))},lW=(e,t,n)=>{if(_.isValidElement(e))return _.cloneElement(e,t);var r=n;if(typeof e=="function"&&(r=e(t),_.isValidElement(r)))return r;var i=oe("recharts-pie-label-text",aW(e));return _.createElement(cf,Di({},t,{alignmentBaseline:"middle",className:i}),r)};function cW(e){var{sectors:t,props:n,showLabels:r}=e,{label:i,labelLine:o,dataKey:a}=n;if(!r||!i||!t)return null;var s=Lr(n),l=vt(i,!1),c=vt(o,!1),u=typeof i=="object"&&"offsetRadius"in i&&typeof i.offsetRadius=="number"&&i.offsetRadius||20,d=t.map((p,h)=>{var g=(p.startAngle+p.endAngle)/2,m=Nt(p.cx,p.cy,p.outerRadius+u,g),v=pt(pt(pt(pt({},s),p),{},{stroke:"none"},l),{},{index:h,textAnchor:nW(m.x,p.cx)},m),y=pt(pt(pt(pt({},s),p),{},{fill:"none",stroke:p.fill},c),{},{index:h,points:[Nt(p.cx,p.cy,p.outerRadius,g),m],key:"line"});return _.createElement(Qt,{key:"label-".concat(p.startAngle,"-").concat(p.endAngle,"-").concat(p.midAngle,"-").concat(h)},o&&sW(o,y),lW(i,v,at(p,a)))});return _.createElement(Qt,{className:"recharts-pie-labels"},d)}function uW(e){var{sectors:t,props:n,showLabels:r}=e,{label:i}=n;return typeof i=="object"&&i!=null&&"position"in i?_.createElement(Qv,{label:i}):_.createElement(cW,{sectors:t,props:n,showLabels:r})}function dW(e){var{sectors:t,activeShape:n,inactiveShape:r,allOtherPieProps:i}=e,o=he(Ri),{onMouseEnter:a,onClick:s,onMouseLeave:l}=i,c=cy(i,KV),u=iy(a,i.dataKey),d=oy(l),p=ay(s,i.dataKey);return t==null||t.length===0?null:_.createElement(_.Fragment,null,t.map((h,g)=>{if(h?.startAngle===0&&h?.endAngle===0&&t.length!==1)return null;var m=n&&String(g)===o,v=o?r:null,y=m?n:v,S=pt(pt({},h),{},{stroke:h.stroke,tabIndex:-1,[MP]:g,[jP]:i.dataKey});return _.createElement(Qt,Di({tabIndex:-1,className:"recharts-pie-sector"},Md(c,h,g),{onMouseEnter:u(h,g),onMouseLeave:d(h,g),onClick:p(h,g),key:"sector-".concat(h?.startAngle,"-").concat(h?.endAngle,"-").concat(h.midAngle,"-").concat(g)}),_.createElement(vT,Di({option:y,isActive:m,shapeType:"sector"},S)))}))}function fW(e){var t,{pieSettings:n,displayedData:r,cells:i,offset:o}=e,{cornerRadius:a,startAngle:s,endAngle:l,dataKey:c,nameKey:u,tooltipType:d}=n,p=Math.abs(n.minAngle),h=oW(s,l),g=Math.abs(h),m=r.length<=1?0:(t=n.paddingAngle)!==null&&t!==void 0?t:0,v=r.filter(E=>at(E,c,0)!==0).length,y=(g>=360?v:v-1)*m,S=g-v*p-y,x=r.reduce((E,C)=>{var T=at(C,c,0);return E+(ge(T)?T:0)},0),b;if(x>0){var O;b=r.map((E,C)=>{var T=at(E,c,0),k=at(E,u,C),R=iW(n,o,E),M=(ge(T)?T:0)/x,P,D=pt(pt({},E),i&&i[C]&&i[C].props);C?P=O.endAngle+Ut(h)*m*(T!==0?1:0):P=s;var j=P+Ut(h)*((T!==0?p:0)+M*S),N=(P+j)/2,L=(R.innerRadius+R.outerRadius)/2,B=[{name:k,value:T,payload:D,dataKey:c,type:d}],K=Nt(R.cx,R.cy,L,N);return O=pt(pt(pt(pt({},n.presentationProps),{},{percent:M,cornerRadius:a,name:k,tooltipPayload:B,midAngle:N,middleRadius:L,tooltipPosition:K},D),R),{},{value:T,startAngle:P,endAngle:j,payload:D,paddingAngle:Ut(h)*m}),O})}return b}function pW(e){var{showLabels:t,sectors:n,children:r}=e,i=I.useMemo(()=>!t||!n?[]:n.map(o=>({value:o.value,payload:o.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:o.cx,cy:o.cy,innerRadius:o.innerRadius,outerRadius:o.outerRadius,startAngle:o.startAngle,endAngle:o.endAngle,clockWise:!1},fill:o.fill})),[n,t]);return _.createElement(Jz,{value:t?i:void 0},r)}function hW(e){var{props:t,previousSectorsRef:n}=e,{sectors:r,isAnimationActive:i,animationBegin:o,animationDuration:a,animationEasing:s,activeShape:l,inactiveShape:c,onAnimationStart:u,onAnimationEnd:d}=t,p=jl(t,"recharts-pie-"),h=n.current,[g,m]=I.useState(!1),v=I.useCallback(()=>{typeof d=="function"&&d(),m(!1)},[d]),y=I.useCallback(()=>{typeof u=="function"&&u(),m(!0)},[u]);return _.createElement(pW,{showLabels:!g,sectors:r},_.createElement(Ml,{animationId:p,begin:o,duration:a,isActive:i,easing:s,onAnimationStart:y,onAnimationEnd:v,key:p},S=>{var x=[],b=r&&r[0],O=b?.startAngle;return r?.forEach((E,C)=>{var T=h&&h[C],k=C>0?Co(E,"paddingAngle",0):0;if(T){var R=wt(T.endAngle-T.startAngle,E.endAngle-E.startAngle,S),M=pt(pt({},E),{},{startAngle:O+k,endAngle:O+R+k});x.push(M),O=M.endAngle}else{var{endAngle:P,startAngle:D}=E,j=wt(0,P-D,S),N=pt(pt({},E),{},{startAngle:O+k,endAngle:O+j+k});x.push(N),O=N.endAngle}}),n.current=x,_.createElement(Qt,null,_.createElement(dW,{sectors:x,activeShape:l,inactiveShape:c,allOtherPieProps:t}))}),_.createElement(uW,{showLabels:!g,sectors:r,props:t}),t.children)}var mW={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:!zi.isSsr,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff"};function gW(e){var{id:t}=e,n=cy(e,YV),{hide:r,className:i,rootTabIndex:o}=e,a=I.useMemo(()=>Mg(e.children,Ir),[e.children]),s=he(u=>mV(u,t,a)),l=I.useRef(null),c=oe("recharts-pie",i);return r||s==null?(l.current=null,_.createElement(Qt,{tabIndex:o,className:c})):_.createElement(_.Fragment,null,_.createElement(sy,{fn:tW,args:pt(pt({},e),{},{sectors:s})}),_.createElement(Qt,{tabIndex:o,className:c},_.createElement(hW,{props:pt(pt({},n),{},{sectors:s}),previousSectorsRef:l})))}function Ul(e){var t=en(e,mW),{id:n}=t,r=cy(t,GV),i=Lr(r);return _.createElement(ly,{id:n,type:"pie"},o=>_.createElement(_.Fragment,null,_.createElement(qV,{type:"pie",id:o,data:r.data,dataKey:r.dataKey,hide:r.hide,angleAxisId:0,radiusAxisId:0,name:r.name,nameKey:r.nameKey,tooltipType:r.tooltipType,legendType:r.legendType,fill:r.fill,cx:r.cx,cy:r.cy,startAngle:r.startAngle,endAngle:r.endAngle,paddingAngle:r.paddingAngle,minAngle:r.minAngle,innerRadius:r.innerRadius,outerRadius:r.outerRadius,cornerRadius:r.cornerRadius,presentationProps:i,maxRadius:t.maxRadius}),_.createElement(eW,Di({},r,{id:o})),_.createElement(gW,Di({},r,{id:o}))))}Ul.displayName="Pie";function zw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Vw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zw(Object(n),!0).forEach(function(r){vW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vW(e,t,n){return(t=yW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yW(e){var t=bW(e,"string");return typeof t=="symbol"?t:t+""}function bW(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xW={xAxis:{},yAxis:{},zAxis:{}},OT=Un({name:"cartesianAxis",initialState:xW,reducers:{addXAxis(e,t){e.xAxis[t.payload.id]=t.payload},removeXAxis(e,t){delete e.xAxis[t.payload.id]},addYAxis(e,t){e.yAxis[t.payload.id]=t.payload},removeYAxis(e,t){delete e.yAxis[t.payload.id]},addZAxis(e,t){e.zAxis[t.payload.id]=t.payload},removeZAxis(e,t){delete e.zAxis[t.payload.id]},updateYAxisWidth(e,t){var{id:n,width:r}=t.payload;e.yAxis[n]&&(e.yAxis[n]=Vw(Vw({},e.yAxis[n]),{},{width:r}))}}}),{addXAxis:wW,removeXAxis:OW,addYAxis:SW,removeYAxis:EW,addZAxis:Jte,removeZAxis:Qte,updateYAxisWidth:_W}=OT.actions,PW=OT.reducer,CW=V([$t],e=>{if(e)return{top:e.top,bottom:e.bottom,left:e.left,right:e.right}}),TW=V([CW,di,fi],(e,t,n)=>{if(!(!e||t==null||n==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),uy=()=>he(TW),AW=()=>he(t8);function Ww(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Uw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ww(Object(n),!0).forEach(function(r){kW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ww(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kW(e,t,n){return(t=MW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MW(e){var t=jW(e,"string");return typeof t=="symbol"?t:t+""}function jW(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var NW=e=>{var{point:t,childIndex:n,mainColor:r,activeDot:i,dataKey:o}=e;if(i===!1||t.x==null||t.y==null)return null;var a=Uw(Uw({index:n,dataKey:o,cx:t.x,cy:t.y,r:4,fill:r??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},vt(i,!1)),kg(i)),s;return I.isValidElement(i)?s=I.cloneElement(i,a):typeof i=="function"?s=i(a):s=_.createElement(fT,a),_.createElement(Qt,{className:"recharts-active-dot"},s)};function RW(e){var{points:t,mainColor:n,activeDot:r,itemDataKey:i}=e,o=he(Ri),a=AW();if(t==null||a==null)return null;var s=t.find(l=>a.includes(l.payload));return mt(s)?null:NW({point:s,childIndex:Number(o),mainColor:n,dataKey:i,activeDot:r})}var DW=process.env.NODE_ENV==="production",vh="Invariant failed";function Hw(e,t){if(DW)throw new Error(vh);var n=typeof t=="function"?t():t,r=n?"".concat(vh,": ").concat(n):vh;throw new Error(r)}var IW=["x","y"];function Rm(){return Rm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rm.apply(null,arguments)}function qw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function as(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qw(Object(n),!0).forEach(function(r){$W(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $W(e,t,n){return(t=LW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LW(e){var t=FW(e,"string");return typeof t=="symbol"?t:t+""}function FW(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function BW(e,t){if(e==null)return{};var n,r,i=zW(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function zW(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function VW(e,t){var{x:n,y:r}=e,i=BW(e,IW),o="".concat(n),a=parseInt(o,10),s="".concat(r),l=parseInt(s,10),c="".concat(t.height||i.height),u=parseInt(c,10),d="".concat(t.width||i.width),p=parseInt(d,10);return as(as(as(as(as({},t),i),a?{x:a}:{}),l?{y:l}:{}),{},{height:u,width:p,name:t.name,radius:t.radius})}function dy(e){return _.createElement(vT,Rm({shapeType:"rectangle",propTransformer:VW,activeClassName:"recharts-active-bar"},e))}var WW=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(r,i)=>{if(ge(t))return t;var o=ge(r)||mt(r);return o?t(r,i):(o||(process.env.NODE_ENV!=="production"?Hw(!1,"minPointSize callback function received a value with type of ".concat(typeof r,". Currently only numbers or null/undefined are supported.")):Hw()),n)}},UW={},ST=Un({name:"errorBars",initialState:UW,reducers:{addErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]||(e[n]=[]),e[n].push(r)},replaceErrorBar:(e,t)=>{var{itemId:n,prev:r,next:i}=t.payload;e[n]&&(e[n]=e[n].map(o=>o.dataKey===r.dataKey&&o.direction===r.direction?i:o))},removeErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]&&(e[n]=e[n].filter(i=>i.dataKey!==r.dataKey||i.direction!==r.direction))}}}),{addErrorBar:ene,replaceErrorBar:tne,removeErrorBar:nne}=ST.actions,HW=ST.reducer,qW=["children"];function KW(e,t){if(e==null)return{};var n,r,i=YW(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function YW(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var GW={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},XW=I.createContext(GW);function ET(e){var{children:t}=e,n=KW(e,qW);return _.createElement(XW.Provider,{value:n},t)}function fy(e,t){var n,r,i=he(c=>hi(c,e)),o=he(c=>mi(c,t)),a=(n=i?.allowDataOverflow)!==null&&n!==void 0?n:An.allowDataOverflow,s=(r=o?.allowDataOverflow)!==null&&r!==void 0?r:kn.allowDataOverflow,l=a||s;return{needClip:l,needClipX:a,needClipY:s}}function _T(e){var{xAxisId:t,yAxisId:n,clipPathId:r}=e,i=uy(),{needClipX:o,needClipY:a,needClip:s}=fy(t,n);if(!s)return null;var{x:l,y:c,width:u,height:d}=i;return _.createElement("clipPath",{id:"clipPath-".concat(r)},_.createElement("rect",{x:o?l:l-u/2,y:a?c:c-d/2,width:o?u:u*2,height:a?d:d*2}))}var ZW=["onMouseEnter","onMouseLeave","onClick"],JW=["value","background","tooltipPosition"],QW=["id"],e7=["onMouseEnter","onClick","onMouseLeave"];function Ii(){return Ii=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ii.apply(null,arguments)}function Kw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kw(Object(n),!0).forEach(function(r){t7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function t7(e,t,n){return(t=n7(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n7(e){var t=r7(e,"string");return typeof t=="symbol"?t:t+""}function r7(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Uu(e,t){if(e==null)return{};var n,r,i=i7(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function i7(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var o7=e=>{var{dataKey:t,name:n,fill:r,legendType:i,hide:o}=e;return[{inactive:o,dataKey:t,type:i,color:r,value:Ra(n,t),payload:e}]};function a7(e){var{dataKey:t,stroke:n,strokeWidth:r,fill:i,name:o,hide:a,unit:s}=e;return{dataDefinedOnItem:void 0,positions:void 0,settings:{stroke:n,strokeWidth:r,fill:i,dataKey:t,nameKey:void 0,name:Ra(o,t),hide:a,type:e.tooltipType,color:e.fill,unit:s}}}function s7(e){var t=he(Ri),{data:n,dataKey:r,background:i,allOtherBarProps:o}=e,{onMouseEnter:a,onMouseLeave:s,onClick:l}=o,c=Uu(o,ZW),u=iy(a,r),d=oy(s),p=ay(l,r);if(!i||n==null)return null;var h=vt(i,!1);return _.createElement(_.Fragment,null,n.map((g,m)=>{var{value:v,background:y,tooltipPosition:S}=g,x=Uu(g,JW);if(!y)return null;var b=u(g,m),O=d(g,m),E=p(g,m),C=pn(pn(pn(pn(pn({option:i,isActive:String(m)===t},x),{},{fill:"#eee"},y),h),Md(c,g,m)),{},{onMouseEnter:b,onMouseLeave:O,onClick:E,dataKey:r,index:m,className:"recharts-bar-background-rectangle"});return _.createElement(dy,Ii({key:"background-bar-".concat(C.index)},C))}))}function l7(e){var{showLabels:t,children:n,rects:r}=e,i=r?.map(o=>{var a={x:o.x,y:o.y,width:o.width,height:o.height};return pn(pn({},a),{},{value:o.value,payload:o.payload,parentViewBox:o.parentViewBox,viewBox:a,fill:o.fill})});return _.createElement(uT,{value:t?i:void 0},n)}function c7(e){var{shape:t,activeBar:n,baseProps:r,entry:i,index:o,dataKey:a}=e,s=he(Ri),l=he(HC),c=n&&String(o)===s&&(l==null||a===l),u=c?n:t;return _.createElement(dy,Ii({},r,i,{isActive:c,option:u,index:o,dataKey:a}))}function u7(e){var{shape:t,baseProps:n,entry:r,index:i,dataKey:o}=e;return _.createElement(dy,Ii({},n,r,{isActive:!1,option:t,index:i,dataKey:o}))}function d7(e){var{data:t,props:n}=e,r=Lr(n),{id:i}=r,o=Uu(r,QW),{shape:a,dataKey:s,activeBar:l}=n,{onMouseEnter:c,onClick:u,onMouseLeave:d}=n,p=Uu(n,e7),h=iy(c,s),g=oy(d),m=ay(u,s);return t?_.createElement(_.Fragment,null,t.map((v,y)=>_.createElement(Qt,Ii({className:"recharts-bar-rectangle"},Md(p,v,y),{onMouseEnter:h(v,y),onMouseLeave:g(v,y),onClick:m(v,y),key:"rectangle-".concat(v?.x,"-").concat(v?.y,"-").concat(v?.value,"-").concat(y)}),l?_.createElement(c7,{shape:a,activeBar:l,baseProps:o,entry:v,index:y,dataKey:s}):_.createElement(u7,{shape:a,baseProps:o,entry:v,index:y,dataKey:s})))):null}function f7(e){var{props:t,previousRectanglesRef:n}=e,{data:r,layout:i,isAnimationActive:o,animationBegin:a,animationDuration:s,animationEasing:l,onAnimationEnd:c,onAnimationStart:u}=t,d=n.current,p=jl(t,"recharts-bar-"),[h,g]=I.useState(!1),m=!h,v=I.useCallback(()=>{typeof c=="function"&&c(),g(!1)},[c]),y=I.useCallback(()=>{typeof u=="function"&&u(),g(!0)},[u]);return _.createElement(l7,{showLabels:m,rects:r},_.createElement(Ml,{animationId:p,begin:a,duration:s,isActive:o,easing:l,onAnimationEnd:v,onAnimationStart:y,key:p},S=>{var x=S===1?r:r?.map((b,O)=>{var E=d&&d[O];if(E)return pn(pn({},b),{},{x:wt(E.x,b.x,S),y:wt(E.y,b.y,S),width:wt(E.width,b.width,S),height:wt(E.height,b.height,S)});if(i==="horizontal"){var C=wt(0,b.height,S);return pn(pn({},b),{},{y:b.y+b.height-C,height:C})}var T=wt(0,b.width,S);return pn(pn({},b),{},{width:T})});return S>0&&(n.current=x??null),x==null?null:_.createElement(Qt,null,_.createElement(d7,{props:t,data:x}))}),_.createElement(Qv,{label:t.label}),t.children)}function p7(e){var t=I.useRef(null);return _.createElement(f7,{previousRectanglesRef:t,props:e})}var PT=0,h7=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:at(e,t)}};class m7 extends I.PureComponent{render(){var{hide:t,data:n,dataKey:r,className:i,xAxisId:o,yAxisId:a,needClip:s,background:l,id:c}=this.props;if(t||n==null)return null;var u=oe("recharts-bar",i),d=c;return _.createElement(Qt,{className:u,id:c},s&&_.createElement("defs",null,_.createElement(_T,{clipPathId:d,xAxisId:o,yAxisId:a})),_.createElement(Qt,{className:"recharts-bar-rectangles",clipPath:s?"url(#clipPath-".concat(d,")"):void 0},_.createElement(s7,{data:n,dataKey:r,background:l,allOtherBarProps:this.props}),_.createElement(p7,this.props)))}}var g7={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",hide:!1,isAnimationActive:!zi.isSsr,legendType:"rect",minPointSize:PT,xAxisId:0,yAxisId:0};function v7(e){var{xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:o,activeBar:a,animationBegin:s,animationDuration:l,animationEasing:c,isAnimationActive:u}=e,{needClip:d}=fy(t,n),p=Ud(),h=Cn(),g=Mg(e.children,Ir),m=he(S=>H7(S,t,n,h,e.id,g));if(p!=="vertical"&&p!=="horizontal")return null;var v,y=m?.[0];return y==null||y.height==null||y.width==null?v=0:v=p==="vertical"?y.height/2:y.width/2,_.createElement(ET,{xAxisId:t,yAxisId:n,data:m,dataPointFormatter:h7,errorBarOffset:v},_.createElement(m7,Ii({},e,{layout:p,needClip:d,data:m,xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:o,activeBar:a,animationBegin:s,animationDuration:l,animationEasing:c,isAnimationActive:u})))}function y7(e){var{layout:t,barSettings:{dataKey:n,minPointSize:r},pos:i,bandSize:o,xAxis:a,yAxis:s,xAxisTicks:l,yAxisTicks:c,stackedData:u,displayedData:d,offset:p,cells:h,parentViewBox:g}=e,m=t==="horizontal"?s:a,v=u?m.scale.domain():null,y=W5({numericAxis:m});return d.map((S,x)=>{var b,O,E,C,T,k;u?b=$5(u[x],v):(b=at(S,n),Array.isArray(b)||(b=[y,b]));var R=WW(r,PT)(b[1],x);if(t==="horizontal"){var M,[P,D]=[s.scale(b[0]),s.scale(b[1])];O=Nx({axis:a,ticks:l,bandSize:o,offset:i.offset,entry:S,index:x}),E=(M=D??P)!==null&&M!==void 0?M:void 0,C=i.size;var j=P-D;if(T=Fn(j)?0:j,k={x:O,y:p.top,width:C,height:p.height},Math.abs(R)>0&&Math.abs(T)<Math.abs(R)){var N=Ut(T||R)*(Math.abs(R)-Math.abs(T));E-=N,T+=N}}else{var[L,B]=[a.scale(b[0]),a.scale(b[1])];if(O=L,E=Nx({axis:s,ticks:c,bandSize:o,offset:i.offset,entry:S,index:x}),C=B-L,T=i.size,k={x:p.left,y:E,width:p.width,height:T},Math.abs(R)>0&&Math.abs(C)<Math.abs(R)){var K=Ut(C||R)*(Math.abs(R)-Math.abs(C));C+=K}}if(O==null||E==null||C==null||T==null)return null;var z=pn(pn({},S),{},{x:O,y:E,width:C,height:T,value:u?b:b[1],payload:S,background:k,tooltipPosition:{x:O+C/2,y:E+T/2},parentViewBox:g},h&&h[x]&&h[x].props);return z}).filter(Boolean)}function b7(e){var t=en(e,g7),n=Cn();return _.createElement(ly,{id:t.id,type:"bar"},r=>_.createElement(_.Fragment,null,_.createElement(bT,{legendPayload:o7(t)}),_.createElement(sy,{fn:a7,args:t}),_.createElement(wT,{type:"bar",id:r,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:V5(t.stackId),hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:n}),_.createElement(v7,Ii({},t,{id:r}))))}var CT=_.memo(b7);CT.displayName="Bar";function Yw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ec(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yw(Object(n),!0).forEach(function(r){x7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function x7(e,t,n){return(t=w7(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w7(e){var t=O7(e,"string");return typeof t=="symbol"?t:t+""}function O7(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var S7=(e,t)=>t,E7=(e,t,n)=>n,_7=(e,t,n,r)=>r,P7=(e,t,n,r,i)=>i,Hl=V([nf,P7],(e,t)=>e.filter(n=>n.type==="bar").find(n=>n.id===t)),C7=V([Hl],e=>e?.maxBarSize),T7=(e,t,n,r,i,o)=>o,Gw=(e,t,n)=>{var r=n??e;if(!mt(r))return un(r,t,0)},A7=V([Ce,nf,S7,E7,_7],(e,t,n,r,i)=>t.filter(o=>e==="horizontal"?o.xAxisId===n:o.yAxisId===r).filter(o=>o.isPanorama===i).filter(o=>o.hide===!1).filter(o=>o.type==="bar")),k7=(e,t,n,r)=>{var i=Ce(e);return i==="horizontal"?Cm(e,"yAxis",n,r):Cm(e,"xAxis",t,r)},M7=(e,t,n)=>{var r=Ce(e);return r==="horizontal"?Y1(e,"xAxis",t):Y1(e,"yAxis",n)},j7=(e,t,n)=>{var r={},i=e.filter(tf),o=e.filter(c=>c.stackId==null),a=i.reduce((c,u)=>(c[u.stackId]||(c[u.stackId]=[]),c[u.stackId].push(u),c),r),s=Object.entries(a).map(c=>{var[u,d]=c,p=d.map(g=>g.dataKey),h=Gw(t,n,d[0].barSize);return{stackId:u,dataKeys:p,barSize:h}}),l=o.map(c=>{var u=[c.dataKey].filter(p=>p!=null),d=Gw(t,n,c.barSize);return{stackId:void 0,dataKeys:u,barSize:d}});return[...s,...l]},N7=V([A7,u6,M7],j7),R7=(e,t,n,r,i)=>{var o,a,s=Hl(e,t,n,r,i);if(s!=null){var l=Ce(e),c=W2(e),{maxBarSize:u}=s,d=mt(u)?c:u,p,h;return l==="horizontal"?(p=Ni(e,"xAxis",t,r),h=ji(e,"xAxis",t,r)):(p=Ni(e,"yAxis",n,r),h=ji(e,"yAxis",n,r)),(o=(a=Gs(p,h,!0))!==null&&a!==void 0?a:d)!==null&&o!==void 0?o:0}},TT=(e,t,n,r)=>{var i=Ce(e),o,a;return i==="horizontal"?(o=Ni(e,"xAxis",t,r),a=ji(e,"xAxis",t,r)):(o=Ni(e,"yAxis",n,r),a=ji(e,"yAxis",n,r)),Gs(o,a)};function D7(e,t,n,r,i){var o=r.length;if(!(o<1)){var a=un(e,n,0,!0),s,l=[];if(zn(r[0].barSize)){var c=!1,u=n/o,d=r.reduce((y,S)=>y+(S.barSize||0),0);d+=(o-1)*a,d>=n&&(d-=(o-1)*a,a=0),d>=n&&u>0&&(c=!0,u*=.9,d=o*u);var p=(n-d)/2>>0,h={offset:p-a,size:0};s=r.reduce((y,S)=>{var x,b={stackId:S.stackId,dataKeys:S.dataKeys,position:{offset:h.offset+h.size+a,size:c?u:(x=S.barSize)!==null&&x!==void 0?x:0}},O=[...y,b];return h=O[O.length-1].position,O},l)}else{var g=un(t,n,0,!0);n-2*g-(o-1)*a<=0&&(a=0);var m=(n-2*g-(o-1)*a)/o;m>1&&(m>>=0);var v=zn(i)?Math.min(m,i):m;s=r.reduce((y,S,x)=>[...y,{stackId:S.stackId,dataKeys:S.dataKeys,position:{offset:g+(m+a)*x+(m-v)/2,size:v}}],l)}return s}}var I7=(e,t,n,r,i,o,a)=>{var s=mt(a)?t:a,l=D7(n,r,i!==o?i:o,e,s);return i!==o&&l!=null&&(l=l.map(c=>Ec(Ec({},c),{},{position:Ec(Ec({},c.position),{},{offset:c.position.offset-i/2})}))),l},$7=V([N7,W2,c6,U2,R7,TT,C7],I7),L7=(e,t,n,r)=>Ni(e,"xAxis",t,r),F7=(e,t,n,r)=>Ni(e,"yAxis",n,r),B7=(e,t,n,r)=>ji(e,"xAxis",t,r),z7=(e,t,n,r)=>ji(e,"yAxis",n,r),V7=V([$7,Hl],(e,t)=>{if(!(e==null||t==null)){var n=e.find(r=>r.stackId===t.stackId&&t.dataKey!=null&&r.dataKeys.includes(t.dataKey));if(n!=null)return n.position}}),W7=(e,t)=>{var n=Ev(t);if(!(!e||n==null||t==null)){var{stackId:r}=t;if(r!=null){var i=e[r];if(i){var{stackedData:o}=i;if(o)return o.find(a=>a.key===n)}}}},U7=V([k7,Hl],W7),H7=V([$t,Wg,L7,F7,B7,z7,V7,Ce,Zd,TT,U7,Hl,T7],(e,t,n,r,i,o,a,s,l,c,u,d,p)=>{var{chartData:h,dataStartIndex:g,dataEndIndex:m}=l;if(!(d==null||a==null||t==null||s!=="horizontal"&&s!=="vertical"||n==null||r==null||i==null||o==null||c==null)){var{data:v}=d,y;if(v!=null&&v.length>0?y=v:y=h?.slice(g,m+1),y!=null)return y7({layout:s,barSettings:d,pos:a,parentViewBox:t,bandSize:c,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:o,stackedData:u,displayedData:y,offset:e,cells:p})}}),AT=e=>{var{chartData:t}=e,n=At(),r=Cn();return I.useEffect(()=>r?()=>{}:(n(iw(t)),()=>{n(iw(void 0))}),[t,n,r]),null},Xw={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},kT=Un({name:"brush",initialState:Xw,reducers:{setBrushSettings(e,t){return t.payload==null?Xw:t.payload}}}),{setBrushSettings:rne}=kT.actions,q7=kT.reducer;function K7(e,t,n){return(t=Y7(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y7(e){var t=G7(e,"string");return typeof t=="symbol"?t:t+""}function G7(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class py{static create(t){return new py(t)}constructor(t){this.scale=t}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}apply(t){var{bandAware:n,position:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t!==void 0){if(r)switch(r){case"start":return this.scale(t);case"middle":{var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i}case"end":{var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}default:return this.scale(t)}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}isInRange(t){var n=this.range(),r=n[0],i=n[n.length-1];return r<=i?t>=r&&t<=i:t>=i&&t<=r}}K7(py,"EPS",1e-4);function X7(e){return(e%180+180)%180}var Z7=function(t){var{width:n,height:r}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=X7(i),a=o*Math.PI/180,s=Math.atan(r/n),l=a>s&&a<Math.PI-s?r/Math.sin(a):n/Math.cos(a);return Math.abs(l)},J7={dots:[],areas:[],lines:[]},MT=Un({name:"referenceElements",initialState:J7,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=ei(e).dots.findIndex(r=>r===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=ei(e).areas.findIndex(r=>r===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var n=ei(e).lines.findIndex(r=>r===t.payload);n!==-1&&e.lines.splice(n,1)}}}),{addDot:ine,removeDot:one,addArea:ane,removeArea:sne,addLine:lne,removeLine:cne}=MT.actions,Q7=MT.reducer,e9=I.createContext(void 0),t9=e=>{var{children:t}=e,[n]=I.useState("".concat(qs("recharts"),"-clip")),r=uy();if(r==null)return null;var{x:i,y:o,width:a,height:s}=r;return _.createElement(e9.Provider,{value:n},_.createElement("defs",null,_.createElement("clipPath",{id:n},_.createElement("rect",{x:i,y:o,height:s,width:a}))),t)};function _a(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function jT(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],i=0;i<e.length;i+=t)r.push(e[i]);return r}function n9(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Z7(r,n)}function r9(e,t,n){var r=n==="width",{x:i,y:o,width:a,height:s}=e;return t===1?{start:r?i:o,end:r?i+a:o+s}:{start:r?i+a:o+s,end:r?i:o}}function Hu(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-i)<=0}function i9(e,t){return jT(e,t+1)}function o9(e,t,n,r,i){for(var o=(r||[]).slice(),{start:a,end:s}=t,l=0,c=1,u=a,d=function(){var g=r?.[l];if(g===void 0)return{v:jT(r,c)};var m=l,v,y=()=>(v===void 0&&(v=n(g,m)),v),S=g.coordinate,x=l===0||Hu(e,S,y,u,s);x||(l=0,u=a,c+=1),x&&(u=S+e*(y()/2+i),l+=c)},p;c<=o.length;)if(p=d(),p)return p.v;return[]}function Zw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function an(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zw(Object(n),!0).forEach(function(r){a9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function a9(e,t,n){return(t=s9(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s9(e){var t=l9(e,"string");return typeof t=="symbol"?t:t+""}function l9(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function c9(e,t,n,r,i){for(var o=(r||[]).slice(),a=o.length,{start:s}=t,{end:l}=t,c=function(p){var h=o[p],g,m=()=>(g===void 0&&(g=n(h,p)),g);if(p===a-1){var v=e*(h.coordinate+e*m()/2-l);o[p]=h=an(an({},h),{},{tickCoord:v>0?h.coordinate-v*e:h.coordinate})}else o[p]=h=an(an({},h),{},{tickCoord:h.coordinate});var y=Hu(e,h.tickCoord,m,s,l);y&&(l=h.tickCoord-e*(m()/2+i),o[p]=an(an({},h),{},{isShow:!0}))},u=a-1;u>=0;u--)c(u);return o}function u9(e,t,n,r,i,o){var a=(r||[]).slice(),s=a.length,{start:l,end:c}=t;if(o){var u=r[s-1],d=n(u,s-1),p=e*(u.coordinate+e*d/2-c);a[s-1]=u=an(an({},u),{},{tickCoord:p>0?u.coordinate-p*e:u.coordinate});var h=Hu(e,u.tickCoord,()=>d,l,c);h&&(c=u.tickCoord-e*(d/2+i),a[s-1]=an(an({},u),{},{isShow:!0}))}for(var g=o?s-1:s,m=function(S){var x=a[S],b,O=()=>(b===void 0&&(b=n(x,S)),b);if(S===0){var E=e*(x.coordinate-e*O()/2-l);a[S]=x=an(an({},x),{},{tickCoord:E<0?x.coordinate-E*e:x.coordinate})}else a[S]=x=an(an({},x),{},{tickCoord:x.coordinate});var C=Hu(e,x.tickCoord,O,l,c);C&&(l=x.tickCoord+e*(O()/2+i),a[S]=an(an({},x),{},{isShow:!0}))},v=0;v<g;v++)m(v);return a}function hy(e,t,n){var{tick:r,ticks:i,viewBox:o,minTickGap:a,orientation:s,interval:l,tickFormatter:c,unit:u,angle:d}=e;if(!i||!i.length||!r)return[];if(ge(l)||zi.isSsr){var p;return(p=i9(i,ge(l)?l:0))!==null&&p!==void 0?p:[]}var h=[],g=s==="top"||s==="bottom"?"width":"height",m=u&&g==="width"?js(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},v=(x,b)=>{var O=typeof c=="function"?c(x.value,b):x.value;return g==="width"?n9(js(O,{fontSize:t,letterSpacing:n}),m,d):js(O,{fontSize:t,letterSpacing:n})[g]},y=i.length>=2?Ut(i[1].coordinate-i[0].coordinate):1,S=r9(o,y,g);return l==="equidistantPreserveStart"?o9(y,S,v,i,a):(l==="preserveStart"||l==="preserveStartEnd"?h=u9(y,S,v,i,a,l==="preserveStartEnd"):h=c9(y,S,v,i,a),h.filter(x=>x.isShow))}var d9=e=>{var{ticks:t,label:n,labelGapWithTick:r=5,tickSize:i=0,tickMargin:o=0}=e,a=0;if(t){t.forEach(u=>{if(u){var d=u.getBoundingClientRect();d.width>a&&(a=d.width)}});var s=n?n.getBoundingClientRect().width:0,l=i+o,c=a+l+s+(n?r:0);return Math.round(c)}return 0},f9=["axisLine","width","height","className","hide","ticks"],p9=["viewBox"],h9=["viewBox"];function Dm(e,t){if(e==null)return{};var n,r,i=m9(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function m9(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Mo(){return Mo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mo.apply(null,arguments)}function Jw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Dt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jw(Object(n),!0).forEach(function(r){g9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function g9(e,t,n){return(t=v9(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v9(e){var t=y9(e,"string");return typeof t=="symbol"?t:t+""}function y9(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var my={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"};function b9(e){var{x:t,y:n,width:r,height:i,orientation:o,mirror:a,axisLine:s,otherSvgProps:l}=e;if(!s)return null;var c=Dt(Dt(Dt({},l),vt(s,!1)),{},{fill:"none"});if(o==="top"||o==="bottom"){var u=+(o==="top"&&!a||o==="bottom"&&a);c=Dt(Dt({},c),{},{x1:t,y1:n+u*i,x2:t+r,y2:n+u*i})}else{var d=+(o==="left"&&!a||o==="right"&&a);c=Dt(Dt({},c),{},{x1:t+d*r,y1:n,x2:t+d*r,y2:n+i})}return _.createElement("line",Mo({},c,{className:oe("recharts-cartesian-axis-line",Co(s,"className"))}))}function x9(e,t,n,r,i,o,a,s,l){var c,u,d,p,h,g,m=s?-1:1,v=e.tickSize||a,y=ge(e.tickCoord)?e.tickCoord:e.coordinate;switch(o){case"top":c=u=e.coordinate,p=n+ +!s*i,d=p-m*v,g=d-m*l,h=y;break;case"left":d=p=e.coordinate,u=t+ +!s*r,c=u-m*v,h=c-m*l,g=y;break;case"right":d=p=e.coordinate,u=t+ +s*r,c=u+m*v,h=c+m*l,g=y;break;default:c=u=e.coordinate,p=n+ +s*i,d=p+m*v,g=d+m*l,h=y;break}return{line:{x1:c,y1:d,x2:u,y2:p},tick:{x:h,y:g}}}function w9(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function O9(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function S9(e){var{option:t,tickProps:n,value:r}=e,i,o=oe(n.className,"recharts-cartesian-axis-tick-value");if(_.isValidElement(t))i=_.cloneElement(t,Dt(Dt({},n),{},{className:o}));else if(typeof t=="function")i=t(Dt(Dt({},n),{},{className:o}));else{var a="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(a=oe(a,t?.className)),i=_.createElement(cf,Mo({},n,{className:a}),r)}return i}function E9(e){var{ticks:t=[],tick:n,tickLine:r,stroke:i,tickFormatter:o,unit:a,padding:s,tickTextProps:l,orientation:c,mirror:u,x:d,y:p,width:h,height:g,tickSize:m,tickMargin:v,fontSize:y,letterSpacing:S,getTicksConfig:x,events:b}=e,O=hy(Dt(Dt({},x),{},{ticks:t}),y,S),E=w9(c,u),C=O9(c,u),T=Lr(x),k=vt(n,!1),R=Dt(Dt({},T),{},{fill:"none"},vt(r,!1)),M=O.map((P,D)=>{var{line:j,tick:N}=x9(P,d,p,h,g,c,m,u,v),L=Dt(Dt(Dt(Dt({textAnchor:E,verticalAnchor:C},T),{},{stroke:"none",fill:i},k),N),{},{index:D,payload:P,visibleTicksCount:O.length,tickFormatter:o,padding:s},l);return _.createElement(Qt,Mo({className:"recharts-cartesian-axis-tick",key:"tick-".concat(P.value,"-").concat(P.coordinate,"-").concat(P.tickCoord)},Md(b,P,D)),r&&_.createElement("line",Mo({},R,j,{className:oe("recharts-cartesian-axis-tick-line",Co(r,"className"))})),n&&_.createElement(S9,{option:n,tickProps:L,value:"".concat(typeof o=="function"?o(P.value,D):P.value).concat(a||"")}))});return M.length>0?_.createElement("g",{className:"recharts-cartesian-axis-ticks"},M):null}var _9=I.forwardRef((e,t)=>{var{axisLine:n,width:r,height:i,className:o,hide:a,ticks:s}=e,l=Dm(e,f9),[c,u]=I.useState(""),[d,p]=I.useState(""),h=I.useRef([]);I.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var m;return d9({ticks:h.current,label:(m=e.labelRef)===null||m===void 0?void 0:m.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var g=I.useCallback(m=>{if(m){var v=m.getElementsByClassName("recharts-cartesian-axis-tick-value");h.current=Array.from(v);var y=v[0];if(y){var S=window.getComputedStyle(y),x=S.fontSize,b=S.letterSpacing;(x!==c||b!==d)&&(u(x),p(b))}}},[c,d]);return a||r!=null&&r<=0||i!=null&&i<=0?null:_.createElement(Qt,{className:oe("recharts-cartesian-axis",o),ref:g},_.createElement(b9,{x:e.x,y:e.y,width:r,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:Lr(e)}),_.createElement(E9,{ticks:s,tick:e.tick,tickLine:e.tickLine,stroke:e.stroke,tickFormatter:e.tickFormatter,unit:e.unit,padding:e.padding,tickTextProps:e.tickTextProps,orientation:e.orientation,mirror:e.mirror,x:e.x,y:e.y,width:e.width,height:e.height,tickSize:e.tickSize,tickMargin:e.tickMargin,fontSize:c,letterSpacing:d,getTicksConfig:e,events:l}),_.createElement(Mz,{x:e.x,y:e.y,width:e.width,height:e.height},_.createElement(zz,{label:e.label}),e.children))}),P9=_.memo(_9,(e,t)=>{var{viewBox:n}=e,r=Dm(e,p9),{viewBox:i}=t,o=Dm(t,h9);return _a(n,i)&&_a(r,o)}),gy=_.forwardRef((e,t)=>{var n=en(e,my);return _.createElement(P9,Mo({},n,{ref:t}))});gy.displayName="CartesianAxis";var C9=["x1","y1","x2","y2","key"],T9=["offset"],A9=["xAxisId","yAxisId"],k9=["xAxisId","yAxisId"];function Qw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qw(Object(n),!0).forEach(function(r){M9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function M9(e,t,n){return(t=j9(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j9(e){var t=N9(e,"string");return typeof t=="symbol"?t:t+""}function N9(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vo(){return vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vo.apply(null,arguments)}function qu(e,t){if(e==null)return{};var n,r,i=R9(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function R9(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var D9=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:n,x:r,y:i,width:o,height:a,ry:s}=e;return _.createElement("rect",{x:r,y:i,ry:s,width:o,height:a,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function NT(e,t){var n;if(_.isValidElement(e))n=_.cloneElement(e,t);else if(typeof e=="function")n=e(t);else{var{x1:r,y1:i,x2:o,y2:a,key:s}=t,l=qu(t,C9),c=Lr(l),{offset:u}=c,d=qu(c,T9);n=_.createElement("line",vo({},d,{x1:r,y1:i,x2:o,y2:a,fill:"none",key:s}))}return n}function I9(e){var{x:t,width:n,horizontal:r=!0,horizontalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:o,yAxisId:a}=e,s=qu(e,A9),l=i.map((c,u)=>{var d=sn(sn({},s),{},{x1:t,y1:c,x2:t+n,y2:c,key:"line-".concat(u),index:u});return NT(r,d)});return _.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function $9(e){var{y:t,height:n,vertical:r=!0,verticalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:o,yAxisId:a}=e,s=qu(e,k9),l=i.map((c,u)=>{var d=sn(sn({},s),{},{x1:c,y1:t,x2:c,y2:t+n,key:"line-".concat(u),index:u});return NT(r,d)});return _.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function L9(e){var{horizontalFill:t,fillOpacity:n,x:r,y:i,width:o,height:a,horizontalPoints:s,horizontal:l=!0}=e;if(!l||!t||!t.length)return null;var c=s.map(d=>Math.round(d+i-i)).sort((d,p)=>d-p);i!==c[0]&&c.unshift(0);var u=c.map((d,p)=>{var h=!c[p+1],g=h?i+a-d:c[p+1]-d;if(g<=0)return null;var m=p%t.length;return _.createElement("rect",{key:"react-".concat(p),y:d,x:r,height:g,width:o,stroke:"none",fill:t[m],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return _.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}function F9(e){var{vertical:t=!0,verticalFill:n,fillOpacity:r,x:i,y:o,width:a,height:s,verticalPoints:l}=e;if(!t||!n||!n.length)return null;var c=l.map(d=>Math.round(d+i-i)).sort((d,p)=>d-p);i!==c[0]&&c.unshift(0);var u=c.map((d,p)=>{var h=!c[p+1],g=h?i+a-d:c[p+1]-d;if(g<=0)return null;var m=p%n.length;return _.createElement("rect",{key:"react-".concat(p),x:d,y:o,width:g,height:s,stroke:"none",fill:n[m],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return _.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}var B9=(e,t)=>{var{xAxis:n,width:r,height:i,offset:o}=e;return TP(hy(sn(sn(sn({},my),n),{},{ticks:AP(n),viewBox:{x:0,y:0,width:r,height:i}})),o.left,o.left+o.width,t)},z9=(e,t)=>{var{yAxis:n,width:r,height:i,offset:o}=e;return TP(hy(sn(sn(sn({},my),n),{},{ticks:AP(n),viewBox:{x:0,y:0,width:r,height:i}})),o.top,o.top+o.height,t)},V9={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0};function uf(e){var t=RP(),n=DP(),r=NP(),i=sn(sn({},en(e,V9)),{},{x:ge(e.x)?e.x:r.left,y:ge(e.y)?e.y:r.top,width:ge(e.width)?e.width:r.width,height:ge(e.height)?e.height:r.height}),{xAxisId:o,yAxisId:a,x:s,y:l,width:c,height:u,syncWithTicks:d,horizontalValues:p,verticalValues:h}=i,g=Cn(),m=he(k=>G1(k,"xAxis",o,g)),v=he(k=>G1(k,"yAxis",a,g));if(!ge(c)||c<=0||!ge(u)||u<=0||!ge(s)||s!==+s||!ge(l)||l!==+l)return null;var y=i.verticalCoordinatesGenerator||B9,S=i.horizontalCoordinatesGenerator||z9,{horizontalPoints:x,verticalPoints:b}=i;if((!x||!x.length)&&typeof S=="function"){var O=p&&p.length,E=S({yAxis:v?sn(sn({},v),{},{ticks:O?p:v.ticks}):void 0,width:t,height:n,offset:r},O?!0:d);Ms(Array.isArray(E),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof E,"]")),Array.isArray(E)&&(x=E)}if((!b||!b.length)&&typeof y=="function"){var C=h&&h.length,T=y({xAxis:m?sn(sn({},m),{},{ticks:C?h:m.ticks}):void 0,width:t,height:n,offset:r},C?!0:d);Ms(Array.isArray(T),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof T,"]")),Array.isArray(T)&&(b=T)}return _.createElement("g",{className:"recharts-cartesian-grid"},_.createElement(D9,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),_.createElement(L9,vo({},i,{horizontalPoints:x})),_.createElement(F9,vo({},i,{verticalPoints:b})),_.createElement(I9,vo({},i,{offset:r,horizontalPoints:x,xAxis:m,yAxis:v})),_.createElement($9,vo({},i,{offset:r,verticalPoints:b,xAxis:m,yAxis:v})))}uf.displayName="CartesianGrid";var RT=(e,t,n,r)=>Ni(e,"xAxis",t,r),DT=(e,t,n,r)=>ji(e,"xAxis",t,r),IT=(e,t,n,r)=>Ni(e,"yAxis",n,r),$T=(e,t,n,r)=>ji(e,"yAxis",n,r),W9=V([Ce,RT,IT,DT,$T],(e,t,n,r,i)=>Bi(e,"xAxis")?Gs(t,r,!1):Gs(n,i,!1)),U9=(e,t,n,r,i)=>i;function H9(e){return e.type==="line"}var q9=V([nf,U9],(e,t)=>e.filter(H9).find(n=>n.id===t)),K9=V([Ce,RT,IT,DT,$T,q9,W9,Zd],(e,t,n,r,i,o,a,s)=>{var{chartData:l,dataStartIndex:c,dataEndIndex:u}=s;if(!(o==null||t==null||n==null||r==null||i==null||r.length===0||i.length===0||a==null)){var{dataKey:d,data:p}=o,h;if(p!=null&&p.length>0?h=p:h=l?.slice(c,u+1),h!=null)return mU({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataKey:d,bandSize:a,displayedData:h})}}),Y9=["id"],G9=["type","layout","connectNulls","needClip"],X9=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function eO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Nn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eO(Object(n),!0).forEach(function(r){Z9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Z9(e,t,n){return(t=J9(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J9(e){var t=Q9(e,"string");return typeof t=="symbol"?t:t+""}function Q9(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vy(e,t){if(e==null)return{};var n,r,i=eU(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function eU(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function jo(){return jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jo.apply(null,arguments)}var tU=e=>{var{dataKey:t,name:n,stroke:r,legendType:i,hide:o}=e;return[{inactive:o,dataKey:t,type:i,color:r,value:Ra(n,t),payload:e}]};function nU(e){var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:o,name:a,hide:s,unit:l}=e;return{dataDefinedOnItem:n,positions:void 0,settings:{stroke:r,strokeWidth:i,fill:o,dataKey:t,nameKey:void 0,name:Ra(a,t),hide:s,type:e.tooltipType,color:e.stroke,unit:l}}}var LT=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function rU(e,t){for(var n=e.length%2!==0?[...e,0]:e,r=[],i=0;i<t;++i)r=[...r,...n];return r}var iU=(e,t,n)=>{var r=n.reduce((d,p)=>d+p);if(!r)return LT(t,e);for(var i=Math.floor(e/r),o=e%r,a=t-e,s=[],l=0,c=0;l<n.length;c+=n[l],++l)if(c+n[l]>o){s=[...n.slice(0,l),o-c];break}var u=s.length%2===0?[0,a]:[a];return[...rU(n,i),...s,...u].map(d=>"".concat(d,"px")).join(", ")};function oU(e,t){var n;if(_.isValidElement(e))n=_.cloneElement(e,t);else if(typeof e=="function")n=e(t);else{var r=oe("recharts-line-dot",typeof e!="boolean"?e.className:"");n=_.createElement(fT,jo({},t,{className:r}))}return n}function aU(e,t){return e==null?!1:t?!0:e.length===1}function sU(e){var{clipPathId:t,points:n,props:r}=e,{dot:i,dataKey:o,needClip:a}=r;if(!aU(n,i))return null;var{id:s}=r,l=vy(r,Y9),c=b_(i),u=Lr(l),d=vt(i,!0),p=n.map((g,m)=>{var v=Nn(Nn(Nn({key:"dot-".concat(m),r:3},u),d),{},{index:m,cx:g.x,cy:g.y,dataKey:o,value:g.value,payload:g.payload,points:n});return oU(i,v)}),h={clipPath:a?"url(#clipPath-".concat(c?"":"dots-").concat(t,")"):void 0};return _.createElement(Qt,jo({className:"recharts-line-dots",key:"dots"},h),p)}function lU(e){var{showLabels:t,children:n,points:r}=e,i=I.useMemo(()=>r?.map(o=>{var a={x:o.x,y:o.y,width:0,height:0};return Nn(Nn({},a),{},{value:o.value,payload:o.payload,viewBox:a,parentViewBox:void 0,fill:void 0})}),[r]);return _.createElement(uT,{value:t?i:null},n)}function tO(e){var{clipPathId:t,pathRef:n,points:r,strokeDasharray:i,props:o}=e,{type:a,layout:s,connectNulls:l,needClip:c}=o,u=vy(o,G9),d=Nn(Nn({},vt(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:c?"url(#clipPath-".concat(t,")"):void 0,points:r,type:a,layout:s,connectNulls:l,strokeDasharray:i??o.strokeDasharray});return _.createElement(_.Fragment,null,r?.length>1&&_.createElement(Hg,jo({},d,{pathRef:n})),_.createElement(sU,{points:r,clipPathId:t,props:o}))}function cU(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function uU(e){var{clipPathId:t,props:n,pathRef:r,previousPointsRef:i,longestAnimatedLengthRef:o}=e,{points:a,strokeDasharray:s,isAnimationActive:l,animationBegin:c,animationDuration:u,animationEasing:d,animateNewValues:p,width:h,height:g,onAnimationEnd:m,onAnimationStart:v}=n,y=i.current,S=jl(n,"recharts-line-"),[x,b]=I.useState(!1),O=!x,E=I.useCallback(()=>{typeof m=="function"&&m(),b(!1)},[m]),C=I.useCallback(()=>{typeof v=="function"&&v(),b(!0)},[v]),T=cU(r.current),k=o.current;return _.createElement(lU,{points:a,showLabels:O},n.children,_.createElement(Ml,{animationId:S,begin:c,duration:u,isActive:l,easing:d,onAnimationEnd:E,onAnimationStart:C,key:S},R=>{var M=wt(k,T+k,R),P=Math.min(M,T),D;if(l)if(s){var j="".concat(s).split(/[,\s]+/gim).map(B=>parseFloat(B));D=iU(P,T,j)}else D=LT(T,P);else D=s==null?void 0:String(s);if(y){var N=y.length/a.length,L=R===1?a:a.map((B,K)=>{var z=Math.floor(K*N);if(y[z]){var F=y[z];return Nn(Nn({},B),{},{x:wt(F.x,B.x,R),y:wt(F.y,B.y,R)})}return p?Nn(Nn({},B),{},{x:wt(h*2,B.x,R),y:wt(g/2,B.y,R)}):Nn(Nn({},B),{},{x:B.x,y:B.y})});return i.current=L,_.createElement(tO,{props:n,points:L,clipPathId:t,pathRef:r,strokeDasharray:D})}return R>0&&T>0&&(i.current=a,o.current=P),_.createElement(tO,{props:n,points:a,clipPathId:t,pathRef:r,strokeDasharray:D})}),_.createElement(Qv,{label:n.label}))}function dU(e){var{clipPathId:t,props:n}=e,r=I.useRef(null),i=I.useRef(0),o=I.useRef(null);return _.createElement(uU,{props:n,clipPathId:t,previousPointsRef:r,longestAnimatedLengthRef:i,pathRef:o})}var fU=(e,t)=>({x:e.x,y:e.y,value:e.value,errorVal:at(e.payload,t)});class pU extends I.Component{render(){var t,{hide:n,dot:r,points:i,className:o,xAxisId:a,yAxisId:s,top:l,left:c,width:u,height:d,id:p,needClip:h}=this.props;if(n)return null;var g=oe("recharts-line",o),m=p,{r:v=3,strokeWidth:y=2}=(t=vt(r,!1))!==null&&t!==void 0?t:{r:3,strokeWidth:2},S=b_(r),x=v*2+y;return _.createElement(_.Fragment,null,_.createElement(Qt,{className:g},h&&_.createElement("defs",null,_.createElement(_T,{clipPathId:m,xAxisId:a,yAxisId:s}),!S&&_.createElement("clipPath",{id:"clipPath-dots-".concat(m)},_.createElement("rect",{x:c-x/2,y:l-x/2,width:u+x,height:d+x}))),_.createElement(ET,{xAxisId:a,yAxisId:s,data:i,dataPointFormatter:fU,errorBarOffset:0},_.createElement(dU,{props:this.props,clipPathId:m}))),_.createElement(RW,{activeDot:this.props.activeDot,points:i,mainColor:this.props.stroke,itemDataKey:this.props.dataKey}))}}var FT={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:!zi.isSsr,label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0};function hU(e){var t=en(e,FT),{activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:o,animationEasing:a,connectNulls:s,dot:l,hide:c,isAnimationActive:u,label:d,legendType:p,xAxisId:h,yAxisId:g,id:m}=t,v=vy(t,X9),{needClip:y}=fy(h,g),S=uy(),x=Ud(),b=Cn(),O=he(R=>K9(R,h,g,b,m));if(x!=="horizontal"&&x!=="vertical"||O==null||S==null)return null;var{height:E,width:C,x:T,y:k}=S;return _.createElement(pU,jo({},v,{id:m,connectNulls:s,dot:l,activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:o,animationEasing:a,isAnimationActive:u,hide:c,label:d,legendType:p,xAxisId:h,yAxisId:g,points:O,layout:x,height:E,width:C,left:T,top:k,needClip:y}))}function mU(e){var{layout:t,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:o,dataKey:a,bandSize:s,displayedData:l}=e;return l.map((c,u)=>{var d=at(c,a);if(t==="horizontal"){var p=jx({axis:n,ticks:i,bandSize:s,entry:c,index:u}),h=mt(d)?null:r.scale(d);return{x:p,y:h,value:d,payload:c}}var g=mt(d)?null:n.scale(d),m=jx({axis:r,ticks:o,bandSize:s,entry:c,index:u});return g==null||m==null?null:{x:g,y:m,value:d,payload:c}}).filter(Boolean)}function gU(e){var t=en(e,FT),n=Cn();return _.createElement(ly,{id:t.id,type:"line"},r=>_.createElement(_.Fragment,null,_.createElement(bT,{legendPayload:tU(t)}),_.createElement(sy,{fn:nU,args:t}),_.createElement(wT,{type:"line",id:r,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:n}),_.createElement(hU,jo({},t,{id:r}))))}var pa=_.memo(gU);pa.displayName="Line";var vU=["dangerouslySetInnerHTML","ticks"],yU=["id"],bU=["domain"],xU=["domain"];function Im(){return Im=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Im.apply(null,arguments)}function Ku(e,t){if(e==null)return{};var n,r,i=wU(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function wU(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function OU(e){var t=At();return I.useEffect(()=>(t(wW(e)),()=>{t(OW(e))}),[e,t]),null}var SU=e=>{var{xAxisId:t,className:n}=e,r=he(Wg),i=Cn(),o="xAxis",a=he(v=>za(v,o,t,i)),s=he(v=>PC(v,o,t,i)),l=he(v=>OC(v,t)),c=he(v=>t3(v,t)),u=he(v=>Q2(v,t));if(l==null||c==null||u==null)return null;var{dangerouslySetInnerHTML:d,ticks:p}=e,h=Ku(e,vU),{id:g}=u,m=Ku(u,yU);return _.createElement(gy,Im({},h,m,{scale:a,x:c.x,y:c.y,width:l.width,height:l.height,className:oe("recharts-".concat(o," ").concat(o),n),viewBox:r,ticks:s}))},EU={allowDataOverflow:An.allowDataOverflow,allowDecimals:An.allowDecimals,allowDuplicatedCategory:An.allowDuplicatedCategory,height:An.height,hide:!1,mirror:An.mirror,orientation:An.orientation,padding:An.padding,reversed:An.reversed,scale:An.scale,tickCount:An.tickCount,type:An.type,xAxisId:0},_U=e=>{var t,n,r,i,o,a=en(e,EU);return _.createElement(_.Fragment,null,_.createElement(OU,{interval:(t=a.interval)!==null&&t!==void 0?t:"preserveEnd",id:a.xAxisId,scale:a.scale,type:a.type,padding:a.padding,allowDataOverflow:a.allowDataOverflow,domain:a.domain,dataKey:a.dataKey,allowDuplicatedCategory:a.allowDuplicatedCategory,allowDecimals:a.allowDecimals,tickCount:a.tickCount,includeHidden:(n=a.includeHidden)!==null&&n!==void 0?n:!1,reversed:a.reversed,ticks:a.ticks,height:a.height,orientation:a.orientation,mirror:a.mirror,hide:a.hide,unit:a.unit,name:a.name,angle:(r=a.angle)!==null&&r!==void 0?r:0,minTickGap:(i=a.minTickGap)!==null&&i!==void 0?i:5,tick:(o=a.tick)!==null&&o!==void 0?o:!0,tickFormatter:a.tickFormatter}),_.createElement(SU,a))},PU=(e,t)=>{var{domain:n}=e,r=Ku(e,bU),{domain:i}=t,o=Ku(t,xU);return _a(r,o)?Array.isArray(n)&&n.length===2&&Array.isArray(i)&&i.length===2?n[0]===i[0]&&n[1]===i[1]:_a({domain:n},{domain:i}):!1},df=_.memo(_U,PU);df.displayName="XAxis";var CU=["dangerouslySetInnerHTML","ticks"],TU=["id"],AU=["domain"],kU=["domain"];function $m(){return $m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$m.apply(null,arguments)}function Yu(e,t){if(e==null)return{};var n,r,i=MU(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function MU(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function jU(e){var t=At();return I.useEffect(()=>(t(SW(e)),()=>{t(EW(e))}),[e,t]),null}var NU=e=>{var{yAxisId:t,className:n,width:r,label:i}=e,o=I.useRef(null),a=I.useRef(null),s=he(Wg),l=Cn(),c=At(),u="yAxis",d=he(O=>za(O,u,t,l)),p=he(O=>SC(O,t)),h=he(O=>r3(O,t)),g=he(O=>PC(O,u,t,l)),m=he(O=>eC(O,t));if(I.useLayoutEffect(()=>{if(!(r!=="auto"||!p||Jv(i)||I.isValidElement(i)||m==null)){var O=o.current;if(O){var E=O.getCalculatedWidth();Math.round(p.width)!==Math.round(E)&&c(_W({id:t,width:E}))}}},[g,p,c,i,t,r,m]),p==null||h==null||m==null)return null;var{dangerouslySetInnerHTML:v,ticks:y}=e,S=Yu(e,CU),{id:x}=m,b=Yu(m,TU);return _.createElement(gy,$m({},S,b,{ref:o,labelRef:a,scale:d,x:h.x,y:h.y,tickTextProps:r==="auto"?{width:void 0}:{width:r},width:p.width,height:p.height,className:oe("recharts-".concat(u," ").concat(u),n),viewBox:s,ticks:g}))},RU={allowDataOverflow:kn.allowDataOverflow,allowDecimals:kn.allowDecimals,allowDuplicatedCategory:kn.allowDuplicatedCategory,hide:!1,mirror:kn.mirror,orientation:kn.orientation,padding:kn.padding,reversed:kn.reversed,scale:kn.scale,tickCount:kn.tickCount,type:kn.type,width:kn.width,yAxisId:0},DU=e=>{var t,n,r,i,o,a=en(e,RU);return _.createElement(_.Fragment,null,_.createElement(jU,{interval:(t=a.interval)!==null&&t!==void 0?t:"preserveEnd",id:a.yAxisId,scale:a.scale,type:a.type,domain:a.domain,allowDataOverflow:a.allowDataOverflow,dataKey:a.dataKey,allowDuplicatedCategory:a.allowDuplicatedCategory,allowDecimals:a.allowDecimals,tickCount:a.tickCount,padding:a.padding,includeHidden:(n=a.includeHidden)!==null&&n!==void 0?n:!1,reversed:a.reversed,ticks:a.ticks,width:a.width,orientation:a.orientation,mirror:a.mirror,hide:a.hide,unit:a.unit,name:a.name,angle:(r=a.angle)!==null&&r!==void 0?r:0,minTickGap:(i=a.minTickGap)!==null&&i!==void 0?i:5,tick:(o=a.tick)!==null&&o!==void 0?o:!0,tickFormatter:a.tickFormatter}),_.createElement(NU,a))},IU=(e,t)=>{var{domain:n}=e,r=Yu(e,AU),{domain:i}=t,o=Yu(t,kU);return _a(r,o)?Array.isArray(n)&&n.length===2&&Array.isArray(i)&&i.length===2?n[0]===i[0]&&n[1]===i[1]:_a({domain:n},{domain:i}):!1},rl=_.memo(DU,IU);rl.displayName="YAxis";var _c={exports:{}},yh={};/**
|
|
199
|
+
`).concat(b.x,",").concat(b.y),E=mt(e.id)?Ks("recharts-radial-line-"):e.id;return _.createElement("text",Gr({},r,{dominantBaseline:"central",className:oe("recharts-radial-bar-label",a)}),_.createElement("defs",null,_.createElement("path",{id:E,d:O})),_.createElement("textPath",{xlinkHref:"#".concat(E)},n))},$z=(e,t,n)=>{var{cx:r,cy:i,innerRadius:o,outerRadius:a,startAngle:s,endAngle:l}=e,c=(s+l)/2;if(n==="outside"){var{x:u,y:d}=Nt(r,i,a+t,c);return{x:u,y:d,textAnchor:u>=r?"start":"end",verticalAnchor:"middle"}}if(n==="center")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(n==="centerTop")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"start"};if(n==="centerBottom")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"end"};var p=(o+a)/2,{x:h,y:g}=Nt(r,i,p,c);return{x:h,y:g,textAnchor:"middle",verticalAnchor:"middle"}},lT=e=>"cx"in e&&ge(e.cx),Lz=(e,t)=>{var{parentViewBox:n,offset:r,position:i}=e,o;n!=null&&!lT(n)&&(o=n);var{x:a,y:s,width:l,height:c}=t,u=c>=0?1:-1,d=u*r,p=u>0?"end":"start",h=u>0?"start":"end",g=l>=0?1:-1,m=g*r,v=g>0?"end":"start",y=g>0?"start":"end";if(i==="top"){var S={x:a+l/2,y:s-u*r,textAnchor:"middle",verticalAnchor:p};return Pt(Pt({},S),o?{height:Math.max(s-o.y,0),width:l}:{})}if(i==="bottom"){var x={x:a+l/2,y:s+c+d,textAnchor:"middle",verticalAnchor:h};return Pt(Pt({},x),o?{height:Math.max(o.y+o.height-(s+c),0),width:l}:{})}if(i==="left"){var b={x:a-m,y:s+c/2,textAnchor:v,verticalAnchor:"middle"};return Pt(Pt({},b),o?{width:Math.max(b.x-o.x,0),height:c}:{})}if(i==="right"){var O={x:a+l+m,y:s+c/2,textAnchor:y,verticalAnchor:"middle"};return Pt(Pt({},O),o?{width:Math.max(o.x+o.width-O.x,0),height:c}:{})}var E=o?{width:l,height:c}:{};return i==="insideLeft"?Pt({x:a+m,y:s+c/2,textAnchor:y,verticalAnchor:"middle"},E):i==="insideRight"?Pt({x:a+l-m,y:s+c/2,textAnchor:v,verticalAnchor:"middle"},E):i==="insideTop"?Pt({x:a+l/2,y:s+d,textAnchor:"middle",verticalAnchor:h},E):i==="insideBottom"?Pt({x:a+l/2,y:s+c-d,textAnchor:"middle",verticalAnchor:p},E):i==="insideTopLeft"?Pt({x:a+m,y:s+d,textAnchor:y,verticalAnchor:h},E):i==="insideTopRight"?Pt({x:a+l-m,y:s+d,textAnchor:v,verticalAnchor:h},E):i==="insideBottomLeft"?Pt({x:a+m,y:s+c-d,textAnchor:y,verticalAnchor:p},E):i==="insideBottomRight"?Pt({x:a+l-m,y:s+c-d,textAnchor:v,verticalAnchor:p},E):i&&typeof i=="object"&&(ge(i.x)||ho(i.x))&&(ge(i.y)||ho(i.y))?Pt({x:a+un(i.x,l),y:s+un(i.y,c),textAnchor:"end",verticalAnchor:"end"},E):Pt({x:a+l/2,y:s+c/2,textAnchor:"middle",verticalAnchor:"middle"},E)},Fz={offset:5};function wi(e){var t=en(e,Fz),{viewBox:n,position:r,value:i,children:o,content:a,className:s="",textBreakAll:l,labelRef:c}=t,u=Nz(),d=sT(),p=r==="center"?d:u??d,h=n||p;if(!h||mt(i)&&mt(o)&&!I.isValidElement(a)&&typeof a!="function")return null;var g=Pt(Pt({},t),{},{viewBox:h});if(I.isValidElement(a)){var{labelRef:m}=g,v=Pz(g,_z);return I.cloneElement(a,v)}var y;if(typeof a=="function"){if(y=I.createElement(a,g),I.isValidElement(y))return y}else y=Rz(t);var S=lT(h),x=vt(t,!0);if(S&&(r==="insideStart"||r==="insideEnd"||r==="end"))return Iz(t,r,y,x,h);var b=S?$z(h,t.offset,t.position):Lz(t,h);return _.createElement(cf,Gr({ref:c,className:oe("recharts-label",s)},x,b,{breakAll:l}),y)}wi.displayName="Label";var Bz=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?_.createElement(wi,Gr({key:"label-implicit"},r)):Rr(e)?_.createElement(wi,Gr({key:"label-implicit",value:e},r)):I.isValidElement(e)?e.type===wi?I.cloneElement(e,Pt({key:"label-implicit"},r)):_.createElement(wi,Gr({key:"label-implicit",content:e},r)):Jv(e)?_.createElement(wi,Gr({key:"label-implicit",content:e},r)):e&&typeof e=="object"?_.createElement(wi,Gr({},e,{key:"label-implicit"},r)):null};function zz(e){var{label:t}=e,n=sT();return Bz(t,n)||null}var uh={},dh={},_w;function Vz(){return _w||(_w=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n[n.length-1]}e.last=t})(dh)),dh}var fh={},Pw;function Wz(){return Pw||(Pw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Array.isArray(n)?n:Array.from(n)}e.toArray=t})(fh)),fh}var Cw;function Uz(){return Cw||(Cw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Vz(),n=Wz(),r=Dg();function i(o){if(r.isArrayLike(o))return t.last(n.toArray(o))}e.last=i})(uh)),uh}var ph,Tw;function Hz(){return Tw||(Tw=1,ph=Uz().last),ph}var qz=Hz();const Kz=ui(qz);var Yz=["valueAccessor"],Gz=["dataKey","clockWise","id","textBreakAll"];function zu(){return zu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zu.apply(null,arguments)}function Aw(e,t){if(e==null)return{};var n,r,i=Xz(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Xz(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Zz=e=>Array.isArray(e.value)?Kz(e.value):e.value,cT=I.createContext(void 0),uT=cT.Provider,dT=I.createContext(void 0),Jz=dT.Provider;function Qz(){return I.useContext(cT)}function eV(){return I.useContext(dT)}function Qc(e){var{valueAccessor:t=Zz}=e,n=Aw(e,Yz),{dataKey:r,clockWise:i,id:o,textBreakAll:a}=n,s=Aw(n,Gz),l=Qz(),c=eV(),u=l||c;return!u||!u.length?null:_.createElement(Qt,{className:"recharts-label-list"},u.map((d,p)=>{var h,g=mt(r)?t(d,p):at(d&&d.payload,r),m=mt(o)?{}:{id:"".concat(o,"-").concat(p)};return _.createElement(wi,zu({},vt(d,!0),s,m,{fill:(h=n.fill)!==null&&h!==void 0?h:d.fill,parentViewBox:d.parentViewBox,value:g,textBreakAll:a,viewBox:d.viewBox,key:"label-".concat(p),index:p}))}))}Qc.displayName="LabelList";function Qv(e){var{label:t}=e;return t?t===!0?_.createElement(Qc,{key:"labelList-implicit"}):_.isValidElement(t)||Jv(t)?_.createElement(Qc,{key:"labelList-implicit",content:t}):typeof t=="object"?_.createElement(Qc,zu({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function Nm(){return Nm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nm.apply(null,arguments)}var fT=e=>{var{cx:t,cy:n,r,className:i}=e,o=oe("recharts-dot",i);return t===+t&&n===+n&&r===+r?_.createElement("circle",Nm({},Lr(e),kg(e),{className:o,cx:t,cy:n,r})):null},pT=e=>e.graphicalItems.polarItems,tV=V([gt,Fl],Pv),ey=V([pT,kt,tV],Cv),nV=V([ey],Tv),ty=V([nV,mv],Av),rV=V([ty,kt,ey],Mv),iV=V([ty,kt,ey],(e,t,n)=>n.length>0?e.flatMap(r=>n.flatMap(i=>{var o,a=at(r,(o=t.dataKey)!==null&&o!==void 0?o:i.dataKey);return{value:a,errorDomain:[]}})).filter(Boolean):t?.dataKey!=null?e.map(r=>({value:at(r,t.dataKey),errorDomain:[]})):e.map(r=>({value:r,errorDomain:[]}))),kw=()=>{},oV=V([kt,gC,kw,iV,kw,Ce,gt],Nv),hT=V([kt,Ce,ty,rV,Ll,gt,oV],Rv),aV=V([hT,kt,Ba],$v);V([kt,hT,aV,gt],Fv);var sV={radiusAxis:{},angleAxis:{}},mT=Un({name:"polarAxis",initialState:sV,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:Yte,removeRadiusAxis:Gte,addAngleAxis:Xte,removeAngleAxis:Zte}=mT.actions,lV=mT.reducer;function Mw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Mw(Object(n),!0).forEach(function(r){cV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cV(e,t,n){return(t=uV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uV(e){var t=dV(e,"string");return typeof t=="symbol"?t:t+""}function dV(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fV=(e,t)=>t,ny=V([pT,fV],(e,t)=>e.filter(n=>n.type==="pie").find(n=>n.id===t)),pV=[],ry=(e,t,n)=>n?.length===0?pV:n,gT=V([mv,ny,ry],(e,t,n)=>{var{chartData:r}=e;if(t!=null){var i;if(t?.data!=null&&t.data.length>0?i=t.data:i=r,(!i||!i.length)&&n!=null&&(i=n.map(o=>jw(jw({},t.presentationProps),o.props))),i!=null)return i}}),hV=V([gT,ny,ry],(e,t,n)=>{if(!(e==null||t==null))return e.map((r,i)=>{var o,a=at(r,t.nameKey,t.name),s;return n!=null&&(o=n[i])!==null&&o!==void 0&&(o=o.props)!==null&&o!==void 0&&o.fill?s=n[i].props.fill:typeof r=="object"&&r!=null&&"fill"in r?s=r.fill:s=t.fill,{value:Ra(a,t.dataKey),color:s,payload:r,type:t.legendType}})}),mV=V([gT,ny,ry,$t],(e,t,n,r)=>{if(!(t==null||e==null))return fW({offset:r,pieSettings:t,displayedData:e,cells:n})}),hh={},Nw;function gV(){return Nw||(Nw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(typeof n!="object"||n==null)return!1;if(Object.getPrototypeOf(n)===null)return!0;if(Object.prototype.toString.call(n)!=="[object Object]"){const i=n[Symbol.toStringTag];return i==null||!Object.getOwnPropertyDescriptor(n,Symbol.toStringTag)?.writable?!1:n.toString()===`[object ${i}]`}let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r}e.isPlainObject=t})(hh)),hh}var mh,Rw;function vV(){return Rw||(Rw=1,mh=gV().isPlainObject),mh}var yV=vV();const bV=ui(yV);function Dw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Iw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dw(Object(n),!0).forEach(function(r){xV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xV(e,t,n){return(t=wV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wV(e){var t=OV(e,"string");return typeof t=="symbol"?t:t+""}function OV(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vu(){return Vu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vu.apply(null,arguments)}var $w=(e,t,n,r,i)=>{var o=n-r,a;return a="M ".concat(e,",").concat(t),a+="L ".concat(e+n,",").concat(t),a+="L ".concat(e+n-o/2,",").concat(t+i),a+="L ".concat(e+n-o/2-r,",").concat(t+i),a+="L ".concat(e,",").concat(t," Z"),a},SV={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},EV=e=>{var t=en(e,SV),{x:n,y:r,upperWidth:i,lowerWidth:o,height:a,className:s}=t,{animationEasing:l,animationDuration:c,animationBegin:u,isUpdateAnimationActive:d}=t,p=I.useRef(),[h,g]=I.useState(-1),m=I.useRef(i),v=I.useRef(o),y=I.useRef(a),S=I.useRef(n),x=I.useRef(r),b=Nl(e,"trapezoid-");if(I.useEffect(()=>{if(p.current&&p.current.getTotalLength)try{var j=p.current.getTotalLength();j&&g(j)}catch{}},[]),n!==+n||r!==+r||i!==+i||o!==+o||a!==+a||i===0&&o===0||a===0)return null;var O=oe("recharts-trapezoid",s);if(!d)return _.createElement("g",null,_.createElement("path",Vu({},vt(t,!0),{className:O,d:$w(n,r,i,o,a)})));var E=m.current,C=v.current,T=y.current,k=S.current,R=x.current,M="0px ".concat(h===-1?1:h,"px"),P="".concat(h,"px 0px"),D=BP(["strokeDasharray"],c,l);return _.createElement(jl,{animationId:b,key:b,canBegin:h>0,duration:c,easing:l,isActive:d,begin:u},j=>{var N=wt(E,i,j),L=wt(C,o,j),B=wt(T,a,j),K=wt(k,n,j),z=wt(R,r,j);p.current&&(m.current=N,v.current=L,y.current=B,S.current=K,x.current=z);var F=j>0?{transition:D,strokeDasharray:P}:{strokeDasharray:M};return _.createElement("path",Vu({},vt(t,!0),{className:O,d:$w(K,z,N,L,B),ref:p,style:Iw(Iw({},F),t.style)}))})},_V=["option","shapeType","propTransformer","activeClassName","isActive"];function PV(e,t){if(e==null)return{};var n,r,i=CV(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function CV(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Lw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Wu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Lw(Object(n),!0).forEach(function(r){TV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function TV(e,t,n){return(t=AV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AV(e){var t=kV(e,"string");return typeof t=="symbol"?t:t+""}function kV(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function MV(e,t){return Wu(Wu({},t),e)}function jV(e,t){return e==="symbols"}function Fw(e){var{shapeType:t,elementProps:n}=e;switch(t){case"rectangle":return _.createElement(UP,n);case"trapezoid":return _.createElement(EV,n);case"sector":return _.createElement(KP,n);case"symbols":if(jV(t))return _.createElement(L_,n);break;default:return null}}function NV(e){return I.isValidElement(e)?e.props:e}function vT(e){var{option:t,shapeType:n,propTransformer:r=MV,activeClassName:i="recharts-active-shape",isActive:o}=e,a=PV(e,_V),s;if(I.isValidElement(t))s=I.cloneElement(t,Wu(Wu({},a),NV(t)));else if(typeof t=="function")s=t(a);else if(bV(t)&&typeof t!="boolean"){var l=r(t,a);s=_.createElement(Fw,{shapeType:n,elementProps:l})}else{var c=a;s=_.createElement(Fw,{shapeType:n,elementProps:c})}return o?_.createElement(Qt,{className:i},s):s}var iy=(e,t)=>{var n=At();return(r,i)=>o=>{e?.(r,i,o),n(jC({activeIndex:String(i),activeDataKey:t,activeCoordinate:r.tooltipPosition}))}},oy=e=>{var t=At();return(n,r)=>i=>{e?.(n,r,i),t(h3())}},ay=(e,t)=>{var n=At();return(r,i)=>o=>{e?.(r,i,o),n(m3({activeIndex:String(i),activeDataKey:t,activeCoordinate:r.tooltipPosition}))}};function sy(e){var{fn:t,args:n}=e,r=At(),i=Cn();return I.useEffect(()=>{if(!i){var o=t(n);return r(d3(o)),()=>{r(f3(o))}}},[t,n,r,i]),null}var yT=()=>{};function bT(e){var{legendPayload:t}=e,n=At(),r=Cn();return I.useEffect(()=>r?yT:(n($P(t)),()=>{n(LP(t))}),[n,r,t]),null}function RV(e){var{legendPayload:t}=e,n=At(),r=he(Ce);return I.useEffect(()=>r!=="centric"&&r!=="radial"?yT:(n($P(t)),()=>{n(LP(t))}),[n,r,t]),null}var gh,DV=()=>{var[e]=_.useState(()=>Ks("uid-"));return e},IV=(gh=_.useId)!==null&&gh!==void 0?gh:DV;function $V(e,t){var n=IV();return t||(e?"".concat(e,"-").concat(n):n)}var LV=I.createContext(void 0),ly=e=>{var{id:t,type:n,children:r}=e,i=$V("recharts-".concat(n),t);return _.createElement(LV.Provider,{value:i},r(i))},FV={cartesianItems:[],polarItems:[]},xT=Un({name:"graphicalItems",initialState:FV,reducers:{addCartesianGraphicalItem(e,t){e.cartesianItems.push(t.payload)},replaceCartesianGraphicalItem(e,t){var{prev:n,next:r}=t.payload,i=ei(e).cartesianItems.indexOf(n);i>-1&&(e.cartesianItems[i]=r)},removeCartesianGraphicalItem(e,t){var n=ei(e).cartesianItems.indexOf(t.payload);n>-1&&e.cartesianItems.splice(n,1)},addPolarGraphicalItem(e,t){e.polarItems.push(t.payload)},removePolarGraphicalItem(e,t){var n=ei(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)}}}),{addCartesianGraphicalItem:BV,replaceCartesianGraphicalItem:zV,removeCartesianGraphicalItem:VV,addPolarGraphicalItem:WV,removePolarGraphicalItem:UV}=xT.actions,HV=xT.reducer;function wT(e){var t=At(),n=I.useRef(null);return I.useEffect(()=>{n.current===null?t(BV(e)):n.current!==e&&t(zV({prev:n.current,next:e})),n.current=e},[t,e]),I.useEffect(()=>()=>{n.current&&(t(VV(n.current)),n.current=null)},[t]),null}function qV(e){var t=At();return I.useEffect(()=>(t(WV(e)),()=>{t(UV(e))}),[t,e]),null}var KV=["onMouseEnter","onClick","onMouseLeave"],YV=["id"],GV=["id"];function cy(e,t){if(e==null)return{};var n,r,i=XV(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function XV(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Bw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bw(Object(n),!0).forEach(function(r){ZV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZV(e,t,n){return(t=JV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JV(e){var t=QV(e,"string");return typeof t=="symbol"?t:t+""}function QV(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Di(){return Di=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Di.apply(null,arguments)}function eW(e){var t=I.useMemo(()=>Mg(e.children,Ir),[e.children]),n=he(r=>hV(r,e.id,t));return n==null?null:_.createElement(RV,{legendPayload:n})}function tW(e){var{dataKey:t,nameKey:n,sectors:r,stroke:i,strokeWidth:o,fill:a,name:s,hide:l,tooltipType:c}=e;return{dataDefinedOnItem:r.map(u=>u.tooltipPayload),positions:r.map(u=>u.tooltipPosition),settings:{stroke:i,strokeWidth:o,fill:a,dataKey:t,nameKey:n,name:Ra(s,t),hide:l,type:c,color:a,unit:""}}}var nW=(e,t)=>e>t?"start":e<t?"end":"middle",rW=(e,t,n)=>un(typeof t=="function"?t(e):t,n,n*.8),iW=(e,t,n)=>{var{top:r,left:i,width:o,height:a}=t,s=PP(o,a),l=i+un(e.cx,o,o/2),c=r+un(e.cy,a,a/2),u=un(e.innerRadius,s,0),d=rW(n,e.outerRadius,s),p=e.maxRadius||Math.sqrt(o*o+a*a)/2;return{cx:l,cy:c,innerRadius:u,outerRadius:d,maxRadius:p}},oW=(e,t)=>{var n=Ut(t-e),r=Math.min(Math.abs(t-e),360);return n*r};function aW(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var sW=(e,t)=>{if(_.isValidElement(e))return _.cloneElement(e,t);if(typeof e=="function")return e(t);var n=oe("recharts-pie-label-line",typeof e!="boolean"?e.className:"");return _.createElement(Hg,Di({},t,{type:"linear",className:n}))},lW=(e,t,n)=>{if(_.isValidElement(e))return _.cloneElement(e,t);var r=n;if(typeof e=="function"&&(r=e(t),_.isValidElement(r)))return r;var i=oe("recharts-pie-label-text",aW(e));return _.createElement(cf,Di({},t,{alignmentBaseline:"middle",className:i}),r)};function cW(e){var{sectors:t,props:n,showLabels:r}=e,{label:i,labelLine:o,dataKey:a}=n;if(!r||!i||!t)return null;var s=Lr(n),l=vt(i,!1),c=vt(o,!1),u=typeof i=="object"&&"offsetRadius"in i&&typeof i.offsetRadius=="number"&&i.offsetRadius||20,d=t.map((p,h)=>{var g=(p.startAngle+p.endAngle)/2,m=Nt(p.cx,p.cy,p.outerRadius+u,g),v=pt(pt(pt(pt({},s),p),{},{stroke:"none"},l),{},{index:h,textAnchor:nW(m.x,p.cx)},m),y=pt(pt(pt(pt({},s),p),{},{fill:"none",stroke:p.fill},c),{},{index:h,points:[Nt(p.cx,p.cy,p.outerRadius,g),m],key:"line"});return _.createElement(Qt,{key:"label-".concat(p.startAngle,"-").concat(p.endAngle,"-").concat(p.midAngle,"-").concat(h)},o&&sW(o,y),lW(i,v,at(p,a)))});return _.createElement(Qt,{className:"recharts-pie-labels"},d)}function uW(e){var{sectors:t,props:n,showLabels:r}=e,{label:i}=n;return typeof i=="object"&&i!=null&&"position"in i?_.createElement(Qv,{label:i}):_.createElement(cW,{sectors:t,props:n,showLabels:r})}function dW(e){var{sectors:t,activeShape:n,inactiveShape:r,allOtherPieProps:i}=e,o=he(Ri),{onMouseEnter:a,onClick:s,onMouseLeave:l}=i,c=cy(i,KV),u=iy(a,i.dataKey),d=oy(l),p=ay(s,i.dataKey);return t==null||t.length===0?null:_.createElement(_.Fragment,null,t.map((h,g)=>{if(h?.startAngle===0&&h?.endAngle===0&&t.length!==1)return null;var m=n&&String(g)===o,v=o?r:null,y=m?n:v,S=pt(pt({},h),{},{stroke:h.stroke,tabIndex:-1,[MP]:g,[jP]:i.dataKey});return _.createElement(Qt,Di({tabIndex:-1,className:"recharts-pie-sector"},Md(c,h,g),{onMouseEnter:u(h,g),onMouseLeave:d(h,g),onClick:p(h,g),key:"sector-".concat(h?.startAngle,"-").concat(h?.endAngle,"-").concat(h.midAngle,"-").concat(g)}),_.createElement(vT,Di({option:y,isActive:m,shapeType:"sector"},S)))}))}function fW(e){var t,{pieSettings:n,displayedData:r,cells:i,offset:o}=e,{cornerRadius:a,startAngle:s,endAngle:l,dataKey:c,nameKey:u,tooltipType:d}=n,p=Math.abs(n.minAngle),h=oW(s,l),g=Math.abs(h),m=r.length<=1?0:(t=n.paddingAngle)!==null&&t!==void 0?t:0,v=r.filter(E=>at(E,c,0)!==0).length,y=(g>=360?v:v-1)*m,S=g-v*p-y,x=r.reduce((E,C)=>{var T=at(C,c,0);return E+(ge(T)?T:0)},0),b;if(x>0){var O;b=r.map((E,C)=>{var T=at(E,c,0),k=at(E,u,C),R=iW(n,o,E),M=(ge(T)?T:0)/x,P,D=pt(pt({},E),i&&i[C]&&i[C].props);C?P=O.endAngle+Ut(h)*m*(T!==0?1:0):P=s;var j=P+Ut(h)*((T!==0?p:0)+M*S),N=(P+j)/2,L=(R.innerRadius+R.outerRadius)/2,B=[{name:k,value:T,payload:D,dataKey:c,type:d}],K=Nt(R.cx,R.cy,L,N);return O=pt(pt(pt(pt({},n.presentationProps),{},{percent:M,cornerRadius:a,name:k,tooltipPayload:B,midAngle:N,middleRadius:L,tooltipPosition:K},D),R),{},{value:T,startAngle:P,endAngle:j,payload:D,paddingAngle:Ut(h)*m}),O})}return b}function pW(e){var{showLabels:t,sectors:n,children:r}=e,i=I.useMemo(()=>!t||!n?[]:n.map(o=>({value:o.value,payload:o.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:o.cx,cy:o.cy,innerRadius:o.innerRadius,outerRadius:o.outerRadius,startAngle:o.startAngle,endAngle:o.endAngle,clockWise:!1},fill:o.fill})),[n,t]);return _.createElement(Jz,{value:t?i:void 0},r)}function hW(e){var{props:t,previousSectorsRef:n}=e,{sectors:r,isAnimationActive:i,animationBegin:o,animationDuration:a,animationEasing:s,activeShape:l,inactiveShape:c,onAnimationStart:u,onAnimationEnd:d}=t,p=Nl(t,"recharts-pie-"),h=n.current,[g,m]=I.useState(!1),v=I.useCallback(()=>{typeof d=="function"&&d(),m(!1)},[d]),y=I.useCallback(()=>{typeof u=="function"&&u(),m(!0)},[u]);return _.createElement(pW,{showLabels:!g,sectors:r},_.createElement(jl,{animationId:p,begin:o,duration:a,isActive:i,easing:s,onAnimationStart:y,onAnimationEnd:v,key:p},S=>{var x=[],b=r&&r[0],O=b?.startAngle;return r?.forEach((E,C)=>{var T=h&&h[C],k=C>0?Co(E,"paddingAngle",0):0;if(T){var R=wt(T.endAngle-T.startAngle,E.endAngle-E.startAngle,S),M=pt(pt({},E),{},{startAngle:O+k,endAngle:O+R+k});x.push(M),O=M.endAngle}else{var{endAngle:P,startAngle:D}=E,j=wt(0,P-D,S),N=pt(pt({},E),{},{startAngle:O+k,endAngle:O+j+k});x.push(N),O=N.endAngle}}),n.current=x,_.createElement(Qt,null,_.createElement(dW,{sectors:x,activeShape:l,inactiveShape:c,allOtherPieProps:t}))}),_.createElement(uW,{showLabels:!g,sectors:r,props:t}),t.children)}var mW={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:!zi.isSsr,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff"};function gW(e){var{id:t}=e,n=cy(e,YV),{hide:r,className:i,rootTabIndex:o}=e,a=I.useMemo(()=>Mg(e.children,Ir),[e.children]),s=he(u=>mV(u,t,a)),l=I.useRef(null),c=oe("recharts-pie",i);return r||s==null?(l.current=null,_.createElement(Qt,{tabIndex:o,className:c})):_.createElement(_.Fragment,null,_.createElement(sy,{fn:tW,args:pt(pt({},e),{},{sectors:s})}),_.createElement(Qt,{tabIndex:o,className:c},_.createElement(hW,{props:pt(pt({},n),{},{sectors:s}),previousSectorsRef:l})))}function Hl(e){var t=en(e,mW),{id:n}=t,r=cy(t,GV),i=Lr(r);return _.createElement(ly,{id:n,type:"pie"},o=>_.createElement(_.Fragment,null,_.createElement(qV,{type:"pie",id:o,data:r.data,dataKey:r.dataKey,hide:r.hide,angleAxisId:0,radiusAxisId:0,name:r.name,nameKey:r.nameKey,tooltipType:r.tooltipType,legendType:r.legendType,fill:r.fill,cx:r.cx,cy:r.cy,startAngle:r.startAngle,endAngle:r.endAngle,paddingAngle:r.paddingAngle,minAngle:r.minAngle,innerRadius:r.innerRadius,outerRadius:r.outerRadius,cornerRadius:r.cornerRadius,presentationProps:i,maxRadius:t.maxRadius}),_.createElement(eW,Di({},r,{id:o})),_.createElement(gW,Di({},r,{id:o}))))}Hl.displayName="Pie";function zw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Vw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zw(Object(n),!0).forEach(function(r){vW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vW(e,t,n){return(t=yW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yW(e){var t=bW(e,"string");return typeof t=="symbol"?t:t+""}function bW(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xW={xAxis:{},yAxis:{},zAxis:{}},OT=Un({name:"cartesianAxis",initialState:xW,reducers:{addXAxis(e,t){e.xAxis[t.payload.id]=t.payload},removeXAxis(e,t){delete e.xAxis[t.payload.id]},addYAxis(e,t){e.yAxis[t.payload.id]=t.payload},removeYAxis(e,t){delete e.yAxis[t.payload.id]},addZAxis(e,t){e.zAxis[t.payload.id]=t.payload},removeZAxis(e,t){delete e.zAxis[t.payload.id]},updateYAxisWidth(e,t){var{id:n,width:r}=t.payload;e.yAxis[n]&&(e.yAxis[n]=Vw(Vw({},e.yAxis[n]),{},{width:r}))}}}),{addXAxis:wW,removeXAxis:OW,addYAxis:SW,removeYAxis:EW,addZAxis:Jte,removeZAxis:Qte,updateYAxisWidth:_W}=OT.actions,PW=OT.reducer,CW=V([$t],e=>{if(e)return{top:e.top,bottom:e.bottom,left:e.left,right:e.right}}),TW=V([CW,di,fi],(e,t,n)=>{if(!(!e||t==null||n==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),uy=()=>he(TW),AW=()=>he(t8);function Ww(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Uw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ww(Object(n),!0).forEach(function(r){kW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ww(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kW(e,t,n){return(t=MW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MW(e){var t=jW(e,"string");return typeof t=="symbol"?t:t+""}function jW(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var NW=e=>{var{point:t,childIndex:n,mainColor:r,activeDot:i,dataKey:o}=e;if(i===!1||t.x==null||t.y==null)return null;var a=Uw(Uw({index:n,dataKey:o,cx:t.x,cy:t.y,r:4,fill:r??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},vt(i,!1)),kg(i)),s;return I.isValidElement(i)?s=I.cloneElement(i,a):typeof i=="function"?s=i(a):s=_.createElement(fT,a),_.createElement(Qt,{className:"recharts-active-dot"},s)};function RW(e){var{points:t,mainColor:n,activeDot:r,itemDataKey:i}=e,o=he(Ri),a=AW();if(t==null||a==null)return null;var s=t.find(l=>a.includes(l.payload));return mt(s)?null:NW({point:s,childIndex:Number(o),mainColor:n,dataKey:i,activeDot:r})}var DW=process.env.NODE_ENV==="production",vh="Invariant failed";function Hw(e,t){if(DW)throw new Error(vh);var n=typeof t=="function"?t():t,r=n?"".concat(vh,": ").concat(n):vh;throw new Error(r)}var IW=["x","y"];function Rm(){return Rm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rm.apply(null,arguments)}function qw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ss(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qw(Object(n),!0).forEach(function(r){$W(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $W(e,t,n){return(t=LW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LW(e){var t=FW(e,"string");return typeof t=="symbol"?t:t+""}function FW(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function BW(e,t){if(e==null)return{};var n,r,i=zW(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function zW(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function VW(e,t){var{x:n,y:r}=e,i=BW(e,IW),o="".concat(n),a=parseInt(o,10),s="".concat(r),l=parseInt(s,10),c="".concat(t.height||i.height),u=parseInt(c,10),d="".concat(t.width||i.width),p=parseInt(d,10);return ss(ss(ss(ss(ss({},t),i),a?{x:a}:{}),l?{y:l}:{}),{},{height:u,width:p,name:t.name,radius:t.radius})}function dy(e){return _.createElement(vT,Rm({shapeType:"rectangle",propTransformer:VW,activeClassName:"recharts-active-bar"},e))}var WW=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(r,i)=>{if(ge(t))return t;var o=ge(r)||mt(r);return o?t(r,i):(o||(process.env.NODE_ENV!=="production"?Hw(!1,"minPointSize callback function received a value with type of ".concat(typeof r,". Currently only numbers or null/undefined are supported.")):Hw()),n)}},UW={},ST=Un({name:"errorBars",initialState:UW,reducers:{addErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]||(e[n]=[]),e[n].push(r)},replaceErrorBar:(e,t)=>{var{itemId:n,prev:r,next:i}=t.payload;e[n]&&(e[n]=e[n].map(o=>o.dataKey===r.dataKey&&o.direction===r.direction?i:o))},removeErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]&&(e[n]=e[n].filter(i=>i.dataKey!==r.dataKey||i.direction!==r.direction))}}}),{addErrorBar:ene,replaceErrorBar:tne,removeErrorBar:nne}=ST.actions,HW=ST.reducer,qW=["children"];function KW(e,t){if(e==null)return{};var n,r,i=YW(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function YW(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var GW={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},XW=I.createContext(GW);function ET(e){var{children:t}=e,n=KW(e,qW);return _.createElement(XW.Provider,{value:n},t)}function fy(e,t){var n,r,i=he(c=>hi(c,e)),o=he(c=>mi(c,t)),a=(n=i?.allowDataOverflow)!==null&&n!==void 0?n:An.allowDataOverflow,s=(r=o?.allowDataOverflow)!==null&&r!==void 0?r:kn.allowDataOverflow,l=a||s;return{needClip:l,needClipX:a,needClipY:s}}function _T(e){var{xAxisId:t,yAxisId:n,clipPathId:r}=e,i=uy(),{needClipX:o,needClipY:a,needClip:s}=fy(t,n);if(!s)return null;var{x:l,y:c,width:u,height:d}=i;return _.createElement("clipPath",{id:"clipPath-".concat(r)},_.createElement("rect",{x:o?l:l-u/2,y:a?c:c-d/2,width:o?u:u*2,height:a?d:d*2}))}var ZW=["onMouseEnter","onMouseLeave","onClick"],JW=["value","background","tooltipPosition"],QW=["id"],e7=["onMouseEnter","onClick","onMouseLeave"];function Ii(){return Ii=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ii.apply(null,arguments)}function Kw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kw(Object(n),!0).forEach(function(r){t7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function t7(e,t,n){return(t=n7(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n7(e){var t=r7(e,"string");return typeof t=="symbol"?t:t+""}function r7(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Uu(e,t){if(e==null)return{};var n,r,i=i7(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function i7(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var o7=e=>{var{dataKey:t,name:n,fill:r,legendType:i,hide:o}=e;return[{inactive:o,dataKey:t,type:i,color:r,value:Ra(n,t),payload:e}]};function a7(e){var{dataKey:t,stroke:n,strokeWidth:r,fill:i,name:o,hide:a,unit:s}=e;return{dataDefinedOnItem:void 0,positions:void 0,settings:{stroke:n,strokeWidth:r,fill:i,dataKey:t,nameKey:void 0,name:Ra(o,t),hide:a,type:e.tooltipType,color:e.fill,unit:s}}}function s7(e){var t=he(Ri),{data:n,dataKey:r,background:i,allOtherBarProps:o}=e,{onMouseEnter:a,onMouseLeave:s,onClick:l}=o,c=Uu(o,ZW),u=iy(a,r),d=oy(s),p=ay(l,r);if(!i||n==null)return null;var h=vt(i,!1);return _.createElement(_.Fragment,null,n.map((g,m)=>{var{value:v,background:y,tooltipPosition:S}=g,x=Uu(g,JW);if(!y)return null;var b=u(g,m),O=d(g,m),E=p(g,m),C=pn(pn(pn(pn(pn({option:i,isActive:String(m)===t},x),{},{fill:"#eee"},y),h),Md(c,g,m)),{},{onMouseEnter:b,onMouseLeave:O,onClick:E,dataKey:r,index:m,className:"recharts-bar-background-rectangle"});return _.createElement(dy,Ii({key:"background-bar-".concat(C.index)},C))}))}function l7(e){var{showLabels:t,children:n,rects:r}=e,i=r?.map(o=>{var a={x:o.x,y:o.y,width:o.width,height:o.height};return pn(pn({},a),{},{value:o.value,payload:o.payload,parentViewBox:o.parentViewBox,viewBox:a,fill:o.fill})});return _.createElement(uT,{value:t?i:void 0},n)}function c7(e){var{shape:t,activeBar:n,baseProps:r,entry:i,index:o,dataKey:a}=e,s=he(Ri),l=he(HC),c=n&&String(o)===s&&(l==null||a===l),u=c?n:t;return _.createElement(dy,Ii({},r,i,{isActive:c,option:u,index:o,dataKey:a}))}function u7(e){var{shape:t,baseProps:n,entry:r,index:i,dataKey:o}=e;return _.createElement(dy,Ii({},n,r,{isActive:!1,option:t,index:i,dataKey:o}))}function d7(e){var{data:t,props:n}=e,r=Lr(n),{id:i}=r,o=Uu(r,QW),{shape:a,dataKey:s,activeBar:l}=n,{onMouseEnter:c,onClick:u,onMouseLeave:d}=n,p=Uu(n,e7),h=iy(c,s),g=oy(d),m=ay(u,s);return t?_.createElement(_.Fragment,null,t.map((v,y)=>_.createElement(Qt,Ii({className:"recharts-bar-rectangle"},Md(p,v,y),{onMouseEnter:h(v,y),onMouseLeave:g(v,y),onClick:m(v,y),key:"rectangle-".concat(v?.x,"-").concat(v?.y,"-").concat(v?.value,"-").concat(y)}),l?_.createElement(c7,{shape:a,activeBar:l,baseProps:o,entry:v,index:y,dataKey:s}):_.createElement(u7,{shape:a,baseProps:o,entry:v,index:y,dataKey:s})))):null}function f7(e){var{props:t,previousRectanglesRef:n}=e,{data:r,layout:i,isAnimationActive:o,animationBegin:a,animationDuration:s,animationEasing:l,onAnimationEnd:c,onAnimationStart:u}=t,d=n.current,p=Nl(t,"recharts-bar-"),[h,g]=I.useState(!1),m=!h,v=I.useCallback(()=>{typeof c=="function"&&c(),g(!1)},[c]),y=I.useCallback(()=>{typeof u=="function"&&u(),g(!0)},[u]);return _.createElement(l7,{showLabels:m,rects:r},_.createElement(jl,{animationId:p,begin:a,duration:s,isActive:o,easing:l,onAnimationEnd:v,onAnimationStart:y,key:p},S=>{var x=S===1?r:r?.map((b,O)=>{var E=d&&d[O];if(E)return pn(pn({},b),{},{x:wt(E.x,b.x,S),y:wt(E.y,b.y,S),width:wt(E.width,b.width,S),height:wt(E.height,b.height,S)});if(i==="horizontal"){var C=wt(0,b.height,S);return pn(pn({},b),{},{y:b.y+b.height-C,height:C})}var T=wt(0,b.width,S);return pn(pn({},b),{},{width:T})});return S>0&&(n.current=x??null),x==null?null:_.createElement(Qt,null,_.createElement(d7,{props:t,data:x}))}),_.createElement(Qv,{label:t.label}),t.children)}function p7(e){var t=I.useRef(null);return _.createElement(f7,{previousRectanglesRef:t,props:e})}var PT=0,h7=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:at(e,t)}};class m7 extends I.PureComponent{render(){var{hide:t,data:n,dataKey:r,className:i,xAxisId:o,yAxisId:a,needClip:s,background:l,id:c}=this.props;if(t||n==null)return null;var u=oe("recharts-bar",i),d=c;return _.createElement(Qt,{className:u,id:c},s&&_.createElement("defs",null,_.createElement(_T,{clipPathId:d,xAxisId:o,yAxisId:a})),_.createElement(Qt,{className:"recharts-bar-rectangles",clipPath:s?"url(#clipPath-".concat(d,")"):void 0},_.createElement(s7,{data:n,dataKey:r,background:l,allOtherBarProps:this.props}),_.createElement(p7,this.props)))}}var g7={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",hide:!1,isAnimationActive:!zi.isSsr,legendType:"rect",minPointSize:PT,xAxisId:0,yAxisId:0};function v7(e){var{xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:o,activeBar:a,animationBegin:s,animationDuration:l,animationEasing:c,isAnimationActive:u}=e,{needClip:d}=fy(t,n),p=Ud(),h=Cn(),g=Mg(e.children,Ir),m=he(S=>H7(S,t,n,h,e.id,g));if(p!=="vertical"&&p!=="horizontal")return null;var v,y=m?.[0];return y==null||y.height==null||y.width==null?v=0:v=p==="vertical"?y.height/2:y.width/2,_.createElement(ET,{xAxisId:t,yAxisId:n,data:m,dataPointFormatter:h7,errorBarOffset:v},_.createElement(m7,Ii({},e,{layout:p,needClip:d,data:m,xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:o,activeBar:a,animationBegin:s,animationDuration:l,animationEasing:c,isAnimationActive:u})))}function y7(e){var{layout:t,barSettings:{dataKey:n,minPointSize:r},pos:i,bandSize:o,xAxis:a,yAxis:s,xAxisTicks:l,yAxisTicks:c,stackedData:u,displayedData:d,offset:p,cells:h,parentViewBox:g}=e,m=t==="horizontal"?s:a,v=u?m.scale.domain():null,y=W5({numericAxis:m});return d.map((S,x)=>{var b,O,E,C,T,k;u?b=$5(u[x],v):(b=at(S,n),Array.isArray(b)||(b=[y,b]));var R=WW(r,PT)(b[1],x);if(t==="horizontal"){var M,[P,D]=[s.scale(b[0]),s.scale(b[1])];O=Nx({axis:a,ticks:l,bandSize:o,offset:i.offset,entry:S,index:x}),E=(M=D??P)!==null&&M!==void 0?M:void 0,C=i.size;var j=P-D;if(T=Fn(j)?0:j,k={x:O,y:p.top,width:C,height:p.height},Math.abs(R)>0&&Math.abs(T)<Math.abs(R)){var N=Ut(T||R)*(Math.abs(R)-Math.abs(T));E-=N,T+=N}}else{var[L,B]=[a.scale(b[0]),a.scale(b[1])];if(O=L,E=Nx({axis:s,ticks:c,bandSize:o,offset:i.offset,entry:S,index:x}),C=B-L,T=i.size,k={x:p.left,y:E,width:p.width,height:T},Math.abs(R)>0&&Math.abs(C)<Math.abs(R)){var K=Ut(C||R)*(Math.abs(R)-Math.abs(C));C+=K}}if(O==null||E==null||C==null||T==null)return null;var z=pn(pn({},S),{},{x:O,y:E,width:C,height:T,value:u?b:b[1],payload:S,background:k,tooltipPosition:{x:O+C/2,y:E+T/2},parentViewBox:g},h&&h[x]&&h[x].props);return z}).filter(Boolean)}function b7(e){var t=en(e,g7),n=Cn();return _.createElement(ly,{id:t.id,type:"bar"},r=>_.createElement(_.Fragment,null,_.createElement(bT,{legendPayload:o7(t)}),_.createElement(sy,{fn:a7,args:t}),_.createElement(wT,{type:"bar",id:r,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:V5(t.stackId),hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:n}),_.createElement(v7,Ii({},t,{id:r}))))}var CT=_.memo(b7);CT.displayName="Bar";function Yw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ec(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yw(Object(n),!0).forEach(function(r){x7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function x7(e,t,n){return(t=w7(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w7(e){var t=O7(e,"string");return typeof t=="symbol"?t:t+""}function O7(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var S7=(e,t)=>t,E7=(e,t,n)=>n,_7=(e,t,n,r)=>r,P7=(e,t,n,r,i)=>i,ql=V([nf,P7],(e,t)=>e.filter(n=>n.type==="bar").find(n=>n.id===t)),C7=V([ql],e=>e?.maxBarSize),T7=(e,t,n,r,i,o)=>o,Gw=(e,t,n)=>{var r=n??e;if(!mt(r))return un(r,t,0)},A7=V([Ce,nf,S7,E7,_7],(e,t,n,r,i)=>t.filter(o=>e==="horizontal"?o.xAxisId===n:o.yAxisId===r).filter(o=>o.isPanorama===i).filter(o=>o.hide===!1).filter(o=>o.type==="bar")),k7=(e,t,n,r)=>{var i=Ce(e);return i==="horizontal"?Cm(e,"yAxis",n,r):Cm(e,"xAxis",t,r)},M7=(e,t,n)=>{var r=Ce(e);return r==="horizontal"?Y1(e,"xAxis",t):Y1(e,"yAxis",n)},j7=(e,t,n)=>{var r={},i=e.filter(tf),o=e.filter(c=>c.stackId==null),a=i.reduce((c,u)=>(c[u.stackId]||(c[u.stackId]=[]),c[u.stackId].push(u),c),r),s=Object.entries(a).map(c=>{var[u,d]=c,p=d.map(g=>g.dataKey),h=Gw(t,n,d[0].barSize);return{stackId:u,dataKeys:p,barSize:h}}),l=o.map(c=>{var u=[c.dataKey].filter(p=>p!=null),d=Gw(t,n,c.barSize);return{stackId:void 0,dataKeys:u,barSize:d}});return[...s,...l]},N7=V([A7,u6,M7],j7),R7=(e,t,n,r,i)=>{var o,a,s=ql(e,t,n,r,i);if(s!=null){var l=Ce(e),c=W2(e),{maxBarSize:u}=s,d=mt(u)?c:u,p,h;return l==="horizontal"?(p=Ni(e,"xAxis",t,r),h=ji(e,"xAxis",t,r)):(p=Ni(e,"yAxis",n,r),h=ji(e,"yAxis",n,r)),(o=(a=Xs(p,h,!0))!==null&&a!==void 0?a:d)!==null&&o!==void 0?o:0}},TT=(e,t,n,r)=>{var i=Ce(e),o,a;return i==="horizontal"?(o=Ni(e,"xAxis",t,r),a=ji(e,"xAxis",t,r)):(o=Ni(e,"yAxis",n,r),a=ji(e,"yAxis",n,r)),Xs(o,a)};function D7(e,t,n,r,i){var o=r.length;if(!(o<1)){var a=un(e,n,0,!0),s,l=[];if(zn(r[0].barSize)){var c=!1,u=n/o,d=r.reduce((y,S)=>y+(S.barSize||0),0);d+=(o-1)*a,d>=n&&(d-=(o-1)*a,a=0),d>=n&&u>0&&(c=!0,u*=.9,d=o*u);var p=(n-d)/2>>0,h={offset:p-a,size:0};s=r.reduce((y,S)=>{var x,b={stackId:S.stackId,dataKeys:S.dataKeys,position:{offset:h.offset+h.size+a,size:c?u:(x=S.barSize)!==null&&x!==void 0?x:0}},O=[...y,b];return h=O[O.length-1].position,O},l)}else{var g=un(t,n,0,!0);n-2*g-(o-1)*a<=0&&(a=0);var m=(n-2*g-(o-1)*a)/o;m>1&&(m>>=0);var v=zn(i)?Math.min(m,i):m;s=r.reduce((y,S,x)=>[...y,{stackId:S.stackId,dataKeys:S.dataKeys,position:{offset:g+(m+a)*x+(m-v)/2,size:v}}],l)}return s}}var I7=(e,t,n,r,i,o,a)=>{var s=mt(a)?t:a,l=D7(n,r,i!==o?i:o,e,s);return i!==o&&l!=null&&(l=l.map(c=>Ec(Ec({},c),{},{position:Ec(Ec({},c.position),{},{offset:c.position.offset-i/2})}))),l},$7=V([N7,W2,c6,U2,R7,TT,C7],I7),L7=(e,t,n,r)=>Ni(e,"xAxis",t,r),F7=(e,t,n,r)=>Ni(e,"yAxis",n,r),B7=(e,t,n,r)=>ji(e,"xAxis",t,r),z7=(e,t,n,r)=>ji(e,"yAxis",n,r),V7=V([$7,ql],(e,t)=>{if(!(e==null||t==null)){var n=e.find(r=>r.stackId===t.stackId&&t.dataKey!=null&&r.dataKeys.includes(t.dataKey));if(n!=null)return n.position}}),W7=(e,t)=>{var n=Ev(t);if(!(!e||n==null||t==null)){var{stackId:r}=t;if(r!=null){var i=e[r];if(i){var{stackedData:o}=i;if(o)return o.find(a=>a.key===n)}}}},U7=V([k7,ql],W7),H7=V([$t,Wg,L7,F7,B7,z7,V7,Ce,Zd,TT,U7,ql,T7],(e,t,n,r,i,o,a,s,l,c,u,d,p)=>{var{chartData:h,dataStartIndex:g,dataEndIndex:m}=l;if(!(d==null||a==null||t==null||s!=="horizontal"&&s!=="vertical"||n==null||r==null||i==null||o==null||c==null)){var{data:v}=d,y;if(v!=null&&v.length>0?y=v:y=h?.slice(g,m+1),y!=null)return y7({layout:s,barSettings:d,pos:a,parentViewBox:t,bandSize:c,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:o,stackedData:u,displayedData:y,offset:e,cells:p})}}),AT=e=>{var{chartData:t}=e,n=At(),r=Cn();return I.useEffect(()=>r?()=>{}:(n(iw(t)),()=>{n(iw(void 0))}),[t,n,r]),null},Xw={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},kT=Un({name:"brush",initialState:Xw,reducers:{setBrushSettings(e,t){return t.payload==null?Xw:t.payload}}}),{setBrushSettings:rne}=kT.actions,q7=kT.reducer;function K7(e,t,n){return(t=Y7(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y7(e){var t=G7(e,"string");return typeof t=="symbol"?t:t+""}function G7(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class py{static create(t){return new py(t)}constructor(t){this.scale=t}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}apply(t){var{bandAware:n,position:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t!==void 0){if(r)switch(r){case"start":return this.scale(t);case"middle":{var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i}case"end":{var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}default:return this.scale(t)}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}isInRange(t){var n=this.range(),r=n[0],i=n[n.length-1];return r<=i?t>=r&&t<=i:t>=i&&t<=r}}K7(py,"EPS",1e-4);function X7(e){return(e%180+180)%180}var Z7=function(t){var{width:n,height:r}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=X7(i),a=o*Math.PI/180,s=Math.atan(r/n),l=a>s&&a<Math.PI-s?r/Math.sin(a):n/Math.cos(a);return Math.abs(l)},J7={dots:[],areas:[],lines:[]},MT=Un({name:"referenceElements",initialState:J7,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=ei(e).dots.findIndex(r=>r===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=ei(e).areas.findIndex(r=>r===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var n=ei(e).lines.findIndex(r=>r===t.payload);n!==-1&&e.lines.splice(n,1)}}}),{addDot:ine,removeDot:one,addArea:ane,removeArea:sne,addLine:lne,removeLine:cne}=MT.actions,Q7=MT.reducer,e9=I.createContext(void 0),t9=e=>{var{children:t}=e,[n]=I.useState("".concat(Ks("recharts"),"-clip")),r=uy();if(r==null)return null;var{x:i,y:o,width:a,height:s}=r;return _.createElement(e9.Provider,{value:n},_.createElement("defs",null,_.createElement("clipPath",{id:n},_.createElement("rect",{x:i,y:o,height:s,width:a}))),t)};function _a(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function jT(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],i=0;i<e.length;i+=t)r.push(e[i]);return r}function n9(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Z7(r,n)}function r9(e,t,n){var r=n==="width",{x:i,y:o,width:a,height:s}=e;return t===1?{start:r?i:o,end:r?i+a:o+s}:{start:r?i+a:o+s,end:r?i:o}}function Hu(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-i)<=0}function i9(e,t){return jT(e,t+1)}function o9(e,t,n,r,i){for(var o=(r||[]).slice(),{start:a,end:s}=t,l=0,c=1,u=a,d=function(){var g=r?.[l];if(g===void 0)return{v:jT(r,c)};var m=l,v,y=()=>(v===void 0&&(v=n(g,m)),v),S=g.coordinate,x=l===0||Hu(e,S,y,u,s);x||(l=0,u=a,c+=1),x&&(u=S+e*(y()/2+i),l+=c)},p;c<=o.length;)if(p=d(),p)return p.v;return[]}function Zw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function an(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zw(Object(n),!0).forEach(function(r){a9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function a9(e,t,n){return(t=s9(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s9(e){var t=l9(e,"string");return typeof t=="symbol"?t:t+""}function l9(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function c9(e,t,n,r,i){for(var o=(r||[]).slice(),a=o.length,{start:s}=t,{end:l}=t,c=function(p){var h=o[p],g,m=()=>(g===void 0&&(g=n(h,p)),g);if(p===a-1){var v=e*(h.coordinate+e*m()/2-l);o[p]=h=an(an({},h),{},{tickCoord:v>0?h.coordinate-v*e:h.coordinate})}else o[p]=h=an(an({},h),{},{tickCoord:h.coordinate});var y=Hu(e,h.tickCoord,m,s,l);y&&(l=h.tickCoord-e*(m()/2+i),o[p]=an(an({},h),{},{isShow:!0}))},u=a-1;u>=0;u--)c(u);return o}function u9(e,t,n,r,i,o){var a=(r||[]).slice(),s=a.length,{start:l,end:c}=t;if(o){var u=r[s-1],d=n(u,s-1),p=e*(u.coordinate+e*d/2-c);a[s-1]=u=an(an({},u),{},{tickCoord:p>0?u.coordinate-p*e:u.coordinate});var h=Hu(e,u.tickCoord,()=>d,l,c);h&&(c=u.tickCoord-e*(d/2+i),a[s-1]=an(an({},u),{},{isShow:!0}))}for(var g=o?s-1:s,m=function(S){var x=a[S],b,O=()=>(b===void 0&&(b=n(x,S)),b);if(S===0){var E=e*(x.coordinate-e*O()/2-l);a[S]=x=an(an({},x),{},{tickCoord:E<0?x.coordinate-E*e:x.coordinate})}else a[S]=x=an(an({},x),{},{tickCoord:x.coordinate});var C=Hu(e,x.tickCoord,O,l,c);C&&(l=x.tickCoord+e*(O()/2+i),a[S]=an(an({},x),{},{isShow:!0}))},v=0;v<g;v++)m(v);return a}function hy(e,t,n){var{tick:r,ticks:i,viewBox:o,minTickGap:a,orientation:s,interval:l,tickFormatter:c,unit:u,angle:d}=e;if(!i||!i.length||!r)return[];if(ge(l)||zi.isSsr){var p;return(p=i9(i,ge(l)?l:0))!==null&&p!==void 0?p:[]}var h=[],g=s==="top"||s==="bottom"?"width":"height",m=u&&g==="width"?Ns(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},v=(x,b)=>{var O=typeof c=="function"?c(x.value,b):x.value;return g==="width"?n9(Ns(O,{fontSize:t,letterSpacing:n}),m,d):Ns(O,{fontSize:t,letterSpacing:n})[g]},y=i.length>=2?Ut(i[1].coordinate-i[0].coordinate):1,S=r9(o,y,g);return l==="equidistantPreserveStart"?o9(y,S,v,i,a):(l==="preserveStart"||l==="preserveStartEnd"?h=u9(y,S,v,i,a,l==="preserveStartEnd"):h=c9(y,S,v,i,a),h.filter(x=>x.isShow))}var d9=e=>{var{ticks:t,label:n,labelGapWithTick:r=5,tickSize:i=0,tickMargin:o=0}=e,a=0;if(t){t.forEach(u=>{if(u){var d=u.getBoundingClientRect();d.width>a&&(a=d.width)}});var s=n?n.getBoundingClientRect().width:0,l=i+o,c=a+l+s+(n?r:0);return Math.round(c)}return 0},f9=["axisLine","width","height","className","hide","ticks"],p9=["viewBox"],h9=["viewBox"];function Dm(e,t){if(e==null)return{};var n,r,i=m9(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function m9(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Mo(){return Mo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mo.apply(null,arguments)}function Jw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Dt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jw(Object(n),!0).forEach(function(r){g9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function g9(e,t,n){return(t=v9(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v9(e){var t=y9(e,"string");return typeof t=="symbol"?t:t+""}function y9(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var my={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"};function b9(e){var{x:t,y:n,width:r,height:i,orientation:o,mirror:a,axisLine:s,otherSvgProps:l}=e;if(!s)return null;var c=Dt(Dt(Dt({},l),vt(s,!1)),{},{fill:"none"});if(o==="top"||o==="bottom"){var u=+(o==="top"&&!a||o==="bottom"&&a);c=Dt(Dt({},c),{},{x1:t,y1:n+u*i,x2:t+r,y2:n+u*i})}else{var d=+(o==="left"&&!a||o==="right"&&a);c=Dt(Dt({},c),{},{x1:t+d*r,y1:n,x2:t+d*r,y2:n+i})}return _.createElement("line",Mo({},c,{className:oe("recharts-cartesian-axis-line",Co(s,"className"))}))}function x9(e,t,n,r,i,o,a,s,l){var c,u,d,p,h,g,m=s?-1:1,v=e.tickSize||a,y=ge(e.tickCoord)?e.tickCoord:e.coordinate;switch(o){case"top":c=u=e.coordinate,p=n+ +!s*i,d=p-m*v,g=d-m*l,h=y;break;case"left":d=p=e.coordinate,u=t+ +!s*r,c=u-m*v,h=c-m*l,g=y;break;case"right":d=p=e.coordinate,u=t+ +s*r,c=u+m*v,h=c+m*l,g=y;break;default:c=u=e.coordinate,p=n+ +s*i,d=p+m*v,g=d+m*l,h=y;break}return{line:{x1:c,y1:d,x2:u,y2:p},tick:{x:h,y:g}}}function w9(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function O9(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function S9(e){var{option:t,tickProps:n,value:r}=e,i,o=oe(n.className,"recharts-cartesian-axis-tick-value");if(_.isValidElement(t))i=_.cloneElement(t,Dt(Dt({},n),{},{className:o}));else if(typeof t=="function")i=t(Dt(Dt({},n),{},{className:o}));else{var a="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(a=oe(a,t?.className)),i=_.createElement(cf,Mo({},n,{className:a}),r)}return i}function E9(e){var{ticks:t=[],tick:n,tickLine:r,stroke:i,tickFormatter:o,unit:a,padding:s,tickTextProps:l,orientation:c,mirror:u,x:d,y:p,width:h,height:g,tickSize:m,tickMargin:v,fontSize:y,letterSpacing:S,getTicksConfig:x,events:b}=e,O=hy(Dt(Dt({},x),{},{ticks:t}),y,S),E=w9(c,u),C=O9(c,u),T=Lr(x),k=vt(n,!1),R=Dt(Dt({},T),{},{fill:"none"},vt(r,!1)),M=O.map((P,D)=>{var{line:j,tick:N}=x9(P,d,p,h,g,c,m,u,v),L=Dt(Dt(Dt(Dt({textAnchor:E,verticalAnchor:C},T),{},{stroke:"none",fill:i},k),N),{},{index:D,payload:P,visibleTicksCount:O.length,tickFormatter:o,padding:s},l);return _.createElement(Qt,Mo({className:"recharts-cartesian-axis-tick",key:"tick-".concat(P.value,"-").concat(P.coordinate,"-").concat(P.tickCoord)},Md(b,P,D)),r&&_.createElement("line",Mo({},R,j,{className:oe("recharts-cartesian-axis-tick-line",Co(r,"className"))})),n&&_.createElement(S9,{option:n,tickProps:L,value:"".concat(typeof o=="function"?o(P.value,D):P.value).concat(a||"")}))});return M.length>0?_.createElement("g",{className:"recharts-cartesian-axis-ticks"},M):null}var _9=I.forwardRef((e,t)=>{var{axisLine:n,width:r,height:i,className:o,hide:a,ticks:s}=e,l=Dm(e,f9),[c,u]=I.useState(""),[d,p]=I.useState(""),h=I.useRef([]);I.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var m;return d9({ticks:h.current,label:(m=e.labelRef)===null||m===void 0?void 0:m.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var g=I.useCallback(m=>{if(m){var v=m.getElementsByClassName("recharts-cartesian-axis-tick-value");h.current=Array.from(v);var y=v[0];if(y){var S=window.getComputedStyle(y),x=S.fontSize,b=S.letterSpacing;(x!==c||b!==d)&&(u(x),p(b))}}},[c,d]);return a||r!=null&&r<=0||i!=null&&i<=0?null:_.createElement(Qt,{className:oe("recharts-cartesian-axis",o),ref:g},_.createElement(b9,{x:e.x,y:e.y,width:r,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:Lr(e)}),_.createElement(E9,{ticks:s,tick:e.tick,tickLine:e.tickLine,stroke:e.stroke,tickFormatter:e.tickFormatter,unit:e.unit,padding:e.padding,tickTextProps:e.tickTextProps,orientation:e.orientation,mirror:e.mirror,x:e.x,y:e.y,width:e.width,height:e.height,tickSize:e.tickSize,tickMargin:e.tickMargin,fontSize:c,letterSpacing:d,getTicksConfig:e,events:l}),_.createElement(Mz,{x:e.x,y:e.y,width:e.width,height:e.height},_.createElement(zz,{label:e.label}),e.children))}),P9=_.memo(_9,(e,t)=>{var{viewBox:n}=e,r=Dm(e,p9),{viewBox:i}=t,o=Dm(t,h9);return _a(n,i)&&_a(r,o)}),gy=_.forwardRef((e,t)=>{var n=en(e,my);return _.createElement(P9,Mo({},n,{ref:t}))});gy.displayName="CartesianAxis";var C9=["x1","y1","x2","y2","key"],T9=["offset"],A9=["xAxisId","yAxisId"],k9=["xAxisId","yAxisId"];function Qw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qw(Object(n),!0).forEach(function(r){M9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function M9(e,t,n){return(t=j9(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j9(e){var t=N9(e,"string");return typeof t=="symbol"?t:t+""}function N9(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vo(){return vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vo.apply(null,arguments)}function qu(e,t){if(e==null)return{};var n,r,i=R9(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function R9(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var D9=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:n,x:r,y:i,width:o,height:a,ry:s}=e;return _.createElement("rect",{x:r,y:i,ry:s,width:o,height:a,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function NT(e,t){var n;if(_.isValidElement(e))n=_.cloneElement(e,t);else if(typeof e=="function")n=e(t);else{var{x1:r,y1:i,x2:o,y2:a,key:s}=t,l=qu(t,C9),c=Lr(l),{offset:u}=c,d=qu(c,T9);n=_.createElement("line",vo({},d,{x1:r,y1:i,x2:o,y2:a,fill:"none",key:s}))}return n}function I9(e){var{x:t,width:n,horizontal:r=!0,horizontalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:o,yAxisId:a}=e,s=qu(e,A9),l=i.map((c,u)=>{var d=sn(sn({},s),{},{x1:t,y1:c,x2:t+n,y2:c,key:"line-".concat(u),index:u});return NT(r,d)});return _.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function $9(e){var{y:t,height:n,vertical:r=!0,verticalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:o,yAxisId:a}=e,s=qu(e,k9),l=i.map((c,u)=>{var d=sn(sn({},s),{},{x1:c,y1:t,x2:c,y2:t+n,key:"line-".concat(u),index:u});return NT(r,d)});return _.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function L9(e){var{horizontalFill:t,fillOpacity:n,x:r,y:i,width:o,height:a,horizontalPoints:s,horizontal:l=!0}=e;if(!l||!t||!t.length)return null;var c=s.map(d=>Math.round(d+i-i)).sort((d,p)=>d-p);i!==c[0]&&c.unshift(0);var u=c.map((d,p)=>{var h=!c[p+1],g=h?i+a-d:c[p+1]-d;if(g<=0)return null;var m=p%t.length;return _.createElement("rect",{key:"react-".concat(p),y:d,x:r,height:g,width:o,stroke:"none",fill:t[m],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return _.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}function F9(e){var{vertical:t=!0,verticalFill:n,fillOpacity:r,x:i,y:o,width:a,height:s,verticalPoints:l}=e;if(!t||!n||!n.length)return null;var c=l.map(d=>Math.round(d+i-i)).sort((d,p)=>d-p);i!==c[0]&&c.unshift(0);var u=c.map((d,p)=>{var h=!c[p+1],g=h?i+a-d:c[p+1]-d;if(g<=0)return null;var m=p%n.length;return _.createElement("rect",{key:"react-".concat(p),x:d,y:o,width:g,height:s,stroke:"none",fill:n[m],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return _.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}var B9=(e,t)=>{var{xAxis:n,width:r,height:i,offset:o}=e;return TP(hy(sn(sn(sn({},my),n),{},{ticks:AP(n),viewBox:{x:0,y:0,width:r,height:i}})),o.left,o.left+o.width,t)},z9=(e,t)=>{var{yAxis:n,width:r,height:i,offset:o}=e;return TP(hy(sn(sn(sn({},my),n),{},{ticks:AP(n),viewBox:{x:0,y:0,width:r,height:i}})),o.top,o.top+o.height,t)},V9={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0};function uf(e){var t=RP(),n=DP(),r=NP(),i=sn(sn({},en(e,V9)),{},{x:ge(e.x)?e.x:r.left,y:ge(e.y)?e.y:r.top,width:ge(e.width)?e.width:r.width,height:ge(e.height)?e.height:r.height}),{xAxisId:o,yAxisId:a,x:s,y:l,width:c,height:u,syncWithTicks:d,horizontalValues:p,verticalValues:h}=i,g=Cn(),m=he(k=>G1(k,"xAxis",o,g)),v=he(k=>G1(k,"yAxis",a,g));if(!ge(c)||c<=0||!ge(u)||u<=0||!ge(s)||s!==+s||!ge(l)||l!==+l)return null;var y=i.verticalCoordinatesGenerator||B9,S=i.horizontalCoordinatesGenerator||z9,{horizontalPoints:x,verticalPoints:b}=i;if((!x||!x.length)&&typeof S=="function"){var O=p&&p.length,E=S({yAxis:v?sn(sn({},v),{},{ticks:O?p:v.ticks}):void 0,width:t,height:n,offset:r},O?!0:d);js(Array.isArray(E),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof E,"]")),Array.isArray(E)&&(x=E)}if((!b||!b.length)&&typeof y=="function"){var C=h&&h.length,T=y({xAxis:m?sn(sn({},m),{},{ticks:C?h:m.ticks}):void 0,width:t,height:n,offset:r},C?!0:d);js(Array.isArray(T),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof T,"]")),Array.isArray(T)&&(b=T)}return _.createElement("g",{className:"recharts-cartesian-grid"},_.createElement(D9,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),_.createElement(L9,vo({},i,{horizontalPoints:x})),_.createElement(F9,vo({},i,{verticalPoints:b})),_.createElement(I9,vo({},i,{offset:r,horizontalPoints:x,xAxis:m,yAxis:v})),_.createElement($9,vo({},i,{offset:r,verticalPoints:b,xAxis:m,yAxis:v})))}uf.displayName="CartesianGrid";var RT=(e,t,n,r)=>Ni(e,"xAxis",t,r),DT=(e,t,n,r)=>ji(e,"xAxis",t,r),IT=(e,t,n,r)=>Ni(e,"yAxis",n,r),$T=(e,t,n,r)=>ji(e,"yAxis",n,r),W9=V([Ce,RT,IT,DT,$T],(e,t,n,r,i)=>Bi(e,"xAxis")?Xs(t,r,!1):Xs(n,i,!1)),U9=(e,t,n,r,i)=>i;function H9(e){return e.type==="line"}var q9=V([nf,U9],(e,t)=>e.filter(H9).find(n=>n.id===t)),K9=V([Ce,RT,IT,DT,$T,q9,W9,Zd],(e,t,n,r,i,o,a,s)=>{var{chartData:l,dataStartIndex:c,dataEndIndex:u}=s;if(!(o==null||t==null||n==null||r==null||i==null||r.length===0||i.length===0||a==null)){var{dataKey:d,data:p}=o,h;if(p!=null&&p.length>0?h=p:h=l?.slice(c,u+1),h!=null)return mU({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataKey:d,bandSize:a,displayedData:h})}}),Y9=["id"],G9=["type","layout","connectNulls","needClip"],X9=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function eO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Nn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eO(Object(n),!0).forEach(function(r){Z9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Z9(e,t,n){return(t=J9(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J9(e){var t=Q9(e,"string");return typeof t=="symbol"?t:t+""}function Q9(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vy(e,t){if(e==null)return{};var n,r,i=eU(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function eU(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function jo(){return jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jo.apply(null,arguments)}var tU=e=>{var{dataKey:t,name:n,stroke:r,legendType:i,hide:o}=e;return[{inactive:o,dataKey:t,type:i,color:r,value:Ra(n,t),payload:e}]};function nU(e){var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:o,name:a,hide:s,unit:l}=e;return{dataDefinedOnItem:n,positions:void 0,settings:{stroke:r,strokeWidth:i,fill:o,dataKey:t,nameKey:void 0,name:Ra(a,t),hide:s,type:e.tooltipType,color:e.stroke,unit:l}}}var LT=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function rU(e,t){for(var n=e.length%2!==0?[...e,0]:e,r=[],i=0;i<t;++i)r=[...r,...n];return r}var iU=(e,t,n)=>{var r=n.reduce((d,p)=>d+p);if(!r)return LT(t,e);for(var i=Math.floor(e/r),o=e%r,a=t-e,s=[],l=0,c=0;l<n.length;c+=n[l],++l)if(c+n[l]>o){s=[...n.slice(0,l),o-c];break}var u=s.length%2===0?[0,a]:[a];return[...rU(n,i),...s,...u].map(d=>"".concat(d,"px")).join(", ")};function oU(e,t){var n;if(_.isValidElement(e))n=_.cloneElement(e,t);else if(typeof e=="function")n=e(t);else{var r=oe("recharts-line-dot",typeof e!="boolean"?e.className:"");n=_.createElement(fT,jo({},t,{className:r}))}return n}function aU(e,t){return e==null?!1:t?!0:e.length===1}function sU(e){var{clipPathId:t,points:n,props:r}=e,{dot:i,dataKey:o,needClip:a}=r;if(!aU(n,i))return null;var{id:s}=r,l=vy(r,Y9),c=b_(i),u=Lr(l),d=vt(i,!0),p=n.map((g,m)=>{var v=Nn(Nn(Nn({key:"dot-".concat(m),r:3},u),d),{},{index:m,cx:g.x,cy:g.y,dataKey:o,value:g.value,payload:g.payload,points:n});return oU(i,v)}),h={clipPath:a?"url(#clipPath-".concat(c?"":"dots-").concat(t,")"):void 0};return _.createElement(Qt,jo({className:"recharts-line-dots",key:"dots"},h),p)}function lU(e){var{showLabels:t,children:n,points:r}=e,i=I.useMemo(()=>r?.map(o=>{var a={x:o.x,y:o.y,width:0,height:0};return Nn(Nn({},a),{},{value:o.value,payload:o.payload,viewBox:a,parentViewBox:void 0,fill:void 0})}),[r]);return _.createElement(uT,{value:t?i:null},n)}function tO(e){var{clipPathId:t,pathRef:n,points:r,strokeDasharray:i,props:o}=e,{type:a,layout:s,connectNulls:l,needClip:c}=o,u=vy(o,G9),d=Nn(Nn({},vt(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:c?"url(#clipPath-".concat(t,")"):void 0,points:r,type:a,layout:s,connectNulls:l,strokeDasharray:i??o.strokeDasharray});return _.createElement(_.Fragment,null,r?.length>1&&_.createElement(Hg,jo({},d,{pathRef:n})),_.createElement(sU,{points:r,clipPathId:t,props:o}))}function cU(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function uU(e){var{clipPathId:t,props:n,pathRef:r,previousPointsRef:i,longestAnimatedLengthRef:o}=e,{points:a,strokeDasharray:s,isAnimationActive:l,animationBegin:c,animationDuration:u,animationEasing:d,animateNewValues:p,width:h,height:g,onAnimationEnd:m,onAnimationStart:v}=n,y=i.current,S=Nl(n,"recharts-line-"),[x,b]=I.useState(!1),O=!x,E=I.useCallback(()=>{typeof m=="function"&&m(),b(!1)},[m]),C=I.useCallback(()=>{typeof v=="function"&&v(),b(!0)},[v]),T=cU(r.current),k=o.current;return _.createElement(lU,{points:a,showLabels:O},n.children,_.createElement(jl,{animationId:S,begin:c,duration:u,isActive:l,easing:d,onAnimationEnd:E,onAnimationStart:C,key:S},R=>{var M=wt(k,T+k,R),P=Math.min(M,T),D;if(l)if(s){var j="".concat(s).split(/[,\s]+/gim).map(B=>parseFloat(B));D=iU(P,T,j)}else D=LT(T,P);else D=s==null?void 0:String(s);if(y){var N=y.length/a.length,L=R===1?a:a.map((B,K)=>{var z=Math.floor(K*N);if(y[z]){var F=y[z];return Nn(Nn({},B),{},{x:wt(F.x,B.x,R),y:wt(F.y,B.y,R)})}return p?Nn(Nn({},B),{},{x:wt(h*2,B.x,R),y:wt(g/2,B.y,R)}):Nn(Nn({},B),{},{x:B.x,y:B.y})});return i.current=L,_.createElement(tO,{props:n,points:L,clipPathId:t,pathRef:r,strokeDasharray:D})}return R>0&&T>0&&(i.current=a,o.current=P),_.createElement(tO,{props:n,points:a,clipPathId:t,pathRef:r,strokeDasharray:D})}),_.createElement(Qv,{label:n.label}))}function dU(e){var{clipPathId:t,props:n}=e,r=I.useRef(null),i=I.useRef(0),o=I.useRef(null);return _.createElement(uU,{props:n,clipPathId:t,previousPointsRef:r,longestAnimatedLengthRef:i,pathRef:o})}var fU=(e,t)=>({x:e.x,y:e.y,value:e.value,errorVal:at(e.payload,t)});class pU extends I.Component{render(){var t,{hide:n,dot:r,points:i,className:o,xAxisId:a,yAxisId:s,top:l,left:c,width:u,height:d,id:p,needClip:h}=this.props;if(n)return null;var g=oe("recharts-line",o),m=p,{r:v=3,strokeWidth:y=2}=(t=vt(r,!1))!==null&&t!==void 0?t:{r:3,strokeWidth:2},S=b_(r),x=v*2+y;return _.createElement(_.Fragment,null,_.createElement(Qt,{className:g},h&&_.createElement("defs",null,_.createElement(_T,{clipPathId:m,xAxisId:a,yAxisId:s}),!S&&_.createElement("clipPath",{id:"clipPath-dots-".concat(m)},_.createElement("rect",{x:c-x/2,y:l-x/2,width:u+x,height:d+x}))),_.createElement(ET,{xAxisId:a,yAxisId:s,data:i,dataPointFormatter:fU,errorBarOffset:0},_.createElement(dU,{props:this.props,clipPathId:m}))),_.createElement(RW,{activeDot:this.props.activeDot,points:i,mainColor:this.props.stroke,itemDataKey:this.props.dataKey}))}}var FT={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:!zi.isSsr,label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0};function hU(e){var t=en(e,FT),{activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:o,animationEasing:a,connectNulls:s,dot:l,hide:c,isAnimationActive:u,label:d,legendType:p,xAxisId:h,yAxisId:g,id:m}=t,v=vy(t,X9),{needClip:y}=fy(h,g),S=uy(),x=Ud(),b=Cn(),O=he(R=>K9(R,h,g,b,m));if(x!=="horizontal"&&x!=="vertical"||O==null||S==null)return null;var{height:E,width:C,x:T,y:k}=S;return _.createElement(pU,jo({},v,{id:m,connectNulls:s,dot:l,activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:o,animationEasing:a,isAnimationActive:u,hide:c,label:d,legendType:p,xAxisId:h,yAxisId:g,points:O,layout:x,height:E,width:C,left:T,top:k,needClip:y}))}function mU(e){var{layout:t,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:o,dataKey:a,bandSize:s,displayedData:l}=e;return l.map((c,u)=>{var d=at(c,a);if(t==="horizontal"){var p=jx({axis:n,ticks:i,bandSize:s,entry:c,index:u}),h=mt(d)?null:r.scale(d);return{x:p,y:h,value:d,payload:c}}var g=mt(d)?null:n.scale(d),m=jx({axis:r,ticks:o,bandSize:s,entry:c,index:u});return g==null||m==null?null:{x:g,y:m,value:d,payload:c}}).filter(Boolean)}function gU(e){var t=en(e,FT),n=Cn();return _.createElement(ly,{id:t.id,type:"line"},r=>_.createElement(_.Fragment,null,_.createElement(bT,{legendPayload:tU(t)}),_.createElement(sy,{fn:nU,args:t}),_.createElement(wT,{type:"line",id:r,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:n}),_.createElement(hU,jo({},t,{id:r}))))}var pa=_.memo(gU);pa.displayName="Line";var vU=["dangerouslySetInnerHTML","ticks"],yU=["id"],bU=["domain"],xU=["domain"];function Im(){return Im=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Im.apply(null,arguments)}function Ku(e,t){if(e==null)return{};var n,r,i=wU(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function wU(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function OU(e){var t=At();return I.useEffect(()=>(t(wW(e)),()=>{t(OW(e))}),[e,t]),null}var SU=e=>{var{xAxisId:t,className:n}=e,r=he(Wg),i=Cn(),o="xAxis",a=he(v=>za(v,o,t,i)),s=he(v=>PC(v,o,t,i)),l=he(v=>OC(v,t)),c=he(v=>t3(v,t)),u=he(v=>Q2(v,t));if(l==null||c==null||u==null)return null;var{dangerouslySetInnerHTML:d,ticks:p}=e,h=Ku(e,vU),{id:g}=u,m=Ku(u,yU);return _.createElement(gy,Im({},h,m,{scale:a,x:c.x,y:c.y,width:l.width,height:l.height,className:oe("recharts-".concat(o," ").concat(o),n),viewBox:r,ticks:s}))},EU={allowDataOverflow:An.allowDataOverflow,allowDecimals:An.allowDecimals,allowDuplicatedCategory:An.allowDuplicatedCategory,height:An.height,hide:!1,mirror:An.mirror,orientation:An.orientation,padding:An.padding,reversed:An.reversed,scale:An.scale,tickCount:An.tickCount,type:An.type,xAxisId:0},_U=e=>{var t,n,r,i,o,a=en(e,EU);return _.createElement(_.Fragment,null,_.createElement(OU,{interval:(t=a.interval)!==null&&t!==void 0?t:"preserveEnd",id:a.xAxisId,scale:a.scale,type:a.type,padding:a.padding,allowDataOverflow:a.allowDataOverflow,domain:a.domain,dataKey:a.dataKey,allowDuplicatedCategory:a.allowDuplicatedCategory,allowDecimals:a.allowDecimals,tickCount:a.tickCount,includeHidden:(n=a.includeHidden)!==null&&n!==void 0?n:!1,reversed:a.reversed,ticks:a.ticks,height:a.height,orientation:a.orientation,mirror:a.mirror,hide:a.hide,unit:a.unit,name:a.name,angle:(r=a.angle)!==null&&r!==void 0?r:0,minTickGap:(i=a.minTickGap)!==null&&i!==void 0?i:5,tick:(o=a.tick)!==null&&o!==void 0?o:!0,tickFormatter:a.tickFormatter}),_.createElement(SU,a))},PU=(e,t)=>{var{domain:n}=e,r=Ku(e,bU),{domain:i}=t,o=Ku(t,xU);return _a(r,o)?Array.isArray(n)&&n.length===2&&Array.isArray(i)&&i.length===2?n[0]===i[0]&&n[1]===i[1]:_a({domain:n},{domain:i}):!1},df=_.memo(_U,PU);df.displayName="XAxis";var CU=["dangerouslySetInnerHTML","ticks"],TU=["id"],AU=["domain"],kU=["domain"];function $m(){return $m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$m.apply(null,arguments)}function Yu(e,t){if(e==null)return{};var n,r,i=MU(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function MU(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function jU(e){var t=At();return I.useEffect(()=>(t(SW(e)),()=>{t(EW(e))}),[e,t]),null}var NU=e=>{var{yAxisId:t,className:n,width:r,label:i}=e,o=I.useRef(null),a=I.useRef(null),s=he(Wg),l=Cn(),c=At(),u="yAxis",d=he(O=>za(O,u,t,l)),p=he(O=>SC(O,t)),h=he(O=>r3(O,t)),g=he(O=>PC(O,u,t,l)),m=he(O=>eC(O,t));if(I.useLayoutEffect(()=>{if(!(r!=="auto"||!p||Jv(i)||I.isValidElement(i)||m==null)){var O=o.current;if(O){var E=O.getCalculatedWidth();Math.round(p.width)!==Math.round(E)&&c(_W({id:t,width:E}))}}},[g,p,c,i,t,r,m]),p==null||h==null||m==null)return null;var{dangerouslySetInnerHTML:v,ticks:y}=e,S=Yu(e,CU),{id:x}=m,b=Yu(m,TU);return _.createElement(gy,$m({},S,b,{ref:o,labelRef:a,scale:d,x:h.x,y:h.y,tickTextProps:r==="auto"?{width:void 0}:{width:r},width:p.width,height:p.height,className:oe("recharts-".concat(u," ").concat(u),n),viewBox:s,ticks:g}))},RU={allowDataOverflow:kn.allowDataOverflow,allowDecimals:kn.allowDecimals,allowDuplicatedCategory:kn.allowDuplicatedCategory,hide:!1,mirror:kn.mirror,orientation:kn.orientation,padding:kn.padding,reversed:kn.reversed,scale:kn.scale,tickCount:kn.tickCount,type:kn.type,width:kn.width,yAxisId:0},DU=e=>{var t,n,r,i,o,a=en(e,RU);return _.createElement(_.Fragment,null,_.createElement(jU,{interval:(t=a.interval)!==null&&t!==void 0?t:"preserveEnd",id:a.yAxisId,scale:a.scale,type:a.type,domain:a.domain,allowDataOverflow:a.allowDataOverflow,dataKey:a.dataKey,allowDuplicatedCategory:a.allowDuplicatedCategory,allowDecimals:a.allowDecimals,tickCount:a.tickCount,padding:a.padding,includeHidden:(n=a.includeHidden)!==null&&n!==void 0?n:!1,reversed:a.reversed,ticks:a.ticks,width:a.width,orientation:a.orientation,mirror:a.mirror,hide:a.hide,unit:a.unit,name:a.name,angle:(r=a.angle)!==null&&r!==void 0?r:0,minTickGap:(i=a.minTickGap)!==null&&i!==void 0?i:5,tick:(o=a.tick)!==null&&o!==void 0?o:!0,tickFormatter:a.tickFormatter}),_.createElement(NU,a))},IU=(e,t)=>{var{domain:n}=e,r=Yu(e,AU),{domain:i}=t,o=Yu(t,kU);return _a(r,o)?Array.isArray(n)&&n.length===2&&Array.isArray(i)&&i.length===2?n[0]===i[0]&&n[1]===i[1]:_a({domain:n},{domain:i}):!1},il=_.memo(DU,IU);il.displayName="YAxis";var _c={exports:{}},yh={};/**
|
|
200
200
|
* @license React
|
|
201
201
|
* use-sync-external-store-with-selector.production.js
|
|
202
202
|
*
|
|
@@ -212,7 +212,7 @@ Take a look at the reducer(s) handling this action type: ${h.type}.
|
|
|
212
212
|
*
|
|
213
213
|
* This source code is licensed under the MIT license found in the
|
|
214
214
|
* LICENSE file in the root directory of this source tree.
|
|
215
|
-
*/var rO;function LU(){return rO||(rO=1,process.env.NODE_ENV!=="production"&&(function(){function e(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=I,n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,i=t.useRef,o=t.useEffect,a=t.useMemo,s=t.useDebugValue;bh.useSyncExternalStoreWithSelector=function(l,c,u,d,p){var h=i(null);if(h.current===null){var g={hasValue:!1,value:null};h.current=g}else g=h.current;h=a(function(){function v(O){if(!y){if(y=!0,S=O,O=d(O),p!==void 0&&g.hasValue){var E=g.value;if(p(E,O))return x=E}return x=O}if(E=x,n(S,O))return E;var C=d(O);return p!==void 0&&p(E,C)?(S=O,E):(S=O,x=C)}var y=!1,S,x,b=u===void 0?null:u;return[function(){return v(c())},b===null?void 0:function(){return v(b())}]},[c,u,d,p]);var m=r(l,h[0],h[1]);return o(function(){g.hasValue=!0,g.value=m},[m]),s(m),m},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),bh}var iO;function FU(){return iO||(iO=1,process.env.NODE_ENV==="production"?_c.exports=$U():_c.exports=LU()),_c.exports}FU();function BU(e){e()}function zU(){let e=null,t=null;return{clear(){e=null,t=null},notify(){BU(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var oO={notify(){},get:()=>[]};function VU(e,t){let n,r=oO,i=0,o=!1;function a(m){u();const v=r.subscribe(m);let y=!1;return()=>{y||(y=!0,v(),d())}}function s(){r.notify()}function l(){g.onStateChange&&g.onStateChange()}function c(){return o}function u(){i++,n||(n=e.subscribe(l),r=zU())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=oO)}function p(){o||(o=!0,u())}function h(){o&&(o=!1,d())}const g={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:p,tryUnsubscribe:h,getListeners:()=>r};return g}var WU=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",UU=WU(),HU=()=>typeof navigator<"u"&&navigator.product==="ReactNative",qU=HU(),KU=()=>UU||qU?_.useLayoutEffect:_.useEffect,YU=KU(),GU=Symbol.for("react-redux-context"),XU=typeof globalThis<"u"?globalThis:{};function ZU(){if(!_.createContext)return{};const e=XU[GU]??=new Map;let t=e.get(_.createContext);return t||(t=_.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(_.createContext,t)),t}var JU=ZU();function QU(e){const{children:t,context:n,serverState:r,store:i}=e,o=_.useMemo(()=>{const l=VU(i),c={store:i,subscription:l,getServerState:r?()=>r:void 0};if(process.env.NODE_ENV==="production")return c;{const{identityFunctionCheck:u="once",stabilityCheck:d="once"}=e;return Object.assign(c,{stabilityCheck:d,identityFunctionCheck:u})}},[i,r]),a=_.useMemo(()=>i.getState(),[i]);YU(()=>{const{subscription:l}=o;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),a!==i.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[o,a]);const s=n||JU;return _.createElement(s.Provider,{value:o},t)}var eH=QU,tH=(e,t)=>t,yy=V([tH,Ce,X2,Ft,zC,gi,l8,$t],p8),by=e=>{var t=e.currentTarget.getBoundingClientRect(),n=t.width/e.currentTarget.offsetWidth,r=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/n),chartY:Math.round((e.clientY-t.top)/r)}},BT=rr("mouseClick"),zT=Al();zT.startListening({actionCreator:BT,effect:(e,t)=>{var n=e.payload,r=yy(t.getState(),by(n));r?.activeIndex!=null&&t.dispatch(g3({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var Lm=rr("mouseMove"),VT=Al();VT.startListening({actionCreator:Lm,effect:(e,t)=>{var n=e.payload,r=t.getState(),i=Vv(r,r.tooltip.settings.shared),o=yy(r,by(n));i==="axis"&&(o?.activeIndex!=null?t.dispatch(RC({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate})):t.dispatch(NC()))}});var aO={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index"},WT=Un({name:"rootProps",initialState:aO,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(n=t.payload.barGap)!==null&&n!==void 0?n:aO.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className}}}),nH=WT.reducer,{updateOptions:rH}=WT.actions,UT=Un({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:iH}=UT.actions,oH=UT.reducer,HT=rr("keyDown"),qT=rr("focus"),xy=Al();xy.startListening({actionCreator:HT,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:i}=n.tooltip,o=e.payload;if(!(o!=="ArrowRight"&&o!=="ArrowLeft"&&o!=="Enter")){var a=Number(Wv(i,Wa(n))),s=gi(n);if(o==="Enter"){var l=Bu(n,"axis","hover",String(i.index));t.dispatch(Am({active:!i.active,activeIndex:i.index,activeDataKey:i.dataKey,activeCoordinate:l}));return}var c=s3(n),u=c==="left-to-right"?1:-1,d=o==="ArrowRight"?1:-1,p=a+d*u;if(!(s==null||p>=s.length||p<0)){var h=Bu(n,"axis","hover",String(p));t.dispatch(Am({active:!0,activeIndex:p.toString(),activeDataKey:void 0,activeCoordinate:h}))}}}}});xy.startListening({actionCreator:qT,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:i}=n.tooltip;if(!i.active&&i.index==null){var o="0",a=Bu(n,"axis","hover",String(o));t.dispatch(Am({activeDataKey:void 0,active:!0,activeIndex:o,activeCoordinate:a}))}}}});var Zn=rr("externalEvent"),KT=Al();KT.startListening({actionCreator:Zn,effect:(e,t)=>{if(e.payload.handler!=null){var n=t.getState(),r={activeCoordinate:J3(n),activeDataKey:HC(n),activeIndex:Ri(n),activeLabel:UC(n),activeTooltipIndex:Ri(n),isTooltipActive:Q3(n)};e.payload.handler(r,e.payload.reactEvent)}}});var aH=V([Va],e=>e.tooltipItemPayloads),sH=V([aH,Vl,(e,t,n)=>t,(e,t,n)=>n],(e,t,n,r)=>{var i=e.find(s=>s.settings.dataKey===r);if(i!=null){var{positions:o}=i;if(o!=null){var a=t(o,n);return a}}}),YT=rr("touchMove"),GT=Al();GT.startListening({actionCreator:YT,effect:(e,t)=>{var n=e.payload,r=t.getState(),i=Vv(r,r.tooltip.settings.shared);if(i==="axis"){var o=yy(r,by({clientX:n.touches[0].clientX,clientY:n.touches[0].clientY,currentTarget:n.currentTarget}));o?.activeIndex!=null&&t.dispatch(RC({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate}))}else if(i==="item"){var a,s=n.touches[0],l=document.elementFromPoint(s.clientX,s.clientY);if(!l||!l.getAttribute)return;var c=l.getAttribute(MP),u=(a=l.getAttribute(jP))!==null&&a!==void 0?a:void 0,d=sH(t.getState(),c,u);t.dispatch(jC({activeDataKey:u,activeIndex:c,activeCoordinate:d}))}}});var lH=Q_({brush:q7,cartesianAxis:PW,chartData:A8,errorBars:HW,graphicalItems:HV,layout:w5,legend:cL,options:E8,polarAxis:lV,polarOptions:oH,referenceElements:Q7,rootProps:nH,tooltip:v3}),cH=function(t){return q$({reducer:lH,preloadedState:t,middleware:n=>n({serializableCheck:!1}).concat([zT.middleware,VT.middleware,xy.middleware,KT.middleware,GT.middleware]),devTools:zi.devToolsEnabled})};function XT(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,i=Cn(),o=I.useRef(null);if(i)return n;o.current==null&&(o.current=cH(t));var a=$g;return _.createElement(eH,{context:a,store:o.current},n)}function ZT(e){var{layout:t,width:n,height:r,margin:i}=e,o=At(),a=Cn();return I.useEffect(()=>{a||(o(y5(t)),o(b5({width:n,height:r})),o(v5(i)))},[o,a,t,n,r,i]),null}function JT(e){var t=At();return I.useEffect(()=>{t(rH(e))},[t,e]),null}var uH=["children"];function dH(e,t){if(e==null)return{};var n,r,i=fH(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function fH(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Gu(){return Gu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gu.apply(null,arguments)}var pH={width:"100%",height:"100%"},hH=I.forwardRef((e,t)=>{var n=RP(),r=DP(),i=FP();if(!xa(n)||!xa(r))return null;var{children:o,otherAttributes:a,title:s,desc:l}=e,c,u;return typeof a.tabIndex=="number"?c=a.tabIndex:c=i?0:void 0,typeof a.role=="string"?u=a.role:u=i?"application":void 0,_.createElement(x_,Gu({},a,{title:s,desc:l,role:u,tabIndex:c,width:n,height:r,style:pH,ref:t}),o)}),mH=e=>{var{children:t}=e,n=he(Wd);if(!n)return null;var{width:r,height:i,y:o,x:a}=n;return _.createElement(x_,{width:r,height:i,x:a,y:o},t)},sO=I.forwardRef((e,t)=>{var{children:n}=e,r=dH(e,uH),i=Cn();return i?_.createElement(mH,null,n):_.createElement(hH,Gu({ref:t},r),n)});function gH(){var e=At(),[t,n]=I.useState(null),r=he(X5);return I.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),o=i.width/t.offsetWidth;zn(o)&&o!==r&&e(x5(o))}},[t,e,r]),n}function lO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lO(Object(n),!0).forEach(function(r){yH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yH(e,t,n){return(t=bH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bH(e){var t=xH(e,"string");return typeof t=="symbol"?t:t+""}function xH(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wH=I.forwardRef((e,t)=>{var{children:n,className:r,height:i,onClick:o,onContextMenu:a,onDoubleClick:s,onMouseDown:l,onMouseEnter:c,onMouseLeave:u,onMouseMove:d,onMouseUp:p,onTouchEnd:h,onTouchMove:g,onTouchStart:m,style:v,width:y}=e,S=At(),[x,b]=I.useState(null),[O,E]=I.useState(null);L8();var C=gH(),T=I.useCallback(Y=>{C(Y),typeof t=="function"&&t(Y),b(Y),E(Y)},[C,t,b,E]),k=I.useCallback(Y=>{S(BT(Y)),S(Zn({handler:o,reactEvent:Y}))},[S,o]),R=I.useCallback(Y=>{S(Lm(Y)),S(Zn({handler:c,reactEvent:Y}))},[S,c]),M=I.useCallback(Y=>{S(NC()),S(Zn({handler:u,reactEvent:Y}))},[S,u]),P=I.useCallback(Y=>{S(Lm(Y)),S(Zn({handler:d,reactEvent:Y}))},[S,d]),D=I.useCallback(()=>{S(qT())},[S]),j=I.useCallback(Y=>{S(HT(Y.key))},[S]),N=I.useCallback(Y=>{S(Zn({handler:a,reactEvent:Y}))},[S,a]),L=I.useCallback(Y=>{S(Zn({handler:s,reactEvent:Y}))},[S,s]),B=I.useCallback(Y=>{S(Zn({handler:l,reactEvent:Y}))},[S,l]),K=I.useCallback(Y=>{S(Zn({handler:p,reactEvent:Y}))},[S,p]),z=I.useCallback(Y=>{S(Zn({handler:m,reactEvent:Y}))},[S,m]),F=I.useCallback(Y=>{S(YT(Y)),S(Zn({handler:g,reactEvent:Y}))},[S,g]),G=I.useCallback(Y=>{S(Zn({handler:h,reactEvent:Y}))},[S,h]);return _.createElement(ZC.Provider,{value:x},_.createElement(ED.Provider,{value:O},_.createElement("div",{className:oe("recharts-wrapper",r),style:vH({position:"relative",cursor:"default",width:y,height:i},v),onClick:k,onContextMenu:N,onDoubleClick:L,onFocus:D,onKeyDown:j,onMouseDown:B,onMouseEnter:R,onMouseLeave:M,onMouseMove:P,onMouseUp:K,onTouchEnd:G,onTouchMove:F,onTouchStart:z,ref:T},n)))}),OH=["children","className","width","height","style","compact","title","desc"];function SH(e,t){if(e==null)return{};var n,r,i=EH(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function EH(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var QT=I.forwardRef((e,t)=>{var{children:n,className:r,width:i,height:o,style:a,compact:s,title:l,desc:c}=e,u=SH(e,OH),d=Lr(u);return s?_.createElement(sO,{otherAttributes:d,title:l,desc:c},n):_.createElement(wH,{className:r,style:a,width:i,height:o,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},_.createElement(sO,{otherAttributes:d,title:l,desc:c,ref:t},_.createElement(t9,null,n)))}),_H=["width","height"];function Fm(){return Fm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fm.apply(null,arguments)}function PH(e,t){if(e==null)return{};var n,r,i=CH(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function CH(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var TH={top:5,right:5,bottom:5,left:5},AH={accessibilityLayer:!0,layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:TH,reverseStackOrder:!1,syncMethod:"index"},eA=I.forwardRef(function(t,n){var r,i=en(t.categoricalChartProps,AH),{width:o,height:a}=i,s=PH(i,_H);if(!xa(o)||!xa(a))return null;var{chartName:l,defaultTooltipEventType:c,validateTooltipEventTypes:u,tooltipPayloadSearcher:d,categoricalChartProps:p}=t,h={chartName:l,defaultTooltipEventType:c,validateTooltipEventTypes:u,tooltipPayloadSearcher:d,eventEmitter:void 0};return _.createElement(XT,{preloadedState:{options:h},reduxStoreName:(r=p.id)!==null&&r!==void 0?r:l},_.createElement(AT,{chartData:p.data}),_.createElement(ZT,{width:o,height:a,layout:i.layout,margin:i.margin}),_.createElement(JT,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),_.createElement(QT,Fm({},s,{width:o,height:a,ref:n})))}),kH=["axis"],tA=I.forwardRef((e,t)=>_.createElement(eA,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:kH,tooltipPayloadSearcher:Zv,categoricalChartProps:e,ref:t})),MH=["axis","item"],jH=I.forwardRef((e,t)=>_.createElement(eA,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:MH,tooltipPayloadSearcher:Zv,categoricalChartProps:e,ref:t}));function NH(e){var t=At();return I.useEffect(()=>{t(iH(e))},[t,e]),null}var RH=["width","height","layout"];function Bm(){return Bm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bm.apply(null,arguments)}function DH(e,t){if(e==null)return{};var n,r,i=IH(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function IH(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var $H={top:5,right:5,bottom:5,left:5},LH={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:$H,reverseStackOrder:!1,syncMethod:"index",layout:"radial"},FH=I.forwardRef(function(t,n){var r,i=en(t.categoricalChartProps,LH),{width:o,height:a,layout:s}=i,l=DH(i,RH);if(!xa(o)||!xa(a))return null;var{chartName:c,defaultTooltipEventType:u,validateTooltipEventTypes:d,tooltipPayloadSearcher:p}=t,h={chartName:c,defaultTooltipEventType:u,validateTooltipEventTypes:d,tooltipPayloadSearcher:p,eventEmitter:void 0};return _.createElement(XT,{preloadedState:{options:h},reduxStoreName:(r=i.id)!==null&&r!==void 0?r:c},_.createElement(AT,{chartData:i.data}),_.createElement(ZT,{width:o,height:a,layout:s,margin:i.margin}),_.createElement(JT,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),_.createElement(NH,{cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius}),_.createElement(QT,Bm({width:o,height:a},l,{ref:n})))}),BH=["item"],zH={layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},ff=I.forwardRef((e,t)=>{var n=en(e,zH);return _.createElement(FH,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:BH,tooltipPayloadSearcher:Zv,categoricalChartProps:n,ref:t})});function Ua(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function nA(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function zm(e,t){return zm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},zm(e,t)}function rA(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zm(e,t)}const cO={disabled:!1};var VH=process.env.NODE_ENV!=="production"?f.oneOfType([f.number,f.shape({enter:f.number,exit:f.number,appear:f.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&f.oneOfType([f.string,f.shape({enter:f.string,exit:f.string,active:f.string}),f.shape({enter:f.string,enterDone:f.string,enterActive:f.string,exit:f.string,exitDone:f.string,exitActive:f.string})]);const Xu=I.createContext(null);var WH=function(t){return t.scrollTop},Ss="unmounted",ao="exited",so="entering",ia="entered",Vm="exiting",Fr=(function(e){rA(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?s?(l=ao,o.appearStatus=so):l=ia:r.unmountOnExit||r.mountOnEnter?l=Ss:l=ao,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===Ss?{status:ao}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==so&&a!==ia&&(o=so):(a===so||a===ia)&&(o=Vm)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===so){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:fo.findDOMNode(this);a&&WH(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ao&&this.setState({status:Ss})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[fo.findDOMNode(this),s],c=l[0],u=l[1],d=this.getTimeouts(),p=s?d.appear:d.enter;if(!i&&!a||cO.disabled){this.safeSetState({status:ia},function(){o.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:so},function(){o.props.onEntering(c,u),o.onTransitionEnd(p,function(){o.safeSetState({status:ia},function(){o.props.onEntered(c,u)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:fo.findDOMNode(this);if(!o||cO.disabled){this.safeSetState({status:ao},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Vm},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:ao},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:fo.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Ss)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=nA(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return I.createElement(Xu.Provider,{value:null},typeof a=="function"?a(i,s):I.cloneElement(I.Children.only(a),s))},t})(I.Component);Fr.contextType=Xu;Fr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:f.shape({current:typeof Element>"u"?f.any:function(e,t,n,r,i,o){var a=e[t];return f.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,o)}}),children:f.oneOfType([f.func.isRequired,f.element.isRequired]).isRequired,in:f.bool,mountOnEnter:f.bool,unmountOnExit:f.bool,appear:f.bool,enter:f.bool,exit:f.bool,timeout:function(t){var n=VH;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return n.apply(void 0,[t].concat(i))},addEndListener:f.func,onEnter:f.func,onEntering:f.func,onEntered:f.func,onExit:f.func,onExiting:f.func,onExited:f.func}:{};function Qo(){}Fr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Qo,onEntering:Qo,onEntered:Qo,onExit:Qo,onExiting:Qo,onExited:Qo};Fr.UNMOUNTED=Ss;Fr.EXITED=ao;Fr.ENTERING=so;Fr.ENTERED=ia;Fr.EXITING=Vm;function UH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wy(e,t){var n=function(o){return t&&I.isValidElement(o)?t(o):o},r=Object.create(null);return e&&I.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function HH(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var a,s={};for(var l in t){if(r[l])for(a=0;a<r[l].length;a++){var c=r[l][a];s[r[l][a]]=n(c)}s[l]=n(l)}for(a=0;a<i.length;a++)s[i[a]]=n(i[a]);return s}function yo(e,t,n){return n[t]!=null?n[t]:e.props[t]}function qH(e,t){return wy(e.children,function(n){return I.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:yo(n,"appear",e),enter:yo(n,"enter",e),exit:yo(n,"exit",e)})})}function KH(e,t,n){var r=wy(e.children),i=HH(t,r);return Object.keys(i).forEach(function(o){var a=i[o];if(I.isValidElement(a)){var s=o in t,l=o in r,c=t[o],u=I.isValidElement(c)&&!c.props.in;l&&(!s||u)?i[o]=I.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:yo(a,"exit",e),enter:yo(a,"enter",e)}):!l&&s&&!u?i[o]=I.cloneElement(a,{in:!1}):l&&s&&I.isValidElement(c)&&(i[o]=I.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:yo(a,"exit",e),enter:yo(a,"enter",e)}))}}),i}var YH=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},GH={component:"div",childFactory:function(t){return t}},Oy=(function(e){rA(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=o.handleExited.bind(UH(o));return o.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},o}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,o){var a=o.children,s=o.handleExited,l=o.firstRender;return{children:l?qH(i,s):KH(i,a,s),firstRender:!1}},n.handleExited=function(i,o){var a=wy(this.props.children);i.key in a||(i.props.onExited&&i.props.onExited(o),this.mounted&&this.setState(function(s){var l=ou({},s.children);return delete l[i.key],{children:l}}))},n.render=function(){var i=this.props,o=i.component,a=i.childFactory,s=nA(i,["component","childFactory"]),l=this.state.contextValue,c=YH(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,o===null?I.createElement(Xu.Provider,{value:l},c):I.createElement(Xu.Provider,{value:l},I.createElement(o,s,c))},t})(I.Component);Oy.propTypes=process.env.NODE_ENV!=="production"?{component:f.any,children:f.node,appear:f.bool,enter:f.bool,exit:f.bool,childFactory:f.func}:{};Oy.defaultProps=GH;const uO={};function iA(e,t){const n=_.useRef(uO);return n.current===uO&&(n.current=e(t)),n}const XH=[];function ZH(e){_.useEffect(e,XH)}class pf{static create(){return new pf}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function sa(){const e=iA(pf.create).current;return ZH(e.disposeEffect),e}function JH(e){const{prototype:t={}}=e;return!!t.isReactComponent}function QH(e,t,n,r,i){const o=e[t],a=i||t;if(o==null||typeof window>"u")return null;let s;return typeof o=="function"&&!JH(o)&&(s="Did you accidentally provide a plain function component instead?"),s!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Sy=Ua(f.elementType,QH),oA=e=>e.scrollTop;function Zu(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function eq(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function aA(e,t,n,r){const i=e[t];if(i==null||!Number.isInteger(i)){const o=eq(i);return new RangeError(`Invalid ${r} \`${t}\` of type \`${o}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function sA(e,t,n,r){return e[t]===void 0?null:aA(e,t,n,r)}function Wm(){return null}sA.isRequired=aA;Wm.isRequired=Wm;const lA=process.env.NODE_ENV==="production"?Wm:sA;function tq(e){return Ge("MuiPaper",e)}qe("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const nq=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return rt(o,tq,i)},rq=ve("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(St(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),cA=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiPaper"}),i=kd(),{className:o,component:a="div",elevation:s=1,square:l=!1,variant:c="elevation",...u}=r,d={...r,component:a,elevation:s,square:l,variant:c},p=nq(d);return process.env.NODE_ENV!=="production"&&i.shadows[s]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${s}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${s}]\` is defined.`].join(`
|
|
215
|
+
*/var rO;function LU(){return rO||(rO=1,process.env.NODE_ENV!=="production"&&(function(){function e(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=I,n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,i=t.useRef,o=t.useEffect,a=t.useMemo,s=t.useDebugValue;bh.useSyncExternalStoreWithSelector=function(l,c,u,d,p){var h=i(null);if(h.current===null){var g={hasValue:!1,value:null};h.current=g}else g=h.current;h=a(function(){function v(O){if(!y){if(y=!0,S=O,O=d(O),p!==void 0&&g.hasValue){var E=g.value;if(p(E,O))return x=E}return x=O}if(E=x,n(S,O))return E;var C=d(O);return p!==void 0&&p(E,C)?(S=O,E):(S=O,x=C)}var y=!1,S,x,b=u===void 0?null:u;return[function(){return v(c())},b===null?void 0:function(){return v(b())}]},[c,u,d,p]);var m=r(l,h[0],h[1]);return o(function(){g.hasValue=!0,g.value=m},[m]),s(m),m},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),bh}var iO;function FU(){return iO||(iO=1,process.env.NODE_ENV==="production"?_c.exports=$U():_c.exports=LU()),_c.exports}FU();function BU(e){e()}function zU(){let e=null,t=null;return{clear(){e=null,t=null},notify(){BU(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var oO={notify(){},get:()=>[]};function VU(e,t){let n,r=oO,i=0,o=!1;function a(m){u();const v=r.subscribe(m);let y=!1;return()=>{y||(y=!0,v(),d())}}function s(){r.notify()}function l(){g.onStateChange&&g.onStateChange()}function c(){return o}function u(){i++,n||(n=e.subscribe(l),r=zU())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=oO)}function p(){o||(o=!0,u())}function h(){o&&(o=!1,d())}const g={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:p,tryUnsubscribe:h,getListeners:()=>r};return g}var WU=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",UU=WU(),HU=()=>typeof navigator<"u"&&navigator.product==="ReactNative",qU=HU(),KU=()=>UU||qU?_.useLayoutEffect:_.useEffect,YU=KU(),GU=Symbol.for("react-redux-context"),XU=typeof globalThis<"u"?globalThis:{};function ZU(){if(!_.createContext)return{};const e=XU[GU]??=new Map;let t=e.get(_.createContext);return t||(t=_.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(_.createContext,t)),t}var JU=ZU();function QU(e){const{children:t,context:n,serverState:r,store:i}=e,o=_.useMemo(()=>{const l=VU(i),c={store:i,subscription:l,getServerState:r?()=>r:void 0};if(process.env.NODE_ENV==="production")return c;{const{identityFunctionCheck:u="once",stabilityCheck:d="once"}=e;return Object.assign(c,{stabilityCheck:d,identityFunctionCheck:u})}},[i,r]),a=_.useMemo(()=>i.getState(),[i]);YU(()=>{const{subscription:l}=o;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),a!==i.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[o,a]);const s=n||JU;return _.createElement(s.Provider,{value:o},t)}var eH=QU,tH=(e,t)=>t,yy=V([tH,Ce,X2,Ft,zC,gi,l8,$t],p8),by=e=>{var t=e.currentTarget.getBoundingClientRect(),n=t.width/e.currentTarget.offsetWidth,r=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/n),chartY:Math.round((e.clientY-t.top)/r)}},BT=rr("mouseClick"),zT=kl();zT.startListening({actionCreator:BT,effect:(e,t)=>{var n=e.payload,r=yy(t.getState(),by(n));r?.activeIndex!=null&&t.dispatch(g3({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var Lm=rr("mouseMove"),VT=kl();VT.startListening({actionCreator:Lm,effect:(e,t)=>{var n=e.payload,r=t.getState(),i=Vv(r,r.tooltip.settings.shared),o=yy(r,by(n));i==="axis"&&(o?.activeIndex!=null?t.dispatch(RC({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate})):t.dispatch(NC()))}});var aO={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index"},WT=Un({name:"rootProps",initialState:aO,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(n=t.payload.barGap)!==null&&n!==void 0?n:aO.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className}}}),nH=WT.reducer,{updateOptions:rH}=WT.actions,UT=Un({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:iH}=UT.actions,oH=UT.reducer,HT=rr("keyDown"),qT=rr("focus"),xy=kl();xy.startListening({actionCreator:HT,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:i}=n.tooltip,o=e.payload;if(!(o!=="ArrowRight"&&o!=="ArrowLeft"&&o!=="Enter")){var a=Number(Wv(i,Wa(n))),s=gi(n);if(o==="Enter"){var l=Bu(n,"axis","hover",String(i.index));t.dispatch(Am({active:!i.active,activeIndex:i.index,activeDataKey:i.dataKey,activeCoordinate:l}));return}var c=s3(n),u=c==="left-to-right"?1:-1,d=o==="ArrowRight"?1:-1,p=a+d*u;if(!(s==null||p>=s.length||p<0)){var h=Bu(n,"axis","hover",String(p));t.dispatch(Am({active:!0,activeIndex:p.toString(),activeDataKey:void 0,activeCoordinate:h}))}}}}});xy.startListening({actionCreator:qT,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:i}=n.tooltip;if(!i.active&&i.index==null){var o="0",a=Bu(n,"axis","hover",String(o));t.dispatch(Am({activeDataKey:void 0,active:!0,activeIndex:o,activeCoordinate:a}))}}}});var Zn=rr("externalEvent"),KT=kl();KT.startListening({actionCreator:Zn,effect:(e,t)=>{if(e.payload.handler!=null){var n=t.getState(),r={activeCoordinate:J3(n),activeDataKey:HC(n),activeIndex:Ri(n),activeLabel:UC(n),activeTooltipIndex:Ri(n),isTooltipActive:Q3(n)};e.payload.handler(r,e.payload.reactEvent)}}});var aH=V([Va],e=>e.tooltipItemPayloads),sH=V([aH,Wl,(e,t,n)=>t,(e,t,n)=>n],(e,t,n,r)=>{var i=e.find(s=>s.settings.dataKey===r);if(i!=null){var{positions:o}=i;if(o!=null){var a=t(o,n);return a}}}),YT=rr("touchMove"),GT=kl();GT.startListening({actionCreator:YT,effect:(e,t)=>{var n=e.payload,r=t.getState(),i=Vv(r,r.tooltip.settings.shared);if(i==="axis"){var o=yy(r,by({clientX:n.touches[0].clientX,clientY:n.touches[0].clientY,currentTarget:n.currentTarget}));o?.activeIndex!=null&&t.dispatch(RC({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate}))}else if(i==="item"){var a,s=n.touches[0],l=document.elementFromPoint(s.clientX,s.clientY);if(!l||!l.getAttribute)return;var c=l.getAttribute(MP),u=(a=l.getAttribute(jP))!==null&&a!==void 0?a:void 0,d=sH(t.getState(),c,u);t.dispatch(jC({activeDataKey:u,activeIndex:c,activeCoordinate:d}))}}});var lH=Q_({brush:q7,cartesianAxis:PW,chartData:A8,errorBars:HW,graphicalItems:HV,layout:w5,legend:cL,options:E8,polarAxis:lV,polarOptions:oH,referenceElements:Q7,rootProps:nH,tooltip:v3}),cH=function(t){return q$({reducer:lH,preloadedState:t,middleware:n=>n({serializableCheck:!1}).concat([zT.middleware,VT.middleware,xy.middleware,KT.middleware,GT.middleware]),devTools:zi.devToolsEnabled})};function XT(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,i=Cn(),o=I.useRef(null);if(i)return n;o.current==null&&(o.current=cH(t));var a=$g;return _.createElement(eH,{context:a,store:o.current},n)}function ZT(e){var{layout:t,width:n,height:r,margin:i}=e,o=At(),a=Cn();return I.useEffect(()=>{a||(o(y5(t)),o(b5({width:n,height:r})),o(v5(i)))},[o,a,t,n,r,i]),null}function JT(e){var t=At();return I.useEffect(()=>{t(rH(e))},[t,e]),null}var uH=["children"];function dH(e,t){if(e==null)return{};var n,r,i=fH(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function fH(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Gu(){return Gu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gu.apply(null,arguments)}var pH={width:"100%",height:"100%"},hH=I.forwardRef((e,t)=>{var n=RP(),r=DP(),i=FP();if(!xa(n)||!xa(r))return null;var{children:o,otherAttributes:a,title:s,desc:l}=e,c,u;return typeof a.tabIndex=="number"?c=a.tabIndex:c=i?0:void 0,typeof a.role=="string"?u=a.role:u=i?"application":void 0,_.createElement(x_,Gu({},a,{title:s,desc:l,role:u,tabIndex:c,width:n,height:r,style:pH,ref:t}),o)}),mH=e=>{var{children:t}=e,n=he(Wd);if(!n)return null;var{width:r,height:i,y:o,x:a}=n;return _.createElement(x_,{width:r,height:i,x:a,y:o},t)},sO=I.forwardRef((e,t)=>{var{children:n}=e,r=dH(e,uH),i=Cn();return i?_.createElement(mH,null,n):_.createElement(hH,Gu({ref:t},r),n)});function gH(){var e=At(),[t,n]=I.useState(null),r=he(X5);return I.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),o=i.width/t.offsetWidth;zn(o)&&o!==r&&e(x5(o))}},[t,e,r]),n}function lO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lO(Object(n),!0).forEach(function(r){yH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yH(e,t,n){return(t=bH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bH(e){var t=xH(e,"string");return typeof t=="symbol"?t:t+""}function xH(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wH=I.forwardRef((e,t)=>{var{children:n,className:r,height:i,onClick:o,onContextMenu:a,onDoubleClick:s,onMouseDown:l,onMouseEnter:c,onMouseLeave:u,onMouseMove:d,onMouseUp:p,onTouchEnd:h,onTouchMove:g,onTouchStart:m,style:v,width:y}=e,S=At(),[x,b]=I.useState(null),[O,E]=I.useState(null);L8();var C=gH(),T=I.useCallback(Y=>{C(Y),typeof t=="function"&&t(Y),b(Y),E(Y)},[C,t,b,E]),k=I.useCallback(Y=>{S(BT(Y)),S(Zn({handler:o,reactEvent:Y}))},[S,o]),R=I.useCallback(Y=>{S(Lm(Y)),S(Zn({handler:c,reactEvent:Y}))},[S,c]),M=I.useCallback(Y=>{S(NC()),S(Zn({handler:u,reactEvent:Y}))},[S,u]),P=I.useCallback(Y=>{S(Lm(Y)),S(Zn({handler:d,reactEvent:Y}))},[S,d]),D=I.useCallback(()=>{S(qT())},[S]),j=I.useCallback(Y=>{S(HT(Y.key))},[S]),N=I.useCallback(Y=>{S(Zn({handler:a,reactEvent:Y}))},[S,a]),L=I.useCallback(Y=>{S(Zn({handler:s,reactEvent:Y}))},[S,s]),B=I.useCallback(Y=>{S(Zn({handler:l,reactEvent:Y}))},[S,l]),K=I.useCallback(Y=>{S(Zn({handler:p,reactEvent:Y}))},[S,p]),z=I.useCallback(Y=>{S(Zn({handler:m,reactEvent:Y}))},[S,m]),F=I.useCallback(Y=>{S(YT(Y)),S(Zn({handler:g,reactEvent:Y}))},[S,g]),G=I.useCallback(Y=>{S(Zn({handler:h,reactEvent:Y}))},[S,h]);return _.createElement(ZC.Provider,{value:x},_.createElement(ED.Provider,{value:O},_.createElement("div",{className:oe("recharts-wrapper",r),style:vH({position:"relative",cursor:"default",width:y,height:i},v),onClick:k,onContextMenu:N,onDoubleClick:L,onFocus:D,onKeyDown:j,onMouseDown:B,onMouseEnter:R,onMouseLeave:M,onMouseMove:P,onMouseUp:K,onTouchEnd:G,onTouchMove:F,onTouchStart:z,ref:T},n)))}),OH=["children","className","width","height","style","compact","title","desc"];function SH(e,t){if(e==null)return{};var n,r,i=EH(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function EH(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var QT=I.forwardRef((e,t)=>{var{children:n,className:r,width:i,height:o,style:a,compact:s,title:l,desc:c}=e,u=SH(e,OH),d=Lr(u);return s?_.createElement(sO,{otherAttributes:d,title:l,desc:c},n):_.createElement(wH,{className:r,style:a,width:i,height:o,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},_.createElement(sO,{otherAttributes:d,title:l,desc:c,ref:t},_.createElement(t9,null,n)))}),_H=["width","height"];function Fm(){return Fm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fm.apply(null,arguments)}function PH(e,t){if(e==null)return{};var n,r,i=CH(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function CH(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var TH={top:5,right:5,bottom:5,left:5},AH={accessibilityLayer:!0,layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:TH,reverseStackOrder:!1,syncMethod:"index"},eA=I.forwardRef(function(t,n){var r,i=en(t.categoricalChartProps,AH),{width:o,height:a}=i,s=PH(i,_H);if(!xa(o)||!xa(a))return null;var{chartName:l,defaultTooltipEventType:c,validateTooltipEventTypes:u,tooltipPayloadSearcher:d,categoricalChartProps:p}=t,h={chartName:l,defaultTooltipEventType:c,validateTooltipEventTypes:u,tooltipPayloadSearcher:d,eventEmitter:void 0};return _.createElement(XT,{preloadedState:{options:h},reduxStoreName:(r=p.id)!==null&&r!==void 0?r:l},_.createElement(AT,{chartData:p.data}),_.createElement(ZT,{width:o,height:a,layout:i.layout,margin:i.margin}),_.createElement(JT,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),_.createElement(QT,Fm({},s,{width:o,height:a,ref:n})))}),kH=["axis"],tA=I.forwardRef((e,t)=>_.createElement(eA,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:kH,tooltipPayloadSearcher:Zv,categoricalChartProps:e,ref:t})),MH=["axis","item"],jH=I.forwardRef((e,t)=>_.createElement(eA,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:MH,tooltipPayloadSearcher:Zv,categoricalChartProps:e,ref:t}));function NH(e){var t=At();return I.useEffect(()=>{t(iH(e))},[t,e]),null}var RH=["width","height","layout"];function Bm(){return Bm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bm.apply(null,arguments)}function DH(e,t){if(e==null)return{};var n,r,i=IH(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function IH(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var $H={top:5,right:5,bottom:5,left:5},LH={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:$H,reverseStackOrder:!1,syncMethod:"index",layout:"radial"},FH=I.forwardRef(function(t,n){var r,i=en(t.categoricalChartProps,LH),{width:o,height:a,layout:s}=i,l=DH(i,RH);if(!xa(o)||!xa(a))return null;var{chartName:c,defaultTooltipEventType:u,validateTooltipEventTypes:d,tooltipPayloadSearcher:p}=t,h={chartName:c,defaultTooltipEventType:u,validateTooltipEventTypes:d,tooltipPayloadSearcher:p,eventEmitter:void 0};return _.createElement(XT,{preloadedState:{options:h},reduxStoreName:(r=i.id)!==null&&r!==void 0?r:c},_.createElement(AT,{chartData:i.data}),_.createElement(ZT,{width:o,height:a,layout:s,margin:i.margin}),_.createElement(JT,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),_.createElement(NH,{cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius}),_.createElement(QT,Bm({width:o,height:a},l,{ref:n})))}),BH=["item"],zH={layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},ff=I.forwardRef((e,t)=>{var n=en(e,zH);return _.createElement(FH,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:BH,tooltipPayloadSearcher:Zv,categoricalChartProps:n,ref:t})});function Ua(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function nA(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function zm(e,t){return zm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},zm(e,t)}function rA(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zm(e,t)}const cO={disabled:!1};var VH=process.env.NODE_ENV!=="production"?f.oneOfType([f.number,f.shape({enter:f.number,exit:f.number,appear:f.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&f.oneOfType([f.string,f.shape({enter:f.string,exit:f.string,active:f.string}),f.shape({enter:f.string,enterDone:f.string,enterActive:f.string,exit:f.string,exitDone:f.string,exitActive:f.string})]);const Xu=I.createContext(null);var WH=function(t){return t.scrollTop},Es="unmounted",ao="exited",so="entering",ia="entered",Vm="exiting",Fr=(function(e){rA(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?s?(l=ao,o.appearStatus=so):l=ia:r.unmountOnExit||r.mountOnEnter?l=Es:l=ao,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===Es?{status:ao}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==so&&a!==ia&&(o=so):(a===so||a===ia)&&(o=Vm)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===so){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:fo.findDOMNode(this);a&&WH(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ao&&this.setState({status:Es})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[fo.findDOMNode(this),s],c=l[0],u=l[1],d=this.getTimeouts(),p=s?d.appear:d.enter;if(!i&&!a||cO.disabled){this.safeSetState({status:ia},function(){o.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:so},function(){o.props.onEntering(c,u),o.onTransitionEnd(p,function(){o.safeSetState({status:ia},function(){o.props.onEntered(c,u)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:fo.findDOMNode(this);if(!o||cO.disabled){this.safeSetState({status:ao},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Vm},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:ao},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:fo.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Es)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=nA(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return I.createElement(Xu.Provider,{value:null},typeof a=="function"?a(i,s):I.cloneElement(I.Children.only(a),s))},t})(I.Component);Fr.contextType=Xu;Fr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:f.shape({current:typeof Element>"u"?f.any:function(e,t,n,r,i,o){var a=e[t];return f.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,o)}}),children:f.oneOfType([f.func.isRequired,f.element.isRequired]).isRequired,in:f.bool,mountOnEnter:f.bool,unmountOnExit:f.bool,appear:f.bool,enter:f.bool,exit:f.bool,timeout:function(t){var n=VH;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return n.apply(void 0,[t].concat(i))},addEndListener:f.func,onEnter:f.func,onEntering:f.func,onEntered:f.func,onExit:f.func,onExiting:f.func,onExited:f.func}:{};function Qo(){}Fr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Qo,onEntering:Qo,onEntered:Qo,onExit:Qo,onExiting:Qo,onExited:Qo};Fr.UNMOUNTED=Es;Fr.EXITED=ao;Fr.ENTERING=so;Fr.ENTERED=ia;Fr.EXITING=Vm;function UH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wy(e,t){var n=function(o){return t&&I.isValidElement(o)?t(o):o},r=Object.create(null);return e&&I.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function HH(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var a,s={};for(var l in t){if(r[l])for(a=0;a<r[l].length;a++){var c=r[l][a];s[r[l][a]]=n(c)}s[l]=n(l)}for(a=0;a<i.length;a++)s[i[a]]=n(i[a]);return s}function yo(e,t,n){return n[t]!=null?n[t]:e.props[t]}function qH(e,t){return wy(e.children,function(n){return I.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:yo(n,"appear",e),enter:yo(n,"enter",e),exit:yo(n,"exit",e)})})}function KH(e,t,n){var r=wy(e.children),i=HH(t,r);return Object.keys(i).forEach(function(o){var a=i[o];if(I.isValidElement(a)){var s=o in t,l=o in r,c=t[o],u=I.isValidElement(c)&&!c.props.in;l&&(!s||u)?i[o]=I.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:yo(a,"exit",e),enter:yo(a,"enter",e)}):!l&&s&&!u?i[o]=I.cloneElement(a,{in:!1}):l&&s&&I.isValidElement(c)&&(i[o]=I.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:yo(a,"exit",e),enter:yo(a,"enter",e)}))}}),i}var YH=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},GH={component:"div",childFactory:function(t){return t}},Oy=(function(e){rA(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=o.handleExited.bind(UH(o));return o.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},o}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,o){var a=o.children,s=o.handleExited,l=o.firstRender;return{children:l?qH(i,s):KH(i,a,s),firstRender:!1}},n.handleExited=function(i,o){var a=wy(this.props.children);i.key in a||(i.props.onExited&&i.props.onExited(o),this.mounted&&this.setState(function(s){var l=ou({},s.children);return delete l[i.key],{children:l}}))},n.render=function(){var i=this.props,o=i.component,a=i.childFactory,s=nA(i,["component","childFactory"]),l=this.state.contextValue,c=YH(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,o===null?I.createElement(Xu.Provider,{value:l},c):I.createElement(Xu.Provider,{value:l},I.createElement(o,s,c))},t})(I.Component);Oy.propTypes=process.env.NODE_ENV!=="production"?{component:f.any,children:f.node,appear:f.bool,enter:f.bool,exit:f.bool,childFactory:f.func}:{};Oy.defaultProps=GH;const uO={};function iA(e,t){const n=_.useRef(uO);return n.current===uO&&(n.current=e(t)),n}const XH=[];function ZH(e){_.useEffect(e,XH)}class pf{static create(){return new pf}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function sa(){const e=iA(pf.create).current;return ZH(e.disposeEffect),e}function JH(e){const{prototype:t={}}=e;return!!t.isReactComponent}function QH(e,t,n,r,i){const o=e[t],a=i||t;if(o==null||typeof window>"u")return null;let s;return typeof o=="function"&&!JH(o)&&(s="Did you accidentally provide a plain function component instead?"),s!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Sy=Ua(f.elementType,QH),oA=e=>e.scrollTop;function Zu(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function eq(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function aA(e,t,n,r){const i=e[t];if(i==null||!Number.isInteger(i)){const o=eq(i);return new RangeError(`Invalid ${r} \`${t}\` of type \`${o}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function sA(e,t,n,r){return e[t]===void 0?null:aA(e,t,n,r)}function Wm(){return null}sA.isRequired=aA;Wm.isRequired=Wm;const lA=process.env.NODE_ENV==="production"?Wm:sA;function tq(e){return Ge("MuiPaper",e)}qe("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const nq=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return rt(o,tq,i)},rq=ve("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(St(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),cA=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiPaper"}),i=kd(),{className:o,component:a="div",elevation:s=1,square:l=!1,variant:c="elevation",...u}=r,d={...r,component:a,elevation:s,square:l,variant:c},p=nq(d);return process.env.NODE_ENV!=="production"&&i.shadows[s]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${s}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${s}]\` is defined.`].join(`
|
|
216
216
|
`)),w.jsx(rq,{as:a,ownerState:d,className:oe(p.root,o),ref:n,...u,style:{...c==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[s],...i.vars&&{"--Paper-overlay":i.vars.overlays?.[s]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${lu("#fff",Yh(s))}, ${lu("#fff",Yh(s))})`}},...u.style}})});process.env.NODE_ENV!=="production"&&(cA.propTypes={children:f.node,classes:f.object,className:f.string,component:f.elementType,elevation:Ua(lA,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:f.bool,style:f.object,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),variant:f.oneOfType([f.oneOf(["elevation","outlined"]),f.string])});function Ju(e){return typeof e=="string"}function uA(e,t,n){return e===void 0||Ju(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function dA(e,t,n){return typeof e=="function"?e(t,n):e}function fA(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function dO(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function pA(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const h=oe(n?.className,o,i?.className,r?.className),g={...n?.style,...i?.style,...r?.style},m={...n,...i,...r};return h.length>0&&(m.className=h),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:void 0}}const a=fA({...i,...r}),s=dO(r),l=dO(i),c=t(a),u=oe(c?.className,n?.className,o,i?.className,r?.className),d={...c?.style,...n?.style,...i?.style,...r?.style},p={...c,...n,...l,...s};return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}function ot(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:o,internalForwardedProps:a,shouldForwardComponentProp:s=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...p}=o,h=u[e]||r,g=dA(d[e],i),{props:{component:m,...v},internalRef:y}=pA({className:n,...l,externalForwardedProps:e==="root"?p:void 0,externalSlotProps:g}),S=Ht(y,g?.ref,t.ref),x=e==="root"?m||c:m,b=uA(h,{...e==="root"&&!c&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...v,...x&&!s&&{as:x},...x&&s&&{component:x},ref:S},i);return[h,b]}const ur=f.oneOfType([f.func,f.object]);function Qu(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
|
|
217
217
|
`))}return!1}class ed{static create(){return new ed}static use(){const t=iA(ed.create).current,[n,r]=_.useState(!1);return t.shouldMount=n,t.setShouldMount=r,_.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=oq(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function iq(){return ed.use()}function oq(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function hA(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=_.useState(!1),p=oe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},g=oe(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),_.useEffect(()=>{if(!s&&l!=null){const m=setTimeout(l,c);return()=>{clearTimeout(m)}}},[l,s,c]),w.jsx("span",{className:p,style:h,children:w.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(hA.propTypes={classes:f.object.isRequired,className:f.string,in:f.bool,onExited:f.func,pulsate:f.bool,rippleSize:f.number,rippleX:f.number,rippleY:f.number,timeout:f.number.isRequired});const Jn=qe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Um=550,aq=80,sq=vg`
|
|
218
218
|
0% {
|
|
@@ -287,60 +287,60 @@ Take a look at the reducer(s) handling this action type: ${h.type}.
|
|
|
287
287
|
animation-iteration-count: infinite;
|
|
288
288
|
animation-delay: 200ms;
|
|
289
289
|
}
|
|
290
|
-
`,mA=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a,...s}=r,[l,c]=_.useState([]),u=_.useRef(0),d=_.useRef(null);_.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const p=_.useRef(!1),h=sa(),g=_.useRef(null),m=_.useRef(null),v=_.useCallback(b=>{const{pulsate:O,rippleX:E,rippleY:C,rippleSize:T,cb:k}=b;c(R=>[...R,w.jsx(dq,{classes:{ripple:oe(o.ripple,Jn.ripple),rippleVisible:oe(o.rippleVisible,Jn.rippleVisible),ripplePulsate:oe(o.ripplePulsate,Jn.ripplePulsate),child:oe(o.child,Jn.child),childLeaving:oe(o.childLeaving,Jn.childLeaving),childPulsate:oe(o.childPulsate,Jn.childPulsate)},timeout:Um,pulsate:O,rippleX:E,rippleY:C,rippleSize:T},u.current)]),u.current+=1,d.current=k},[o]),y=_.useCallback((b={},O={},E=()=>{})=>{const{pulsate:C=!1,center:T=i||O.pulsate,fakeElement:k=!1}=O;if(b?.type==="mousedown"&&p.current){p.current=!1;return}b?.type==="touchstart"&&(p.current=!0);const R=k?null:m.current,M=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let P,D,j;if(T||b===void 0||b.clientX===0&&b.clientY===0||!b.clientX&&!b.touches)P=Math.round(M.width/2),D=Math.round(M.height/2);else{const{clientX:N,clientY:L}=b.touches&&b.touches.length>0?b.touches[0]:b;P=Math.round(N-M.left),D=Math.round(L-M.top)}if(T)j=Math.sqrt((2*M.width**2+M.height**2)/3),j%2===0&&(j+=1);else{const N=Math.max(Math.abs((R?R.clientWidth:0)-P),P)*2+2,L=Math.max(Math.abs((R?R.clientHeight:0)-D),D)*2+2;j=Math.sqrt(N**2+L**2)}b?.touches?g.current===null&&(g.current=()=>{v({pulsate:C,rippleX:P,rippleY:D,rippleSize:j,cb:E})},h.start(aq,()=>{g.current&&(g.current(),g.current=null)})):v({pulsate:C,rippleX:P,rippleY:D,rippleSize:j,cb:E})},[i,v,h]),S=_.useCallback(()=>{y({},{pulsate:!0})},[y]),x=_.useCallback((b,O)=>{if(h.clear(),b?.type==="touchend"&&g.current){g.current(),g.current=null,h.start(0,()=>{x(b,O)});return}g.current=null,c(E=>E.length>0?E.slice(1):E),d.current=O},[h]);return _.useImperativeHandle(n,()=>({pulsate:S,start:y,stop:x}),[S,y,x]),w.jsx(uq,{className:oe(Jn.root,o.root,a),ref:m,...s,children:w.jsx(Oy,{component:null,exit:!0,children:l})})});process.env.NODE_ENV!=="production"&&(mA.propTypes={center:f.bool,classes:f.object,className:f.string});function fq(e){return Ge("MuiButtonBase",e)}const pq=qe("MuiButtonBase",["root","disabled","focusVisible"]),hq=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=rt({root:["root",t&&"disabled",n&&"focusVisible"]},fq,i);return n&&r&&(a.root+=` ${r}`),a},mq=ve("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${pq.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ey=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:p=!1,focusVisibleClassName:h,LinkComponent:g="a",onBlur:m,onClick:v,onContextMenu:y,onDragLeave:S,onFocus:x,onFocusVisible:b,onKeyDown:O,onKeyUp:E,onMouseDown:C,onMouseLeave:T,onMouseUp:k,onTouchEnd:R,onTouchMove:M,onTouchStart:P,tabIndex:D=0,TouchRippleProps:j,touchRippleRef:N,type:L,...B}=r,K=_.useRef(null),z=iq(),F=Ht(z.ref,N),[G,Y]=_.useState(!1);c&&G&&Y(!1),_.useImperativeHandle(i,()=>({focusVisible:()=>{Y(!0),K.current.focus()}}),[]);const ne=z.shouldMount&&!u&&!c;_.useEffect(()=>{G&&p&&!u&&z.pulsate()},[u,p,G,z]);const Q=Vr(z,"start",C,d),X=Vr(z,"stop",y,d),te=Vr(z,"stop",S,d),ie=Vr(z,"stop",k,d),ae=Vr(z,"stop",de=>{G&&de.preventDefault(),T&&T(de)},d),W=Vr(z,"start",P,d),H=Vr(z,"stop",R,d),J=Vr(z,"stop",M,d),A=Vr(z,"stop",de=>{Qu(de.target)||Y(!1),m&&m(de)},!1),fe=Qr(de=>{K.current||(K.current=de.currentTarget),Qu(de.target)&&(Y(!0),b&&b(de)),x&&x(de)}),re=()=>{const de=K.current;return l&&l!=="button"&&!(de.tagName==="A"&&de.href)},me=Qr(de=>{p&&!de.repeat&&G&&de.key===" "&&z.stop(de,()=>{z.start(de)}),de.target===de.currentTarget&&re()&&de.key===" "&&de.preventDefault(),O&&O(de),de.target===de.currentTarget&&re()&&de.key==="Enter"&&!c&&(de.preventDefault(),v&&v(de))}),we=Qr(de=>{p&&de.key===" "&&G&&!de.defaultPrevented&&z.stop(de,()=>{z.pulsate(de)}),E&&E(de),v&&de.target===de.currentTarget&&re()&&de.key===" "&&!de.defaultPrevented&&v(de)});let Se=l;Se==="button"&&(B.href||B.to)&&(Se=g);const _e={};Se==="button"?(_e.type=L===void 0?"button":L,_e.disabled=c):(!B.href&&!B.to&&(_e.role="button"),c&&(_e["aria-disabled"]=c));const Ze=Ht(n,K),De={...r,centerRipple:o,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:p,tabIndex:D,focusVisible:G},Te=hq(De);return w.jsxs(mq,{as:Se,className:oe(Te.root,s),ownerState:De,onBlur:A,onClick:v,onContextMenu:X,onFocus:fe,onKeyDown:me,onKeyUp:we,onMouseDown:Q,onMouseLeave:ae,onMouseUp:ie,onDragLeave:te,onTouchEnd:H,onTouchMove:J,onTouchStart:W,ref:Ze,tabIndex:c?-1:D,type:L,..._e,...B,children:[a,ne?w.jsx(mA,{ref:F,center:o,...j}):null]})});function Vr(e,t,n,r=!1){return Qr(i=>(n&&n(i),r||e[t](i),!0))}process.env.NODE_ENV!=="production"&&(Ey.propTypes={action:ur,centerRipple:f.bool,children:f.node,classes:f.object,className:f.string,component:Sy,disabled:f.bool,disableRipple:f.bool,disableTouchRipple:f.bool,focusRipple:f.bool,focusVisibleClassName:f.string,href:f.any,LinkComponent:f.elementType,onBlur:f.func,onClick:f.func,onContextMenu:f.func,onDragLeave:f.func,onFocus:f.func,onFocusVisible:f.func,onKeyDown:f.func,onKeyUp:f.func,onMouseDown:f.func,onMouseLeave:f.func,onMouseUp:f.func,onTouchEnd:f.func,onTouchMove:f.func,onTouchStart:f.func,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),tabIndex:f.number,TouchRippleProps:f.object,touchRippleRef:f.oneOfType([f.func,f.shape({current:f.shape({pulsate:f.func.isRequired,start:f.func.isRequired,stop:f.func.isRequired})})]),type:f.oneOfType([f.oneOf(["button","reset","submit"]),f.string])});function gq(e){return typeof e.main=="string"}function vq(e,t=[]){if(!gq(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function No(e=[]){return([,t])=>t&&vq(t,e)}function yq(e){return Ge("MuiTypography",e)}const fO=qe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),bq={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},xq=$R(),wq=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,e.align!=="inherit"&&`align${Re(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return rt(s,yq,a)},Oq=ve("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Re(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(St(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(No()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${Re(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),pO={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Es=_.forwardRef(function(t,n){const{color:r,...i}=ut({props:t,name:"MuiTypography"}),o=!bq[r],a=xq({...i,...o&&{color:r}}),{align:s="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:p=!1,variant:h="body1",variantMapping:g=pO,...m}=a,v={...a,align:s,color:r,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:p,variant:h,variantMapping:g},y=c||(p?"p":g[h]||pO[h])||"span",S=wq(v);return w.jsx(Oq,{as:y,ref:n,className:oe(S.root,l),...m,ownerState:v,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...m.style}})});process.env.NODE_ENV!=="production"&&(Es.propTypes={align:f.oneOf(["center","inherit","justify","left","right"]),children:f.node,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),f.string]),component:f.elementType,gutterBottom:f.bool,noWrap:f.bool,paragraph:f.bool,style:f.object,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),variant:f.oneOfType([f.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),f.string]),variantMapping:f.object});function li(e,t,n,r,i){if(process.env.NODE_ENV==="production")return null;const o=e[t],a=i||t;return o==null?null:o&&o.nodeType!==1?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var En="top",or="bottom",ar="right",_n="left",_y="auto",ql=[En,or,ar,_n],Pa="start",il="end",Sq="clippingParents",gA="viewport",ss="popper",Eq="reference",hO=ql.reduce(function(e,t){return e.concat([t+"-"+Pa,t+"-"+il])},[]),vA=[].concat(ql,[_y]).reduce(function(e,t){return e.concat([t,t+"-"+Pa,t+"-"+il])},[]),_q="beforeRead",Pq="read",Cq="afterRead",Tq="beforeMain",Aq="main",kq="afterMain",Mq="beforeWrite",jq="write",Nq="afterWrite",Rq=[_q,Pq,Cq,Tq,Aq,kq,Mq,jq,Nq];function $r(e){return e?(e.nodeName||"").toLowerCase():null}function Vn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ro(e){var t=Vn(e).Element;return e instanceof t||e instanceof Element}function nr(e){var t=Vn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Py(e){if(typeof ShadowRoot>"u")return!1;var t=Vn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Dq(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!nr(o)||!$r(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function Iq(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!nr(i)||!$r(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const yA={name:"applyStyles",enabled:!0,phase:"write",fn:Dq,effect:Iq,requires:["computeStyles"]};function kr(e){return e.split("-")[0]}var _o=Math.max,td=Math.min,Ca=Math.round;function Hm(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function bA(){return!/^((?!chrome|android).)*safari/i.test(Hm())}function Ta(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&nr(e)&&(i=e.offsetWidth>0&&Ca(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Ca(r.height)/e.offsetHeight||1);var a=Ro(e)?Vn(e):window,s=a.visualViewport,l=!bA()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,u=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,p=r.height/o;return{width:d,height:p,top:u,right:c+d,bottom:u+p,left:c,x:c,y:u}}function Cy(e){var t=Ta(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function xA(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Py(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ci(e){return Vn(e).getComputedStyle(e)}function $q(e){return["table","td","th"].indexOf($r(e))>=0}function Hi(e){return((Ro(e)?e.ownerDocument:e.document)||window.document).documentElement}function hf(e){return $r(e)==="html"?e:e.assignedSlot||e.parentNode||(Py(e)?e.host:null)||Hi(e)}function mO(e){return!nr(e)||ci(e).position==="fixed"?null:e.offsetParent}function Lq(e){var t=/firefox/i.test(Hm()),n=/Trident/i.test(Hm());if(n&&nr(e)){var r=ci(e);if(r.position==="fixed")return null}var i=hf(e);for(Py(i)&&(i=i.host);nr(i)&&["html","body"].indexOf($r(i))<0;){var o=ci(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Kl(e){for(var t=Vn(e),n=mO(e);n&&$q(n)&&ci(n).position==="static";)n=mO(n);return n&&($r(n)==="html"||$r(n)==="body"&&ci(n).position==="static")?t:n||Lq(e)||t}function Ty(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ns(e,t,n){return _o(e,td(t,n))}function Fq(e,t,n){var r=Ns(e,t,n);return r>n?n:r}function wA(){return{top:0,right:0,bottom:0,left:0}}function OA(e){return Object.assign({},wA(),e)}function SA(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Bq=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,OA(typeof t!="number"?t:SA(t,ql))};function zq(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=kr(n.placement),l=Ty(s),c=[_n,ar].indexOf(s)>=0,u=c?"height":"width";if(!(!o||!a)){var d=Bq(i.padding,n),p=Cy(o),h=l==="y"?En:_n,g=l==="y"?or:ar,m=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],v=a[l]-n.rects.reference[l],y=Kl(o),S=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,x=m/2-v/2,b=d[h],O=S-p[u]-d[g],E=S/2-p[u]/2+x,C=Ns(b,E,O),T=l;n.modifiersData[r]=(t={},t[T]=C,t.centerOffset=C-E,t)}}function Vq(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||xA(t.elements.popper,i)&&(t.elements.arrow=i))}const Wq={name:"arrow",enabled:!0,phase:"main",fn:zq,effect:Vq,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Aa(e){return e.split("-")[1]}var Uq={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Hq(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Ca(n*i)/i||0,y:Ca(r*i)/i||0}}function gO(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,h=p===void 0?0:p,g=a.y,m=g===void 0?0:g,v=typeof u=="function"?u({x:h,y:m}):{x:h,y:m};h=v.x,m=v.y;var y=a.hasOwnProperty("x"),S=a.hasOwnProperty("y"),x=_n,b=En,O=window;if(c){var E=Kl(n),C="clientHeight",T="clientWidth";if(E===Vn(n)&&(E=Hi(n),ci(E).position!=="static"&&s==="absolute"&&(C="scrollHeight",T="scrollWidth")),E=E,i===En||(i===_n||i===ar)&&o===il){b=or;var k=d&&E===O&&O.visualViewport?O.visualViewport.height:E[C];m-=k-r.height,m*=l?1:-1}if(i===_n||(i===En||i===or)&&o===il){x=ar;var R=d&&E===O&&O.visualViewport?O.visualViewport.width:E[T];h-=R-r.width,h*=l?1:-1}}var M=Object.assign({position:s},c&&Uq),P=u===!0?Hq({x:h,y:m},Vn(n)):{x:h,y:m};if(h=P.x,m=P.y,l){var D;return Object.assign({},M,(D={},D[b]=S?"0":"",D[x]=y?"0":"",D.transform=(O.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",D))}return Object.assign({},M,(t={},t[b]=S?m+"px":"",t[x]=y?h+"px":"",t.transform="",t))}function qq(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:kr(t.placement),variation:Aa(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,gO(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,gO(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Kq={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:qq,data:{}};var Pc={passive:!0};function Yq(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=Vn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,Pc)}),s&&l.addEventListener("resize",n.update,Pc),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Pc)}),s&&l.removeEventListener("resize",n.update,Pc)}}const Gq={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Yq,data:{}};var Xq={left:"right",right:"left",bottom:"top",top:"bottom"};function eu(e){return e.replace(/left|right|bottom|top/g,function(t){return Xq[t]})}var Zq={start:"end",end:"start"};function vO(e){return e.replace(/start|end/g,function(t){return Zq[t]})}function Ay(e){var t=Vn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ky(e){return Ta(Hi(e)).left+Ay(e).scrollLeft}function Jq(e,t){var n=Vn(e),r=Hi(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=bA();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+ky(e),y:l}}function Qq(e){var t,n=Hi(e),r=Ay(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=_o(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=_o(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+ky(e),l=-r.scrollTop;return ci(i||n).direction==="rtl"&&(s+=_o(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function My(e){var t=ci(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function EA(e){return["html","body","#document"].indexOf($r(e))>=0?e.ownerDocument.body:nr(e)&&My(e)?e:EA(hf(e))}function Rs(e,t){var n;t===void 0&&(t=[]);var r=EA(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Vn(r),a=i?[o].concat(o.visualViewport||[],My(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Rs(hf(a)))}function qm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function eK(e,t){var n=Ta(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function yO(e,t,n){return t===gA?qm(Jq(e,n)):Ro(t)?eK(t,n):qm(Qq(Hi(e)))}function tK(e){var t=Rs(hf(e)),n=["absolute","fixed"].indexOf(ci(e).position)>=0,r=n&&nr(e)?Kl(e):e;return Ro(r)?t.filter(function(i){return Ro(i)&&xA(i,r)&&$r(i)!=="body"}):[]}function nK(e,t,n,r){var i=t==="clippingParents"?tK(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,c){var u=yO(e,c,r);return l.top=_o(u.top,l.top),l.right=td(u.right,l.right),l.bottom=td(u.bottom,l.bottom),l.left=_o(u.left,l.left),l},yO(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function _A(e){var t=e.reference,n=e.element,r=e.placement,i=r?kr(r):null,o=r?Aa(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case En:l={x:a,y:t.y-n.height};break;case or:l={x:a,y:t.y+t.height};break;case ar:l={x:t.x+t.width,y:s};break;case _n:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?Ty(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case Pa:l[c]=l[c]-(t[u]/2-n[u]/2);break;case il:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function ol(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?Sq:s,c=n.rootBoundary,u=c===void 0?gA:c,d=n.elementContext,p=d===void 0?ss:d,h=n.altBoundary,g=h===void 0?!1:h,m=n.padding,v=m===void 0?0:m,y=OA(typeof v!="number"?v:SA(v,ql)),S=p===ss?Eq:ss,x=e.rects.popper,b=e.elements[g?S:p],O=nK(Ro(b)?b:b.contextElement||Hi(e.elements.popper),l,u,a),E=Ta(e.elements.reference),C=_A({reference:E,element:x,placement:i}),T=qm(Object.assign({},x,C)),k=p===ss?T:E,R={top:O.top-k.top+y.top,bottom:k.bottom-O.bottom+y.bottom,left:O.left-k.left+y.left,right:k.right-O.right+y.right},M=e.modifiersData.offset;if(p===ss&&M){var P=M[i];Object.keys(R).forEach(function(D){var j=[ar,or].indexOf(D)>=0?1:-1,N=[En,or].indexOf(D)>=0?"y":"x";R[D]+=P[N]*j})}return R}function rK(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?vA:l,u=Aa(r),d=u?s?hO:hO.filter(function(g){return Aa(g)===u}):ql,p=d.filter(function(g){return c.indexOf(g)>=0});p.length===0&&(p=d);var h=p.reduce(function(g,m){return g[m]=ol(e,{placement:m,boundary:i,rootBoundary:o,padding:a})[kr(m)],g},{});return Object.keys(h).sort(function(g,m){return h[g]-h[m]})}function iK(e){if(kr(e)===_y)return[];var t=eu(e);return[vO(e),t,vO(t)]}function oK(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,g=h===void 0?!0:h,m=n.allowedAutoPlacements,v=t.options.placement,y=kr(v),S=y===v,x=l||(S||!g?[eu(v)]:iK(v)),b=[v].concat(x).reduce(function(Q,X){return Q.concat(kr(X)===_y?rK(t,{placement:X,boundary:u,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:m}):X)},[]),O=t.rects.reference,E=t.rects.popper,C=new Map,T=!0,k=b[0],R=0;R<b.length;R++){var M=b[R],P=kr(M),D=Aa(M)===Pa,j=[En,or].indexOf(P)>=0,N=j?"width":"height",L=ol(t,{placement:M,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),B=j?D?ar:_n:D?or:En;O[N]>E[N]&&(B=eu(B));var K=eu(B),z=[];if(o&&z.push(L[P]<=0),s&&z.push(L[B]<=0,L[K]<=0),z.every(function(Q){return Q})){k=M,T=!1;break}C.set(M,z)}if(T)for(var F=g?3:1,G=function(X){var te=b.find(function(ie){var ae=C.get(ie);if(ae)return ae.slice(0,X).every(function(W){return W})});if(te)return k=te,"break"},Y=F;Y>0;Y--){var ne=G(Y);if(ne==="break")break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}}const aK={name:"flip",enabled:!0,phase:"main",fn:oK,requiresIfExists:["offset"],data:{_skip:!1}};function bO(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function xO(e){return[En,ar,or,_n].some(function(t){return e[t]>=0})}function sK(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=ol(t,{elementContext:"reference"}),s=ol(t,{altBoundary:!0}),l=bO(a,r),c=bO(s,i,o),u=xO(l),d=xO(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const lK={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:sK};function cK(e,t,n){var r=kr(e),i=[_n,En].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[_n,ar].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function uK(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=vA.reduce(function(u,d){return u[d]=cK(d,t.rects,o),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const dK={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:uK};function fK(e){var t=e.state,n=e.name;t.modifiersData[n]=_A({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const pK={name:"popperOffsets",enabled:!0,phase:"read",fn:fK,data:{}};function hK(e){return e==="x"?"y":"x"}function mK(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,h=p===void 0?!0:p,g=n.tetherOffset,m=g===void 0?0:g,v=ol(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=kr(t.placement),S=Aa(t.placement),x=!S,b=Ty(y),O=hK(b),E=t.modifiersData.popperOffsets,C=t.rects.reference,T=t.rects.popper,k=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,R=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(E){if(o){var D,j=b==="y"?En:_n,N=b==="y"?or:ar,L=b==="y"?"height":"width",B=E[b],K=B+v[j],z=B-v[N],F=h?-T[L]/2:0,G=S===Pa?C[L]:T[L],Y=S===Pa?-T[L]:-C[L],ne=t.elements.arrow,Q=h&&ne?Cy(ne):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:wA(),te=X[j],ie=X[N],ae=Ns(0,C[L],Q[L]),W=x?C[L]/2-F-ae-te-R.mainAxis:G-ae-te-R.mainAxis,H=x?-C[L]/2+F+ae+ie+R.mainAxis:Y+ae+ie+R.mainAxis,J=t.elements.arrow&&Kl(t.elements.arrow),A=J?b==="y"?J.clientTop||0:J.clientLeft||0:0,fe=(D=M?.[b])!=null?D:0,re=B+W-fe-A,me=B+H-fe,we=Ns(h?td(K,re):K,B,h?_o(z,me):z);E[b]=we,P[b]=we-B}if(s){var Se,_e=b==="x"?En:_n,Ze=b==="x"?or:ar,De=E[O],Te=O==="y"?"height":"width",de=De+v[_e],Et=De-v[Ze],Je=[En,_n].indexOf(y)!==-1,tn=(Se=M?.[O])!=null?Se:0,Gt=Je?de:De-C[Te]-T[Te]-tn+R.altAxis,nn=Je?De+C[Te]+T[Te]-tn-R.altAxis:Et,mn=h&&Je?Fq(Gt,De,nn):Ns(h?Gt:de,De,h?nn:Et);E[O]=mn,P[O]=mn-De}t.modifiersData[r]=P}}const gK={name:"preventOverflow",enabled:!0,phase:"main",fn:mK,requiresIfExists:["offset"]};function vK(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function yK(e){return e===Vn(e)||!nr(e)?Ay(e):vK(e)}function bK(e){var t=e.getBoundingClientRect(),n=Ca(t.width)/e.offsetWidth||1,r=Ca(t.height)/e.offsetHeight||1;return n!==1||r!==1}function xK(e,t,n){n===void 0&&(n=!1);var r=nr(t),i=nr(t)&&bK(t),o=Hi(t),a=Ta(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(($r(t)!=="body"||My(o))&&(s=yK(t)),nr(t)?(l=Ta(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=ky(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function wK(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function OK(e){var t=wK(e);return Rq.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function SK(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function EK(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var wO={placement:"bottom",modifiers:[],strategy:"absolute"};function OO(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function _K(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?wO:i;return function(s,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},wO,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],p=!1,h={state:u,setOptions:function(y){var S=typeof y=="function"?y(u.options):y;m(),u.options=Object.assign({},o,u.options,S),u.scrollParents={reference:Ro(s)?Rs(s):s.contextElement?Rs(s.contextElement):[],popper:Rs(l)};var x=OK(EK([].concat(r,u.options.modifiers)));return u.orderedModifiers=x.filter(function(b){return b.enabled}),g(),h.update()},forceUpdate:function(){if(!p){var y=u.elements,S=y.reference,x=y.popper;if(OO(S,x)){u.rects={reference:xK(S,Kl(x),u.options.strategy==="fixed"),popper:Cy(x)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(R){return u.modifiersData[R.name]=Object.assign({},R.data)});for(var b=0;b<u.orderedModifiers.length;b++){if(u.reset===!0){u.reset=!1,b=-1;continue}var O=u.orderedModifiers[b],E=O.fn,C=O.options,T=C===void 0?{}:C,k=O.name;typeof E=="function"&&(u=E({state:u,options:T,name:k,instance:h})||u)}}}},update:SK(function(){return new Promise(function(v){h.forceUpdate(),v(u)})}),destroy:function(){m(),p=!0}};if(!OO(s,l))return h;h.setOptions(c).then(function(v){!p&&c.onFirstUpdate&&c.onFirstUpdate(v)});function g(){u.orderedModifiers.forEach(function(v){var y=v.name,S=v.options,x=S===void 0?{}:S,b=v.effect;if(typeof b=="function"){var O=b({state:u,name:y,instance:h,options:x}),E=function(){};d.push(O||E)}})}function m(){d.forEach(function(v){return v()}),d=[]}return h}}var PK=[Gq,pK,Kq,yA,dK,aK,gK,Wq,lK],PA=_K({defaultModifiers:PK});function CA(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...o}=e,a=i?{}:dA(n,r),{props:s,internalRef:l}=pA({...o,externalSlotProps:a}),c=Ht(l,a?.ref,e.additionalProps?.ref);return uA(t,{...s,ref:c},r)}function Ha(e){return parseInt(_.version,10)>=19?e?.props?.ref||null:e?.ref||null}function CK(e){return typeof e=="function"?e():e}const al=_.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[a,s]=_.useState(null),l=Ht(_.isValidElement(r)?Ha(r):null,n);if(Nr(()=>{o||s(CK(i)||document.body)},[i,o]),Nr(()=>{if(a&&!o)return r0(n,a),()=>{r0(n,null)}},[n,a,o]),o){if(_.isValidElement(r)){const c={ref:l};return _.cloneElement(r,c)}return r}return a&&uM.createPortal(r,a)});process.env.NODE_ENV!=="production"&&(al.propTypes={children:f.node,container:f.oneOfType([li,f.func]),disablePortal:f.bool});process.env.NODE_ENV!=="production"&&(al.propTypes=KE(al.propTypes));function TK(e){return Ge("MuiPopper",e)}qe("MuiPopper",["root"]);function AK(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function nd(e){return typeof e=="function"?e():e}function mf(e){return e.nodeType!==void 0}function kK(e){return!mf(e)}const MK=e=>{const{classes:t}=e;return rt({root:["root"]},TK,t)},jK={},NK=_.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:o,disablePortal:a,modifiers:s,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:p={},slots:h={},TransitionProps:g,ownerState:m,...v}=t,y=_.useRef(null),S=Ht(y,n),x=_.useRef(null),b=Ht(x,d),O=_.useRef(b);Nr(()=>{O.current=b},[b]),_.useImperativeHandle(d,()=>x.current,[]);const E=AK(c,o),[C,T]=_.useState(E),[k,R]=_.useState(nd(r));_.useEffect(()=>{x.current&&x.current.forceUpdate()}),_.useEffect(()=>{r&&R(nd(r))},[r]),Nr(()=>{if(!k||!l)return;const N=K=>{T(K.placement)};if(process.env.NODE_ENV!=="production"&&k&&mf(k)&&k.nodeType===1){const K=k.getBoundingClientRect();process.env.NODE_ENV!=="test"&&K.top===0&&K.left===0&&K.right===0&&K.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
291
|
-
`))}let L=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:K})=>{N(K)}}];s!=null&&(L=L.concat(s)),u&&u.modifiers!=null&&(L=L.concat(u.modifiers));const B=PA(k,y.current,{placement:E,...u,modifiers:L});return O.current(B),()=>{B.destroy(),O.current(null)}},[k,a,s,l,u,E]);const M={placement:C};g!==null&&(M.TransitionProps=g);const P=MK(t),D=h.root??"div",j=CA({elementType:D,externalSlotProps:p.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:S},ownerState:t,className:P.root});return w.jsx(D,{...j,children:typeof i=="function"?i(M):i})}),TA=_.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:p=jK,popperRef:h,style:g,transition:m=!1,slotProps:v={},slots:y={},...S}=t,[x,b]=_.useState(!0),O=()=>{b(!1)},E=()=>{b(!0)};if(!l&&!u&&(!m||x))return null;let C;if(o)C=o;else if(r){const R=nd(r);C=R&&mf(R)?Ln(R).body:Ln(null).body}const T=!u&&l&&(!m||x)?"none":void 0,k=m?{in:u,onEnter:O,onExited:E}:void 0;return w.jsx(
|
|
290
|
+
`,mA=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a,...s}=r,[l,c]=_.useState([]),u=_.useRef(0),d=_.useRef(null);_.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const p=_.useRef(!1),h=sa(),g=_.useRef(null),m=_.useRef(null),v=_.useCallback(b=>{const{pulsate:O,rippleX:E,rippleY:C,rippleSize:T,cb:k}=b;c(R=>[...R,w.jsx(dq,{classes:{ripple:oe(o.ripple,Jn.ripple),rippleVisible:oe(o.rippleVisible,Jn.rippleVisible),ripplePulsate:oe(o.ripplePulsate,Jn.ripplePulsate),child:oe(o.child,Jn.child),childLeaving:oe(o.childLeaving,Jn.childLeaving),childPulsate:oe(o.childPulsate,Jn.childPulsate)},timeout:Um,pulsate:O,rippleX:E,rippleY:C,rippleSize:T},u.current)]),u.current+=1,d.current=k},[o]),y=_.useCallback((b={},O={},E=()=>{})=>{const{pulsate:C=!1,center:T=i||O.pulsate,fakeElement:k=!1}=O;if(b?.type==="mousedown"&&p.current){p.current=!1;return}b?.type==="touchstart"&&(p.current=!0);const R=k?null:m.current,M=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let P,D,j;if(T||b===void 0||b.clientX===0&&b.clientY===0||!b.clientX&&!b.touches)P=Math.round(M.width/2),D=Math.round(M.height/2);else{const{clientX:N,clientY:L}=b.touches&&b.touches.length>0?b.touches[0]:b;P=Math.round(N-M.left),D=Math.round(L-M.top)}if(T)j=Math.sqrt((2*M.width**2+M.height**2)/3),j%2===0&&(j+=1);else{const N=Math.max(Math.abs((R?R.clientWidth:0)-P),P)*2+2,L=Math.max(Math.abs((R?R.clientHeight:0)-D),D)*2+2;j=Math.sqrt(N**2+L**2)}b?.touches?g.current===null&&(g.current=()=>{v({pulsate:C,rippleX:P,rippleY:D,rippleSize:j,cb:E})},h.start(aq,()=>{g.current&&(g.current(),g.current=null)})):v({pulsate:C,rippleX:P,rippleY:D,rippleSize:j,cb:E})},[i,v,h]),S=_.useCallback(()=>{y({},{pulsate:!0})},[y]),x=_.useCallback((b,O)=>{if(h.clear(),b?.type==="touchend"&&g.current){g.current(),g.current=null,h.start(0,()=>{x(b,O)});return}g.current=null,c(E=>E.length>0?E.slice(1):E),d.current=O},[h]);return _.useImperativeHandle(n,()=>({pulsate:S,start:y,stop:x}),[S,y,x]),w.jsx(uq,{className:oe(Jn.root,o.root,a),ref:m,...s,children:w.jsx(Oy,{component:null,exit:!0,children:l})})});process.env.NODE_ENV!=="production"&&(mA.propTypes={center:f.bool,classes:f.object,className:f.string});function fq(e){return Ge("MuiButtonBase",e)}const pq=qe("MuiButtonBase",["root","disabled","focusVisible"]),hq=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=rt({root:["root",t&&"disabled",n&&"focusVisible"]},fq,i);return n&&r&&(a.root+=` ${r}`),a},mq=ve("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${pq.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ey=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:p=!1,focusVisibleClassName:h,LinkComponent:g="a",onBlur:m,onClick:v,onContextMenu:y,onDragLeave:S,onFocus:x,onFocusVisible:b,onKeyDown:O,onKeyUp:E,onMouseDown:C,onMouseLeave:T,onMouseUp:k,onTouchEnd:R,onTouchMove:M,onTouchStart:P,tabIndex:D=0,TouchRippleProps:j,touchRippleRef:N,type:L,...B}=r,K=_.useRef(null),z=iq(),F=Ht(z.ref,N),[G,Y]=_.useState(!1);c&&G&&Y(!1),_.useImperativeHandle(i,()=>({focusVisible:()=>{Y(!0),K.current.focus()}}),[]);const ne=z.shouldMount&&!u&&!c;_.useEffect(()=>{G&&p&&!u&&z.pulsate()},[u,p,G,z]);const Q=Vr(z,"start",C,d),X=Vr(z,"stop",y,d),te=Vr(z,"stop",S,d),ie=Vr(z,"stop",k,d),ae=Vr(z,"stop",de=>{G&&de.preventDefault(),T&&T(de)},d),W=Vr(z,"start",P,d),H=Vr(z,"stop",R,d),J=Vr(z,"stop",M,d),A=Vr(z,"stop",de=>{Qu(de.target)||Y(!1),m&&m(de)},!1),fe=Qr(de=>{K.current||(K.current=de.currentTarget),Qu(de.target)&&(Y(!0),b&&b(de)),x&&x(de)}),re=()=>{const de=K.current;return l&&l!=="button"&&!(de.tagName==="A"&&de.href)},me=Qr(de=>{p&&!de.repeat&&G&&de.key===" "&&z.stop(de,()=>{z.start(de)}),de.target===de.currentTarget&&re()&&de.key===" "&&de.preventDefault(),O&&O(de),de.target===de.currentTarget&&re()&&de.key==="Enter"&&!c&&(de.preventDefault(),v&&v(de))}),we=Qr(de=>{p&&de.key===" "&&G&&!de.defaultPrevented&&z.stop(de,()=>{z.pulsate(de)}),E&&E(de),v&&de.target===de.currentTarget&&re()&&de.key===" "&&!de.defaultPrevented&&v(de)});let Se=l;Se==="button"&&(B.href||B.to)&&(Se=g);const _e={};Se==="button"?(_e.type=L===void 0?"button":L,_e.disabled=c):(!B.href&&!B.to&&(_e.role="button"),c&&(_e["aria-disabled"]=c));const Ze=Ht(n,K),De={...r,centerRipple:o,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:p,tabIndex:D,focusVisible:G},Te=hq(De);return w.jsxs(mq,{as:Se,className:oe(Te.root,s),ownerState:De,onBlur:A,onClick:v,onContextMenu:X,onFocus:fe,onKeyDown:me,onKeyUp:we,onMouseDown:Q,onMouseLeave:ae,onMouseUp:ie,onDragLeave:te,onTouchEnd:H,onTouchMove:J,onTouchStart:W,ref:Ze,tabIndex:c?-1:D,type:L,..._e,...B,children:[a,ne?w.jsx(mA,{ref:F,center:o,...j}):null]})});function Vr(e,t,n,r=!1){return Qr(i=>(n&&n(i),r||e[t](i),!0))}process.env.NODE_ENV!=="production"&&(Ey.propTypes={action:ur,centerRipple:f.bool,children:f.node,classes:f.object,className:f.string,component:Sy,disabled:f.bool,disableRipple:f.bool,disableTouchRipple:f.bool,focusRipple:f.bool,focusVisibleClassName:f.string,href:f.any,LinkComponent:f.elementType,onBlur:f.func,onClick:f.func,onContextMenu:f.func,onDragLeave:f.func,onFocus:f.func,onFocusVisible:f.func,onKeyDown:f.func,onKeyUp:f.func,onMouseDown:f.func,onMouseLeave:f.func,onMouseUp:f.func,onTouchEnd:f.func,onTouchMove:f.func,onTouchStart:f.func,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),tabIndex:f.number,TouchRippleProps:f.object,touchRippleRef:f.oneOfType([f.func,f.shape({current:f.shape({pulsate:f.func.isRequired,start:f.func.isRequired,stop:f.func.isRequired})})]),type:f.oneOfType([f.oneOf(["button","reset","submit"]),f.string])});function gq(e){return typeof e.main=="string"}function vq(e,t=[]){if(!gq(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function No(e=[]){return([,t])=>t&&vq(t,e)}function yq(e){return Ge("MuiTypography",e)}const fO=qe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),bq={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},xq=$R(),wq=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,e.align!=="inherit"&&`align${Re(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return rt(s,yq,a)},Oq=ve("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Re(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(St(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(No()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${Re(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),pO={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},_s=_.forwardRef(function(t,n){const{color:r,...i}=ut({props:t,name:"MuiTypography"}),o=!bq[r],a=xq({...i,...o&&{color:r}}),{align:s="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:p=!1,variant:h="body1",variantMapping:g=pO,...m}=a,v={...a,align:s,color:r,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:p,variant:h,variantMapping:g},y=c||(p?"p":g[h]||pO[h])||"span",S=wq(v);return w.jsx(Oq,{as:y,ref:n,className:oe(S.root,l),...m,ownerState:v,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...m.style}})});process.env.NODE_ENV!=="production"&&(_s.propTypes={align:f.oneOf(["center","inherit","justify","left","right"]),children:f.node,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),f.string]),component:f.elementType,gutterBottom:f.bool,noWrap:f.bool,paragraph:f.bool,style:f.object,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),variant:f.oneOfType([f.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),f.string]),variantMapping:f.object});function li(e,t,n,r,i){if(process.env.NODE_ENV==="production")return null;const o=e[t],a=i||t;return o==null?null:o&&o.nodeType!==1?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var En="top",or="bottom",ar="right",_n="left",_y="auto",Kl=[En,or,ar,_n],Pa="start",ol="end",Sq="clippingParents",gA="viewport",ls="popper",Eq="reference",hO=Kl.reduce(function(e,t){return e.concat([t+"-"+Pa,t+"-"+ol])},[]),vA=[].concat(Kl,[_y]).reduce(function(e,t){return e.concat([t,t+"-"+Pa,t+"-"+ol])},[]),_q="beforeRead",Pq="read",Cq="afterRead",Tq="beforeMain",Aq="main",kq="afterMain",Mq="beforeWrite",jq="write",Nq="afterWrite",Rq=[_q,Pq,Cq,Tq,Aq,kq,Mq,jq,Nq];function $r(e){return e?(e.nodeName||"").toLowerCase():null}function Vn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ro(e){var t=Vn(e).Element;return e instanceof t||e instanceof Element}function nr(e){var t=Vn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Py(e){if(typeof ShadowRoot>"u")return!1;var t=Vn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Dq(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!nr(o)||!$r(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function Iq(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!nr(i)||!$r(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const yA={name:"applyStyles",enabled:!0,phase:"write",fn:Dq,effect:Iq,requires:["computeStyles"]};function kr(e){return e.split("-")[0]}var _o=Math.max,td=Math.min,Ca=Math.round;function Hm(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function bA(){return!/^((?!chrome|android).)*safari/i.test(Hm())}function Ta(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&nr(e)&&(i=e.offsetWidth>0&&Ca(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Ca(r.height)/e.offsetHeight||1);var a=Ro(e)?Vn(e):window,s=a.visualViewport,l=!bA()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,u=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,p=r.height/o;return{width:d,height:p,top:u,right:c+d,bottom:u+p,left:c,x:c,y:u}}function Cy(e){var t=Ta(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function xA(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Py(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ci(e){return Vn(e).getComputedStyle(e)}function $q(e){return["table","td","th"].indexOf($r(e))>=0}function Hi(e){return((Ro(e)?e.ownerDocument:e.document)||window.document).documentElement}function hf(e){return $r(e)==="html"?e:e.assignedSlot||e.parentNode||(Py(e)?e.host:null)||Hi(e)}function mO(e){return!nr(e)||ci(e).position==="fixed"?null:e.offsetParent}function Lq(e){var t=/firefox/i.test(Hm()),n=/Trident/i.test(Hm());if(n&&nr(e)){var r=ci(e);if(r.position==="fixed")return null}var i=hf(e);for(Py(i)&&(i=i.host);nr(i)&&["html","body"].indexOf($r(i))<0;){var o=ci(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Yl(e){for(var t=Vn(e),n=mO(e);n&&$q(n)&&ci(n).position==="static";)n=mO(n);return n&&($r(n)==="html"||$r(n)==="body"&&ci(n).position==="static")?t:n||Lq(e)||t}function Ty(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Rs(e,t,n){return _o(e,td(t,n))}function Fq(e,t,n){var r=Rs(e,t,n);return r>n?n:r}function wA(){return{top:0,right:0,bottom:0,left:0}}function OA(e){return Object.assign({},wA(),e)}function SA(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Bq=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,OA(typeof t!="number"?t:SA(t,Kl))};function zq(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=kr(n.placement),l=Ty(s),c=[_n,ar].indexOf(s)>=0,u=c?"height":"width";if(!(!o||!a)){var d=Bq(i.padding,n),p=Cy(o),h=l==="y"?En:_n,g=l==="y"?or:ar,m=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],v=a[l]-n.rects.reference[l],y=Yl(o),S=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,x=m/2-v/2,b=d[h],O=S-p[u]-d[g],E=S/2-p[u]/2+x,C=Rs(b,E,O),T=l;n.modifiersData[r]=(t={},t[T]=C,t.centerOffset=C-E,t)}}function Vq(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||xA(t.elements.popper,i)&&(t.elements.arrow=i))}const Wq={name:"arrow",enabled:!0,phase:"main",fn:zq,effect:Vq,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Aa(e){return e.split("-")[1]}var Uq={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Hq(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Ca(n*i)/i||0,y:Ca(r*i)/i||0}}function gO(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,h=p===void 0?0:p,g=a.y,m=g===void 0?0:g,v=typeof u=="function"?u({x:h,y:m}):{x:h,y:m};h=v.x,m=v.y;var y=a.hasOwnProperty("x"),S=a.hasOwnProperty("y"),x=_n,b=En,O=window;if(c){var E=Yl(n),C="clientHeight",T="clientWidth";if(E===Vn(n)&&(E=Hi(n),ci(E).position!=="static"&&s==="absolute"&&(C="scrollHeight",T="scrollWidth")),E=E,i===En||(i===_n||i===ar)&&o===ol){b=or;var k=d&&E===O&&O.visualViewport?O.visualViewport.height:E[C];m-=k-r.height,m*=l?1:-1}if(i===_n||(i===En||i===or)&&o===ol){x=ar;var R=d&&E===O&&O.visualViewport?O.visualViewport.width:E[T];h-=R-r.width,h*=l?1:-1}}var M=Object.assign({position:s},c&&Uq),P=u===!0?Hq({x:h,y:m},Vn(n)):{x:h,y:m};if(h=P.x,m=P.y,l){var D;return Object.assign({},M,(D={},D[b]=S?"0":"",D[x]=y?"0":"",D.transform=(O.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",D))}return Object.assign({},M,(t={},t[b]=S?m+"px":"",t[x]=y?h+"px":"",t.transform="",t))}function qq(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:kr(t.placement),variation:Aa(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,gO(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,gO(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Kq={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:qq,data:{}};var Pc={passive:!0};function Yq(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=Vn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,Pc)}),s&&l.addEventListener("resize",n.update,Pc),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Pc)}),s&&l.removeEventListener("resize",n.update,Pc)}}const Gq={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Yq,data:{}};var Xq={left:"right",right:"left",bottom:"top",top:"bottom"};function eu(e){return e.replace(/left|right|bottom|top/g,function(t){return Xq[t]})}var Zq={start:"end",end:"start"};function vO(e){return e.replace(/start|end/g,function(t){return Zq[t]})}function Ay(e){var t=Vn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ky(e){return Ta(Hi(e)).left+Ay(e).scrollLeft}function Jq(e,t){var n=Vn(e),r=Hi(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=bA();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+ky(e),y:l}}function Qq(e){var t,n=Hi(e),r=Ay(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=_o(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=_o(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+ky(e),l=-r.scrollTop;return ci(i||n).direction==="rtl"&&(s+=_o(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function My(e){var t=ci(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function EA(e){return["html","body","#document"].indexOf($r(e))>=0?e.ownerDocument.body:nr(e)&&My(e)?e:EA(hf(e))}function Ds(e,t){var n;t===void 0&&(t=[]);var r=EA(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Vn(r),a=i?[o].concat(o.visualViewport||[],My(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Ds(hf(a)))}function qm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function eK(e,t){var n=Ta(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function yO(e,t,n){return t===gA?qm(Jq(e,n)):Ro(t)?eK(t,n):qm(Qq(Hi(e)))}function tK(e){var t=Ds(hf(e)),n=["absolute","fixed"].indexOf(ci(e).position)>=0,r=n&&nr(e)?Yl(e):e;return Ro(r)?t.filter(function(i){return Ro(i)&&xA(i,r)&&$r(i)!=="body"}):[]}function nK(e,t,n,r){var i=t==="clippingParents"?tK(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,c){var u=yO(e,c,r);return l.top=_o(u.top,l.top),l.right=td(u.right,l.right),l.bottom=td(u.bottom,l.bottom),l.left=_o(u.left,l.left),l},yO(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function _A(e){var t=e.reference,n=e.element,r=e.placement,i=r?kr(r):null,o=r?Aa(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case En:l={x:a,y:t.y-n.height};break;case or:l={x:a,y:t.y+t.height};break;case ar:l={x:t.x+t.width,y:s};break;case _n:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?Ty(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case Pa:l[c]=l[c]-(t[u]/2-n[u]/2);break;case ol:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function al(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?Sq:s,c=n.rootBoundary,u=c===void 0?gA:c,d=n.elementContext,p=d===void 0?ls:d,h=n.altBoundary,g=h===void 0?!1:h,m=n.padding,v=m===void 0?0:m,y=OA(typeof v!="number"?v:SA(v,Kl)),S=p===ls?Eq:ls,x=e.rects.popper,b=e.elements[g?S:p],O=nK(Ro(b)?b:b.contextElement||Hi(e.elements.popper),l,u,a),E=Ta(e.elements.reference),C=_A({reference:E,element:x,placement:i}),T=qm(Object.assign({},x,C)),k=p===ls?T:E,R={top:O.top-k.top+y.top,bottom:k.bottom-O.bottom+y.bottom,left:O.left-k.left+y.left,right:k.right-O.right+y.right},M=e.modifiersData.offset;if(p===ls&&M){var P=M[i];Object.keys(R).forEach(function(D){var j=[ar,or].indexOf(D)>=0?1:-1,N=[En,or].indexOf(D)>=0?"y":"x";R[D]+=P[N]*j})}return R}function rK(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?vA:l,u=Aa(r),d=u?s?hO:hO.filter(function(g){return Aa(g)===u}):Kl,p=d.filter(function(g){return c.indexOf(g)>=0});p.length===0&&(p=d);var h=p.reduce(function(g,m){return g[m]=al(e,{placement:m,boundary:i,rootBoundary:o,padding:a})[kr(m)],g},{});return Object.keys(h).sort(function(g,m){return h[g]-h[m]})}function iK(e){if(kr(e)===_y)return[];var t=eu(e);return[vO(e),t,vO(t)]}function oK(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,g=h===void 0?!0:h,m=n.allowedAutoPlacements,v=t.options.placement,y=kr(v),S=y===v,x=l||(S||!g?[eu(v)]:iK(v)),b=[v].concat(x).reduce(function(Q,X){return Q.concat(kr(X)===_y?rK(t,{placement:X,boundary:u,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:m}):X)},[]),O=t.rects.reference,E=t.rects.popper,C=new Map,T=!0,k=b[0],R=0;R<b.length;R++){var M=b[R],P=kr(M),D=Aa(M)===Pa,j=[En,or].indexOf(P)>=0,N=j?"width":"height",L=al(t,{placement:M,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),B=j?D?ar:_n:D?or:En;O[N]>E[N]&&(B=eu(B));var K=eu(B),z=[];if(o&&z.push(L[P]<=0),s&&z.push(L[B]<=0,L[K]<=0),z.every(function(Q){return Q})){k=M,T=!1;break}C.set(M,z)}if(T)for(var F=g?3:1,G=function(X){var te=b.find(function(ie){var ae=C.get(ie);if(ae)return ae.slice(0,X).every(function(W){return W})});if(te)return k=te,"break"},Y=F;Y>0;Y--){var ne=G(Y);if(ne==="break")break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}}const aK={name:"flip",enabled:!0,phase:"main",fn:oK,requiresIfExists:["offset"],data:{_skip:!1}};function bO(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function xO(e){return[En,ar,or,_n].some(function(t){return e[t]>=0})}function sK(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=al(t,{elementContext:"reference"}),s=al(t,{altBoundary:!0}),l=bO(a,r),c=bO(s,i,o),u=xO(l),d=xO(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const lK={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:sK};function cK(e,t,n){var r=kr(e),i=[_n,En].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[_n,ar].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function uK(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=vA.reduce(function(u,d){return u[d]=cK(d,t.rects,o),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const dK={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:uK};function fK(e){var t=e.state,n=e.name;t.modifiersData[n]=_A({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const pK={name:"popperOffsets",enabled:!0,phase:"read",fn:fK,data:{}};function hK(e){return e==="x"?"y":"x"}function mK(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,h=p===void 0?!0:p,g=n.tetherOffset,m=g===void 0?0:g,v=al(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=kr(t.placement),S=Aa(t.placement),x=!S,b=Ty(y),O=hK(b),E=t.modifiersData.popperOffsets,C=t.rects.reference,T=t.rects.popper,k=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,R=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(E){if(o){var D,j=b==="y"?En:_n,N=b==="y"?or:ar,L=b==="y"?"height":"width",B=E[b],K=B+v[j],z=B-v[N],F=h?-T[L]/2:0,G=S===Pa?C[L]:T[L],Y=S===Pa?-T[L]:-C[L],ne=t.elements.arrow,Q=h&&ne?Cy(ne):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:wA(),te=X[j],ie=X[N],ae=Rs(0,C[L],Q[L]),W=x?C[L]/2-F-ae-te-R.mainAxis:G-ae-te-R.mainAxis,H=x?-C[L]/2+F+ae+ie+R.mainAxis:Y+ae+ie+R.mainAxis,J=t.elements.arrow&&Yl(t.elements.arrow),A=J?b==="y"?J.clientTop||0:J.clientLeft||0:0,fe=(D=M?.[b])!=null?D:0,re=B+W-fe-A,me=B+H-fe,we=Rs(h?td(K,re):K,B,h?_o(z,me):z);E[b]=we,P[b]=we-B}if(s){var Se,_e=b==="x"?En:_n,Ze=b==="x"?or:ar,De=E[O],Te=O==="y"?"height":"width",de=De+v[_e],Et=De-v[Ze],Je=[En,_n].indexOf(y)!==-1,tn=(Se=M?.[O])!=null?Se:0,Gt=Je?de:De-C[Te]-T[Te]-tn+R.altAxis,nn=Je?De+C[Te]+T[Te]-tn-R.altAxis:Et,mn=h&&Je?Fq(Gt,De,nn):Rs(h?Gt:de,De,h?nn:Et);E[O]=mn,P[O]=mn-De}t.modifiersData[r]=P}}const gK={name:"preventOverflow",enabled:!0,phase:"main",fn:mK,requiresIfExists:["offset"]};function vK(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function yK(e){return e===Vn(e)||!nr(e)?Ay(e):vK(e)}function bK(e){var t=e.getBoundingClientRect(),n=Ca(t.width)/e.offsetWidth||1,r=Ca(t.height)/e.offsetHeight||1;return n!==1||r!==1}function xK(e,t,n){n===void 0&&(n=!1);var r=nr(t),i=nr(t)&&bK(t),o=Hi(t),a=Ta(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(($r(t)!=="body"||My(o))&&(s=yK(t)),nr(t)?(l=Ta(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=ky(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function wK(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function OK(e){var t=wK(e);return Rq.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function SK(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function EK(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var wO={placement:"bottom",modifiers:[],strategy:"absolute"};function OO(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function _K(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?wO:i;return function(s,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},wO,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],p=!1,h={state:u,setOptions:function(y){var S=typeof y=="function"?y(u.options):y;m(),u.options=Object.assign({},o,u.options,S),u.scrollParents={reference:Ro(s)?Ds(s):s.contextElement?Ds(s.contextElement):[],popper:Ds(l)};var x=OK(EK([].concat(r,u.options.modifiers)));return u.orderedModifiers=x.filter(function(b){return b.enabled}),g(),h.update()},forceUpdate:function(){if(!p){var y=u.elements,S=y.reference,x=y.popper;if(OO(S,x)){u.rects={reference:xK(S,Yl(x),u.options.strategy==="fixed"),popper:Cy(x)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(R){return u.modifiersData[R.name]=Object.assign({},R.data)});for(var b=0;b<u.orderedModifiers.length;b++){if(u.reset===!0){u.reset=!1,b=-1;continue}var O=u.orderedModifiers[b],E=O.fn,C=O.options,T=C===void 0?{}:C,k=O.name;typeof E=="function"&&(u=E({state:u,options:T,name:k,instance:h})||u)}}}},update:SK(function(){return new Promise(function(v){h.forceUpdate(),v(u)})}),destroy:function(){m(),p=!0}};if(!OO(s,l))return h;h.setOptions(c).then(function(v){!p&&c.onFirstUpdate&&c.onFirstUpdate(v)});function g(){u.orderedModifiers.forEach(function(v){var y=v.name,S=v.options,x=S===void 0?{}:S,b=v.effect;if(typeof b=="function"){var O=b({state:u,name:y,instance:h,options:x}),E=function(){};d.push(O||E)}})}function m(){d.forEach(function(v){return v()}),d=[]}return h}}var PK=[Gq,pK,Kq,yA,dK,aK,gK,Wq,lK],PA=_K({defaultModifiers:PK});function CA(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...o}=e,a=i?{}:dA(n,r),{props:s,internalRef:l}=pA({...o,externalSlotProps:a}),c=Ht(l,a?.ref,e.additionalProps?.ref);return uA(t,{...s,ref:c},r)}function Ha(e){return parseInt(_.version,10)>=19?e?.props?.ref||null:e?.ref||null}function CK(e){return typeof e=="function"?e():e}const sl=_.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[a,s]=_.useState(null),l=Ht(_.isValidElement(r)?Ha(r):null,n);if(Nr(()=>{o||s(CK(i)||document.body)},[i,o]),Nr(()=>{if(a&&!o)return r0(n,a),()=>{r0(n,null)}},[n,a,o]),o){if(_.isValidElement(r)){const c={ref:l};return _.cloneElement(r,c)}return r}return a&&uM.createPortal(r,a)});process.env.NODE_ENV!=="production"&&(sl.propTypes={children:f.node,container:f.oneOfType([li,f.func]),disablePortal:f.bool});process.env.NODE_ENV!=="production"&&(sl.propTypes=KE(sl.propTypes));function TK(e){return Ge("MuiPopper",e)}qe("MuiPopper",["root"]);function AK(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function nd(e){return typeof e=="function"?e():e}function mf(e){return e.nodeType!==void 0}function kK(e){return!mf(e)}const MK=e=>{const{classes:t}=e;return rt({root:["root"]},TK,t)},jK={},NK=_.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:o,disablePortal:a,modifiers:s,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:p={},slots:h={},TransitionProps:g,ownerState:m,...v}=t,y=_.useRef(null),S=Ht(y,n),x=_.useRef(null),b=Ht(x,d),O=_.useRef(b);Nr(()=>{O.current=b},[b]),_.useImperativeHandle(d,()=>x.current,[]);const E=AK(c,o),[C,T]=_.useState(E),[k,R]=_.useState(nd(r));_.useEffect(()=>{x.current&&x.current.forceUpdate()}),_.useEffect(()=>{r&&R(nd(r))},[r]),Nr(()=>{if(!k||!l)return;const N=K=>{T(K.placement)};if(process.env.NODE_ENV!=="production"&&k&&mf(k)&&k.nodeType===1){const K=k.getBoundingClientRect();process.env.NODE_ENV!=="test"&&K.top===0&&K.left===0&&K.right===0&&K.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
291
|
+
`))}let L=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:K})=>{N(K)}}];s!=null&&(L=L.concat(s)),u&&u.modifiers!=null&&(L=L.concat(u.modifiers));const B=PA(k,y.current,{placement:E,...u,modifiers:L});return O.current(B),()=>{B.destroy(),O.current(null)}},[k,a,s,l,u,E]);const M={placement:C};g!==null&&(M.TransitionProps=g);const P=MK(t),D=h.root??"div",j=CA({elementType:D,externalSlotProps:p.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:S},ownerState:t,className:P.root});return w.jsx(D,{...j,children:typeof i=="function"?i(M):i})}),TA=_.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:p=jK,popperRef:h,style:g,transition:m=!1,slotProps:v={},slots:y={},...S}=t,[x,b]=_.useState(!0),O=()=>{b(!1)},E=()=>{b(!0)};if(!l&&!u&&(!m||x))return null;let C;if(o)C=o;else if(r){const R=nd(r);C=R&&mf(R)?Ln(R).body:Ln(null).body}const T=!u&&l&&(!m||x)?"none":void 0,k=m?{in:u,onEnter:O,onExited:E}:void 0;return w.jsx(sl,{disablePortal:s,container:C,children:w.jsx(NK,{anchorEl:r,direction:a,disablePortal:s,modifiers:c,ref:n,open:m?!x:u,placement:d,popperOptions:p,popperRef:h,slotProps:v,slots:y,...S,style:{position:"fixed",top:0,left:0,display:T,...g},TransitionProps:k,children:i})})});process.env.NODE_ENV!=="production"&&(TA.propTypes={anchorEl:Ua(f.oneOfType([li,f.object,f.func]),e=>{if(e.open){const t=nd(e.anchorEl);if(t&&mf(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
292
292
|
`))}else if(!t||typeof t.getBoundingClientRect!="function"||kK(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
|
|
293
293
|
`))}return null}),children:f.oneOfType([f.node,f.func]),container:f.oneOfType([li,f.func]),direction:f.oneOf(["ltr","rtl"]),disablePortal:f.bool,keepMounted:f.bool,modifiers:f.arrayOf(f.shape({data:f.object,effect:f.func,enabled:f.bool,fn:f.func,name:f.any,options:f.object,phase:f.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:f.arrayOf(f.string),requiresIfExists:f.arrayOf(f.string)})),open:f.bool.isRequired,placement:f.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:f.shape({modifiers:f.array,onFirstUpdate:f.func,placement:f.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:f.oneOf(["absolute","fixed"])}),popperRef:ur,slotProps:f.shape({root:f.oneOfType([f.func,f.object])}),slots:f.shape({root:f.elementType}),transition:f.bool});const RK=ve(TA,{name:"MuiPopper",slot:"Root"})({}),jy=_.forwardRef(function(t,n){const r=xg(),i=ut({props:t,name:"MuiPopper"}),{anchorEl:o,component:a,components:s,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:h,placement:g,popperOptions:m,popperRef:v,transition:y,slots:S,slotProps:x,...b}=i,O=S?.root??s?.Root,E={anchorEl:o,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:h,placement:g,popperOptions:m,popperRef:v,transition:y,...b};return w.jsx(RK,{as:a,direction:r?"rtl":"ltr",slots:{root:O},slotProps:x??l,...E,ref:n})});process.env.NODE_ENV!=="production"&&(jy.propTypes={anchorEl:f.oneOfType([li,f.object,f.func]),children:f.oneOfType([f.node,f.func]),component:f.elementType,components:f.shape({Root:f.elementType}),componentsProps:f.shape({root:f.oneOfType([f.func,f.object])}),container:f.oneOfType([li,f.func]),disablePortal:f.bool,keepMounted:f.bool,modifiers:f.arrayOf(f.shape({data:f.object,effect:f.func,enabled:f.bool,fn:f.func,name:f.any,options:f.object,phase:f.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:f.arrayOf(f.string),requiresIfExists:f.arrayOf(f.string)})),open:f.bool.isRequired,placement:f.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:f.shape({modifiers:f.array,onFirstUpdate:f.func,placement:f.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:f.oneOf(["absolute","fixed"])}),popperRef:ur,slotProps:f.shape({root:f.oneOfType([f.func,f.object])}),slots:f.shape({root:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),transition:f.bool});function Cc(e){return parseInt(e,10)||0}const DK={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function IK(e){for(const t in e)return!1;return!0}function SO(e){return IK(e)||e.outerHeightStyle===0&&!e.overflowing}const AA=_.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:o=1,style:a,value:s,...l}=t,{current:c}=_.useRef(s!=null),u=_.useRef(null),d=Ht(n,u),p=_.useRef(null),h=_.useRef(null),g=_.useCallback(()=>{const x=u.current,b=h.current;if(!x||!b)return;const E=ri(x).getComputedStyle(x);if(E.width==="0px")return{outerHeightStyle:0,overflowing:!1};b.style.width=E.width,b.value=x.value||t.placeholder||"x",b.value.slice(-1)===`
|
|
294
294
|
`&&(b.value+=" ");const C=E.boxSizing,T=Cc(E.paddingBottom)+Cc(E.paddingTop),k=Cc(E.borderBottomWidth)+Cc(E.borderTopWidth),R=b.scrollHeight;b.value="x";const M=b.scrollHeight;let P=R;o&&(P=Math.max(Number(o)*M,P)),i&&(P=Math.min(Number(i)*M,P)),P=Math.max(P,M);const D=P+(C==="border-box"?T+k:0),j=Math.abs(P-R)<=1;return{outerHeightStyle:D,overflowing:j}},[i,o,t.placeholder]),m=Qr(()=>{const x=u.current,b=g();if(!x||!b||SO(b))return!1;const O=b.outerHeightStyle;return p.current!=null&&p.current!==O}),v=_.useCallback(()=>{const x=u.current,b=g();if(!x||!b||SO(b))return;const O=b.outerHeightStyle;p.current!==O&&(p.current=O,x.style.height=`${O}px`),x.style.overflow=b.overflowing?"hidden":""},[g]),y=_.useRef(-1);Nr(()=>{const x=n_(v),b=u?.current;if(!b)return;const O=ri(b);O.addEventListener("resize",x);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(()=>{m()&&(E.unobserve(b),cancelAnimationFrame(y.current),v(),y.current=requestAnimationFrame(()=>{E.observe(b)}))}),E.observe(b)),()=>{x.clear(),cancelAnimationFrame(y.current),O.removeEventListener("resize",x),E&&E.disconnect()}},[g,v,m]),Nr(()=>{v()});const S=x=>{c||v();const b=x.target,O=b.value.length,E=b.value.endsWith(`
|
|
295
295
|
`),C=b.selectionStart===O;E&&C&&b.setSelectionRange(O,O),r&&r(x)};return w.jsxs(_.Fragment,{children:[w.jsx("textarea",{value:s,onChange:S,ref:d,rows:o,style:a,...l}),w.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:{...DK.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(AA.propTypes={className:f.string,maxRows:f.oneOfType([f.number,f.string]),minRows:f.oneOfType([f.number,f.string]),onChange:f.func,placeholder:f.string,style:f.object,value:f.oneOfType([f.arrayOf(f.string),f.number,f.string])});function qa({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const gf=_.createContext(void 0);process.env.NODE_ENV!=="production"&&(gf.displayName="FormControlContext");function Wo(){return _.useContext(gf)}function EO(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function rd(e,t=!1){return e&&(EO(e.value)&&e.value!==""||t&&EO(e.defaultValue)&&e.defaultValue!=="")}function $K(e){return e.startAdornment}function LK(e){return Ge("MuiInputBase",e)}const ka=qe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var _O;const vf=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Re(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},yf=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},FK=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:h,type:g}=e,m={root:["root",`color${Re(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&p!=="medium"&&`size${Re(p)}`,u&&"multiline",h&&"adornedStart",o&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",u&&"inputMultiline",p==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return rt(m,LK,t)},bf=ve("div",{name:"MuiInputBase",slot:"Root",overridesResolver:vf})(St(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ka.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),xf=ve("input",{name:"MuiInputBase",slot:"Input",overridesResolver:yf})(St(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ka.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${ka.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:o})=>!o.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:o})=>o.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),PO=IR({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),wf=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:o,autoFocus:a,className:s,color:l,components:c={},componentsProps:u={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:h,endAdornment:g,error:m,fullWidth:v=!1,id:y,inputComponent:S="input",inputProps:x={},inputRef:b,margin:O,maxRows:E,minRows:C,multiline:T=!1,name:k,onBlur:R,onChange:M,onClick:P,onFocus:D,onKeyDown:j,onKeyUp:N,placeholder:L,readOnly:B,renderSuffix:K,rows:z,size:F,slotProps:G={},slots:Y={},startAdornment:ne,type:Q="text",value:X,...te}=r,ie=x.value!=null?x.value:X,{current:ae}=_.useRef(ie!=null),W=_.useRef(),H=_.useCallback(ye=>{process.env.NODE_ENV!=="production"&&ye&&ye.nodeName!=="INPUT"&&!ye.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
296
|
-
`))},[]),J=Ht(W,b,x.ref,H),[A,fe]=_.useState(!1),re=Wo();process.env.NODE_ENV!=="production"&&_.useEffect(()=>{if(re)return re.registerEffect()},[re]);const me=qa({props:r,muiFormControl:re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});me.focused=re?re.focused:A,_.useEffect(()=>{!re&&p&&A&&(fe(!1),R&&R())},[re,p,A,R]);const we=re&&re.onFilled,Se=re&&re.onEmpty,_e=_.useCallback(ye=>{rd(ye)?we&&we():Se&&Se()},[we,Se]);Nr(()=>{ae&&_e({value:ie})},[ie,_e,ae]);const Ze=ye=>{D&&D(ye),x.onFocus&&x.onFocus(ye),re&&re.onFocus?re.onFocus(ye):fe(!0)},De=ye=>{R&&R(ye),x.onBlur&&x.onBlur(ye),re&&re.onBlur?re.onBlur(ye):fe(!1)},Te=(ye,...rn)=>{if(!ae){const zt=ye.target||W.current;if(zt==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":jr(1));_e({value:zt.value})}x.onChange&&x.onChange(ye,...rn),M&&M(ye,...rn)};_.useEffect(()=>{_e(W.current)},[]);const de=ye=>{W.current&&ye.currentTarget===ye.target&&W.current.focus(),P&&P(ye)};let Et=S,Je=x;T&&Et==="input"&&(z?(process.env.NODE_ENV!=="production"&&(C||E)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Je={type:void 0,minRows:z,maxRows:z,...Je}):Je={type:void 0,maxRows:E,minRows:C,...Je},Et=AA);const tn=ye=>{_e(ye.animationName==="mui-auto-fill-cancel"?W.current:{value:"x"})};_.useEffect(()=>{re&&re.setAdornedStart(!!ne)},[re,ne]);const Gt={...r,color:me.color||"primary",disabled:me.disabled,endAdornment:g,error:me.error,focused:me.focused,formControl:re,fullWidth:v,hiddenLabel:me.hiddenLabel,multiline:T,size:me.size,startAdornment:ne,type:Q},nn=FK(Gt),mn=Y.root||c.Root||bf,Bt=G.root||u.root||{},gn=Y.input||c.Input||xf;return Je={...Je,...G.input??u.input},w.jsxs(_.Fragment,{children:[!h&&typeof PO=="function"&&(_O||(_O=w.jsx(PO,{}))),w.jsxs(mn,{...Bt,ref:n,onClick:de,...te,...!Ju(mn)&&{ownerState:{...Gt,...Bt.ownerState}},className:oe(nn.root,Bt.className,s,B&&"MuiInputBase-readOnly"),children:[ne,w.jsx(gf.Provider,{value:null,children:w.jsx(gn,{"aria-invalid":me.error,"aria-describedby":i,autoComplete:o,autoFocus:a,defaultValue:d,disabled:me.disabled,id:y,onAnimationStart:tn,name:k,placeholder:L,readOnly:B,required:me.required,rows:z,value:ie,onKeyDown:j,onKeyUp:N,type:Q,...Je,...!Ju(gn)&&{as:Et,ownerState:{...Gt,...Je.ownerState}},ref:J,className:oe(nn.input,Je.className,B&&"MuiInputBase-readOnly"),onBlur:De,onChange:Te,onFocus:Ze})}),g,K?K({...me,startAdornment:ne}):null]})]})});process.env.NODE_ENV!=="production"&&(wf.propTypes={"aria-describedby":f.string,autoComplete:f.string,autoFocus:f.bool,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["primary","secondary","error","info","success","warning"]),f.string]),components:f.shape({Input:f.elementType,Root:f.elementType}),componentsProps:f.shape({input:f.object,root:f.object}),defaultValue:f.any,disabled:f.bool,disableInjectingGlobalStyles:f.bool,endAdornment:f.node,error:f.bool,fullWidth:f.bool,id:f.string,inputComponent:Sy,inputProps:f.object,inputRef:ur,margin:f.oneOf(["dense","none"]),maxRows:f.oneOfType([f.number,f.string]),minRows:f.oneOfType([f.number,f.string]),multiline:f.bool,name:f.string,onBlur:f.func,onChange:f.func,onClick:f.func,onFocus:f.func,onInvalid:f.func,onKeyDown:f.func,onKeyUp:f.func,placeholder:f.string,readOnly:f.bool,renderSuffix:f.func,required:f.bool,rows:f.oneOfType([f.number,f.string]),size:f.oneOfType([f.oneOf(["medium","small"]),f.string]),slotProps:f.shape({input:f.object,root:f.object}),slots:f.shape({input:f.elementType,root:f.elementType}),startAdornment:f.node,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),type:f.string,value:f.any});function BK(e){return Ge("MuiInput",e)}const ls={...ka,...qe("MuiInput",["root","underline","input"])};function zK(e){return Ge("MuiOutlinedInput",e)}const br={...ka,...qe("MuiOutlinedInput",["root","notchedOutline","input"])};function VK(e){return Ge("MuiFilledInput",e)}const Qi={...ka,...qe("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},WK=Fi(w.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function UK(e){const{prototype:t={}}=e;return!!t.isReactComponent}function kA(e,t,n,r,i){const o=e[t],a=i||t;if(o==null||typeof window>"u")return null;let s;const l=o.type;return typeof l=="function"&&!UK(l)&&(s="Did you accidentally use a plain function component for an element instead?"),s!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Ka=Ua(f.element,kA);Ka.isRequired=Ua(f.element.isRequired,kA);const HK={entering:{opacity:1},entered:{opacity:1}},MA=_.forwardRef(function(t,n){const r=kd(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:h,onExited:g,onExiting:m,style:v,timeout:y=i,TransitionComponent:S=Fr,...x}=t,b=_.useRef(null),O=Ht(b,Ha(s),n),E=j=>N=>{if(j){const L=b.current;N===void 0?j(L):j(L,N)}},C=E(p),T=E((j,N)=>{oA(j);const L=Zu({style:v,timeout:y,easing:l},{mode:"enter"});j.style.webkitTransition=r.transitions.create("opacity",L),j.style.transition=r.transitions.create("opacity",L),u&&u(j,N)}),k=E(d),R=E(m),M=E(j=>{const N=Zu({style:v,timeout:y,easing:l},{mode:"exit"});j.style.webkitTransition=r.transitions.create("opacity",N),j.style.transition=r.transitions.create("opacity",N),h&&h(j)}),P=E(g),D=j=>{o&&o(b.current,j)};return w.jsx(S,{appear:a,in:c,nodeRef:b,onEnter:T,onEntered:k,onEntering:C,onExit:M,onExited:P,onExiting:R,addEndListener:D,timeout:y,...x,children:(j,{ownerState:N,...L})=>_.cloneElement(s,{style:{opacity:0,visibility:j==="exited"&&!c?"hidden":void 0,...HK[j],...v,...s.props.style},ref:O,...L})})});process.env.NODE_ENV!=="production"&&(MA.propTypes={addEndListener:f.func,appear:f.bool,children:Ka.isRequired,easing:f.oneOfType([f.shape({enter:f.string,exit:f.string}),f.string]),in:f.bool,onEnter:f.func,onEntered:f.func,onEntering:f.func,onExit:f.func,onExited:f.func,onExiting:f.func,style:f.object,timeout:f.oneOfType([f.number,f.shape({appear:f.number,enter:f.number,exit:f.number})])});function qK(e){return Ge("MuiBackdrop",e)}qe("MuiBackdrop",["root","invisible"]);const KK=e=>{const{classes:t,invisible:n}=e;return rt({root:["root",n&&"invisible"]},qK,t)},YK=ve("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),jA=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiBackdrop"}),{children:i,className:o,component:a="div",invisible:s=!1,open:l,components:c={},componentsProps:u={},slotProps:d={},slots:p={},TransitionComponent:h,transitionDuration:g,...m}=r,v={...r,component:a,invisible:s},y=KK(v),S={transition:h,root:c.Root,...p},x={...u,...d},b={component:a,slots:S,slotProps:x},[O,E]=ot("root",{elementType:YK,externalForwardedProps:b,className:oe(y.root,o),ownerState:v}),[C,T]=ot("transition",{elementType:MA,externalForwardedProps:b,ownerState:v});return w.jsx(C,{in:l,timeout:g,...m,...T,children:w.jsx(O,{"aria-hidden":!0,...E,classes:y,ref:n,children:i})})});process.env.NODE_ENV!=="production"&&(jA.propTypes={children:f.node,classes:f.object,className:f.string,component:f.elementType,components:f.shape({Root:f.elementType}),componentsProps:f.shape({root:f.object}),invisible:f.bool,open:f.bool.isRequired,slotProps:f.shape({root:f.oneOfType([f.func,f.object]),transition:f.oneOfType([f.func,f.object])}),slots:f.shape({root:f.elementType,transition:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),TransitionComponent:f.elementType,transitionDuration:f.oneOfType([f.number,f.shape({appear:f.number,enter:f.number,exit:f.number})])});function GK(e){return Ge("PrivateSwitchBase",e)}qe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const XK=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${Re(i)}`],input:["input"]};return rt(o,GK,t)},ZK=ve(Ey,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),JK=ve("input",{name:"MuiSwitchBase",shouldForwardProp:Wn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),NA=_.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:h,name:g,onBlur:m,onChange:v,onFocus:y,readOnly:S,required:x=!1,tabIndex:b,type:O,value:E,slots:C={},slotProps:T={},...k}=t,[R,M]=uu({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),P=Wo(),D=X=>{y&&y(X),P&&P.onFocus&&P.onFocus(X)},j=X=>{m&&m(X),P&&P.onBlur&&P.onBlur(X)},N=X=>{if(X.nativeEvent.defaultPrevented)return;const te=X.target.checked;M(te),v&&v(X,te)};let L=s;P&&typeof L>"u"&&(L=P.disabled);const B=O==="checkbox"||O==="radio",K={...t,checked:R,disabled:L,disableFocusRipple:l,edge:c},z=XK(K),F={slots:C,slotProps:{input:p,...T}},[G,Y]=ot("root",{ref:n,elementType:ZK,className:z.root,shouldForwardComponentProp:!0,externalForwardedProps:{...F,component:"span",...k},getSlotProps:X=>({...X,onFocus:te=>{X.onFocus?.(te),D(te)},onBlur:te=>{X.onBlur?.(te),j(te)}}),ownerState:K,additionalProps:{centerRipple:!0,focusRipple:!l,disabled:L,role:void 0,tabIndex:null}}),[ne,Q]=ot("input",{ref:h,elementType:JK,className:z.input,externalForwardedProps:F,getSlotProps:X=>({...X,onChange:te=>{X.onChange?.(te),N(te)}}),ownerState:K,additionalProps:{autoFocus:r,checked:i,defaultChecked:a,disabled:L,id:B?d:void 0,name:g,readOnly:S,required:x,tabIndex:b,type:O,...O==="checkbox"&&E===void 0?{}:{value:E}}});return w.jsxs(G,{...Y,children:[w.jsx(ne,{...Q}),R?o:u]})});process.env.NODE_ENV!=="production"&&(NA.propTypes={autoFocus:f.bool,checked:f.bool,checkedIcon:f.node.isRequired,classes:f.object,className:f.string,defaultChecked:f.bool,disabled:f.bool,disableFocusRipple:f.bool,edge:f.oneOf(["end","start",!1]),icon:f.node.isRequired,id:f.string,inputProps:f.object,inputRef:ur,name:f.string,onBlur:f.func,onChange:f.func,onFocus:f.func,readOnly:f.bool,required:f.bool,slotProps:f.shape({input:f.oneOfType([f.func,f.object]),root:f.oneOfType([f.func,f.object])}),slots:f.shape({input:f.elementType,root:f.elementType}),sx:f.object,tabIndex:f.oneOfType([f.number,f.string]),type:f.string.isRequired,value:f.any});const QK=Fi(w.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),eY=Fi(w.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),tY=Fi(w.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function nY(e){return Ge("MuiCheckbox",e)}const xh=qe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),rY=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${Re(r)}`,`size${Re(i)}`]},a=rt(o,nY,t);return{...t,...a}},iY=ve(NA,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Re(n.size)}`],n.color!=="default"&&t[`color${Re(n.color)}`]]}})(St(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(No()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(No()).map(([t])=>({props:{color:t},style:{[`&.${xh.checked}, &.${xh.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${xh.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),oY=w.jsx(eY,{}),aY=w.jsx(QK,{}),sY=w.jsx(tY,{}),Km=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiCheckbox"}),{checkedIcon:i=oY,color:o="primary",icon:a=aY,indeterminate:s=!1,indeterminateIcon:l=sY,inputProps:c,size:u="medium",disableRipple:d=!1,className:p,slots:h={},slotProps:g={},...m}=r,v=s?l:a,y=s?l:i,S={...r,disableRipple:d,color:o,indeterminate:s,size:u},x=rY(S),b=g.input??c,[O,E]=ot("root",{ref:n,elementType:iY,className:oe(x.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:h,slotProps:g,...m},ownerState:S,additionalProps:{type:"checkbox",icon:_.cloneElement(v,{fontSize:v.props.fontSize??u}),checkedIcon:_.cloneElement(y,{fontSize:y.props.fontSize??u}),disableRipple:d,slots:h,slotProps:{input:r_(typeof b=="function"?b(S):b,{"data-indeterminate":s})}}});return w.jsx(O,{...E,classes:x})});process.env.NODE_ENV!=="production"&&(Km.propTypes={checked:f.bool,checkedIcon:f.node,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["default","primary","secondary","error","info","success","warning"]),f.string]),defaultChecked:f.bool,disabled:f.bool,disableRipple:f.bool,icon:f.node,id:f.string,indeterminate:f.bool,indeterminateIcon:f.node,inputProps:f.object,onChange:f.func,required:f.bool,size:f.oneOfType([f.oneOf(["medium","small"]),f.string]),slotProps:f.shape({input:f.oneOfType([f.func,f.object]),root:f.oneOfType([f.func,f.object])}),slots:f.shape({input:f.elementType,root:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),value:f.any});function RA(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function lY(e){const t=Ln(e);return t.body===e?ri(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ds(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function CO(e){return parseInt(ri(e).getComputedStyle(e).paddingRight,10)||0}function cY(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function TO(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,a=>{const s=!o.includes(a),l=!cY(a);s&&l&&Ds(a,i)})}function wh(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function uY(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(lY(r)){const a=RA(ri(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${CO(r)+a}px`;const s=Ln(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${CO(l)+a}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Ln(r).body;else{const a=r.parentElement,s=ri(r);o=a?.nodeName==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:a,property:s})=>{o?a.style.setProperty(s,o):a.style.removeProperty(s)})}}function dY(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class fY{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Ds(t.modalRef,!1);const i=dY(n);TO(n,t.mount,t.modalRef,i,!0);const o=wh(this.containers,a=>a.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=wh(this.containers,o=>o.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=uY(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=wh(this.containers,a=>a.modals.includes(t)),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&Ds(t.modalRef,n),TO(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=o.modals[o.modals.length-1];a.modalRef&&Ds(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const pY=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function hY(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function mY(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function gY(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||mY(e))}function vY(e){const t=[],n=[];return Array.from(e.querySelectorAll(pY)).forEach((r,i)=>{const o=hY(r);o===-1||!gY(r)||(o===0?t.push(r):n.push({documentOrder:i,tabIndex:o,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function yY(){return!0}function id(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=vY,isEnabled:a=yY,open:s}=e,l=_.useRef(!1),c=_.useRef(null),u=_.useRef(null),d=_.useRef(null),p=_.useRef(null),h=_.useRef(!1),g=_.useRef(null),m=Ht(Ha(t),g),v=_.useRef(null);_.useEffect(()=>{!s||!g.current||(h.current=!n)},[n,s]),_.useEffect(()=>{if(!s||!g.current)return;const x=Ln(g.current);return g.current.contains(x.activeElement)||(g.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
297
|
-
`)),g.current.setAttribute("tabIndex","-1")),h.current&&g.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),_.useEffect(()=>{if(!s||!g.current)return;const x=Ln(g.current),b=C=>{v.current=C,!(r||!a()||C.key!=="Tab")&&x.activeElement===g.current&&C.shiftKey&&(l.current=!0,u.current&&u.current.focus())},O=()=>{const C=g.current;if(C===null)return;if(!x.hasFocus()||!a()||l.current){l.current=!1;return}if(C.contains(x.activeElement)||r&&x.activeElement!==c.current&&x.activeElement!==u.current)return;if(x.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!h.current)return;let T=[];if((x.activeElement===c.current||x.activeElement===u.current)&&(T=o(g.current)),T.length>0){const k=!!(v.current?.shiftKey&&v.current?.key==="Tab"),R=T[0],M=T[T.length-1];typeof R!="string"&&typeof M!="string"&&(k?M.focus():R.focus())}else C.focus()};x.addEventListener("focusin",O),x.addEventListener("keydown",b,!0);const E=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&O()},50);return()=>{clearInterval(E),x.removeEventListener("focusin",O),x.removeEventListener("keydown",b,!0)}},[n,r,i,a,s,o]);const y=x=>{d.current===null&&(d.current=x.relatedTarget),h.current=!0,p.current=x.target;const b=t.props.onFocus;b&&b(x)},S=x=>{d.current===null&&(d.current=x.relatedTarget),h.current=!0};return w.jsxs(_.Fragment,{children:[w.jsx("div",{tabIndex:s?0:-1,onFocus:S,ref:c,"data-testid":"sentinelStart"}),_.cloneElement(t,{ref:m,onFocus:y}),w.jsx("div",{tabIndex:s?0:-1,onFocus:S,ref:u,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(id.propTypes={children:Ka,disableAutoFocus:f.bool,disableEnforceFocus:f.bool,disableRestoreFocus:f.bool,getTabbable:f.func,isEnabled:f.func,open:f.bool.isRequired});process.env.NODE_ENV!=="production"&&(id.propTypes=KE(id.propTypes));function bY(e){return typeof e=="function"?e():e}function xY(e){return e?e.props.hasOwnProperty("in"):!1}const AO=()=>{},Tc=new fY;function wY(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:o,onTransitionExited:a,children:s,onClose:l,open:c,rootRef:u}=e,d=_.useRef({}),p=_.useRef(null),h=_.useRef(null),g=Ht(h,u),[m,v]=_.useState(!c),y=xY(s);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const x=()=>Ln(p.current),b=()=>(d.current.modalRef=h.current,d.current.mount=p.current,d.current),O=()=>{Tc.mount(b(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},E=Qr(()=>{const N=bY(t)||x().body;Tc.add(b(),N),h.current&&O()}),C=()=>Tc.isTopModal(b()),T=Qr(N=>{p.current=N,N&&(c&&C()?O():h.current&&Ds(h.current,S))}),k=_.useCallback(()=>{Tc.remove(b(),S)},[S]);_.useEffect(()=>()=>{k()},[k]),_.useEffect(()=>{c?E():(!y||!i)&&k()},[c,k,y,i,E]);const R=N=>L=>{N.onKeyDown?.(L),!(L.key!=="Escape"||L.which===229||!C())&&(n||(L.stopPropagation(),l&&l(L,"escapeKeyDown")))},M=N=>L=>{N.onClick?.(L),L.target===L.currentTarget&&l&&l(L,"backdropClick")};return{getRootProps:(N={})=>{const L=fA(e);delete L.onTransitionEnter,delete L.onTransitionExited;const B={...L,...N};return{role:"presentation",...B,onKeyDown:R(B),ref:g}},getBackdropProps:(N={})=>{const L=N;return{"aria-hidden":!0,...L,onClick:M(L),open:c}},getTransitionProps:()=>{const N=()=>{v(!1),o&&o()},L=()=>{v(!0),a&&a(),i&&k()};return{onEnter:db(N,s?.props.onEnter??AO),onExited:db(L,s?.props.onExited??AO)}},rootRef:g,portalRef:T,isTopModal:C,exited:m,hasTransition:y}}function OY(e){return Ge("MuiModal",e)}qe("MuiModal",["root","hidden","backdrop"]);const SY=e=>{const{open:t,exited:n,classes:r}=e;return rt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},OY,r)},EY=ve("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(St(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),_Y=ve(jA,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),DA=_.forwardRef(function(t,n){const r=ut({name:"MuiModal",props:t}),{BackdropComponent:i=_Y,BackdropProps:o,classes:a,className:s,closeAfterTransition:l=!1,children:c,container:u,component:d,components:p={},componentsProps:h={},disableAutoFocus:g=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:v=!1,disablePortal:y=!1,disableRestoreFocus:S=!1,disableScrollLock:x=!1,hideBackdrop:b=!1,keepMounted:O=!1,onClose:E,onTransitionEnter:C,onTransitionExited:T,open:k,slotProps:R={},slots:M={},theme:P,...D}=r,j={...r,closeAfterTransition:l,disableAutoFocus:g,disableEnforceFocus:m,disableEscapeKeyDown:v,disablePortal:y,disableRestoreFocus:S,disableScrollLock:x,hideBackdrop:b,keepMounted:O},{getRootProps:N,getBackdropProps:L,getTransitionProps:B,portalRef:K,isTopModal:z,exited:F,hasTransition:G}=wY({...j,rootRef:n}),Y={...j,exited:F},ne=SY(Y),Q={};if(c.props.tabIndex===void 0&&(Q.tabIndex="-1"),G){const{onEnter:H,onExited:J}=B();Q.onEnter=H,Q.onExited=J}const X={slots:{root:p.Root,backdrop:p.Backdrop,...M},slotProps:{...h,...R}},[te,ie]=ot("root",{ref:n,elementType:EY,externalForwardedProps:{...X,...D,component:d},getSlotProps:N,ownerState:Y,className:oe(s,ne?.root,!Y.open&&Y.exited&&ne?.hidden)}),[ae,W]=ot("backdrop",{ref:o?.ref,elementType:i,externalForwardedProps:X,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:H=>L({...H,onClick:J=>{H?.onClick&&H.onClick(J)}}),className:oe(o?.className,ne?.backdrop),ownerState:Y});return!O&&!k&&(!G||F)?null:w.jsx(al,{ref:K,container:u,disablePortal:y,children:w.jsxs(te,{...ie,children:[!b&&i?w.jsx(ae,{...W}):null,w.jsx(id,{disableEnforceFocus:m,disableAutoFocus:g,disableRestoreFocus:S,isEnabled:z,open:k,children:_.cloneElement(c,Q)})]})})});process.env.NODE_ENV!=="production"&&(DA.propTypes={BackdropComponent:f.elementType,BackdropProps:f.object,children:Ka.isRequired,classes:f.object,className:f.string,closeAfterTransition:f.bool,component:f.elementType,components:f.shape({Backdrop:f.elementType,Root:f.elementType}),componentsProps:f.shape({backdrop:f.oneOfType([f.func,f.object]),root:f.oneOfType([f.func,f.object])}),container:f.oneOfType([li,f.func]),disableAutoFocus:f.bool,disableEnforceFocus:f.bool,disableEscapeKeyDown:f.bool,disablePortal:f.bool,disableRestoreFocus:f.bool,disableScrollLock:f.bool,hideBackdrop:f.bool,keepMounted:f.bool,onClose:f.func,onTransitionEnter:f.func,onTransitionExited:f.func,open:f.bool.isRequired,slotProps:f.shape({backdrop:f.oneOfType([f.func,f.object]),root:f.oneOfType([f.func,f.object])}),slots:f.shape({backdrop:f.elementType,root:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});const kO=qe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),PY=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:o,hiddenLabel:a,multiline:s}=e,l={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",o==="small"&&`size${Re(o)}`,a&&"hiddenLabel",s&&"multiline"],input:["input"]},c=rt(l,VK,t);return{...t,...c}},CY=ve(bf,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...vf(e,t),!n.disableUnderline&&t.underline]}})(St(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Qi.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Qi.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Qi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qi.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Qi.disabled}, .${Qi.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Qi.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(No()).map(([a])=>({props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:s})=>a.multiline&&s==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),TY=ve(xf,{name:"MuiFilledInput",slot:"Input",overridesResolver:yf})(St(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Of=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:o={},componentsProps:a,fullWidth:s=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:p={},type:h="text",...g}=r,m={...r,disableUnderline:i,fullWidth:s,inputComponent:c,multiline:u,type:h},v=PY(r),y={root:{ownerState:m},input:{ownerState:m}},S=d??a?cn(y,d??a):y,x=p.root??o.Root??CY,b=p.input??o.Input??TY;return w.jsx(wf,{slots:{root:x,input:b},slotProps:S,fullWidth:s,inputComponent:c,multiline:u,ref:n,type:h,...g,classes:v})});process.env.NODE_ENV!=="production"&&(Of.propTypes={autoComplete:f.string,autoFocus:f.bool,classes:f.object,color:f.oneOfType([f.oneOf(["primary","secondary"]),f.string]),components:f.shape({Input:f.elementType,Root:f.elementType}),componentsProps:f.shape({input:f.object,root:f.object}),defaultValue:f.any,disabled:f.bool,disableUnderline:f.bool,endAdornment:f.node,error:f.bool,fullWidth:f.bool,hiddenLabel:f.bool,id:f.string,inputComponent:f.elementType,inputProps:f.object,inputRef:ur,margin:f.oneOf(["dense","none"]),maxRows:f.oneOfType([f.number,f.string]),minRows:f.oneOfType([f.number,f.string]),multiline:f.bool,name:f.string,onChange:f.func,placeholder:f.string,readOnly:f.bool,required:f.bool,rows:f.oneOfType([f.number,f.string]),slotProps:f.shape({input:f.object,root:f.object}),slots:f.shape({input:f.elementType,root:f.elementType}),startAdornment:f.node,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),type:f.string,value:f.any});Of.muiName="Input";function AY(e){return Ge("MuiFormControl",e)}qe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const kY=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${Re(n)}`,r&&"fullWidth"]};return rt(i,AY,t)},MY=ve("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${Re(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ny=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiFormControl"}),{children:i,className:o,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:p=!1,margin:h="none",required:g=!1,size:m="medium",variant:v="outlined",...y}=r,S={...r,color:a,component:s,disabled:l,error:c,fullWidth:d,hiddenLabel:p,margin:h,required:g,size:m,variant:v},x=kY(S),[b,O]=_.useState(()=>{let L=!1;return i&&_.Children.forEach(i,B=>{if(!Vf(B,["Input","Select"]))return;const K=Vf(B,["Select"])?B.props.input:B;K&&$K(K.props)&&(L=!0)}),L}),[E,C]=_.useState(()=>{let L=!1;return i&&_.Children.forEach(i,B=>{Vf(B,["Input","Select"])&&(rd(B.props,!0)||rd(B.props.inputProps,!0))&&(L=!0)}),L}),[T,k]=_.useState(!1);l&&T&&k(!1);const R=u!==void 0&&!l?u:T;let M;const P=_.useRef(!1);process.env.NODE_ENV!=="production"&&(M=()=>(P.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
298
|
-
`)),P.current=!0,()=>{P.current=!1}));const D=_.useCallback(()=>{C(!0)},[]),j=_.useCallback(()=>{C(!1)},[]),N=_.useMemo(()=>({adornedStart:b,setAdornedStart:O,color:a,disabled:l,error:c,filled:E,focused:R,fullWidth:d,hiddenLabel:p,size:m,onBlur:()=>{k(!1)},onFocus:()=>{k(!0)},onEmpty:j,onFilled:D,registerEffect:M,required:g,variant:v}),[b,a,l,c,E,R,d,p,M,j,D,g,m,v]);return w.jsx(gf.Provider,{value:N,children:w.jsx(MY,{as:s,ownerState:S,className:oe(x.root,o),ref:n,...y,children:i})})});process.env.NODE_ENV!=="production"&&(Ny.propTypes={children:f.node,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["primary","secondary","error","info","success","warning"]),f.string]),component:f.elementType,disabled:f.bool,error:f.bool,focused:f.bool,fullWidth:f.bool,hiddenLabel:f.bool,margin:f.oneOf(["dense","none","normal"]),required:f.bool,size:f.oneOfType([f.oneOf(["medium","small"]),f.string]),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),variant:f.oneOf(["filled","outlined","standard"])});function jY(e){return Ge("MuiFormHelperText",e)}const MO=qe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var jO;const NY=e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:a,focused:s,required:l}=e,c={root:["root",i&&"disabled",o&&"error",r&&`size${Re(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return rt(c,jY,t)},RY=ve("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Re(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(St(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${MO.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${MO.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),IA=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:a="p",disabled:s,error:l,filled:c,focused:u,margin:d,required:p,variant:h,...g}=r,m=Wo(),v=qa({props:r,muiFormControl:m,states:["variant","size","disabled","error","filled","focused","required"]}),y={...r,component:a,contained:v.variant==="filled"||v.variant==="outlined",variant:v.variant,size:v.size,disabled:v.disabled,error:v.error,filled:v.filled,focused:v.focused,required:v.required};delete y.ownerState;const S=NY(y);return w.jsx(RY,{as:a,className:oe(S.root,o),ref:n,...g,ownerState:y,children:i===" "?jO||(jO=w.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):i})});process.env.NODE_ENV!=="production"&&(IA.propTypes={children:f.node,classes:f.object,className:f.string,component:f.elementType,disabled:f.bool,error:f.bool,filled:f.bool,focused:f.bool,margin:f.oneOf(["dense"]),required:f.bool,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),variant:f.oneOfType([f.oneOf(["filled","outlined","standard"]),f.string])});function DY(e){return Ge("MuiFormLabel",e)}const Is=qe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),IY=e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:a,required:s}=e,l={root:["root",`color${Re(n)}`,i&&"disabled",o&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return rt(l,DY,t)},$Y=ve("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(St(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(No()).map(([t])=>({props:{color:t},style:{[`&.${Is.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Is.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Is.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),LY=ve("span",{name:"MuiFormLabel",slot:"Asterisk"})(St(({theme:e})=>({[`&.${Is.error}`]:{color:(e.vars||e).palette.error.main}}))),$A=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiFormLabel"}),{children:i,className:o,color:a,component:s="label",disabled:l,error:c,filled:u,focused:d,required:p,...h}=r,g=Wo(),m=qa({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),v={...r,color:m.color||"primary",component:s,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required},y=IY(v);return w.jsxs($Y,{as:s,ownerState:v,className:oe(y.root,o),ref:n,...h,children:[i,m.required&&w.jsxs(LY,{ownerState:v,"aria-hidden":!0,className:y.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&($A.propTypes={children:f.node,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["error","info","primary","secondary","success","warning"]),f.string]),component:f.elementType,disabled:f.bool,error:f.bool,filled:f.bool,focused:f.bool,required:f.bool,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});function Ym(e){return`scale(${e}, ${e**2})`}const FY={entering:{opacity:1,transform:Ym(1)},entered:{opacity:1,transform:"none"}},Oh=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),sl=_.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:p,onExiting:h,style:g,timeout:m="auto",TransitionComponent:v=Fr,...y}=t,S=sa(),x=_.useRef(),b=kd(),O=_.useRef(null),E=Ht(O,Ha(o),n),C=N=>L=>{if(N){const B=O.current;L===void 0?N(B):N(B,L)}},T=C(u),k=C((N,L)=>{oA(N);const{duration:B,delay:K,easing:z}=Zu({style:g,timeout:m,easing:a},{mode:"enter"});let F;m==="auto"?(F=b.transitions.getAutoHeightDuration(N.clientHeight),x.current=F):F=B,N.style.transition=[b.transitions.create("opacity",{duration:F,delay:K}),b.transitions.create("transform",{duration:Oh?F:F*.666,delay:K,easing:z})].join(","),l&&l(N,L)}),R=C(c),M=C(h),P=C(N=>{const{duration:L,delay:B,easing:K}=Zu({style:g,timeout:m,easing:a},{mode:"exit"});let z;m==="auto"?(z=b.transitions.getAutoHeightDuration(N.clientHeight),x.current=z):z=L,N.style.transition=[b.transitions.create("opacity",{duration:z,delay:B}),b.transitions.create("transform",{duration:Oh?z:z*.666,delay:Oh?B:B||z*.333,easing:K})].join(","),N.style.opacity=0,N.style.transform=Ym(.75),d&&d(N)}),D=C(p),j=N=>{m==="auto"&&S.start(x.current||0,N),r&&r(O.current,N)};return w.jsx(v,{appear:i,in:s,nodeRef:O,onEnter:k,onEntered:R,onEntering:T,onExit:P,onExited:D,onExiting:M,addEndListener:j,timeout:m==="auto"?null:m,...y,children:(N,{ownerState:L,...B})=>_.cloneElement(o,{style:{opacity:0,transform:Ym(.75),visibility:N==="exited"&&!s?"hidden":void 0,...FY[N],...g,...o.props.style},ref:E,...B})})});process.env.NODE_ENV!=="production"&&(sl.propTypes={addEndListener:f.func,appear:f.bool,children:Ka.isRequired,easing:f.oneOfType([f.shape({enter:f.string,exit:f.string}),f.string]),in:f.bool,onEnter:f.func,onEntered:f.func,onEntering:f.func,onExit:f.func,onExited:f.func,onExiting:f.func,style:f.object,timeout:f.oneOfType([f.oneOf(["auto"]),f.number,f.shape({appear:f.number,enter:f.number,exit:f.number})])});sl&&(sl.muiSupportAuto=!0);const BY=e=>{const{classes:t,disableUnderline:n}=e,i=rt({root:["root",!n&&"underline"],input:["input"]},BK,t);return{...t,...i}},zY=ve(bf,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...vf(e,t),!n.disableUnderline&&t.underline]}})(St(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ls.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ls.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ls.disabled}, .${ls.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ls.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(No()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),VY=ve(xf,{name:"MuiInput",slot:"Input",overridesResolver:yf})({}),Sf=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:o={},componentsProps:a,fullWidth:s=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:d={},type:p="text",...h}=r,g=BY(r),v={root:{ownerState:{disableUnderline:i}}},y=u??a?cn(u??a,v):v,S=d.root??o.Root??zY,x=d.input??o.Input??VY;return w.jsx(wf,{slots:{root:S,input:x},slotProps:y,fullWidth:s,inputComponent:l,multiline:c,ref:n,type:p,...h,classes:g})});process.env.NODE_ENV!=="production"&&(Sf.propTypes={autoComplete:f.string,autoFocus:f.bool,classes:f.object,color:f.oneOfType([f.oneOf(["primary","secondary"]),f.string]),components:f.shape({Input:f.elementType,Root:f.elementType}),componentsProps:f.shape({input:f.object,root:f.object}),defaultValue:f.any,disabled:f.bool,disableUnderline:f.bool,endAdornment:f.node,error:f.bool,fullWidth:f.bool,id:f.string,inputComponent:f.elementType,inputProps:f.object,inputRef:ur,margin:f.oneOf(["dense","none"]),maxRows:f.oneOfType([f.number,f.string]),minRows:f.oneOfType([f.number,f.string]),multiline:f.bool,name:f.string,onChange:f.func,placeholder:f.string,readOnly:f.bool,required:f.bool,rows:f.oneOfType([f.number,f.string]),slotProps:f.shape({input:f.object,root:f.object}),slots:f.shape({input:f.elementType,root:f.elementType}),startAdornment:f.node,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),type:f.string,value:f.any});Sf.muiName="Input";function WY(e){return Ge("MuiInputLabel",e)}qe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const UY=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:a,required:s}=e,l={root:["root",n&&"formControl",!o&&"animated",i&&"shrink",r&&r!=="medium"&&`size${Re(r)}`,a],asterisk:[s&&"asterisk"]},c=rt(l,WY,t);return{...t,...c}},HY=ve($A,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Is.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(St(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),LA=_.forwardRef(function(t,n){const r=ut({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:o,shrink:a,variant:s,className:l,...c}=r,u=Wo();let d=a;typeof d>"u"&&u&&(d=u.filled||u.focused||u.adornedStart);const p=qa({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),h={...r,disableAnimation:i,formControl:u,shrink:d,size:p.size,variant:p.variant,required:p.required,focused:p.focused},g=UY(h);return w.jsx(HY,{"data-shrink":d,ref:n,className:oe(g.root,l),...c,ownerState:h,classes:g})});process.env.NODE_ENV!=="production"&&(LA.propTypes={children:f.node,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["error","info","primary","secondary","success","warning"]),f.string]),disableAnimation:f.bool,disabled:f.bool,error:f.bool,focused:f.bool,margin:f.oneOf(["dense"]),required:f.bool,shrink:f.bool,size:f.oneOfType([f.oneOf(["medium","small"]),f.string]),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),variant:f.oneOf(["filled","outlined","standard"])});const ll=_.createContext({});process.env.NODE_ENV!=="production"&&(ll.displayName="ListContext");function qY(e){return Ge("MuiList",e)}qe("MuiList",["root","padding","dense","subheader"]);const KY=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return rt({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},qY,t)},YY=ve("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),FA=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c,...u}=r,d=_.useMemo(()=>({dense:s}),[s]),p={...r,component:a,dense:s,disablePadding:l},h=KY(p);return w.jsx(ll.Provider,{value:d,children:w.jsxs(YY,{as:a,className:oe(h.root,o),ref:n,ownerState:p,...u,children:[c,i]})})});process.env.NODE_ENV!=="production"&&(FA.propTypes={children:f.node,classes:f.object,className:f.string,component:f.elementType,dense:f.bool,disablePadding:f.bool,subheader:f.node,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});const NO=qe("MuiListItemIcon",["root","alignItemsFlexStart"]);function GY(e){return Ge("MuiListItemText",e)}const la=qe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),XY=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return rt({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},GY,t)},ZY=ve("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${la.primary}`]:t.primary},{[`& .${la.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${fO.root}:where(& .${la.primary})`]:{display:"block"},[`.${fO.root}:where(& .${la.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),tu=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d,slots:p={},slotProps:h={},...g}=r,{dense:m}=_.useContext(ll);let v=l??i,y=u;const S={...r,disableTypography:a,inset:s,primary:!!v,secondary:!!y,dense:m},x=XY(S),b={slots:p,slotProps:{primary:c,secondary:d,...h}},[O,E]=ot("root",{className:oe(x.root,o),elementType:ZY,externalForwardedProps:{...b,...g},ownerState:S,ref:n}),[C,T]=ot("primary",{className:x.primary,elementType:Es,externalForwardedProps:b,ownerState:S}),[k,R]=ot("secondary",{className:x.secondary,elementType:Es,externalForwardedProps:b,ownerState:S});return v!=null&&v.type!==Es&&!a&&(v=w.jsx(C,{variant:m?"body2":"body1",component:T?.variant?void 0:"span",...T,children:v})),y!=null&&y.type!==Es&&!a&&(y=w.jsx(k,{variant:"body2",color:"textSecondary",...R,children:y})),w.jsxs(O,{...E,children:[v,y]})});process.env.NODE_ENV!=="production"&&(tu.propTypes={children:f.node,classes:f.object,className:f.string,disableTypography:f.bool,inset:f.bool,primary:f.node,primaryTypographyProps:f.object,secondary:f.node,secondaryTypographyProps:f.object,slotProps:f.shape({primary:f.oneOfType([f.func,f.object]),root:f.oneOfType([f.func,f.object]),secondary:f.oneOfType([f.func,f.object])}),slots:f.shape({primary:f.elementType,root:f.elementType,secondary:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});function Sh(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function RO(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function BA(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function cs(e,t,n,r,i,o){let a=!1,s=i(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!BA(s,o)||l)s=i(e,s,n);else return s.focus(),!0}return!1}const zA=_.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...p}=t,h=_.useRef(null),g=_.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Nr(()=>{i&&h.current.focus()},[i]),_.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,{direction:b})=>{const O=!h.current.style.width;if(x.clientHeight<h.current.clientHeight&&O){const E=`${RA(ri(x))}px`;h.current.style[b==="rtl"?"paddingLeft":"paddingRight"]=E,h.current.style.width=`calc(100% + ${E})`}return h.current}}),[]);const m=x=>{const b=h.current,O=x.key;if(x.ctrlKey||x.metaKey||x.altKey){u&&u(x);return}const C=Ln(b).activeElement;if(O==="ArrowDown")x.preventDefault(),cs(b,C,c,l,Sh);else if(O==="ArrowUp")x.preventDefault(),cs(b,C,c,l,RO);else if(O==="Home")x.preventDefault(),cs(b,null,c,l,Sh);else if(O==="End")x.preventDefault(),cs(b,null,c,l,RO);else if(O.length===1){const T=g.current,k=O.toLowerCase(),R=performance.now();T.keys.length>0&&(R-T.lastTime>500?(T.keys=[],T.repeating=!0,T.previousKeyMatched=!0):T.repeating&&k!==T.keys[0]&&(T.repeating=!1)),T.lastTime=R,T.keys.push(k);const M=C&&!T.repeating&&BA(C,T);T.previousKeyMatched&&(M||cs(b,C,!1,l,Sh,T))?x.preventDefault():T.previousKeyMatched=!1}u&&u(x)},v=Ht(h,n);let y=-1;_.Children.forEach(a,(x,b)=>{if(!_.isValidElement(x)){y===b&&(y+=1,y>=a.length&&(y=-1));return}process.env.NODE_ENV!=="production"&&ki.isFragment(x)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
299
|
-
`)),x.props.disabled||(d==="selectedMenu"&&x.props.selected||y===-1)&&(y=b),y===b&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(y+=1,y>=a.length&&(y=-1))});const S=_.Children.map(a,(x,b)=>{if(b===y){const O={};return o&&(O.autoFocus=!0),x.props.tabIndex===void 0&&d==="selectedMenu"&&(O.tabIndex=0),_.cloneElement(x,O)}return x});return w.jsx(FA,{role:"menu",ref:v,className:s,onKeyDown:m,tabIndex:i?0:-1,...p,children:S})});process.env.NODE_ENV!=="production"&&(zA.propTypes={autoFocus:f.bool,autoFocusItem:f.bool,children:f.node,className:f.string,disabledItemsFocusable:f.bool,disableListWrap:f.bool,onKeyDown:f.func,variant:f.oneOf(["menu","selectedMenu"])});function JY(e){return Ge("MuiPopover",e)}qe("MuiPopover",["root","paper"]);function DO(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function IO(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function $O(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function
|
|
300
|
-
`))}return{top:A.top+DO(A,a.vertical),left:A.left+IO(A,a.horizontal)}},[o,a.horizontal,a.vertical,s,l]),P=_.useCallback(H=>({vertical:DO(H,S.vertical),horizontal:IO(H,S.horizontal)}),[S.horizontal,S.vertical]),D=_.useCallback(H=>{const J={width:H.offsetWidth,height:H.offsetHeight},A=P(J);if(l==="none")return{top:null,left:null,transformOrigin:$O(A)};const fe=M();let re=fe.top-A.vertical,me=fe.left-A.horizontal;const we=re+J.height,Se=me+J.width,_e=ri(
|
|
301
|
-
`)),h!==null&&me<h){const Te=me-h;me-=Te,A.horizontal+=Te}else if(Se>De){const Te=Se-De;me-=Te,A.horizontal+=Te}return{top:`${Math.round(re)}px`,left:`${Math.round(me)}px`,transformOrigin:$O(A)}},[o,l,M,P,h]),[j,N]=_.useState(g),L=_.useCallback(()=>{const H=T.current;if(!H)return;const J=D(H);J.top!==null&&H.style.setProperty("top",J.top),J.left!==null&&(H.style.left=J.left),H.style.transformOrigin=J.transformOrigin,N(!0)},[D]);_.useEffect(()=>(E&&window.addEventListener("scroll",L),()=>window.removeEventListener("scroll",L)),[o,E,L]);const B=()=>{L()},K=()=>{N(!1)};_.useEffect(()=>{g&&L()}),_.useImperativeHandle(i,()=>g?{updatePosition:()=>{L()}}:null,[g,L]),_.useEffect(()=>{if(!g)return;const H=n_(()=>{L()}),J=ri(
|
|
296
|
+
`))},[]),J=Ht(W,b,x.ref,H),[A,fe]=_.useState(!1),re=Wo();process.env.NODE_ENV!=="production"&&_.useEffect(()=>{if(re)return re.registerEffect()},[re]);const me=qa({props:r,muiFormControl:re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});me.focused=re?re.focused:A,_.useEffect(()=>{!re&&p&&A&&(fe(!1),R&&R())},[re,p,A,R]);const we=re&&re.onFilled,Se=re&&re.onEmpty,_e=_.useCallback(ye=>{rd(ye)?we&&we():Se&&Se()},[we,Se]);Nr(()=>{ae&&_e({value:ie})},[ie,_e,ae]);const Ze=ye=>{D&&D(ye),x.onFocus&&x.onFocus(ye),re&&re.onFocus?re.onFocus(ye):fe(!0)},De=ye=>{R&&R(ye),x.onBlur&&x.onBlur(ye),re&&re.onBlur?re.onBlur(ye):fe(!1)},Te=(ye,...rn)=>{if(!ae){const zt=ye.target||W.current;if(zt==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":jr(1));_e({value:zt.value})}x.onChange&&x.onChange(ye,...rn),M&&M(ye,...rn)};_.useEffect(()=>{_e(W.current)},[]);const de=ye=>{W.current&&ye.currentTarget===ye.target&&W.current.focus(),P&&P(ye)};let Et=S,Je=x;T&&Et==="input"&&(z?(process.env.NODE_ENV!=="production"&&(C||E)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Je={type:void 0,minRows:z,maxRows:z,...Je}):Je={type:void 0,maxRows:E,minRows:C,...Je},Et=AA);const tn=ye=>{_e(ye.animationName==="mui-auto-fill-cancel"?W.current:{value:"x"})};_.useEffect(()=>{re&&re.setAdornedStart(!!ne)},[re,ne]);const Gt={...r,color:me.color||"primary",disabled:me.disabled,endAdornment:g,error:me.error,focused:me.focused,formControl:re,fullWidth:v,hiddenLabel:me.hiddenLabel,multiline:T,size:me.size,startAdornment:ne,type:Q},nn=FK(Gt),mn=Y.root||c.Root||bf,Bt=G.root||u.root||{},gn=Y.input||c.Input||xf;return Je={...Je,...G.input??u.input},w.jsxs(_.Fragment,{children:[!h&&typeof PO=="function"&&(_O||(_O=w.jsx(PO,{}))),w.jsxs(mn,{...Bt,ref:n,onClick:de,...te,...!Ju(mn)&&{ownerState:{...Gt,...Bt.ownerState}},className:oe(nn.root,Bt.className,s,B&&"MuiInputBase-readOnly"),children:[ne,w.jsx(gf.Provider,{value:null,children:w.jsx(gn,{"aria-invalid":me.error,"aria-describedby":i,autoComplete:o,autoFocus:a,defaultValue:d,disabled:me.disabled,id:y,onAnimationStart:tn,name:k,placeholder:L,readOnly:B,required:me.required,rows:z,value:ie,onKeyDown:j,onKeyUp:N,type:Q,...Je,...!Ju(gn)&&{as:Et,ownerState:{...Gt,...Je.ownerState}},ref:J,className:oe(nn.input,Je.className,B&&"MuiInputBase-readOnly"),onBlur:De,onChange:Te,onFocus:Ze})}),g,K?K({...me,startAdornment:ne}):null]})]})});process.env.NODE_ENV!=="production"&&(wf.propTypes={"aria-describedby":f.string,autoComplete:f.string,autoFocus:f.bool,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["primary","secondary","error","info","success","warning"]),f.string]),components:f.shape({Input:f.elementType,Root:f.elementType}),componentsProps:f.shape({input:f.object,root:f.object}),defaultValue:f.any,disabled:f.bool,disableInjectingGlobalStyles:f.bool,endAdornment:f.node,error:f.bool,fullWidth:f.bool,id:f.string,inputComponent:Sy,inputProps:f.object,inputRef:ur,margin:f.oneOf(["dense","none"]),maxRows:f.oneOfType([f.number,f.string]),minRows:f.oneOfType([f.number,f.string]),multiline:f.bool,name:f.string,onBlur:f.func,onChange:f.func,onClick:f.func,onFocus:f.func,onInvalid:f.func,onKeyDown:f.func,onKeyUp:f.func,placeholder:f.string,readOnly:f.bool,renderSuffix:f.func,required:f.bool,rows:f.oneOfType([f.number,f.string]),size:f.oneOfType([f.oneOf(["medium","small"]),f.string]),slotProps:f.shape({input:f.object,root:f.object}),slots:f.shape({input:f.elementType,root:f.elementType}),startAdornment:f.node,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),type:f.string,value:f.any});function BK(e){return Ge("MuiInput",e)}const cs={...ka,...qe("MuiInput",["root","underline","input"])};function zK(e){return Ge("MuiOutlinedInput",e)}const br={...ka,...qe("MuiOutlinedInput",["root","notchedOutline","input"])};function VK(e){return Ge("MuiFilledInput",e)}const Qi={...ka,...qe("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},WK=Fi(w.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function UK(e){const{prototype:t={}}=e;return!!t.isReactComponent}function kA(e,t,n,r,i){const o=e[t],a=i||t;if(o==null||typeof window>"u")return null;let s;const l=o.type;return typeof l=="function"&&!UK(l)&&(s="Did you accidentally use a plain function component for an element instead?"),s!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Ka=Ua(f.element,kA);Ka.isRequired=Ua(f.element.isRequired,kA);const HK={entering:{opacity:1},entered:{opacity:1}},MA=_.forwardRef(function(t,n){const r=kd(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:h,onExited:g,onExiting:m,style:v,timeout:y=i,TransitionComponent:S=Fr,...x}=t,b=_.useRef(null),O=Ht(b,Ha(s),n),E=j=>N=>{if(j){const L=b.current;N===void 0?j(L):j(L,N)}},C=E(p),T=E((j,N)=>{oA(j);const L=Zu({style:v,timeout:y,easing:l},{mode:"enter"});j.style.webkitTransition=r.transitions.create("opacity",L),j.style.transition=r.transitions.create("opacity",L),u&&u(j,N)}),k=E(d),R=E(m),M=E(j=>{const N=Zu({style:v,timeout:y,easing:l},{mode:"exit"});j.style.webkitTransition=r.transitions.create("opacity",N),j.style.transition=r.transitions.create("opacity",N),h&&h(j)}),P=E(g),D=j=>{o&&o(b.current,j)};return w.jsx(S,{appear:a,in:c,nodeRef:b,onEnter:T,onEntered:k,onEntering:C,onExit:M,onExited:P,onExiting:R,addEndListener:D,timeout:y,...x,children:(j,{ownerState:N,...L})=>_.cloneElement(s,{style:{opacity:0,visibility:j==="exited"&&!c?"hidden":void 0,...HK[j],...v,...s.props.style},ref:O,...L})})});process.env.NODE_ENV!=="production"&&(MA.propTypes={addEndListener:f.func,appear:f.bool,children:Ka.isRequired,easing:f.oneOfType([f.shape({enter:f.string,exit:f.string}),f.string]),in:f.bool,onEnter:f.func,onEntered:f.func,onEntering:f.func,onExit:f.func,onExited:f.func,onExiting:f.func,style:f.object,timeout:f.oneOfType([f.number,f.shape({appear:f.number,enter:f.number,exit:f.number})])});function qK(e){return Ge("MuiBackdrop",e)}qe("MuiBackdrop",["root","invisible"]);const KK=e=>{const{classes:t,invisible:n}=e;return rt({root:["root",n&&"invisible"]},qK,t)},YK=ve("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),jA=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiBackdrop"}),{children:i,className:o,component:a="div",invisible:s=!1,open:l,components:c={},componentsProps:u={},slotProps:d={},slots:p={},TransitionComponent:h,transitionDuration:g,...m}=r,v={...r,component:a,invisible:s},y=KK(v),S={transition:h,root:c.Root,...p},x={...u,...d},b={component:a,slots:S,slotProps:x},[O,E]=ot("root",{elementType:YK,externalForwardedProps:b,className:oe(y.root,o),ownerState:v}),[C,T]=ot("transition",{elementType:MA,externalForwardedProps:b,ownerState:v});return w.jsx(C,{in:l,timeout:g,...m,...T,children:w.jsx(O,{"aria-hidden":!0,...E,classes:y,ref:n,children:i})})});process.env.NODE_ENV!=="production"&&(jA.propTypes={children:f.node,classes:f.object,className:f.string,component:f.elementType,components:f.shape({Root:f.elementType}),componentsProps:f.shape({root:f.object}),invisible:f.bool,open:f.bool.isRequired,slotProps:f.shape({root:f.oneOfType([f.func,f.object]),transition:f.oneOfType([f.func,f.object])}),slots:f.shape({root:f.elementType,transition:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),TransitionComponent:f.elementType,transitionDuration:f.oneOfType([f.number,f.shape({appear:f.number,enter:f.number,exit:f.number})])});function GK(e){return Ge("PrivateSwitchBase",e)}qe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const XK=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${Re(i)}`],input:["input"]};return rt(o,GK,t)},ZK=ve(Ey,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),JK=ve("input",{name:"MuiSwitchBase",shouldForwardProp:Wn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),NA=_.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:h,name:g,onBlur:m,onChange:v,onFocus:y,readOnly:S,required:x=!1,tabIndex:b,type:O,value:E,slots:C={},slotProps:T={},...k}=t,[R,M]=uu({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),P=Wo(),D=X=>{y&&y(X),P&&P.onFocus&&P.onFocus(X)},j=X=>{m&&m(X),P&&P.onBlur&&P.onBlur(X)},N=X=>{if(X.nativeEvent.defaultPrevented)return;const te=X.target.checked;M(te),v&&v(X,te)};let L=s;P&&typeof L>"u"&&(L=P.disabled);const B=O==="checkbox"||O==="radio",K={...t,checked:R,disabled:L,disableFocusRipple:l,edge:c},z=XK(K),F={slots:C,slotProps:{input:p,...T}},[G,Y]=ot("root",{ref:n,elementType:ZK,className:z.root,shouldForwardComponentProp:!0,externalForwardedProps:{...F,component:"span",...k},getSlotProps:X=>({...X,onFocus:te=>{X.onFocus?.(te),D(te)},onBlur:te=>{X.onBlur?.(te),j(te)}}),ownerState:K,additionalProps:{centerRipple:!0,focusRipple:!l,disabled:L,role:void 0,tabIndex:null}}),[ne,Q]=ot("input",{ref:h,elementType:JK,className:z.input,externalForwardedProps:F,getSlotProps:X=>({...X,onChange:te=>{X.onChange?.(te),N(te)}}),ownerState:K,additionalProps:{autoFocus:r,checked:i,defaultChecked:a,disabled:L,id:B?d:void 0,name:g,readOnly:S,required:x,tabIndex:b,type:O,...O==="checkbox"&&E===void 0?{}:{value:E}}});return w.jsxs(G,{...Y,children:[w.jsx(ne,{...Q}),R?o:u]})});process.env.NODE_ENV!=="production"&&(NA.propTypes={autoFocus:f.bool,checked:f.bool,checkedIcon:f.node.isRequired,classes:f.object,className:f.string,defaultChecked:f.bool,disabled:f.bool,disableFocusRipple:f.bool,edge:f.oneOf(["end","start",!1]),icon:f.node.isRequired,id:f.string,inputProps:f.object,inputRef:ur,name:f.string,onBlur:f.func,onChange:f.func,onFocus:f.func,readOnly:f.bool,required:f.bool,slotProps:f.shape({input:f.oneOfType([f.func,f.object]),root:f.oneOfType([f.func,f.object])}),slots:f.shape({input:f.elementType,root:f.elementType}),sx:f.object,tabIndex:f.oneOfType([f.number,f.string]),type:f.string.isRequired,value:f.any});const QK=Fi(w.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),eY=Fi(w.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),tY=Fi(w.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function nY(e){return Ge("MuiCheckbox",e)}const xh=qe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),rY=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${Re(r)}`,`size${Re(i)}`]},a=rt(o,nY,t);return{...t,...a}},iY=ve(NA,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Re(n.size)}`],n.color!=="default"&&t[`color${Re(n.color)}`]]}})(St(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(No()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(No()).map(([t])=>({props:{color:t},style:{[`&.${xh.checked}, &.${xh.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${xh.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),oY=w.jsx(eY,{}),aY=w.jsx(QK,{}),sY=w.jsx(tY,{}),Km=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiCheckbox"}),{checkedIcon:i=oY,color:o="primary",icon:a=aY,indeterminate:s=!1,indeterminateIcon:l=sY,inputProps:c,size:u="medium",disableRipple:d=!1,className:p,slots:h={},slotProps:g={},...m}=r,v=s?l:a,y=s?l:i,S={...r,disableRipple:d,color:o,indeterminate:s,size:u},x=rY(S),b=g.input??c,[O,E]=ot("root",{ref:n,elementType:iY,className:oe(x.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:h,slotProps:g,...m},ownerState:S,additionalProps:{type:"checkbox",icon:_.cloneElement(v,{fontSize:v.props.fontSize??u}),checkedIcon:_.cloneElement(y,{fontSize:y.props.fontSize??u}),disableRipple:d,slots:h,slotProps:{input:r_(typeof b=="function"?b(S):b,{"data-indeterminate":s})}}});return w.jsx(O,{...E,classes:x})});process.env.NODE_ENV!=="production"&&(Km.propTypes={checked:f.bool,checkedIcon:f.node,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["default","primary","secondary","error","info","success","warning"]),f.string]),defaultChecked:f.bool,disabled:f.bool,disableRipple:f.bool,icon:f.node,id:f.string,indeterminate:f.bool,indeterminateIcon:f.node,inputProps:f.object,onChange:f.func,required:f.bool,size:f.oneOfType([f.oneOf(["medium","small"]),f.string]),slotProps:f.shape({input:f.oneOfType([f.func,f.object]),root:f.oneOfType([f.func,f.object])}),slots:f.shape({input:f.elementType,root:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),value:f.any});function RA(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function lY(e){const t=Ln(e);return t.body===e?ri(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Is(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function CO(e){return parseInt(ri(e).getComputedStyle(e).paddingRight,10)||0}function cY(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function TO(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,a=>{const s=!o.includes(a),l=!cY(a);s&&l&&Is(a,i)})}function wh(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function uY(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(lY(r)){const a=RA(ri(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${CO(r)+a}px`;const s=Ln(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${CO(l)+a}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Ln(r).body;else{const a=r.parentElement,s=ri(r);o=a?.nodeName==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:a,property:s})=>{o?a.style.setProperty(s,o):a.style.removeProperty(s)})}}function dY(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class fY{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Is(t.modalRef,!1);const i=dY(n);TO(n,t.mount,t.modalRef,i,!0);const o=wh(this.containers,a=>a.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=wh(this.containers,o=>o.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=uY(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=wh(this.containers,a=>a.modals.includes(t)),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&Is(t.modalRef,n),TO(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=o.modals[o.modals.length-1];a.modalRef&&Is(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const pY=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function hY(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function mY(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function gY(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||mY(e))}function vY(e){const t=[],n=[];return Array.from(e.querySelectorAll(pY)).forEach((r,i)=>{const o=hY(r);o===-1||!gY(r)||(o===0?t.push(r):n.push({documentOrder:i,tabIndex:o,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function yY(){return!0}function id(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=vY,isEnabled:a=yY,open:s}=e,l=_.useRef(!1),c=_.useRef(null),u=_.useRef(null),d=_.useRef(null),p=_.useRef(null),h=_.useRef(!1),g=_.useRef(null),m=Ht(Ha(t),g),v=_.useRef(null);_.useEffect(()=>{!s||!g.current||(h.current=!n)},[n,s]),_.useEffect(()=>{if(!s||!g.current)return;const x=Ln(g.current);return g.current.contains(x.activeElement)||(g.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
297
|
+
`)),g.current.setAttribute("tabIndex","-1")),h.current&&g.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),_.useEffect(()=>{if(!s||!g.current)return;const x=Ln(g.current),b=C=>{v.current=C,!(r||!a()||C.key!=="Tab")&&x.activeElement===g.current&&C.shiftKey&&(l.current=!0,u.current&&u.current.focus())},O=()=>{const C=g.current;if(C===null)return;if(!x.hasFocus()||!a()||l.current){l.current=!1;return}if(C.contains(x.activeElement)||r&&x.activeElement!==c.current&&x.activeElement!==u.current)return;if(x.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!h.current)return;let T=[];if((x.activeElement===c.current||x.activeElement===u.current)&&(T=o(g.current)),T.length>0){const k=!!(v.current?.shiftKey&&v.current?.key==="Tab"),R=T[0],M=T[T.length-1];typeof R!="string"&&typeof M!="string"&&(k?M.focus():R.focus())}else C.focus()};x.addEventListener("focusin",O),x.addEventListener("keydown",b,!0);const E=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&O()},50);return()=>{clearInterval(E),x.removeEventListener("focusin",O),x.removeEventListener("keydown",b,!0)}},[n,r,i,a,s,o]);const y=x=>{d.current===null&&(d.current=x.relatedTarget),h.current=!0,p.current=x.target;const b=t.props.onFocus;b&&b(x)},S=x=>{d.current===null&&(d.current=x.relatedTarget),h.current=!0};return w.jsxs(_.Fragment,{children:[w.jsx("div",{tabIndex:s?0:-1,onFocus:S,ref:c,"data-testid":"sentinelStart"}),_.cloneElement(t,{ref:m,onFocus:y}),w.jsx("div",{tabIndex:s?0:-1,onFocus:S,ref:u,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(id.propTypes={children:Ka,disableAutoFocus:f.bool,disableEnforceFocus:f.bool,disableRestoreFocus:f.bool,getTabbable:f.func,isEnabled:f.func,open:f.bool.isRequired});process.env.NODE_ENV!=="production"&&(id.propTypes=KE(id.propTypes));function bY(e){return typeof e=="function"?e():e}function xY(e){return e?e.props.hasOwnProperty("in"):!1}const AO=()=>{},Tc=new fY;function wY(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:o,onTransitionExited:a,children:s,onClose:l,open:c,rootRef:u}=e,d=_.useRef({}),p=_.useRef(null),h=_.useRef(null),g=Ht(h,u),[m,v]=_.useState(!c),y=xY(s);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const x=()=>Ln(p.current),b=()=>(d.current.modalRef=h.current,d.current.mount=p.current,d.current),O=()=>{Tc.mount(b(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},E=Qr(()=>{const N=bY(t)||x().body;Tc.add(b(),N),h.current&&O()}),C=()=>Tc.isTopModal(b()),T=Qr(N=>{p.current=N,N&&(c&&C()?O():h.current&&Is(h.current,S))}),k=_.useCallback(()=>{Tc.remove(b(),S)},[S]);_.useEffect(()=>()=>{k()},[k]),_.useEffect(()=>{c?E():(!y||!i)&&k()},[c,k,y,i,E]);const R=N=>L=>{N.onKeyDown?.(L),!(L.key!=="Escape"||L.which===229||!C())&&(n||(L.stopPropagation(),l&&l(L,"escapeKeyDown")))},M=N=>L=>{N.onClick?.(L),L.target===L.currentTarget&&l&&l(L,"backdropClick")};return{getRootProps:(N={})=>{const L=fA(e);delete L.onTransitionEnter,delete L.onTransitionExited;const B={...L,...N};return{role:"presentation",...B,onKeyDown:R(B),ref:g}},getBackdropProps:(N={})=>{const L=N;return{"aria-hidden":!0,...L,onClick:M(L),open:c}},getTransitionProps:()=>{const N=()=>{v(!1),o&&o()},L=()=>{v(!0),a&&a(),i&&k()};return{onEnter:db(N,s?.props.onEnter??AO),onExited:db(L,s?.props.onExited??AO)}},rootRef:g,portalRef:T,isTopModal:C,exited:m,hasTransition:y}}function OY(e){return Ge("MuiModal",e)}qe("MuiModal",["root","hidden","backdrop"]);const SY=e=>{const{open:t,exited:n,classes:r}=e;return rt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},OY,r)},EY=ve("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(St(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),_Y=ve(jA,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),DA=_.forwardRef(function(t,n){const r=ut({name:"MuiModal",props:t}),{BackdropComponent:i=_Y,BackdropProps:o,classes:a,className:s,closeAfterTransition:l=!1,children:c,container:u,component:d,components:p={},componentsProps:h={},disableAutoFocus:g=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:v=!1,disablePortal:y=!1,disableRestoreFocus:S=!1,disableScrollLock:x=!1,hideBackdrop:b=!1,keepMounted:O=!1,onClose:E,onTransitionEnter:C,onTransitionExited:T,open:k,slotProps:R={},slots:M={},theme:P,...D}=r,j={...r,closeAfterTransition:l,disableAutoFocus:g,disableEnforceFocus:m,disableEscapeKeyDown:v,disablePortal:y,disableRestoreFocus:S,disableScrollLock:x,hideBackdrop:b,keepMounted:O},{getRootProps:N,getBackdropProps:L,getTransitionProps:B,portalRef:K,isTopModal:z,exited:F,hasTransition:G}=wY({...j,rootRef:n}),Y={...j,exited:F},ne=SY(Y),Q={};if(c.props.tabIndex===void 0&&(Q.tabIndex="-1"),G){const{onEnter:H,onExited:J}=B();Q.onEnter=H,Q.onExited=J}const X={slots:{root:p.Root,backdrop:p.Backdrop,...M},slotProps:{...h,...R}},[te,ie]=ot("root",{ref:n,elementType:EY,externalForwardedProps:{...X,...D,component:d},getSlotProps:N,ownerState:Y,className:oe(s,ne?.root,!Y.open&&Y.exited&&ne?.hidden)}),[ae,W]=ot("backdrop",{ref:o?.ref,elementType:i,externalForwardedProps:X,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:H=>L({...H,onClick:J=>{H?.onClick&&H.onClick(J)}}),className:oe(o?.className,ne?.backdrop),ownerState:Y});return!O&&!k&&(!G||F)?null:w.jsx(sl,{ref:K,container:u,disablePortal:y,children:w.jsxs(te,{...ie,children:[!b&&i?w.jsx(ae,{...W}):null,w.jsx(id,{disableEnforceFocus:m,disableAutoFocus:g,disableRestoreFocus:S,isEnabled:z,open:k,children:_.cloneElement(c,Q)})]})})});process.env.NODE_ENV!=="production"&&(DA.propTypes={BackdropComponent:f.elementType,BackdropProps:f.object,children:Ka.isRequired,classes:f.object,className:f.string,closeAfterTransition:f.bool,component:f.elementType,components:f.shape({Backdrop:f.elementType,Root:f.elementType}),componentsProps:f.shape({backdrop:f.oneOfType([f.func,f.object]),root:f.oneOfType([f.func,f.object])}),container:f.oneOfType([li,f.func]),disableAutoFocus:f.bool,disableEnforceFocus:f.bool,disableEscapeKeyDown:f.bool,disablePortal:f.bool,disableRestoreFocus:f.bool,disableScrollLock:f.bool,hideBackdrop:f.bool,keepMounted:f.bool,onClose:f.func,onTransitionEnter:f.func,onTransitionExited:f.func,open:f.bool.isRequired,slotProps:f.shape({backdrop:f.oneOfType([f.func,f.object]),root:f.oneOfType([f.func,f.object])}),slots:f.shape({backdrop:f.elementType,root:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});const kO=qe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),PY=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:o,hiddenLabel:a,multiline:s}=e,l={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",o==="small"&&`size${Re(o)}`,a&&"hiddenLabel",s&&"multiline"],input:["input"]},c=rt(l,VK,t);return{...t,...c}},CY=ve(bf,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...vf(e,t),!n.disableUnderline&&t.underline]}})(St(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Qi.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Qi.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Qi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qi.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Qi.disabled}, .${Qi.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Qi.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(No()).map(([a])=>({props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:s})=>a.multiline&&s==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),TY=ve(xf,{name:"MuiFilledInput",slot:"Input",overridesResolver:yf})(St(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Of=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:o={},componentsProps:a,fullWidth:s=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:p={},type:h="text",...g}=r,m={...r,disableUnderline:i,fullWidth:s,inputComponent:c,multiline:u,type:h},v=PY(r),y={root:{ownerState:m},input:{ownerState:m}},S=d??a?cn(y,d??a):y,x=p.root??o.Root??CY,b=p.input??o.Input??TY;return w.jsx(wf,{slots:{root:x,input:b},slotProps:S,fullWidth:s,inputComponent:c,multiline:u,ref:n,type:h,...g,classes:v})});process.env.NODE_ENV!=="production"&&(Of.propTypes={autoComplete:f.string,autoFocus:f.bool,classes:f.object,color:f.oneOfType([f.oneOf(["primary","secondary"]),f.string]),components:f.shape({Input:f.elementType,Root:f.elementType}),componentsProps:f.shape({input:f.object,root:f.object}),defaultValue:f.any,disabled:f.bool,disableUnderline:f.bool,endAdornment:f.node,error:f.bool,fullWidth:f.bool,hiddenLabel:f.bool,id:f.string,inputComponent:f.elementType,inputProps:f.object,inputRef:ur,margin:f.oneOf(["dense","none"]),maxRows:f.oneOfType([f.number,f.string]),minRows:f.oneOfType([f.number,f.string]),multiline:f.bool,name:f.string,onChange:f.func,placeholder:f.string,readOnly:f.bool,required:f.bool,rows:f.oneOfType([f.number,f.string]),slotProps:f.shape({input:f.object,root:f.object}),slots:f.shape({input:f.elementType,root:f.elementType}),startAdornment:f.node,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),type:f.string,value:f.any});Of.muiName="Input";function AY(e){return Ge("MuiFormControl",e)}qe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const kY=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${Re(n)}`,r&&"fullWidth"]};return rt(i,AY,t)},MY=ve("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${Re(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ny=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiFormControl"}),{children:i,className:o,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:p=!1,margin:h="none",required:g=!1,size:m="medium",variant:v="outlined",...y}=r,S={...r,color:a,component:s,disabled:l,error:c,fullWidth:d,hiddenLabel:p,margin:h,required:g,size:m,variant:v},x=kY(S),[b,O]=_.useState(()=>{let L=!1;return i&&_.Children.forEach(i,B=>{if(!Vf(B,["Input","Select"]))return;const K=Vf(B,["Select"])?B.props.input:B;K&&$K(K.props)&&(L=!0)}),L}),[E,C]=_.useState(()=>{let L=!1;return i&&_.Children.forEach(i,B=>{Vf(B,["Input","Select"])&&(rd(B.props,!0)||rd(B.props.inputProps,!0))&&(L=!0)}),L}),[T,k]=_.useState(!1);l&&T&&k(!1);const R=u!==void 0&&!l?u:T;let M;const P=_.useRef(!1);process.env.NODE_ENV!=="production"&&(M=()=>(P.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
298
|
+
`)),P.current=!0,()=>{P.current=!1}));const D=_.useCallback(()=>{C(!0)},[]),j=_.useCallback(()=>{C(!1)},[]),N=_.useMemo(()=>({adornedStart:b,setAdornedStart:O,color:a,disabled:l,error:c,filled:E,focused:R,fullWidth:d,hiddenLabel:p,size:m,onBlur:()=>{k(!1)},onFocus:()=>{k(!0)},onEmpty:j,onFilled:D,registerEffect:M,required:g,variant:v}),[b,a,l,c,E,R,d,p,M,j,D,g,m,v]);return w.jsx(gf.Provider,{value:N,children:w.jsx(MY,{as:s,ownerState:S,className:oe(x.root,o),ref:n,...y,children:i})})});process.env.NODE_ENV!=="production"&&(Ny.propTypes={children:f.node,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["primary","secondary","error","info","success","warning"]),f.string]),component:f.elementType,disabled:f.bool,error:f.bool,focused:f.bool,fullWidth:f.bool,hiddenLabel:f.bool,margin:f.oneOf(["dense","none","normal"]),required:f.bool,size:f.oneOfType([f.oneOf(["medium","small"]),f.string]),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),variant:f.oneOf(["filled","outlined","standard"])});function jY(e){return Ge("MuiFormHelperText",e)}const MO=qe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var jO;const NY=e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:a,focused:s,required:l}=e,c={root:["root",i&&"disabled",o&&"error",r&&`size${Re(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return rt(c,jY,t)},RY=ve("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Re(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(St(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${MO.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${MO.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),IA=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:a="p",disabled:s,error:l,filled:c,focused:u,margin:d,required:p,variant:h,...g}=r,m=Wo(),v=qa({props:r,muiFormControl:m,states:["variant","size","disabled","error","filled","focused","required"]}),y={...r,component:a,contained:v.variant==="filled"||v.variant==="outlined",variant:v.variant,size:v.size,disabled:v.disabled,error:v.error,filled:v.filled,focused:v.focused,required:v.required};delete y.ownerState;const S=NY(y);return w.jsx(RY,{as:a,className:oe(S.root,o),ref:n,...g,ownerState:y,children:i===" "?jO||(jO=w.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):i})});process.env.NODE_ENV!=="production"&&(IA.propTypes={children:f.node,classes:f.object,className:f.string,component:f.elementType,disabled:f.bool,error:f.bool,filled:f.bool,focused:f.bool,margin:f.oneOf(["dense"]),required:f.bool,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),variant:f.oneOfType([f.oneOf(["filled","outlined","standard"]),f.string])});function DY(e){return Ge("MuiFormLabel",e)}const $s=qe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),IY=e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:a,required:s}=e,l={root:["root",`color${Re(n)}`,i&&"disabled",o&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return rt(l,DY,t)},$Y=ve("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(St(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(No()).map(([t])=>({props:{color:t},style:{[`&.${$s.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${$s.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$s.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),LY=ve("span",{name:"MuiFormLabel",slot:"Asterisk"})(St(({theme:e})=>({[`&.${$s.error}`]:{color:(e.vars||e).palette.error.main}}))),$A=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiFormLabel"}),{children:i,className:o,color:a,component:s="label",disabled:l,error:c,filled:u,focused:d,required:p,...h}=r,g=Wo(),m=qa({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),v={...r,color:m.color||"primary",component:s,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required},y=IY(v);return w.jsxs($Y,{as:s,ownerState:v,className:oe(y.root,o),ref:n,...h,children:[i,m.required&&w.jsxs(LY,{ownerState:v,"aria-hidden":!0,className:y.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&($A.propTypes={children:f.node,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["error","info","primary","secondary","success","warning"]),f.string]),component:f.elementType,disabled:f.bool,error:f.bool,filled:f.bool,focused:f.bool,required:f.bool,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});function Ym(e){return`scale(${e}, ${e**2})`}const FY={entering:{opacity:1,transform:Ym(1)},entered:{opacity:1,transform:"none"}},Oh=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ll=_.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:p,onExiting:h,style:g,timeout:m="auto",TransitionComponent:v=Fr,...y}=t,S=sa(),x=_.useRef(),b=kd(),O=_.useRef(null),E=Ht(O,Ha(o),n),C=N=>L=>{if(N){const B=O.current;L===void 0?N(B):N(B,L)}},T=C(u),k=C((N,L)=>{oA(N);const{duration:B,delay:K,easing:z}=Zu({style:g,timeout:m,easing:a},{mode:"enter"});let F;m==="auto"?(F=b.transitions.getAutoHeightDuration(N.clientHeight),x.current=F):F=B,N.style.transition=[b.transitions.create("opacity",{duration:F,delay:K}),b.transitions.create("transform",{duration:Oh?F:F*.666,delay:K,easing:z})].join(","),l&&l(N,L)}),R=C(c),M=C(h),P=C(N=>{const{duration:L,delay:B,easing:K}=Zu({style:g,timeout:m,easing:a},{mode:"exit"});let z;m==="auto"?(z=b.transitions.getAutoHeightDuration(N.clientHeight),x.current=z):z=L,N.style.transition=[b.transitions.create("opacity",{duration:z,delay:B}),b.transitions.create("transform",{duration:Oh?z:z*.666,delay:Oh?B:B||z*.333,easing:K})].join(","),N.style.opacity=0,N.style.transform=Ym(.75),d&&d(N)}),D=C(p),j=N=>{m==="auto"&&S.start(x.current||0,N),r&&r(O.current,N)};return w.jsx(v,{appear:i,in:s,nodeRef:O,onEnter:k,onEntered:R,onEntering:T,onExit:P,onExited:D,onExiting:M,addEndListener:j,timeout:m==="auto"?null:m,...y,children:(N,{ownerState:L,...B})=>_.cloneElement(o,{style:{opacity:0,transform:Ym(.75),visibility:N==="exited"&&!s?"hidden":void 0,...FY[N],...g,...o.props.style},ref:E,...B})})});process.env.NODE_ENV!=="production"&&(ll.propTypes={addEndListener:f.func,appear:f.bool,children:Ka.isRequired,easing:f.oneOfType([f.shape({enter:f.string,exit:f.string}),f.string]),in:f.bool,onEnter:f.func,onEntered:f.func,onEntering:f.func,onExit:f.func,onExited:f.func,onExiting:f.func,style:f.object,timeout:f.oneOfType([f.oneOf(["auto"]),f.number,f.shape({appear:f.number,enter:f.number,exit:f.number})])});ll&&(ll.muiSupportAuto=!0);const BY=e=>{const{classes:t,disableUnderline:n}=e,i=rt({root:["root",!n&&"underline"],input:["input"]},BK,t);return{...t,...i}},zY=ve(bf,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...vf(e,t),!n.disableUnderline&&t.underline]}})(St(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${cs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${cs.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${cs.disabled}, .${cs.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${cs.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(No()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),VY=ve(xf,{name:"MuiInput",slot:"Input",overridesResolver:yf})({}),Sf=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:o={},componentsProps:a,fullWidth:s=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:d={},type:p="text",...h}=r,g=BY(r),v={root:{ownerState:{disableUnderline:i}}},y=u??a?cn(u??a,v):v,S=d.root??o.Root??zY,x=d.input??o.Input??VY;return w.jsx(wf,{slots:{root:S,input:x},slotProps:y,fullWidth:s,inputComponent:l,multiline:c,ref:n,type:p,...h,classes:g})});process.env.NODE_ENV!=="production"&&(Sf.propTypes={autoComplete:f.string,autoFocus:f.bool,classes:f.object,color:f.oneOfType([f.oneOf(["primary","secondary"]),f.string]),components:f.shape({Input:f.elementType,Root:f.elementType}),componentsProps:f.shape({input:f.object,root:f.object}),defaultValue:f.any,disabled:f.bool,disableUnderline:f.bool,endAdornment:f.node,error:f.bool,fullWidth:f.bool,id:f.string,inputComponent:f.elementType,inputProps:f.object,inputRef:ur,margin:f.oneOf(["dense","none"]),maxRows:f.oneOfType([f.number,f.string]),minRows:f.oneOfType([f.number,f.string]),multiline:f.bool,name:f.string,onChange:f.func,placeholder:f.string,readOnly:f.bool,required:f.bool,rows:f.oneOfType([f.number,f.string]),slotProps:f.shape({input:f.object,root:f.object}),slots:f.shape({input:f.elementType,root:f.elementType}),startAdornment:f.node,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),type:f.string,value:f.any});Sf.muiName="Input";function WY(e){return Ge("MuiInputLabel",e)}qe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const UY=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:a,required:s}=e,l={root:["root",n&&"formControl",!o&&"animated",i&&"shrink",r&&r!=="medium"&&`size${Re(r)}`,a],asterisk:[s&&"asterisk"]},c=rt(l,WY,t);return{...t,...c}},HY=ve($A,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$s.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(St(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),LA=_.forwardRef(function(t,n){const r=ut({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:o,shrink:a,variant:s,className:l,...c}=r,u=Wo();let d=a;typeof d>"u"&&u&&(d=u.filled||u.focused||u.adornedStart);const p=qa({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),h={...r,disableAnimation:i,formControl:u,shrink:d,size:p.size,variant:p.variant,required:p.required,focused:p.focused},g=UY(h);return w.jsx(HY,{"data-shrink":d,ref:n,className:oe(g.root,l),...c,ownerState:h,classes:g})});process.env.NODE_ENV!=="production"&&(LA.propTypes={children:f.node,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["error","info","primary","secondary","success","warning"]),f.string]),disableAnimation:f.bool,disabled:f.bool,error:f.bool,focused:f.bool,margin:f.oneOf(["dense"]),required:f.bool,shrink:f.bool,size:f.oneOfType([f.oneOf(["medium","small"]),f.string]),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),variant:f.oneOf(["filled","outlined","standard"])});const cl=_.createContext({});process.env.NODE_ENV!=="production"&&(cl.displayName="ListContext");function qY(e){return Ge("MuiList",e)}qe("MuiList",["root","padding","dense","subheader"]);const KY=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return rt({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},qY,t)},YY=ve("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),FA=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c,...u}=r,d=_.useMemo(()=>({dense:s}),[s]),p={...r,component:a,dense:s,disablePadding:l},h=KY(p);return w.jsx(cl.Provider,{value:d,children:w.jsxs(YY,{as:a,className:oe(h.root,o),ref:n,ownerState:p,...u,children:[c,i]})})});process.env.NODE_ENV!=="production"&&(FA.propTypes={children:f.node,classes:f.object,className:f.string,component:f.elementType,dense:f.bool,disablePadding:f.bool,subheader:f.node,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});const NO=qe("MuiListItemIcon",["root","alignItemsFlexStart"]);function GY(e){return Ge("MuiListItemText",e)}const la=qe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),XY=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return rt({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},GY,t)},ZY=ve("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${la.primary}`]:t.primary},{[`& .${la.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${fO.root}:where(& .${la.primary})`]:{display:"block"},[`.${fO.root}:where(& .${la.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),tu=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d,slots:p={},slotProps:h={},...g}=r,{dense:m}=_.useContext(cl);let v=l??i,y=u;const S={...r,disableTypography:a,inset:s,primary:!!v,secondary:!!y,dense:m},x=XY(S),b={slots:p,slotProps:{primary:c,secondary:d,...h}},[O,E]=ot("root",{className:oe(x.root,o),elementType:ZY,externalForwardedProps:{...b,...g},ownerState:S,ref:n}),[C,T]=ot("primary",{className:x.primary,elementType:_s,externalForwardedProps:b,ownerState:S}),[k,R]=ot("secondary",{className:x.secondary,elementType:_s,externalForwardedProps:b,ownerState:S});return v!=null&&v.type!==_s&&!a&&(v=w.jsx(C,{variant:m?"body2":"body1",component:T?.variant?void 0:"span",...T,children:v})),y!=null&&y.type!==_s&&!a&&(y=w.jsx(k,{variant:"body2",color:"textSecondary",...R,children:y})),w.jsxs(O,{...E,children:[v,y]})});process.env.NODE_ENV!=="production"&&(tu.propTypes={children:f.node,classes:f.object,className:f.string,disableTypography:f.bool,inset:f.bool,primary:f.node,primaryTypographyProps:f.object,secondary:f.node,secondaryTypographyProps:f.object,slotProps:f.shape({primary:f.oneOfType([f.func,f.object]),root:f.oneOfType([f.func,f.object]),secondary:f.oneOfType([f.func,f.object])}),slots:f.shape({primary:f.elementType,root:f.elementType,secondary:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});function Sh(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function RO(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function BA(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function us(e,t,n,r,i,o){let a=!1,s=i(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!BA(s,o)||l)s=i(e,s,n);else return s.focus(),!0}return!1}const zA=_.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...p}=t,h=_.useRef(null),g=_.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Nr(()=>{i&&h.current.focus()},[i]),_.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,{direction:b})=>{const O=!h.current.style.width;if(x.clientHeight<h.current.clientHeight&&O){const E=`${RA(ri(x))}px`;h.current.style[b==="rtl"?"paddingLeft":"paddingRight"]=E,h.current.style.width=`calc(100% + ${E})`}return h.current}}),[]);const m=x=>{const b=h.current,O=x.key;if(x.ctrlKey||x.metaKey||x.altKey){u&&u(x);return}const C=Ln(b).activeElement;if(O==="ArrowDown")x.preventDefault(),us(b,C,c,l,Sh);else if(O==="ArrowUp")x.preventDefault(),us(b,C,c,l,RO);else if(O==="Home")x.preventDefault(),us(b,null,c,l,Sh);else if(O==="End")x.preventDefault(),us(b,null,c,l,RO);else if(O.length===1){const T=g.current,k=O.toLowerCase(),R=performance.now();T.keys.length>0&&(R-T.lastTime>500?(T.keys=[],T.repeating=!0,T.previousKeyMatched=!0):T.repeating&&k!==T.keys[0]&&(T.repeating=!1)),T.lastTime=R,T.keys.push(k);const M=C&&!T.repeating&&BA(C,T);T.previousKeyMatched&&(M||us(b,C,!1,l,Sh,T))?x.preventDefault():T.previousKeyMatched=!1}u&&u(x)},v=Ht(h,n);let y=-1;_.Children.forEach(a,(x,b)=>{if(!_.isValidElement(x)){y===b&&(y+=1,y>=a.length&&(y=-1));return}process.env.NODE_ENV!=="production"&&ki.isFragment(x)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
299
|
+
`)),x.props.disabled||(d==="selectedMenu"&&x.props.selected||y===-1)&&(y=b),y===b&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(y+=1,y>=a.length&&(y=-1))});const S=_.Children.map(a,(x,b)=>{if(b===y){const O={};return o&&(O.autoFocus=!0),x.props.tabIndex===void 0&&d==="selectedMenu"&&(O.tabIndex=0),_.cloneElement(x,O)}return x});return w.jsx(FA,{role:"menu",ref:v,className:s,onKeyDown:m,tabIndex:i?0:-1,...p,children:S})});process.env.NODE_ENV!=="production"&&(zA.propTypes={autoFocus:f.bool,autoFocusItem:f.bool,children:f.node,className:f.string,disabledItemsFocusable:f.bool,disableListWrap:f.bool,onKeyDown:f.func,variant:f.oneOf(["menu","selectedMenu"])});function JY(e){return Ge("MuiPopover",e)}qe("MuiPopover",["root","paper"]);function DO(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function IO(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function $O(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ps(e){return typeof e=="function"?e():e}const QY=e=>{const{classes:t}=e;return rt({root:["root"],paper:["paper"]},JY,t)},eG=ve(DA,{name:"MuiPopover",slot:"Root"})({}),VA=ve(cA,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),WA=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiPopover"}),{action:i,anchorEl:o,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:u,container:d,elevation:p=8,marginThreshold:h=16,open:g,PaperProps:m={},slots:v={},slotProps:y={},transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:x,transitionDuration:b="auto",TransitionProps:O={},disableScrollLock:E=!1,...C}=r,T=_.useRef(),k={...r,anchorOrigin:a,anchorReference:l,elevation:p,marginThreshold:h,transformOrigin:S,TransitionComponent:x,transitionDuration:b,TransitionProps:O},R=QY(k),M=_.useCallback(()=>{if(l==="anchorPosition")return process.env.NODE_ENV!=="production"&&(s||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),s;const H=Ps(o),J=H&&H.nodeType===1?H:Ln(T.current).body,A=J.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const fe=J.getBoundingClientRect();process.env.NODE_ENV!=="test"&&fe.top===0&&fe.left===0&&fe.right===0&&fe.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
300
|
+
`))}return{top:A.top+DO(A,a.vertical),left:A.left+IO(A,a.horizontal)}},[o,a.horizontal,a.vertical,s,l]),P=_.useCallback(H=>({vertical:DO(H,S.vertical),horizontal:IO(H,S.horizontal)}),[S.horizontal,S.vertical]),D=_.useCallback(H=>{const J={width:H.offsetWidth,height:H.offsetHeight},A=P(J);if(l==="none")return{top:null,left:null,transformOrigin:$O(A)};const fe=M();let re=fe.top-A.vertical,me=fe.left-A.horizontal;const we=re+J.height,Se=me+J.width,_e=ri(Ps(o)),Ze=_e.innerHeight-h,De=_e.innerWidth-h;if(h!==null&&re<h){const Te=re-h;re-=Te,A.vertical+=Te}else if(h!==null&&we>Ze){const Te=we-Ze;re-=Te,A.vertical+=Te}if(process.env.NODE_ENV!=="production"&&J.height>Ze&&J.height&&Ze&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${J.height-Ze}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
301
|
+
`)),h!==null&&me<h){const Te=me-h;me-=Te,A.horizontal+=Te}else if(Se>De){const Te=Se-De;me-=Te,A.horizontal+=Te}return{top:`${Math.round(re)}px`,left:`${Math.round(me)}px`,transformOrigin:$O(A)}},[o,l,M,P,h]),[j,N]=_.useState(g),L=_.useCallback(()=>{const H=T.current;if(!H)return;const J=D(H);J.top!==null&&H.style.setProperty("top",J.top),J.left!==null&&(H.style.left=J.left),H.style.transformOrigin=J.transformOrigin,N(!0)},[D]);_.useEffect(()=>(E&&window.addEventListener("scroll",L),()=>window.removeEventListener("scroll",L)),[o,E,L]);const B=()=>{L()},K=()=>{N(!1)};_.useEffect(()=>{g&&L()}),_.useImperativeHandle(i,()=>g?{updatePosition:()=>{L()}}:null,[g,L]),_.useEffect(()=>{if(!g)return;const H=n_(()=>{L()}),J=ri(Ps(o));return J.addEventListener("resize",H),()=>{H.clear(),J.removeEventListener("resize",H)}},[o,g,L]);let z=b;const F={slots:{transition:x,...v},slotProps:{transition:O,paper:m,...y}},[G,Y]=ot("transition",{elementType:ll,externalForwardedProps:F,ownerState:k,getSlotProps:H=>({...H,onEntering:(J,A)=>{H.onEntering?.(J,A),B()},onExited:J=>{H.onExited?.(J),K()}}),additionalProps:{appear:!0,in:g}});b==="auto"&&!G.muiSupportAuto&&(z=void 0);const ne=d||(o?Ln(Ps(o)).body:void 0),[Q,{slots:X,slotProps:te,...ie}]=ot("root",{ref:n,elementType:eG,externalForwardedProps:{...F,...C},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:v.backdrop},slotProps:{backdrop:r_(typeof y.backdrop=="function"?y.backdrop(k):y.backdrop,{invisible:!0})},container:ne,open:g},ownerState:k,className:oe(R.root,u)}),[ae,W]=ot("paper",{ref:T,className:R.paper,elementType:VA,externalForwardedProps:F,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:j?void 0:{opacity:0}},ownerState:k});return w.jsx(Q,{...ie,...!Ju(Q)&&{slots:X,slotProps:te,disableScrollLock:E},children:w.jsx(G,{...Y,timeout:z,children:w.jsx(ae,{...W,children:c})})})});process.env.NODE_ENV!=="production"&&(WA.propTypes={action:ur,anchorEl:Ua(f.oneOfType([li,f.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Ps(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
302
302
|
`))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
|
|
303
303
|
`))}return null}),anchorOrigin:f.shape({horizontal:f.oneOfType([f.oneOf(["center","left","right"]),f.number]).isRequired,vertical:f.oneOfType([f.oneOf(["bottom","center","top"]),f.number]).isRequired}),anchorPosition:f.shape({left:f.number.isRequired,top:f.number.isRequired}),anchorReference:f.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:f.elementType,BackdropProps:f.object,children:f.node,classes:f.object,className:f.string,container:f.oneOfType([li,f.func]),disableScrollLock:f.bool,elevation:lA,marginThreshold:f.number,onClose:f.func,open:f.bool.isRequired,PaperProps:f.shape({component:Sy}),slotProps:f.shape({backdrop:f.oneOfType([f.func,f.object]),paper:f.oneOfType([f.func,f.object]),root:f.oneOfType([f.func,f.object]),transition:f.oneOfType([f.func,f.object])}),slots:f.shape({backdrop:f.elementType,paper:f.elementType,root:f.elementType,transition:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),transformOrigin:f.shape({horizontal:f.oneOfType([f.oneOf(["center","left","right"]),f.number]).isRequired,vertical:f.oneOfType([f.oneOf(["bottom","center","top"]),f.number]).isRequired}),TransitionComponent:f.elementType,transitionDuration:f.oneOfType([f.oneOf(["auto"]),f.number,f.shape({appear:f.number,enter:f.number,exit:f.number})]),TransitionProps:f.object});function tG(e){return Ge("MuiMenu",e)}qe("MuiMenu",["root","paper","list"]);const nG={vertical:"top",horizontal:"right"},rG={vertical:"top",horizontal:"left"},iG=e=>{const{classes:t}=e;return rt({root:["root"],paper:["paper"],list:["list"]},tG,t)},oG=ve(WA,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),aG=ve(VA,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),sG=ve(zA,{name:"MuiMenu",slot:"List"})({outline:0}),UA=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:o,className:a,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:d={},PopoverClasses:p,transitionDuration:h="auto",TransitionProps:{onEntering:g,...m}={},variant:v="selectedMenu",slots:y={},slotProps:S={},...x}=r,b=xg(),O={...r,autoFocus:i,disableAutoFocusItem:s,MenuListProps:l,onEntering:g,PaperProps:d,transitionDuration:h,TransitionProps:m,variant:v},E=iG(O),C=i&&!s&&u,T=_.useRef(null),k=(z,F)=>{T.current&&T.current.adjustStyleForScrollbar(z,{direction:b?"rtl":"ltr"}),g&&g(z,F)},R=z=>{z.key==="Tab"&&(z.preventDefault(),c&&c(z,"tabKeyDown"))};let M=-1;_.Children.map(o,(z,F)=>{_.isValidElement(z)&&(process.env.NODE_ENV!=="production"&&ki.isFragment(z)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
304
|
-
`)),z.props.disabled||(v==="selectedMenu"&&z.props.selected||M===-1)&&(M=F))});const P={slots:y,slotProps:{list:l,transition:m,paper:d,...S}},D=CA({elementType:y.root,externalSlotProps:S.root,ownerState:O,className:[E.root,a]}),[j,N]=ot("paper",{className:E.paper,elementType:aG,externalForwardedProps:P,shouldForwardComponentProp:!0,ownerState:O}),[L,B]=ot("list",{className:oe(E.list,l.className),elementType:sG,shouldForwardComponentProp:!0,externalForwardedProps:P,getSlotProps:z=>({...z,onKeyDown:F=>{R(F),z.onKeyDown?.(F)}}),ownerState:O}),K=typeof P.slotProps.transition=="function"?P.slotProps.transition(O):P.slotProps.transition;return w.jsx(oG,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:b?"right":"left"},transformOrigin:b?nG:rG,slots:{root:y.root,paper:j,backdrop:y.backdrop,...y.transition&&{transition:y.transition}},slotProps:{root:D,paper:N,backdrop:typeof S.backdrop=="function"?S.backdrop(O):S.backdrop,transition:{...K,onEntering:(...z)=>{k(...z),K?.onEntering?.(...z)}}},open:u,ref:n,transitionDuration:h,ownerState:O,...x,classes:p,children:w.jsx(L,{actions:T,autoFocus:i&&(M===-1||s),autoFocusItem:C,variant:v,...B,children:o})})});process.env.NODE_ENV!=="production"&&(UA.propTypes={anchorEl:f.oneOfType([li,f.func]),autoFocus:f.bool,children:f.node,classes:f.object,className:f.string,disableAutoFocusItem:f.bool,MenuListProps:f.object,onClose:f.func,open:f.bool.isRequired,PaperProps:f.object,PopoverClasses:f.object,slotProps:f.shape({backdrop:f.oneOfType([f.func,f.object]),list:f.oneOfType([f.func,f.object]),paper:f.oneOfType([f.func,f.object]),root:f.oneOfType([f.func,f.object]),transition:f.oneOfType([f.func,f.object])}),slots:f.shape({backdrop:f.elementType,list:f.elementType,paper:f.elementType,root:f.elementType,transition:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),transitionDuration:f.oneOfType([f.oneOf(["auto"]),f.number,f.shape({appear:f.number,enter:f.number,exit:f.number})]),TransitionProps:f.object,variant:f.oneOf(["menu","selectedMenu"])});function lG(e){return Ge("MuiMenuItem",e)}const us=qe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),cG=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},uG=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e,l=rt({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},lG,a);return{...a,...l}},dG=ve(Ey,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:cG})(St(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${us.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${us.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${us.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${us.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${us.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${kO.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${kO.inset}`]:{marginLeft:52},[`& .${la.root}`]:{marginTop:0,marginBottom:0},[`& .${la.inset}`]:{paddingLeft:36},[`& .${NO.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${NO.root} svg`]:{fontSize:"1.25rem"}}}]}))),Ps=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:p,...h}=r,g=_.useContext(ll),m=_.useMemo(()=>({dense:a||g.dense||!1,disableGutters:l}),[g.dense,a,l]),v=_.useRef(null);Nr(()=>{i&&(v.current?v.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[i]);const y={...r,dense:m.dense,divider:s,disableGutters:l},S=uG(r),x=Ht(v,n);let b;return r.disabled||(b=d!==void 0?d:-1),w.jsx(ll.Provider,{value:m,children:w.jsx(dG,{ref:x,role:u,tabIndex:b,component:o,focusVisibleClassName:oe(S.focusVisible,c),className:oe(S.root,p),...h,ownerState:y,classes:S})})});process.env.NODE_ENV!=="production"&&(Ps.propTypes={autoFocus:f.bool,children:f.node,classes:f.object,className:f.string,component:f.elementType,dense:f.bool,disabled:f.bool,disableGutters:f.bool,divider:f.bool,focusVisibleClassName:f.string,role:f.string,selected:f.bool,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),tabIndex:f.number});function fG(e){return Ge("MuiNativeSelect",e)}const Ry=qe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),pG=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${Re(n)}`,o&&"iconOpen",r&&"disabled"]};return rt(s,fG,t)},HA=ve("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Ry.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),hG=ve(HA,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Wn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Ry.multiple}`]:t.multiple}]}})({}),qA=ve("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Ry.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),mG=ve(qA,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Re(n.variant)}`],n.open&&t.iconOpen]}})({}),KA=_.forwardRef(function(t,n){const{className:r,disabled:i,error:o,IconComponent:a,inputRef:s,variant:l="standard",...c}=t,u={...t,disabled:i,variant:l,error:o},d=pG(u);return w.jsxs(_.Fragment,{children:[w.jsx(hG,{ownerState:u,className:oe(d.select,r),disabled:i,ref:s||n,...c}),t.multiple?null:w.jsx(mG,{as:a,ownerState:u,className:d.icon})]})});process.env.NODE_ENV!=="production"&&(KA.propTypes={children:f.node,classes:f.object,className:f.string,disabled:f.bool,error:f.bool,IconComponent:f.elementType.isRequired,inputRef:ur,multiple:f.bool,name:f.string,onChange:f.func,value:f.any,variant:f.oneOf(["standard","outlined","filled"])});var LO;const gG=ve("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Wn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),vG=ve("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Wn})(St(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function YA(e){const{children:t,classes:n,className:r,label:i,notched:o,...a}=e,s=i!=null&&i!=="",l={...e,notched:o,withLabel:s};return w.jsx(gG,{"aria-hidden":!0,className:r,ownerState:l,...a,children:w.jsx(vG,{ownerState:l,children:s?w.jsx("span",{children:i}):LO||(LO=w.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(YA.propTypes={children:f.node,classes:f.object,className:f.string,label:f.node,notched:f.bool.isRequired,style:f.object});const yG=e=>{const{classes:t}=e,r=rt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},zK,t);return{...t,...r}},bG=ve(bf,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:vf})(St(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${br.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${br.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${br.focused} .${br.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(No()).map(([n])=>({props:{color:n},style:{[`&.${br.focused} .${br.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${br.error} .${br.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${br.disabled} .${br.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),xG=ve(YA,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(St(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),wG=ve(xf,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:yf})(St(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Ef=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:o=!1,inputComponent:a="input",label:s,multiline:l=!1,notched:c,slots:u={},slotProps:d={},type:p="text",...h}=r,g=yG(r),m=Wo(),v=qa({props:r,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),y={...r,color:v.color||"primary",disabled:v.disabled,error:v.error,focused:v.focused,formControl:m,fullWidth:o,hiddenLabel:v.hiddenLabel,multiline:l,size:v.size,type:p},S=u.root??i.Root??bG,x=u.input??i.Input??wG,[b,O]=ot("notchedOutline",{elementType:xG,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:y,externalForwardedProps:{slots:u,slotProps:d},additionalProps:{label:s!=null&&s!==""&&v.required?w.jsxs(_.Fragment,{children:[s," ","*"]}):s}});return w.jsx(wf,{slots:{root:S,input:x},slotProps:d,renderSuffix:E=>w.jsx(b,{...O,notched:typeof c<"u"?c:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:o,inputComponent:a,multiline:l,ref:n,type:p,...h,classes:{...g,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Ef.propTypes={autoComplete:f.string,autoFocus:f.bool,classes:f.object,color:f.oneOfType([f.oneOf(["primary","secondary"]),f.string]),components:f.shape({Input:f.elementType,Root:f.elementType}),defaultValue:f.any,disabled:f.bool,endAdornment:f.node,error:f.bool,fullWidth:f.bool,id:f.string,inputComponent:f.elementType,inputProps:f.object,inputRef:ur,label:f.node,margin:f.oneOf(["dense","none"]),maxRows:f.oneOfType([f.number,f.string]),minRows:f.oneOfType([f.number,f.string]),multiline:f.bool,name:f.string,notched:f.bool,onChange:f.func,placeholder:f.string,readOnly:f.bool,required:f.bool,rows:f.oneOfType([f.number,f.string]),slotProps:f.shape({input:f.object,notchedOutline:f.oneOfType([f.func,f.object]),root:f.object}),slots:f.shape({input:f.elementType,notchedOutline:f.elementType,root:f.elementType}),startAdornment:f.node,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),type:f.string,value:f.any});Ef.muiName="Input";function GA(e){return Ge("MuiSelect",e)}const ds=qe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var FO;const OG=ve(HA,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ds.select}`]:t.select},{[`&.${ds.select}`]:t[n.variant]},{[`&.${ds.error}`]:t.error},{[`&.${ds.multiple}`]:t.multiple}]}})({[`&.${ds.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),SG=ve(qA,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Re(n.variant)}`],n.open&&t.iconOpen]}})({}),EG=ve("input",{shouldForwardProp:e=>t_(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function BO(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function _G(e){return e==null||typeof e=="string"&&!e.trim()}const PG=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${Re(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return rt(s,GA,t)},XA=_.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:o,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:p,error:h=!1,IconComponent:g,inputRef:m,labelId:v,MenuProps:y={},multiple:S,name:x,onBlur:b,onChange:O,onClose:E,onFocus:C,onOpen:T,open:k,readOnly:R,renderValue:M,required:P,SelectDisplayProps:D={},tabIndex:j,type:N,value:L,variant:B="standard",...K}=t,[z,F]=uu({controlled:L,default:u,name:"Select"}),[G,Y]=uu({controlled:k,default:c,name:"Select"}),ne=_.useRef(null),Q=_.useRef(null),[X,te]=_.useState(null),{current:ie}=_.useRef(k!=null),[ae,W]=_.useState(),H=Ht(n,m),J=_.useCallback(Z=>{Q.current=Z,Z&&te(Z)},[]),A=X?.parentNode;_.useImperativeHandle(H,()=>({focus:()=>{Q.current.focus()},node:ne.current,value:z}),[z]),_.useEffect(()=>{c&&G&&X&&!ie&&(W(a?null:A.clientWidth),Q.current.focus())},[X,a]),_.useEffect(()=>{o&&Q.current.focus()},[o]),_.useEffect(()=>{if(!v)return;const Z=Ln(Q.current).getElementById(v);if(Z){const ce=()=>{getSelection().isCollapsed&&Q.current.focus()};return Z.addEventListener("click",ce),()=>{Z.removeEventListener("click",ce)}}},[v]);const fe=(Z,ce)=>{Z?T&&T(ce):E&&E(ce),ie||(W(a?null:A.clientWidth),Y(Z))},re=Z=>{Z.button===0&&(Z.preventDefault(),Q.current.focus(),fe(!0,Z))},me=Z=>{fe(!1,Z)},we=_.Children.toArray(s),Se=Z=>{const ce=we.find(pe=>pe.props.value===Z.target.value);ce!==void 0&&(F(ce.props.value),O&&O(Z,ce))},_e=Z=>ce=>{let pe;if(ce.currentTarget.hasAttribute("tabindex")){if(S){pe=Array.isArray(z)?z.slice():[];const Qe=z.indexOf(Z.props.value);Qe===-1?pe.push(Z.props.value):pe.splice(Qe,1)}else pe=Z.props.value;if(Z.props.onClick&&Z.props.onClick(ce),z!==pe&&(F(pe),O)){const Qe=ce.nativeEvent||ce,dt=new Qe.constructor(Qe.type,Qe);Object.defineProperty(dt,"target",{writable:!0,value:{value:pe,name:x}}),O(dt,Z)}S||fe(!1,ce)}},Ze=Z=>{R||[" ","ArrowUp","ArrowDown","Enter"].includes(Z.key)&&(Z.preventDefault(),fe(!0,Z))},De=X!==null&&G,Te=Z=>{!De&&b&&(Object.defineProperty(Z,"target",{writable:!0,value:{value:z,name:x}}),b(Z))};delete K["aria-invalid"];let de,Et;const Je=[];let tn=!1,Gt=!1;(rd({value:z})||p)&&(M?de=M(z):tn=!0);const nn=we.map(Z=>{if(!_.isValidElement(Z))return null;process.env.NODE_ENV!=="production"&&ki.isFragment(Z)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
304
|
+
`)),z.props.disabled||(v==="selectedMenu"&&z.props.selected||M===-1)&&(M=F))});const P={slots:y,slotProps:{list:l,transition:m,paper:d,...S}},D=CA({elementType:y.root,externalSlotProps:S.root,ownerState:O,className:[E.root,a]}),[j,N]=ot("paper",{className:E.paper,elementType:aG,externalForwardedProps:P,shouldForwardComponentProp:!0,ownerState:O}),[L,B]=ot("list",{className:oe(E.list,l.className),elementType:sG,shouldForwardComponentProp:!0,externalForwardedProps:P,getSlotProps:z=>({...z,onKeyDown:F=>{R(F),z.onKeyDown?.(F)}}),ownerState:O}),K=typeof P.slotProps.transition=="function"?P.slotProps.transition(O):P.slotProps.transition;return w.jsx(oG,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:b?"right":"left"},transformOrigin:b?nG:rG,slots:{root:y.root,paper:j,backdrop:y.backdrop,...y.transition&&{transition:y.transition}},slotProps:{root:D,paper:N,backdrop:typeof S.backdrop=="function"?S.backdrop(O):S.backdrop,transition:{...K,onEntering:(...z)=>{k(...z),K?.onEntering?.(...z)}}},open:u,ref:n,transitionDuration:h,ownerState:O,...x,classes:p,children:w.jsx(L,{actions:T,autoFocus:i&&(M===-1||s),autoFocusItem:C,variant:v,...B,children:o})})});process.env.NODE_ENV!=="production"&&(UA.propTypes={anchorEl:f.oneOfType([li,f.func]),autoFocus:f.bool,children:f.node,classes:f.object,className:f.string,disableAutoFocusItem:f.bool,MenuListProps:f.object,onClose:f.func,open:f.bool.isRequired,PaperProps:f.object,PopoverClasses:f.object,slotProps:f.shape({backdrop:f.oneOfType([f.func,f.object]),list:f.oneOfType([f.func,f.object]),paper:f.oneOfType([f.func,f.object]),root:f.oneOfType([f.func,f.object]),transition:f.oneOfType([f.func,f.object])}),slots:f.shape({backdrop:f.elementType,list:f.elementType,paper:f.elementType,root:f.elementType,transition:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),transitionDuration:f.oneOfType([f.oneOf(["auto"]),f.number,f.shape({appear:f.number,enter:f.number,exit:f.number})]),TransitionProps:f.object,variant:f.oneOf(["menu","selectedMenu"])});function lG(e){return Ge("MuiMenuItem",e)}const ds=qe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),cG=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},uG=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e,l=rt({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},lG,a);return{...a,...l}},dG=ve(Ey,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:cG})(St(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ds.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${ds.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${ds.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${ds.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ds.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${kO.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${kO.inset}`]:{marginLeft:52},[`& .${la.root}`]:{marginTop:0,marginBottom:0},[`& .${la.inset}`]:{paddingLeft:36},[`& .${NO.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${NO.root} svg`]:{fontSize:"1.25rem"}}}]}))),Cs=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:p,...h}=r,g=_.useContext(cl),m=_.useMemo(()=>({dense:a||g.dense||!1,disableGutters:l}),[g.dense,a,l]),v=_.useRef(null);Nr(()=>{i&&(v.current?v.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[i]);const y={...r,dense:m.dense,divider:s,disableGutters:l},S=uG(r),x=Ht(v,n);let b;return r.disabled||(b=d!==void 0?d:-1),w.jsx(cl.Provider,{value:m,children:w.jsx(dG,{ref:x,role:u,tabIndex:b,component:o,focusVisibleClassName:oe(S.focusVisible,c),className:oe(S.root,p),...h,ownerState:y,classes:S})})});process.env.NODE_ENV!=="production"&&(Cs.propTypes={autoFocus:f.bool,children:f.node,classes:f.object,className:f.string,component:f.elementType,dense:f.bool,disabled:f.bool,disableGutters:f.bool,divider:f.bool,focusVisibleClassName:f.string,role:f.string,selected:f.bool,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),tabIndex:f.number});function fG(e){return Ge("MuiNativeSelect",e)}const Ry=qe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),pG=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${Re(n)}`,o&&"iconOpen",r&&"disabled"]};return rt(s,fG,t)},HA=ve("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Ry.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),hG=ve(HA,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Wn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Ry.multiple}`]:t.multiple}]}})({}),qA=ve("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Ry.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),mG=ve(qA,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Re(n.variant)}`],n.open&&t.iconOpen]}})({}),KA=_.forwardRef(function(t,n){const{className:r,disabled:i,error:o,IconComponent:a,inputRef:s,variant:l="standard",...c}=t,u={...t,disabled:i,variant:l,error:o},d=pG(u);return w.jsxs(_.Fragment,{children:[w.jsx(hG,{ownerState:u,className:oe(d.select,r),disabled:i,ref:s||n,...c}),t.multiple?null:w.jsx(mG,{as:a,ownerState:u,className:d.icon})]})});process.env.NODE_ENV!=="production"&&(KA.propTypes={children:f.node,classes:f.object,className:f.string,disabled:f.bool,error:f.bool,IconComponent:f.elementType.isRequired,inputRef:ur,multiple:f.bool,name:f.string,onChange:f.func,value:f.any,variant:f.oneOf(["standard","outlined","filled"])});var LO;const gG=ve("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Wn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),vG=ve("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Wn})(St(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function YA(e){const{children:t,classes:n,className:r,label:i,notched:o,...a}=e,s=i!=null&&i!=="",l={...e,notched:o,withLabel:s};return w.jsx(gG,{"aria-hidden":!0,className:r,ownerState:l,...a,children:w.jsx(vG,{ownerState:l,children:s?w.jsx("span",{children:i}):LO||(LO=w.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(YA.propTypes={children:f.node,classes:f.object,className:f.string,label:f.node,notched:f.bool.isRequired,style:f.object});const yG=e=>{const{classes:t}=e,r=rt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},zK,t);return{...t,...r}},bG=ve(bf,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:vf})(St(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${br.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${br.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${br.focused} .${br.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(No()).map(([n])=>({props:{color:n},style:{[`&.${br.focused} .${br.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${br.error} .${br.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${br.disabled} .${br.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),xG=ve(YA,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(St(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),wG=ve(xf,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:yf})(St(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Ef=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:o=!1,inputComponent:a="input",label:s,multiline:l=!1,notched:c,slots:u={},slotProps:d={},type:p="text",...h}=r,g=yG(r),m=Wo(),v=qa({props:r,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),y={...r,color:v.color||"primary",disabled:v.disabled,error:v.error,focused:v.focused,formControl:m,fullWidth:o,hiddenLabel:v.hiddenLabel,multiline:l,size:v.size,type:p},S=u.root??i.Root??bG,x=u.input??i.Input??wG,[b,O]=ot("notchedOutline",{elementType:xG,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:y,externalForwardedProps:{slots:u,slotProps:d},additionalProps:{label:s!=null&&s!==""&&v.required?w.jsxs(_.Fragment,{children:[s," ","*"]}):s}});return w.jsx(wf,{slots:{root:S,input:x},slotProps:d,renderSuffix:E=>w.jsx(b,{...O,notched:typeof c<"u"?c:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:o,inputComponent:a,multiline:l,ref:n,type:p,...h,classes:{...g,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Ef.propTypes={autoComplete:f.string,autoFocus:f.bool,classes:f.object,color:f.oneOfType([f.oneOf(["primary","secondary"]),f.string]),components:f.shape({Input:f.elementType,Root:f.elementType}),defaultValue:f.any,disabled:f.bool,endAdornment:f.node,error:f.bool,fullWidth:f.bool,id:f.string,inputComponent:f.elementType,inputProps:f.object,inputRef:ur,label:f.node,margin:f.oneOf(["dense","none"]),maxRows:f.oneOfType([f.number,f.string]),minRows:f.oneOfType([f.number,f.string]),multiline:f.bool,name:f.string,notched:f.bool,onChange:f.func,placeholder:f.string,readOnly:f.bool,required:f.bool,rows:f.oneOfType([f.number,f.string]),slotProps:f.shape({input:f.object,notchedOutline:f.oneOfType([f.func,f.object]),root:f.object}),slots:f.shape({input:f.elementType,notchedOutline:f.elementType,root:f.elementType}),startAdornment:f.node,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),type:f.string,value:f.any});Ef.muiName="Input";function GA(e){return Ge("MuiSelect",e)}const fs=qe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var FO;const OG=ve(HA,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${fs.select}`]:t.select},{[`&.${fs.select}`]:t[n.variant]},{[`&.${fs.error}`]:t.error},{[`&.${fs.multiple}`]:t.multiple}]}})({[`&.${fs.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),SG=ve(qA,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Re(n.variant)}`],n.open&&t.iconOpen]}})({}),EG=ve("input",{shouldForwardProp:e=>t_(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function BO(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function _G(e){return e==null||typeof e=="string"&&!e.trim()}const PG=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${Re(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return rt(s,GA,t)},XA=_.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:o,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:p,error:h=!1,IconComponent:g,inputRef:m,labelId:v,MenuProps:y={},multiple:S,name:x,onBlur:b,onChange:O,onClose:E,onFocus:C,onOpen:T,open:k,readOnly:R,renderValue:M,required:P,SelectDisplayProps:D={},tabIndex:j,type:N,value:L,variant:B="standard",...K}=t,[z,F]=uu({controlled:L,default:u,name:"Select"}),[G,Y]=uu({controlled:k,default:c,name:"Select"}),ne=_.useRef(null),Q=_.useRef(null),[X,te]=_.useState(null),{current:ie}=_.useRef(k!=null),[ae,W]=_.useState(),H=Ht(n,m),J=_.useCallback(Z=>{Q.current=Z,Z&&te(Z)},[]),A=X?.parentNode;_.useImperativeHandle(H,()=>({focus:()=>{Q.current.focus()},node:ne.current,value:z}),[z]),_.useEffect(()=>{c&&G&&X&&!ie&&(W(a?null:A.clientWidth),Q.current.focus())},[X,a]),_.useEffect(()=>{o&&Q.current.focus()},[o]),_.useEffect(()=>{if(!v)return;const Z=Ln(Q.current).getElementById(v);if(Z){const ce=()=>{getSelection().isCollapsed&&Q.current.focus()};return Z.addEventListener("click",ce),()=>{Z.removeEventListener("click",ce)}}},[v]);const fe=(Z,ce)=>{Z?T&&T(ce):E&&E(ce),ie||(W(a?null:A.clientWidth),Y(Z))},re=Z=>{Z.button===0&&(Z.preventDefault(),Q.current.focus(),fe(!0,Z))},me=Z=>{fe(!1,Z)},we=_.Children.toArray(s),Se=Z=>{const ce=we.find(pe=>pe.props.value===Z.target.value);ce!==void 0&&(F(ce.props.value),O&&O(Z,ce))},_e=Z=>ce=>{let pe;if(ce.currentTarget.hasAttribute("tabindex")){if(S){pe=Array.isArray(z)?z.slice():[];const Qe=z.indexOf(Z.props.value);Qe===-1?pe.push(Z.props.value):pe.splice(Qe,1)}else pe=Z.props.value;if(Z.props.onClick&&Z.props.onClick(ce),z!==pe&&(F(pe),O)){const Qe=ce.nativeEvent||ce,dt=new Qe.constructor(Qe.type,Qe);Object.defineProperty(dt,"target",{writable:!0,value:{value:pe,name:x}}),O(dt,Z)}S||fe(!1,ce)}},Ze=Z=>{R||[" ","ArrowUp","ArrowDown","Enter"].includes(Z.key)&&(Z.preventDefault(),fe(!0,Z))},De=X!==null&&G,Te=Z=>{!De&&b&&(Object.defineProperty(Z,"target",{writable:!0,value:{value:z,name:x}}),b(Z))};delete K["aria-invalid"];let de,Et;const Je=[];let tn=!1,Gt=!1;(rd({value:z})||p)&&(M?de=M(z):tn=!0);const nn=we.map(Z=>{if(!_.isValidElement(Z))return null;process.env.NODE_ENV!=="production"&&ki.isFragment(Z)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
305
305
|
`));let ce;if(S){if(!Array.isArray(z))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":jr(2));ce=z.some(pe=>BO(pe,Z.props.value)),ce&&tn&&Je.push(Z.props.children)}else ce=BO(z,Z.props.value),ce&&tn&&(Et=Z.props.children);return ce&&(Gt=!0),_.cloneElement(Z,{"aria-selected":ce?"true":"false",onClick:_e(Z),onKeyUp:pe=>{pe.key===" "&&pe.preventDefault(),Z.props.onKeyUp&&Z.props.onKeyUp(pe)},role:"option",selected:ce,value:void 0,"data-value":Z.props.value})});process.env.NODE_ENV!=="production"&&_.useEffect(()=>{if(!Gt&&!S&&z!==""){const Z=we.map(ce=>ce.props.value);console.warn([`MUI: You have provided an out-of-range value \`${z}\` for the select ${x?`(name="${x}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${Z.filter(ce=>ce!=null).map(ce=>`\`${ce}\``).join(", ")||'""'}.`].join(`
|
|
306
|
-
`))}},[Gt,we,S,x,z]),tn&&(S?Je.length===0?de=null:de=Je.reduce((Z,ce,pe)=>(Z.push(ce),pe<Je.length-1&&Z.push(", "),Z),[]):de=Et);let mn=ae;!a&&ie&&X&&(mn=A.clientWidth);let Bt;typeof j<"u"?Bt=j:Bt=d?null:0;const gn=D.id||(x?`mui-component-select-${x}`:void 0),ye={...t,variant:B,value:z,open:De,error:h},rn=PG(ye),zt={...y.PaperProps,...typeof y.slotProps?.paper=="function"?y.slotProps.paper(ye):y.slotProps?.paper},U={...y.MenuListProps,...typeof y.slotProps?.list=="function"?y.slotProps.list(ye):y.slotProps?.list},le=wg();return w.jsxs(_.Fragment,{children:[w.jsx(OG,{as:"div",ref:J,tabIndex:Bt,role:"combobox","aria-controls":De?le:void 0,"aria-disabled":d?"true":void 0,"aria-expanded":De?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[v,gn].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":P?"true":void 0,"aria-invalid":h?"true":void 0,onKeyDown:Ze,onMouseDown:d||R?null:re,onBlur:Te,onFocus:C,...D,ownerState:ye,className:oe(D.className,rn.select,l),id:gn,children:_G(de)?FO||(FO=w.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):de}),w.jsx(EG,{"aria-invalid":h,value:Array.isArray(z)?z.join(","):z,name:x,ref:ne,"aria-hidden":!0,onChange:Se,tabIndex:-1,disabled:d,className:rn.nativeInput,autoFocus:o,required:P,...K,ownerState:ye}),w.jsx(SG,{as:g,className:rn.icon,ownerState:ye}),w.jsx(UA,{id:`menu-${x||""}`,anchorEl:A,open:De,onClose:me,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...y,slotProps:{...y.slotProps,list:{"aria-labelledby":v,role:"listbox","aria-multiselectable":S?"true":void 0,disableListWrap:!0,id:le,...U},paper:{...zt,style:{minWidth:mn,...zt!=null?zt.style:null}}},children:nn})]})});process.env.NODE_ENV!=="production"&&(XA.propTypes={"aria-describedby":f.string,"aria-label":f.string,autoFocus:f.bool,autoWidth:f.bool,children:f.node,classes:f.object,className:f.string,defaultOpen:f.bool,defaultValue:f.any,disabled:f.bool,displayEmpty:f.bool,error:f.bool,IconComponent:f.elementType.isRequired,inputRef:ur,labelId:f.string,MenuProps:f.object,multiple:f.bool,name:f.string,onBlur:f.func,onChange:f.func,onClose:f.func,onFocus:f.func,onOpen:f.func,open:f.bool,readOnly:f.bool,renderValue:f.func,required:f.bool,SelectDisplayProps:f.object,tabIndex:f.oneOfType([f.number,f.string]),type:f.any,value:f.any,variant:f.oneOf(["standard","outlined","filled"])});const CG=e=>{const{classes:t}=e,r=rt({root:["root"]},GA,t);return{...t,...r}},Dy={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Wn(e)&&e!=="variant"},TG=ve(Sf,Dy)(""),AG=ve(Ef,Dy)(""),kG=ve(Of,Dy)(""),_f=_.forwardRef(function(t,n){const r=ut({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=WK,id:d,input:p,inputProps:h,label:g,labelId:m,MenuProps:v,multiple:y=!1,native:S=!1,onClose:x,onOpen:b,open:O,renderValue:E,SelectDisplayProps:C,variant:T="outlined",...k}=r,R=S?KA:XA,M=Wo(),P=qa({props:r,muiFormControl:M,states:["variant","error"]}),D=P.variant||T,j={...r,variant:D,classes:a},N=CG(j),{root:L,...B}=N,K=p||{standard:w.jsx(TG,{ownerState:j}),outlined:w.jsx(AG,{label:g,ownerState:j}),filled:w.jsx(kG,{ownerState:j})}[D],z=Ht(n,Ha(K));return w.jsx(_.Fragment,{children:_.cloneElement(K,{inputComponent:R,inputProps:{children:o,error:P.error,IconComponent:u,variant:D,type:void 0,multiple:y,...S?{id:d}:{autoWidth:i,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:v,onClose:x,onOpen:b,open:O,renderValue:E,SelectDisplayProps:{id:d,...C}},...h,classes:h?cn(B,h.classes):B,...p?p.props.inputProps:{}},...(y&&S||c)&&D==="outlined"?{notched:!0}:{},ref:z,className:oe(K.props.className,s,N.root),...!p&&{variant:D},...k})})});process.env.NODE_ENV!=="production"&&(_f.propTypes={autoWidth:f.bool,children:f.node,classes:f.object,className:f.string,defaultOpen:f.bool,defaultValue:f.any,displayEmpty:f.bool,IconComponent:f.elementType,id:f.string,input:f.element,inputProps:f.object,label:f.node,labelId:f.string,MenuProps:f.object,multiple:f.bool,native:f.bool,onChange:f.func,onClose:f.func,onOpen:f.func,open:f.bool,renderValue:f.func,SelectDisplayProps:f.object,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),value:f.oneOfType([f.oneOf([""]),f.any]),variant:f.oneOf(["filled","outlined","standard"])});_f.muiName="Select";function MG(e){return Ge("MuiTooltip",e)}const xt=qe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function jG(e){return Math.round(e*1e5)/1e5}const NG=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${Re(o.split("-")[0])}`],arrow:["arrow"]};return rt(a,MG,t)},RG=ve(jy,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(St(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${xt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${xt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${xt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${xt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${xt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${xt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${xt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${xt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),DG=ve("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Re(n.placement.split("-")[0])}`]]}})(St(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${xt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${xt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${xt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${xt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${jG(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${xt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${xt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${xt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${xt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${xt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${xt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${xt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${xt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${xt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${xt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),IG=ve("span",{name:"MuiTooltip",slot:"Arrow"})(St(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Ac=!1;const zO=new pf;let fs={x:0,y:0};function kc(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Gm=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:o,classes:a,components:s={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:p=!1,disableTouchListener:h=!1,enterDelay:g=100,enterNextDelay:m=0,enterTouchDelay:v=700,followCursor:y=!1,id:S,leaveDelay:x=0,leaveTouchDelay:b=1500,onClose:O,onOpen:E,open:C,placement:T="bottom",PopperComponent:k,PopperProps:R={},slotProps:M={},slots:P={},title:D,TransitionComponent:j,TransitionProps:N,...L}=r,B=_.isValidElement(o)?o:w.jsx("span",{children:o}),K=kd(),z=xg(),[F,G]=_.useState(),[Y,ne]=_.useState(null),Q=_.useRef(!1),X=p||y,te=sa(),ie=sa(),ae=sa(),W=sa(),[H,J]=uu({controlled:C,default:!1,name:"Tooltip",state:"open"});let A=H;if(process.env.NODE_ENV!=="production"){const{current:be}=_.useRef(C!==void 0);_.useEffect(()=>{F&&F.disabled&&!be&&D!==""&&F.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
307
|
-
`))},[D,F,be])}const fe=wg(S),re=_.useRef(),me=Qr(()=>{re.current!==void 0&&(document.body.style.WebkitUserSelect=re.current,re.current=void 0),W.clear()});_.useEffect(()=>me,[me]);const we=be=>{zO.clear(),Ac=!0,J(!0),E&&!A&&E(be)},Se=Qr(be=>{zO.start(800+x,()=>{Ac=!1}),J(!1),O&&A&&O(be),te.start(K.transitions.duration.shortest,()=>{Q.current=!1})}),_e=be=>{Q.current&&be.type!=="touchstart"||(F&&F.removeAttribute("title"),ie.clear(),ae.clear(),g||Ac&&m?ie.start(Ac?m:g,()=>{we(be)}):we(be))},Ze=be=>{ie.clear(),ae.start(x,()=>{Se(be)})},[,De]=_.useState(!1),Te=be=>{Qu(be.target)||(De(!1),Ze(be))},de=be=>{F||G(be.currentTarget),Qu(be.target)&&(De(!0),_e(be))},Et=be=>{Q.current=!0;const dn=B.props;dn.onTouchStart&&dn.onTouchStart(be)},Je=be=>{Et(be),ae.clear(),te.clear(),me(),re.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",W.start(v,()=>{document.body.style.WebkitUserSelect=re.current,_e(be)})},tn=be=>{B.props.onTouchEnd&&B.props.onTouchEnd(be),me(),ae.start(b,()=>{Se(be)})};_.useEffect(()=>{if(!A)return;function be(dn){dn.key==="Escape"&&Se(dn)}return document.addEventListener("keydown",be),()=>{document.removeEventListener("keydown",be)}},[Se,A]);const Gt=Ht(Ha(B),G,n);!D&&D!==0&&(A=!1);const nn=_.useRef(),mn=be=>{const dn=B.props;dn.onMouseMove&&dn.onMouseMove(be),
|
|
306
|
+
`))}},[Gt,we,S,x,z]),tn&&(S?Je.length===0?de=null:de=Je.reduce((Z,ce,pe)=>(Z.push(ce),pe<Je.length-1&&Z.push(", "),Z),[]):de=Et);let mn=ae;!a&&ie&&X&&(mn=A.clientWidth);let Bt;typeof j<"u"?Bt=j:Bt=d?null:0;const gn=D.id||(x?`mui-component-select-${x}`:void 0),ye={...t,variant:B,value:z,open:De,error:h},rn=PG(ye),zt={...y.PaperProps,...typeof y.slotProps?.paper=="function"?y.slotProps.paper(ye):y.slotProps?.paper},U={...y.MenuListProps,...typeof y.slotProps?.list=="function"?y.slotProps.list(ye):y.slotProps?.list},le=wg();return w.jsxs(_.Fragment,{children:[w.jsx(OG,{as:"div",ref:J,tabIndex:Bt,role:"combobox","aria-controls":De?le:void 0,"aria-disabled":d?"true":void 0,"aria-expanded":De?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[v,gn].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":P?"true":void 0,"aria-invalid":h?"true":void 0,onKeyDown:Ze,onMouseDown:d||R?null:re,onBlur:Te,onFocus:C,...D,ownerState:ye,className:oe(D.className,rn.select,l),id:gn,children:_G(de)?FO||(FO=w.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):de}),w.jsx(EG,{"aria-invalid":h,value:Array.isArray(z)?z.join(","):z,name:x,ref:ne,"aria-hidden":!0,onChange:Se,tabIndex:-1,disabled:d,className:rn.nativeInput,autoFocus:o,required:P,...K,ownerState:ye}),w.jsx(SG,{as:g,className:rn.icon,ownerState:ye}),w.jsx(UA,{id:`menu-${x||""}`,anchorEl:A,open:De,onClose:me,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...y,slotProps:{...y.slotProps,list:{"aria-labelledby":v,role:"listbox","aria-multiselectable":S?"true":void 0,disableListWrap:!0,id:le,...U},paper:{...zt,style:{minWidth:mn,...zt!=null?zt.style:null}}},children:nn})]})});process.env.NODE_ENV!=="production"&&(XA.propTypes={"aria-describedby":f.string,"aria-label":f.string,autoFocus:f.bool,autoWidth:f.bool,children:f.node,classes:f.object,className:f.string,defaultOpen:f.bool,defaultValue:f.any,disabled:f.bool,displayEmpty:f.bool,error:f.bool,IconComponent:f.elementType.isRequired,inputRef:ur,labelId:f.string,MenuProps:f.object,multiple:f.bool,name:f.string,onBlur:f.func,onChange:f.func,onClose:f.func,onFocus:f.func,onOpen:f.func,open:f.bool,readOnly:f.bool,renderValue:f.func,required:f.bool,SelectDisplayProps:f.object,tabIndex:f.oneOfType([f.number,f.string]),type:f.any,value:f.any,variant:f.oneOf(["standard","outlined","filled"])});const CG=e=>{const{classes:t}=e,r=rt({root:["root"]},GA,t);return{...t,...r}},Dy={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Wn(e)&&e!=="variant"},TG=ve(Sf,Dy)(""),AG=ve(Ef,Dy)(""),kG=ve(Of,Dy)(""),_f=_.forwardRef(function(t,n){const r=ut({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=WK,id:d,input:p,inputProps:h,label:g,labelId:m,MenuProps:v,multiple:y=!1,native:S=!1,onClose:x,onOpen:b,open:O,renderValue:E,SelectDisplayProps:C,variant:T="outlined",...k}=r,R=S?KA:XA,M=Wo(),P=qa({props:r,muiFormControl:M,states:["variant","error"]}),D=P.variant||T,j={...r,variant:D,classes:a},N=CG(j),{root:L,...B}=N,K=p||{standard:w.jsx(TG,{ownerState:j}),outlined:w.jsx(AG,{label:g,ownerState:j}),filled:w.jsx(kG,{ownerState:j})}[D],z=Ht(n,Ha(K));return w.jsx(_.Fragment,{children:_.cloneElement(K,{inputComponent:R,inputProps:{children:o,error:P.error,IconComponent:u,variant:D,type:void 0,multiple:y,...S?{id:d}:{autoWidth:i,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:v,onClose:x,onOpen:b,open:O,renderValue:E,SelectDisplayProps:{id:d,...C}},...h,classes:h?cn(B,h.classes):B,...p?p.props.inputProps:{}},...(y&&S||c)&&D==="outlined"?{notched:!0}:{},ref:z,className:oe(K.props.className,s,N.root),...!p&&{variant:D},...k})})});process.env.NODE_ENV!=="production"&&(_f.propTypes={autoWidth:f.bool,children:f.node,classes:f.object,className:f.string,defaultOpen:f.bool,defaultValue:f.any,displayEmpty:f.bool,IconComponent:f.elementType,id:f.string,input:f.element,inputProps:f.object,label:f.node,labelId:f.string,MenuProps:f.object,multiple:f.bool,native:f.bool,onChange:f.func,onClose:f.func,onOpen:f.func,open:f.bool,renderValue:f.func,SelectDisplayProps:f.object,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),value:f.oneOfType([f.oneOf([""]),f.any]),variant:f.oneOf(["filled","outlined","standard"])});_f.muiName="Select";function MG(e){return Ge("MuiTooltip",e)}const xt=qe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function jG(e){return Math.round(e*1e5)/1e5}const NG=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${Re(o.split("-")[0])}`],arrow:["arrow"]};return rt(a,MG,t)},RG=ve(jy,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(St(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${xt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${xt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${xt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${xt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${xt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${xt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${xt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${xt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),DG=ve("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Re(n.placement.split("-")[0])}`]]}})(St(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${xt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${xt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${xt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${xt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${jG(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${xt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${xt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${xt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${xt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${xt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${xt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${xt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${xt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${xt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${xt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),IG=ve("span",{name:"MuiTooltip",slot:"Arrow"})(St(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Ac=!1;const zO=new pf;let ps={x:0,y:0};function kc(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Gm=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:o,classes:a,components:s={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:p=!1,disableTouchListener:h=!1,enterDelay:g=100,enterNextDelay:m=0,enterTouchDelay:v=700,followCursor:y=!1,id:S,leaveDelay:x=0,leaveTouchDelay:b=1500,onClose:O,onOpen:E,open:C,placement:T="bottom",PopperComponent:k,PopperProps:R={},slotProps:M={},slots:P={},title:D,TransitionComponent:j,TransitionProps:N,...L}=r,B=_.isValidElement(o)?o:w.jsx("span",{children:o}),K=kd(),z=xg(),[F,G]=_.useState(),[Y,ne]=_.useState(null),Q=_.useRef(!1),X=p||y,te=sa(),ie=sa(),ae=sa(),W=sa(),[H,J]=uu({controlled:C,default:!1,name:"Tooltip",state:"open"});let A=H;if(process.env.NODE_ENV!=="production"){const{current:be}=_.useRef(C!==void 0);_.useEffect(()=>{F&&F.disabled&&!be&&D!==""&&F.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
307
|
+
`))},[D,F,be])}const fe=wg(S),re=_.useRef(),me=Qr(()=>{re.current!==void 0&&(document.body.style.WebkitUserSelect=re.current,re.current=void 0),W.clear()});_.useEffect(()=>me,[me]);const we=be=>{zO.clear(),Ac=!0,J(!0),E&&!A&&E(be)},Se=Qr(be=>{zO.start(800+x,()=>{Ac=!1}),J(!1),O&&A&&O(be),te.start(K.transitions.duration.shortest,()=>{Q.current=!1})}),_e=be=>{Q.current&&be.type!=="touchstart"||(F&&F.removeAttribute("title"),ie.clear(),ae.clear(),g||Ac&&m?ie.start(Ac?m:g,()=>{we(be)}):we(be))},Ze=be=>{ie.clear(),ae.start(x,()=>{Se(be)})},[,De]=_.useState(!1),Te=be=>{Qu(be.target)||(De(!1),Ze(be))},de=be=>{F||G(be.currentTarget),Qu(be.target)&&(De(!0),_e(be))},Et=be=>{Q.current=!0;const dn=B.props;dn.onTouchStart&&dn.onTouchStart(be)},Je=be=>{Et(be),ae.clear(),te.clear(),me(),re.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",W.start(v,()=>{document.body.style.WebkitUserSelect=re.current,_e(be)})},tn=be=>{B.props.onTouchEnd&&B.props.onTouchEnd(be),me(),ae.start(b,()=>{Se(be)})};_.useEffect(()=>{if(!A)return;function be(dn){dn.key==="Escape"&&Se(dn)}return document.addEventListener("keydown",be),()=>{document.removeEventListener("keydown",be)}},[Se,A]);const Gt=Ht(Ha(B),G,n);!D&&D!==0&&(A=!1);const nn=_.useRef(),mn=be=>{const dn=B.props;dn.onMouseMove&&dn.onMouseMove(be),ps={x:be.clientX,y:be.clientY},nn.current&&nn.current.update()},Bt={},gn=typeof D=="string";c?(Bt.title=!A&&gn&&!d?D:null,Bt["aria-describedby"]=A?fe:null):(Bt["aria-label"]=gn?D:null,Bt["aria-labelledby"]=A&&!gn?fe:null);const ye={...Bt,...L,...B.props,className:oe(L.className,B.props.className),onTouchStart:Et,ref:Gt,...y?{onMouseMove:mn}:{}};process.env.NODE_ENV!=="production"&&(ye["data-mui-internal-clone-element"]=!0,_.useEffect(()=>{F&&!F.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
308
308
|
`))},[F]));const rn={};h||(ye.onTouchStart=Je,ye.onTouchEnd=tn),d||(ye.onMouseOver=kc(_e,ye.onMouseOver),ye.onMouseLeave=kc(Ze,ye.onMouseLeave),X||(rn.onMouseOver=_e,rn.onMouseLeave=Ze)),u||(ye.onFocus=kc(de,ye.onFocus),ye.onBlur=kc(Te,ye.onBlur),X||(rn.onFocus=de,rn.onBlur=Te)),process.env.NODE_ENV!=="production"&&B.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${B.props.title}\` or the Tooltip component.`].join(`
|
|
309
|
-
`));const zt={...r,isRtl:z,arrow:i,disableInteractive:X,placement:T,PopperComponentProp:k,touch:Q.current},U=typeof M.popper=="function"?M.popper(zt):M.popper,le=_.useMemo(()=>{let be=[{name:"arrow",enabled:!!Y,options:{element:Y,padding:4}}];return R.popperOptions?.modifiers&&(be=be.concat(R.popperOptions.modifiers)),U?.popperOptions?.modifiers&&(be=be.concat(U.popperOptions.modifiers)),{...R.popperOptions,...U?.popperOptions,modifiers:be}},[Y,R.popperOptions,U?.popperOptions]),Z=NG(zt),ce=typeof M.transition=="function"?M.transition(zt):M.transition,pe={slots:{popper:s.Popper,transition:s.Transition??j,tooltip:s.Tooltip,arrow:s.Arrow,...P},slotProps:{arrow:M.arrow??l.arrow,popper:{...R,...U??l.popper},tooltip:M.tooltip??l.tooltip,transition:{...N,...ce??l.transition}}},[Qe,dt]=ot("popper",{elementType:RG,externalForwardedProps:pe,ownerState:zt,className:oe(Z.popper,R?.className)}),[Hn,vi]=ot("transition",{elementType:sl,externalForwardedProps:pe,ownerState:zt}),[qn,Gi]=ot("tooltip",{elementType:DG,className:Z.tooltip,externalForwardedProps:pe,ownerState:zt}),[Br,vr]=ot("arrow",{elementType:IG,className:Z.arrow,externalForwardedProps:pe,ownerState:zt,ref:ne});return w.jsxs(_.Fragment,{children:[_.cloneElement(B,ye),w.jsx(Qe,{as:k??jy,placement:T,anchorEl:y?{getBoundingClientRect:()=>({top:fs.y,left:fs.x,right:fs.x,bottom:fs.y,width:0,height:0})}:F,popperRef:nn,open:F?A:!1,id:fe,transition:!0,...rn,...dt,popperOptions:le,children:({TransitionProps:be})=>w.jsx(Hn,{timeout:K.transitions.duration.shorter,...be,...vi,children:w.jsxs(qn,{...Gi,children:[D,i?w.jsx(Br,{...vr}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Gm.propTypes={arrow:f.bool,children:Ka.isRequired,classes:f.object,className:f.string,components:f.shape({Arrow:f.elementType,Popper:f.elementType,Tooltip:f.elementType,Transition:f.elementType}),componentsProps:f.shape({arrow:f.object,popper:f.object,tooltip:f.object,transition:f.object}),describeChild:f.bool,disableFocusListener:f.bool,disableHoverListener:f.bool,disableInteractive:f.bool,disableTouchListener:f.bool,enterDelay:f.number,enterNextDelay:f.number,enterTouchDelay:f.number,followCursor:f.bool,id:f.string,leaveDelay:f.number,leaveTouchDelay:f.number,onClose:f.func,onOpen:f.func,open:f.bool,placement:f.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:f.elementType,PopperProps:f.object,slotProps:f.shape({arrow:f.oneOfType([f.func,f.object]),popper:f.oneOfType([f.func,f.object]),tooltip:f.oneOfType([f.func,f.object]),transition:f.oneOfType([f.func,f.object])}),slots:f.shape({arrow:f.elementType,popper:f.elementType,tooltip:f.elementType,transition:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),title:f.node,TransitionComponent:f.elementType,TransitionProps:f.object});function $G(e){return Ge("MuiTextField",e)}qe("MuiTextField",["root"]);const LG={standard:Sf,filled:Of,outlined:Ef},FG=e=>{const{classes:t}=e;return rt({root:["root"]},$G,t)},BG=ve(Ny,{name:"MuiTextField",slot:"Root"})({}),ZA=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:p,fullWidth:h=!1,helperText:g,id:m,InputLabelProps:v,inputProps:y,InputProps:S,inputRef:x,label:b,maxRows:O,minRows:E,multiline:C=!1,name:T,onBlur:k,onChange:R,onFocus:M,placeholder:P,required:D=!1,rows:j,select:N=!1,SelectProps:L,slots:B={},slotProps:K={},type:z,value:F,variant:G="outlined",...Y}=r,ne={...r,autoFocus:o,color:l,disabled:u,error:d,fullWidth:h,multiline:C,required:D,select:N,variant:G},Q=FG(ne);process.env.NODE_ENV!=="production"&&N&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const X=wg(m),te=g&&X?`${X}-helper-text`:void 0,ie=b&&X?`${X}-label`:void 0,ae=LG[G],W={slots:B,slotProps:{input:S,inputLabel:v,htmlInput:y,formHelperText:p,select:L,...K}},H={},J=W.slotProps.inputLabel;G==="outlined"&&(J&&typeof J.shrink<"u"&&(H.notched=J.shrink),H.label=b),N&&((!L||!L.native)&&(H.id=void 0),H["aria-describedby"]=void 0);const[A,fe]=ot("root",{elementType:BG,shouldForwardComponentProp:!0,externalForwardedProps:{...W,...Y},ownerState:ne,className:oe(Q.root,s),ref:n,additionalProps:{disabled:u,error:d,fullWidth:h,required:D,color:l,variant:G}}),[re,me]=ot("input",{elementType:ae,externalForwardedProps:W,additionalProps:H,ownerState:ne}),[we,Se]=ot("inputLabel",{elementType:LA,externalForwardedProps:W,ownerState:ne}),[_e,Ze]=ot("htmlInput",{elementType:"input",externalForwardedProps:W,ownerState:ne}),[De,Te]=ot("formHelperText",{elementType:IA,externalForwardedProps:W,ownerState:ne}),[de,Et]=ot("select",{elementType:_f,externalForwardedProps:W,ownerState:ne}),Je=w.jsx(re,{"aria-describedby":te,autoComplete:i,autoFocus:o,defaultValue:c,fullWidth:h,multiline:C,name:T,rows:j,maxRows:O,minRows:E,type:z,value:F,id:X,inputRef:x,onBlur:k,onChange:R,onFocus:M,placeholder:P,inputProps:Ze,slots:{input:B.htmlInput?_e:void 0},...me});return w.jsxs(A,{...fe,children:[b!=null&&b!==""&&w.jsx(we,{htmlFor:X,id:ie,...Se,children:b}),N?w.jsx(de,{"aria-describedby":te,id:X,labelId:ie,value:F,input:Je,...Et,children:a}):Je,g&&w.jsx(De,{id:te,...Te,children:g})]})});process.env.NODE_ENV!=="production"&&(ZA.propTypes={autoComplete:f.string,autoFocus:f.bool,children:f.node,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["primary","secondary","error","info","success","warning"]),f.string]),defaultValue:f.any,disabled:f.bool,error:f.bool,FormHelperTextProps:f.object,fullWidth:f.bool,helperText:f.node,id:f.string,InputLabelProps:f.object,inputProps:f.object,InputProps:f.object,inputRef:ur,label:f.node,margin:f.oneOf(["dense","none","normal"]),maxRows:f.oneOfType([f.number,f.string]),minRows:f.oneOfType([f.number,f.string]),multiline:f.bool,name:f.string,onBlur:f.func,onChange:f.func,onFocus:f.func,placeholder:f.string,required:f.bool,rows:f.oneOfType([f.number,f.string]),select:f.bool,SelectProps:f.object,size:f.oneOfType([f.oneOf(["medium","small"]),f.string]),slotProps:f.shape({formHelperText:f.oneOfType([f.func,f.object]),htmlInput:f.oneOfType([f.func,f.object]),input:f.oneOfType([f.func,f.object]),inputLabel:f.oneOfType([f.func,f.object]),select:f.oneOfType([f.func,f.object])}),slots:f.shape({formHelperText:f.elementType,htmlInput:f.elementType,input:f.elementType,inputLabel:f.elementType,root:f.elementType,select:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),type:f.string,value:f.any,variant:f.oneOf(["filled","outlined","standard"])});function zG(e){return Xe({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Box_List"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M6.562,8.062h-2a1.5,1.5,0,0,1-1.5-1.5v-2a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,8.062Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5v-2a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M6.562,20.938h-2a1.5,1.5,0,0,1-1.5-1.5v-2a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,20.938Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5v-2a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M6.562,14.5h-2a1.5,1.5,0,0,1-1.5-1.5V11a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,14.5Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5V11a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M20.438,6.062h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]},{tag:"path",attr:{d:"M20.438,12.5h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]},{tag:"path",attr:{d:"M20.438,18.935h-9a.5.5,0,1,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]}]}]}]})(e)}function VG(e){return Xe({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Export"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M5.552,20.968a2.577,2.577,0,0,1-2.5-2.73c-.012-2.153,0-4.306,0-6.459a.5.5,0,0,1,1,0c0,2.2-.032,4.4,0,6.6.016,1.107.848,1.589,1.838,1.589H18.353A1.546,1.546,0,0,0,19.825,19a3.023,3.023,0,0,0,.1-1.061V11.779h0a.5.5,0,0,1,1,0c0,2.224.085,4.465,0,6.687a2.567,2.567,0,0,1-2.67,2.5Z"},child:[]},{tag:"path",attr:{d:"M12.337,3.176a.455.455,0,0,0-.311-.138c-.015,0-.028,0-.043-.006s-.027,0-.041.006a.457.457,0,0,0-.312.138L7.961,6.845a.5.5,0,0,0,.707.707l2.816-2.815V15.479a.5.5,0,0,0,1,0V4.737L15.3,7.552a.5.5,0,0,0,.707-.707Z"},child:[]}]}]}]})(e)}function WG(e){return Xe({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Warning"},child:[{tag:"g",attr:{},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M12.5,8.752a.5.5,0,0,0-1,0h0v6a.5.5,0,0,0,1,0Z"},child:[]},{tag:"circle",attr:{cx:"11.999",cy:"16.736",r:"0.5"},child:[]}]},{tag:"path",attr:{d:"M18.642,20.934H5.385A2.5,2.5,0,0,1,3.163,17.29L9.792,4.421a2.5,2.5,0,0,1,4.444,0L20.865,17.29a2.5,2.5,0,0,1-2.223,3.644ZM12.014,4.065a1.478,1.478,0,0,0-1.334.814L4.052,17.748a1.5,1.5,0,0,0,1.333,2.186H18.642a1.5,1.5,0,0,0,1.334-2.186L13.348,4.879A1.478,1.478,0,0,0,12.014,4.065Z"},child:[]}]}]}]})(e)}const UG=su(_f)(()=>({width:"fit-content",maxWidth:"100px",height:"28px",padding:"0 6px",display:"flex",fontSize:"12px",alignItems:"center","& .MuiSelect-select":{padding:0},"& .MuiOutlinedInput-notchedOutline":{borderColor:"#C6C6C6",transition:"all 0.2s ease"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#B084CC"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"#884EA7 !important",boxShadow:"0 0 0 3px rgba(136, 78, 167, 0.2)"}}));function Yl({widgetId:e,options:t=[],defaultValue:n=["all"],onFilterChange:r=()=>{},onExport:i=()=>{}}){const o=JSON.parse(sessionStorage.getItem("community_id"))||[],[a,s]=I.useState(o),[l,c]=I.useState(""),u=t.filter(h=>h.community_name.toLowerCase().includes(l.toLowerCase())),d=h=>{let g=h.target.value;const m=t.map(v=>v.community_id);if(g.includes("all")&&!a.includes("all"))s(["all",...m]),yi("community_id",JSON.stringify(m)),yi("widget_id",e),r(m);else if(!g.includes("all")&&a.includes("all"))s([]),yi("community_id",JSON.stringify([])),yi("widget_id",e),r([]);else{const v=g.filter(x=>x!=="all"),y=v.length>0&&m.every(x=>v.includes(x));s(y?["all",...m]:v);const S=v.length===1?v[0]:v;yi("community_id",JSON.stringify(S)),yi("widget_id",e),r(S)}},p=()=>{yi("widget_id",e),yi("export",!0),i()};return w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx(Gm,{slotProps:{tooltip:{sx:{fontSize:"12px"}}},children:w.jsx(Ny,{size:"small",children:w.jsxs(UG,{multiple:!0,value:a,onChange:d,displayEmpty:!0,renderValue:h=>h.length===0?w.jsx("span",{style:{color:"#9e9e9e"},children:"Select Community"}):h.includes("all")?"All":t.filter(g=>h.includes(g.community_id)).map(g=>g.community_name).join(", "),MenuProps:{PaperProps:{style:{maxHeight:300}},autoFocus:!1},children:[w.jsx(Ps,{onKeyDown:h=>h.stopPropagation(),onClick:h=>h.stopPropagation(),disableRipple:!0,sx:{"&:hover":{backgroundColor:"transparent"},cursor:"default"},children:w.jsx(ZA,{placeholder:"Search...",size:"small",variant:"outlined",value:l,onChange:h=>c(h.target.value),onClick:h=>h.stopPropagation(),onKeyDown:h=>h.stopPropagation(),sx:{width:"100%"},autoFocus:!0})}),w.jsxs(Ps,{value:"all",children:[w.jsx(Km,{checked:a.includes("all")}),w.jsx(tu,{primary:"All",sx:{fontWeight:600}})]}),u.length>0?u.map(h=>w.jsxs(Ps,{value:h.community_id,children:[w.jsx(Km,{checked:a.includes(h.community_id)}),w.jsx(tu,{primary:h.community_name})]},h.community_id)):w.jsx(Ps,{disabled:!0,children:w.jsx(tu,{primary:"No results found"})})]})})}),w.jsx(Gm,{title:"Export CSV for this widget",children:w.jsx("button",{onClick:p,className:"px-3 py-2 bg-[#FBF5FF] rounded cursor-pointer",children:w.jsx(VG,{className:"stroke-[#884EA7] stroke-[1.4]"})})})]})}function HG({isStatic:e,data:t}){const n=Number(t?.thisMonthMoveIns??t?.lastMonthMoveIns??0),r=Number(t?.thisMonthMoveOuts??t?.lastMonthMoveOuts??0),i=Number(t?.moveInPercentChange??t?.moveInChange??0),o=Number(t?.moveOutPercentChange??t?.moveOutChange??0),a=["#8B5CF6","#EBE4F9"],s=[{name:"Move-ins",value:n,color:a[0]},{name:"Move-outs",value:r,color:a[1]}];function l(c,u){return((Number(c)+Number(u))/2).toFixed(2)+"%"}return w.jsx($o,{title:"Community",period:"This Month",icon:w.jsx(_g,{className:"!text-[24px] text-[#329DFF]"}),className:`${e&&"max-h-[184px]"} h-[184px] mb-4 break-inside-avoid`,actionButtons:w.jsx(Yl,{widgetId:t?.widget_id,options:t?.communities,onFilterChange:(c,u)=>console.log(c,u),onExport:c=>console.log("Export triggered for",c)}),children:w.jsxs("div",{className:"flex",children:[w.jsxs("div",{className:"w-[50%] flex flex-col gap-[28px]",children:[w.jsxs("div",{className:"flex flex-col gap-[8px]",children:[w.jsx("div",{className:"!m-0 !text-[12px] !leading-[16px] !text-[#64748B]",children:"Move-in/Out Count"}),w.jsx("div",{className:"!m-0 !text-[28px] !leading-[32px] !font-medium !text-[#8B5CF6]",children:n+r})]}),w.jsxs("div",{className:"!m-0 !text-[10px] !leading-[14px] !text-[#64748B] flex items-center gap-[4px]",children:[w.jsx(f_,{value:l(i,o)}),w.jsx("div",{className:"whitespace-nowrap",children:"Compared to last month"})]})]}),w.jsx("div",{className:"w-[50%] h-[111px] flex justify-end",children:w.jsx(Vo,{width:"75%",height:"100%",children:w.jsxs(ff,{children:[w.jsxs(Ul,{data:s,innerRadius:36,outerRadius:52,paddingAngle:2,dataKey:"value",children:[w.jsx(Ir,{fill:a[0]}),w.jsx(Ir,{fill:a[1]})]}),w.jsx(zo,{content:w.jsx(El,{})})]})})})]})})}function qG({isStatic:e,data:t,communities:n}){const r=["#8B5CF6","#22C55E","#3B82F6","#F59E0B"],i=[{name:"Notice",value:Number(t?.total_notices||0),color:r[0]},{name:"Post",value:Number(t?.total_topics||0),color:r[1]},{name:"Poll",value:Number(t?.total_polls||0),color:r[2]},{name:"Survey",value:Number(t?.total_surveys||0),color:r[3]}];return w.jsx($o,{title:"Engagement",period:"This Month",icon:w.jsx(s_,{className:"!text-[24px] text-[#DBB467]"}),className:`${e&&"max-h-[303px]"} h-[303px]`,actionButtons:w.jsx(Yl,{widgetId:t?.widget_id,options:t?.communities,onFilterChange:(o,a)=>console.log(o,a),onExport:o=>console.log("Export triggered for",o)}),children:w.jsx("div",{className:"w-full h-[235px]",children:w.jsx(Vo,{width:"100%",height:"100%",children:w.jsxs(jH,{data:i,layout:"vertical",margin:{top:4,right:8,left:0,bottom:0},children:[w.jsx(uf,{stroke:"#e5e7eb",strokeDasharray:"3 3",horizontal:!1}),w.jsx(rl,{type:"category",dataKey:"name",width:40,axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#121212",fontWeight:400}}),w.jsx(df,{type:"number",axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#64748B",fontWeight:400}}),w.jsx(zo,{content:w.jsx(El,{}),cursor:{fill:"transparent"}}),w.jsx(CT,{dataKey:"value",barSize:40,isAnimationActive:!1,children:i.map((o,a)=>w.jsx(Ir,{fill:r[a]},o.name))})]})})})})}function KG({isStatic:e,data:t}){const n=Number(t?.totalBookings||0),r=Number(t?.averageUtilizationPercentage||0),i=I.useMemo(()=>{if(!t?.graph)return[];const{labels:s=[],bookings:l=[],utilization:c=[]}=t.graph;return s.map((u,d)=>({time:u,bookings:l[d]||0,utilization:c[d]||0}))},[t]),o=s=>["12 AM","6 AM","12 PM","6 PM","11 PM"].includes(s)?s:"",a=i.length?i:Array.from({length:24},(s,l)=>({time:`${l%12||12} ${l>=12?"PM":"AM"}`,bookings:0,utilization:0}));return w.jsxs($o,{title:"Facilities",period:"Today",icon:w.jsx(a_,{className:"!text-[24px] text-[#8B5CF6]"}),className:`${e&&"max-h-[305px]"} h-[305px] mb-4 break-inside-avoid`,children:[w.jsxs("div",{className:"grid grid-cols-2 gap-[24px] mb-[16px]",children:[w.jsxs("div",{children:[w.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Bookings"}),w.jsx("div",{className:"!text-[24px] font-medium text-[#8B5CF6]",children:n})]}),w.jsxs("div",{children:[w.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Utilisation Rate"}),w.jsxs("div",{className:"!text-[24px] font-medium text-[#329DFF]",children:[r.toFixed(2),"%"]})]})]}),w.jsx("div",{className:"w-full h-[170px]",children:w.jsx(Vo,{width:"100%",height:"100%",children:w.jsxs(tA,{data:a,margin:{top:5,right:-30,left:-35,bottom:0},children:[w.jsx(uf,{strokeDasharray:"3 3",stroke:"#EBEBEB"}),w.jsx(df,{dataKey:"time",interval:0,tickFormatter:o,tick:{fontSize:10,fill:"#121212",fontWeight:400},axisLine:!1,tickLine:!1,minTickGap:0}),w.jsx(rl,{yAxisId:"left",tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),w.jsx(rl,{yAxisId:"right",orientation:"right",domain:[0,100],ticks:[0,20,40,60,80,100],tickFormatter:s=>`${s}%`,tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),w.jsx(zo,{content:w.jsx(El,{})}),w.jsx(pa,{yAxisId:"left",type:"monotone",dataKey:"bookings",name:"Bookings",stroke:"#8B5CF6",strokeWidth:2,dot:!1}),w.jsx(pa,{yAxisId:"right",type:"monotone",dataKey:"utilization",name:"Utilization Rate",stroke:"#329DFF",strokeWidth:2,dot:!1,strokeDasharray:"2 4"})]})})})]})}function YG({data:e}){const t=e?.incomeSummary||{},n=e?.expenditureSummary||{},r=["AED","USD","EUR"],i=["Rs","INR","₹"];function o(s){if(s==null||isNaN(s))return"0";const l=Number(s),c=Math.abs(l),u=l<0?"-":"";return c>=1e9?u+(c/1e9).toFixed(c%1e9===0?0:2)+"B":c>=1e6?u+(c/1e6).toFixed(c%1e6===0?0:2)+"M":c>=1e3?u+(c/1e3).toFixed(c%1e3===0?0:2)+"K":u+c.toFixed(c%1===0?0:2)}function a(s,l){return l?i.includes(l)?`${l} ${o(s)}`:r.includes(l)?`${o(s)} ${l}`:`${o(s)} ${l}`:o(s)}return console.log("Finance Summary Data:",e),w.jsx($o,{title:"Income",period:"This Month",icon:w.jsx(s0,{className:"!text-[24px] text-green-600"}),className:"!gap-[16px] break-inside-avoid h-[232px] overflow-hidden",actionButtons:w.jsx(Yl,{widgetId:e?.widget_id,options:e?.communities,onFilterChange:(s,l)=>console.log(s,l),onExport:s=>console.log("Export triggered for",s)}),children:w.jsxs("div",{children:[w.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mb-2",children:[w.jsx("div",{children:"Opening"}),w.jsx("div",{children:"Income"}),w.jsx("div",{children:"Collection"}),w.jsx("div",{children:"Closing"})]}),w.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212] mb-2",children:[w.jsx("div",{children:a(t.opening_balance,t?.currency_type)}),w.jsx("div",{children:a(t.income,t?.currency_type)}),w.jsx("div",{children:a(t.collection,t?.currency_type)}),w.jsx("div",{children:a(t.closing_balance,t?.currency_type)})]}),w.jsx("hr",{className:"my-4 border-t border-dashed border-gray-300"}),w.jsx("div",{className:"flex items-center justify-between",children:w.jsxs("div",{className:"flex items-center gap-[12px]",children:[w.jsx(s0,{className:"!text-[24px] text-red-600"}),w.jsx("div",{className:"!my-0 !font-medium !text-[16px] !leading-[20px] !text-[#121212]",children:"Expenditure"})]})}),w.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mt-4 mb-2",children:[w.jsx("div",{children:"Opening"}),w.jsx("div",{children:"Expenditure"}),w.jsx("div",{children:"Payment"}),w.jsx("div",{children:"Outstanding"})]}),w.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212]",children:[w.jsx("div",{children:a(n.opening_balance,n?.currency_type)}),w.jsx("div",{children:a(n.expenditure,n?.currency_type)}),w.jsx("div",{children:a(n.payment,n?.currency_type)}),w.jsx("div",{children:a(n.outstanding,n?.currency_type)})]})]})})}var GG="tippy-box",JA="tippy-content",XG="tippy-backdrop",QA="tippy-arrow",ek="tippy-svg-arrow",lo={passive:!0,capture:!0},tk=function(){return document.body};function ZG(e,t){return{}.hasOwnProperty.call(e,t)}function Eh(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function Iy(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function nk(e,t){return typeof e=="function"?e.apply(void 0,t):e}function VO(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function JG(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function QG(e){return e.split(/\s+/).filter(Boolean)}function oa(e){return[].concat(e)}function WO(e,t){e.indexOf(t)===-1&&e.push(t)}function eX(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function tX(e){return e.split("-")[0]}function od(e){return[].slice.call(e)}function UO(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function $s(){return document.createElement("div")}function cl(e){return["Element","Fragment"].some(function(t){return Iy(e,t)})}function nX(e){return Iy(e,"NodeList")}function rX(e){return Iy(e,"MouseEvent")}function iX(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function oX(e){return cl(e)?[e]:nX(e)?od(e):Array.isArray(e)?e:od(document.querySelectorAll(e))}function _h(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function HO(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function aX(e){var t,n=oa(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function sX(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var o=i.popperRect,a=i.popperState,s=i.props,l=s.interactiveBorder,c=tX(a.placement),u=a.modifiersData.offset;if(!u)return!0;var d=c==="bottom"?u.top.y:0,p=c==="top"?u.bottom.y:0,h=c==="right"?u.left.x:0,g=c==="left"?u.right.x:0,m=o.top-r+d>l,v=r-o.bottom-p>l,y=o.left-n+h>l,S=n-o.right-g>l;return m||v||y||S})}function Ph(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function qO(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var _r={isTouch:!1},KO=0;function lX(){_r.isTouch||(_r.isTouch=!0,window.performance&&document.addEventListener("mousemove",rk))}function rk(){var e=performance.now();e-KO<20&&(_r.isTouch=!1,document.removeEventListener("mousemove",rk)),KO=e}function cX(){var e=document.activeElement;if(iX(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function uX(){document.addEventListener("touchstart",lX,lo),window.addEventListener("blur",cX)}var dX=typeof window<"u"&&typeof document<"u",fX=dX?!!window.msCrypto:!1;function ea(e){var t=e==="destroy"?"n already-":" ";return[e+"() was called on a"+t+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function YO(e){var t=/[ \t]{2,}/g,n=/^[ \t]*/gm;return e.replace(t," ").replace(n,"").trim()}function pX(e){return YO(`
|
|
309
|
+
`));const zt={...r,isRtl:z,arrow:i,disableInteractive:X,placement:T,PopperComponentProp:k,touch:Q.current},U=typeof M.popper=="function"?M.popper(zt):M.popper,le=_.useMemo(()=>{let be=[{name:"arrow",enabled:!!Y,options:{element:Y,padding:4}}];return R.popperOptions?.modifiers&&(be=be.concat(R.popperOptions.modifiers)),U?.popperOptions?.modifiers&&(be=be.concat(U.popperOptions.modifiers)),{...R.popperOptions,...U?.popperOptions,modifiers:be}},[Y,R.popperOptions,U?.popperOptions]),Z=NG(zt),ce=typeof M.transition=="function"?M.transition(zt):M.transition,pe={slots:{popper:s.Popper,transition:s.Transition??j,tooltip:s.Tooltip,arrow:s.Arrow,...P},slotProps:{arrow:M.arrow??l.arrow,popper:{...R,...U??l.popper},tooltip:M.tooltip??l.tooltip,transition:{...N,...ce??l.transition}}},[Qe,dt]=ot("popper",{elementType:RG,externalForwardedProps:pe,ownerState:zt,className:oe(Z.popper,R?.className)}),[Hn,vi]=ot("transition",{elementType:ll,externalForwardedProps:pe,ownerState:zt}),[qn,Gi]=ot("tooltip",{elementType:DG,className:Z.tooltip,externalForwardedProps:pe,ownerState:zt}),[Br,vr]=ot("arrow",{elementType:IG,className:Z.arrow,externalForwardedProps:pe,ownerState:zt,ref:ne});return w.jsxs(_.Fragment,{children:[_.cloneElement(B,ye),w.jsx(Qe,{as:k??jy,placement:T,anchorEl:y?{getBoundingClientRect:()=>({top:ps.y,left:ps.x,right:ps.x,bottom:ps.y,width:0,height:0})}:F,popperRef:nn,open:F?A:!1,id:fe,transition:!0,...rn,...dt,popperOptions:le,children:({TransitionProps:be})=>w.jsx(Hn,{timeout:K.transitions.duration.shorter,...be,...vi,children:w.jsxs(qn,{...Gi,children:[D,i?w.jsx(Br,{...vr}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Gm.propTypes={arrow:f.bool,children:Ka.isRequired,classes:f.object,className:f.string,components:f.shape({Arrow:f.elementType,Popper:f.elementType,Tooltip:f.elementType,Transition:f.elementType}),componentsProps:f.shape({arrow:f.object,popper:f.object,tooltip:f.object,transition:f.object}),describeChild:f.bool,disableFocusListener:f.bool,disableHoverListener:f.bool,disableInteractive:f.bool,disableTouchListener:f.bool,enterDelay:f.number,enterNextDelay:f.number,enterTouchDelay:f.number,followCursor:f.bool,id:f.string,leaveDelay:f.number,leaveTouchDelay:f.number,onClose:f.func,onOpen:f.func,open:f.bool,placement:f.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:f.elementType,PopperProps:f.object,slotProps:f.shape({arrow:f.oneOfType([f.func,f.object]),popper:f.oneOfType([f.func,f.object]),tooltip:f.oneOfType([f.func,f.object]),transition:f.oneOfType([f.func,f.object])}),slots:f.shape({arrow:f.elementType,popper:f.elementType,tooltip:f.elementType,transition:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),title:f.node,TransitionComponent:f.elementType,TransitionProps:f.object});function $G(e){return Ge("MuiTextField",e)}qe("MuiTextField",["root"]);const LG={standard:Sf,filled:Of,outlined:Ef},FG=e=>{const{classes:t}=e;return rt({root:["root"]},$G,t)},BG=ve(Ny,{name:"MuiTextField",slot:"Root"})({}),ZA=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:p,fullWidth:h=!1,helperText:g,id:m,InputLabelProps:v,inputProps:y,InputProps:S,inputRef:x,label:b,maxRows:O,minRows:E,multiline:C=!1,name:T,onBlur:k,onChange:R,onFocus:M,placeholder:P,required:D=!1,rows:j,select:N=!1,SelectProps:L,slots:B={},slotProps:K={},type:z,value:F,variant:G="outlined",...Y}=r,ne={...r,autoFocus:o,color:l,disabled:u,error:d,fullWidth:h,multiline:C,required:D,select:N,variant:G},Q=FG(ne);process.env.NODE_ENV!=="production"&&N&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const X=wg(m),te=g&&X?`${X}-helper-text`:void 0,ie=b&&X?`${X}-label`:void 0,ae=LG[G],W={slots:B,slotProps:{input:S,inputLabel:v,htmlInput:y,formHelperText:p,select:L,...K}},H={},J=W.slotProps.inputLabel;G==="outlined"&&(J&&typeof J.shrink<"u"&&(H.notched=J.shrink),H.label=b),N&&((!L||!L.native)&&(H.id=void 0),H["aria-describedby"]=void 0);const[A,fe]=ot("root",{elementType:BG,shouldForwardComponentProp:!0,externalForwardedProps:{...W,...Y},ownerState:ne,className:oe(Q.root,s),ref:n,additionalProps:{disabled:u,error:d,fullWidth:h,required:D,color:l,variant:G}}),[re,me]=ot("input",{elementType:ae,externalForwardedProps:W,additionalProps:H,ownerState:ne}),[we,Se]=ot("inputLabel",{elementType:LA,externalForwardedProps:W,ownerState:ne}),[_e,Ze]=ot("htmlInput",{elementType:"input",externalForwardedProps:W,ownerState:ne}),[De,Te]=ot("formHelperText",{elementType:IA,externalForwardedProps:W,ownerState:ne}),[de,Et]=ot("select",{elementType:_f,externalForwardedProps:W,ownerState:ne}),Je=w.jsx(re,{"aria-describedby":te,autoComplete:i,autoFocus:o,defaultValue:c,fullWidth:h,multiline:C,name:T,rows:j,maxRows:O,minRows:E,type:z,value:F,id:X,inputRef:x,onBlur:k,onChange:R,onFocus:M,placeholder:P,inputProps:Ze,slots:{input:B.htmlInput?_e:void 0},...me});return w.jsxs(A,{...fe,children:[b!=null&&b!==""&&w.jsx(we,{htmlFor:X,id:ie,...Se,children:b}),N?w.jsx(de,{"aria-describedby":te,id:X,labelId:ie,value:F,input:Je,...Et,children:a}):Je,g&&w.jsx(De,{id:te,...Te,children:g})]})});process.env.NODE_ENV!=="production"&&(ZA.propTypes={autoComplete:f.string,autoFocus:f.bool,children:f.node,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["primary","secondary","error","info","success","warning"]),f.string]),defaultValue:f.any,disabled:f.bool,error:f.bool,FormHelperTextProps:f.object,fullWidth:f.bool,helperText:f.node,id:f.string,InputLabelProps:f.object,inputProps:f.object,InputProps:f.object,inputRef:ur,label:f.node,margin:f.oneOf(["dense","none","normal"]),maxRows:f.oneOfType([f.number,f.string]),minRows:f.oneOfType([f.number,f.string]),multiline:f.bool,name:f.string,onBlur:f.func,onChange:f.func,onFocus:f.func,placeholder:f.string,required:f.bool,rows:f.oneOfType([f.number,f.string]),select:f.bool,SelectProps:f.object,size:f.oneOfType([f.oneOf(["medium","small"]),f.string]),slotProps:f.shape({formHelperText:f.oneOfType([f.func,f.object]),htmlInput:f.oneOfType([f.func,f.object]),input:f.oneOfType([f.func,f.object]),inputLabel:f.oneOfType([f.func,f.object]),select:f.oneOfType([f.func,f.object])}),slots:f.shape({formHelperText:f.elementType,htmlInput:f.elementType,input:f.elementType,inputLabel:f.elementType,root:f.elementType,select:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),type:f.string,value:f.any,variant:f.oneOf(["filled","outlined","standard"])});function zG(e){return Xe({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Box_List"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M6.562,8.062h-2a1.5,1.5,0,0,1-1.5-1.5v-2a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,8.062Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5v-2a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M6.562,20.938h-2a1.5,1.5,0,0,1-1.5-1.5v-2a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,20.938Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5v-2a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M6.562,14.5h-2a1.5,1.5,0,0,1-1.5-1.5V11a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,14.5Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5V11a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M20.438,6.062h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]},{tag:"path",attr:{d:"M20.438,12.5h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]},{tag:"path",attr:{d:"M20.438,18.935h-9a.5.5,0,1,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]}]}]}]})(e)}function VG(e){return Xe({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Export"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M5.552,20.968a2.577,2.577,0,0,1-2.5-2.73c-.012-2.153,0-4.306,0-6.459a.5.5,0,0,1,1,0c0,2.2-.032,4.4,0,6.6.016,1.107.848,1.589,1.838,1.589H18.353A1.546,1.546,0,0,0,19.825,19a3.023,3.023,0,0,0,.1-1.061V11.779h0a.5.5,0,0,1,1,0c0,2.224.085,4.465,0,6.687a2.567,2.567,0,0,1-2.67,2.5Z"},child:[]},{tag:"path",attr:{d:"M12.337,3.176a.455.455,0,0,0-.311-.138c-.015,0-.028,0-.043-.006s-.027,0-.041.006a.457.457,0,0,0-.312.138L7.961,6.845a.5.5,0,0,0,.707.707l2.816-2.815V15.479a.5.5,0,0,0,1,0V4.737L15.3,7.552a.5.5,0,0,0,.707-.707Z"},child:[]}]}]}]})(e)}function WG(e){return Xe({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Warning"},child:[{tag:"g",attr:{},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M12.5,8.752a.5.5,0,0,0-1,0h0v6a.5.5,0,0,0,1,0Z"},child:[]},{tag:"circle",attr:{cx:"11.999",cy:"16.736",r:"0.5"},child:[]}]},{tag:"path",attr:{d:"M18.642,20.934H5.385A2.5,2.5,0,0,1,3.163,17.29L9.792,4.421a2.5,2.5,0,0,1,4.444,0L20.865,17.29a2.5,2.5,0,0,1-2.223,3.644ZM12.014,4.065a1.478,1.478,0,0,0-1.334.814L4.052,17.748a1.5,1.5,0,0,0,1.333,2.186H18.642a1.5,1.5,0,0,0,1.334-2.186L13.348,4.879A1.478,1.478,0,0,0,12.014,4.065Z"},child:[]}]}]}]})(e)}const UG=su(_f)(()=>({width:"fit-content",maxWidth:"100px",height:"28px",padding:"0 6px",display:"flex",fontSize:"12px",alignItems:"center","& .MuiSelect-select":{padding:0},"& .MuiOutlinedInput-notchedOutline":{borderColor:"#C6C6C6",transition:"all 0.2s ease"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#B084CC"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"#884EA7 !important",boxShadow:"0 0 0 3px rgba(136, 78, 167, 0.2)"}}));function Ya({widgetId:e,options:t=[],defaultValue:n=["all"],onFilterChange:r=()=>{},onExport:i=()=>{}}){const o=JSON.parse(sessionStorage.getItem("community_id"))||[],[a,s]=I.useState(o),[l,c]=I.useState(""),u=t.filter(h=>h.community_name.toLowerCase().includes(l.toLowerCase())),d=h=>{let g=h.target.value;const m=t.map(v=>v.community_id);if(g.includes("all")&&!a.includes("all"))s(["all",...m]),yi("community_id",JSON.stringify(m)),yi("widget_id",e),r(m);else if(!g.includes("all")&&a.includes("all"))s([]),yi("community_id",JSON.stringify([])),yi("widget_id",e),r([]);else{const v=g.filter(x=>x!=="all"),y=v.length>0&&m.every(x=>v.includes(x));s(y?["all",...m]:v);const S=v.length===1?v[0]:v;yi("community_id",JSON.stringify(S)),yi("widget_id",e),r(S)}},p=()=>{yi("widget_id",e),yi("export",!0),i()};return w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx(Gm,{slotProps:{tooltip:{sx:{fontSize:"12px"}}},children:w.jsx(Ny,{size:"small",children:w.jsxs(UG,{multiple:!0,value:a,onChange:d,displayEmpty:!0,renderValue:h=>h.length===0?w.jsx("span",{style:{color:"#9e9e9e"},children:"Select Community"}):h.includes("all")?"All":t.filter(g=>h.includes(g.community_id)).map(g=>g.community_name).join(", "),MenuProps:{PaperProps:{style:{maxHeight:300}},autoFocus:!1},children:[w.jsx(Cs,{onKeyDown:h=>h.stopPropagation(),onClick:h=>h.stopPropagation(),disableRipple:!0,sx:{"&:hover":{backgroundColor:"transparent"},cursor:"default"},children:w.jsx(ZA,{placeholder:"Search...",size:"small",variant:"outlined",value:l,onChange:h=>c(h.target.value),onClick:h=>h.stopPropagation(),onKeyDown:h=>h.stopPropagation(),sx:{width:"100%"},autoFocus:!0})}),w.jsxs(Cs,{value:"all",children:[w.jsx(Km,{checked:a.includes("all")}),w.jsx(tu,{primary:"All",sx:{fontWeight:600}})]}),u.length>0?u.map(h=>w.jsxs(Cs,{value:h.community_id,children:[w.jsx(Km,{checked:a.includes(h.community_id)}),w.jsx(tu,{primary:h.community_name})]},h.community_id)):w.jsx(Cs,{disabled:!0,children:w.jsx(tu,{primary:"No results found"})})]})})}),w.jsx(Gm,{title:"Export CSV for this widget",children:w.jsx("button",{onClick:p,className:"px-3 py-2 bg-[#FBF5FF] rounded cursor-pointer",children:w.jsx(VG,{className:"stroke-[#884EA7] stroke-[1.4]"})})})]})}function HG({isStatic:e,data:t}){const n=Number(t?.thisMonthMoveIns??t?.lastMonthMoveIns??0),r=Number(t?.thisMonthMoveOuts??t?.lastMonthMoveOuts??0),i=Number(t?.moveInPercentChange??t?.moveInChange??0),o=Number(t?.moveOutPercentChange??t?.moveOutChange??0),a=["#8B5CF6","#EBE4F9"],s=[{name:"Move-ins",value:n,color:a[0]},{name:"Move-outs",value:r,color:a[1]}];function l(c,u){return((Number(c)+Number(u))/2).toFixed(2)+"%"}return w.jsx($o,{title:"Community",period:"This Month",icon:w.jsx(_g,{className:"!text-[24px] text-[#329DFF]"}),className:`${e&&"max-h-[184px]"} h-[184px] mb-4 break-inside-avoid`,actionButtons:w.jsx(Ya,{widgetId:t?.widget_id,options:t?.communities,onFilterChange:(c,u)=>console.log(c,u),onExport:c=>console.log("Export triggered for",c)}),children:w.jsxs("div",{className:"flex",children:[w.jsxs("div",{className:"w-[50%] flex flex-col gap-[28px]",children:[w.jsxs("div",{className:"flex flex-col gap-[8px]",children:[w.jsx("div",{className:"!m-0 !text-[12px] !leading-[16px] !text-[#64748B]",children:"Move-in/Out Count"}),w.jsx("div",{className:"!m-0 !text-[28px] !leading-[32px] !font-medium !text-[#8B5CF6]",children:n+r})]}),w.jsxs("div",{className:"!m-0 !text-[10px] !leading-[14px] !text-[#64748B] flex items-center gap-[4px]",children:[w.jsx(f_,{value:l(i,o)}),w.jsx("div",{className:"whitespace-nowrap",children:"Compared to last month"})]})]}),w.jsx("div",{className:"w-[50%] h-[111px] flex justify-end",children:w.jsx(Vo,{width:"75%",height:"100%",children:w.jsxs(ff,{children:[w.jsxs(Hl,{data:s,innerRadius:36,outerRadius:52,paddingAngle:2,dataKey:"value",children:[w.jsx(Ir,{fill:a[0]}),w.jsx(Ir,{fill:a[1]})]}),w.jsx(zo,{content:w.jsx(_l,{})})]})})})]})})}function qG({isStatic:e,data:t,communities:n}){const r=["#8B5CF6","#22C55E","#3B82F6","#F59E0B"],i=[{name:"Notice",value:Number(t?.total_notices||0),color:r[0]},{name:"Post",value:Number(t?.total_topics||0),color:r[1]},{name:"Poll",value:Number(t?.total_polls||0),color:r[2]},{name:"Survey",value:Number(t?.total_surveys||0),color:r[3]}];return w.jsx($o,{title:"Engagement",period:"This Month",icon:w.jsx(s_,{className:"!text-[24px] text-[#DBB467]"}),className:`${e&&"max-h-[303px]"} h-[303px]`,actionButtons:w.jsx(Ya,{widgetId:t?.widget_id,options:t?.communities,onFilterChange:(o,a)=>console.log(o,a),onExport:o=>console.log("Export triggered for",o)}),children:w.jsx("div",{className:"w-full h-[235px]",children:w.jsx(Vo,{width:"100%",height:"100%",children:w.jsxs(jH,{data:i,layout:"vertical",margin:{top:4,right:8,left:0,bottom:0},children:[w.jsx(uf,{stroke:"#e5e7eb",strokeDasharray:"3 3",horizontal:!1}),w.jsx(il,{type:"category",dataKey:"name",width:40,axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#121212",fontWeight:400}}),w.jsx(df,{type:"number",axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#64748B",fontWeight:400}}),w.jsx(zo,{content:w.jsx(_l,{}),cursor:{fill:"transparent"}}),w.jsx(CT,{dataKey:"value",barSize:40,isAnimationActive:!1,children:i.map((o,a)=>w.jsx(Ir,{fill:r[a]},o.name))})]})})})})}function KG({isStatic:e,data:t}){const n=Number(t?.totalBookings||0),r=Number(t?.averageUtilizationPercentage||0),i=I.useMemo(()=>{if(!t?.graph)return[];const{labels:s=[],bookings:l=[],utilization:c=[]}=t.graph;return s.map((u,d)=>({time:u,bookings:l[d]||0,utilization:c[d]||0}))},[t]),o=s=>["12 AM","6 AM","12 PM","6 PM","11 PM"].includes(s)?s:"",a=i.length?i:Array.from({length:24},(s,l)=>({time:`${l%12||12} ${l>=12?"PM":"AM"}`,bookings:0,utilization:0}));return w.jsxs($o,{title:"Facilities",period:"Today",icon:w.jsx(a_,{className:"!text-[24px] text-[#8B5CF6]"}),className:`${e&&"max-h-[305px]"} h-[305px] mb-4 break-inside-avoid`,actionButtons:w.jsx(Ya,{widgetId:t?.widget_id,options:t?.communities,onFilterChange:(s,l)=>console.log(s,l),onExport:s=>console.log("Export triggered for",s)}),children:[w.jsxs("div",{className:"grid grid-cols-2 gap-[24px] mb-[16px]",children:[w.jsxs("div",{children:[w.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Bookings"}),w.jsx("div",{className:"!text-[24px] font-medium text-[#8B5CF6]",children:n})]}),w.jsxs("div",{children:[w.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Utilisation Rate"}),w.jsxs("div",{className:"!text-[24px] font-medium text-[#329DFF]",children:[r.toFixed(2),"%"]})]})]}),w.jsx("div",{className:"w-full h-[170px]",children:w.jsx(Vo,{width:"100%",height:"100%",children:w.jsxs(tA,{data:a,margin:{top:5,right:-30,left:-35,bottom:0},children:[w.jsx(uf,{strokeDasharray:"3 3",stroke:"#EBEBEB"}),w.jsx(df,{dataKey:"time",interval:0,tickFormatter:o,tick:{fontSize:10,fill:"#121212",fontWeight:400},axisLine:!1,tickLine:!1,minTickGap:0}),w.jsx(il,{yAxisId:"left",tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),w.jsx(il,{yAxisId:"right",orientation:"right",domain:[0,100],ticks:[0,20,40,60,80,100],tickFormatter:s=>`${s}%`,tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),w.jsx(zo,{content:w.jsx(_l,{})}),w.jsx(pa,{yAxisId:"left",type:"monotone",dataKey:"bookings",name:"Bookings",stroke:"#8B5CF6",strokeWidth:2,dot:!1,isAnimationActive:!1}),w.jsx(pa,{yAxisId:"right",type:"monotone",dataKey:"utilization",name:"Utilization Rate",stroke:"#329DFF",strokeWidth:2,dot:!1,strokeDasharray:"2 4",isAnimationActive:!1})]})})})]})}function YG({data:e}){const t=e?.incomeSummary||{},n=e?.expenditureSummary||{},r=["AED","USD","EUR"],i=["Rs","INR","₹"];function o(s){if(s==null||isNaN(s))return"0";const l=Number(s),c=Math.abs(l),u=l<0?"-":"";return c>=1e9?u+(c/1e9).toFixed(c%1e9===0?0:2)+"B":c>=1e6?u+(c/1e6).toFixed(c%1e6===0?0:2)+"M":c>=1e3?u+(c/1e3).toFixed(c%1e3===0?0:2)+"K":u+c.toFixed(c%1===0?0:2)}function a(s,l){return l?i.includes(l)?`${l} ${o(s)}`:r.includes(l)?`${o(s)} ${l}`:`${o(s)} ${l}`:o(s)}return console.log("Finance Summary Data:",e),w.jsx($o,{title:"Income",period:"This Month",icon:w.jsx(s0,{className:"!text-[24px] text-green-600"}),className:"!gap-[16px] break-inside-avoid h-[232px] overflow-hidden",actionButtons:w.jsx(Ya,{widgetId:e?.widget_id,options:e?.communities,onFilterChange:(s,l)=>console.log(s,l),onExport:s=>console.log("Export triggered for",s)}),children:w.jsxs("div",{children:[w.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mb-2",children:[w.jsx("div",{children:"Opening"}),w.jsx("div",{children:"Income"}),w.jsx("div",{children:"Collection"}),w.jsx("div",{children:"Closing"})]}),w.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212] mb-2",children:[w.jsx("div",{children:a(t.opening_balance,t?.currency_type)}),w.jsx("div",{children:a(t.income,t?.currency_type)}),w.jsx("div",{children:a(t.collection,t?.currency_type)}),w.jsx("div",{children:a(t.closing_balance,t?.currency_type)})]}),w.jsx("hr",{className:"my-4 border-t border-dashed border-gray-300"}),w.jsx("div",{className:"flex items-center justify-between",children:w.jsxs("div",{className:"flex items-center gap-[12px]",children:[w.jsx(s0,{className:"!text-[24px] text-red-600"}),w.jsx("div",{className:"!my-0 !font-medium !text-[16px] !leading-[20px] !text-[#121212]",children:"Expenditure"})]})}),w.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mt-4 mb-2",children:[w.jsx("div",{children:"Opening"}),w.jsx("div",{children:"Expenditure"}),w.jsx("div",{children:"Payment"}),w.jsx("div",{children:"Outstanding"})]}),w.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212]",children:[w.jsx("div",{children:a(n.opening_balance,n?.currency_type)}),w.jsx("div",{children:a(n.expenditure,n?.currency_type)}),w.jsx("div",{children:a(n.payment,n?.currency_type)}),w.jsx("div",{children:a(n.outstanding,n?.currency_type)})]})]})})}var GG="tippy-box",JA="tippy-content",XG="tippy-backdrop",QA="tippy-arrow",ek="tippy-svg-arrow",lo={passive:!0,capture:!0},tk=function(){return document.body};function ZG(e,t){return{}.hasOwnProperty.call(e,t)}function Eh(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function Iy(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function nk(e,t){return typeof e=="function"?e.apply(void 0,t):e}function VO(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function JG(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function QG(e){return e.split(/\s+/).filter(Boolean)}function oa(e){return[].concat(e)}function WO(e,t){e.indexOf(t)===-1&&e.push(t)}function eX(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function tX(e){return e.split("-")[0]}function od(e){return[].slice.call(e)}function UO(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function Ls(){return document.createElement("div")}function ul(e){return["Element","Fragment"].some(function(t){return Iy(e,t)})}function nX(e){return Iy(e,"NodeList")}function rX(e){return Iy(e,"MouseEvent")}function iX(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function oX(e){return ul(e)?[e]:nX(e)?od(e):Array.isArray(e)?e:od(document.querySelectorAll(e))}function _h(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function HO(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function aX(e){var t,n=oa(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function sX(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var o=i.popperRect,a=i.popperState,s=i.props,l=s.interactiveBorder,c=tX(a.placement),u=a.modifiersData.offset;if(!u)return!0;var d=c==="bottom"?u.top.y:0,p=c==="top"?u.bottom.y:0,h=c==="right"?u.left.x:0,g=c==="left"?u.right.x:0,m=o.top-r+d>l,v=r-o.bottom-p>l,y=o.left-n+h>l,S=n-o.right-g>l;return m||v||y||S})}function Ph(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function qO(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var _r={isTouch:!1},KO=0;function lX(){_r.isTouch||(_r.isTouch=!0,window.performance&&document.addEventListener("mousemove",rk))}function rk(){var e=performance.now();e-KO<20&&(_r.isTouch=!1,document.removeEventListener("mousemove",rk)),KO=e}function cX(){var e=document.activeElement;if(iX(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function uX(){document.addEventListener("touchstart",lX,lo),window.addEventListener("blur",cX)}var dX=typeof window<"u"&&typeof document<"u",fX=dX?!!window.msCrypto:!1;function ea(e){var t=e==="destroy"?"n already-":" ";return[e+"() was called on a"+t+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function YO(e){var t=/[ \t]{2,}/g,n=/^[ \t]*/gm;return e.replace(t," ").replace(n,"").trim()}function pX(e){return YO(`
|
|
310
310
|
%ctippy.js
|
|
311
311
|
|
|
312
312
|
%c`+YO(e)+`
|
|
313
313
|
|
|
314
314
|
%c👷 This is a development-only message. It will be removed in production.
|
|
315
|
-
`)}function ik(e){return[pX(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var
|
|
315
|
+
`)}function ik(e){return[pX(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var dl;process.env.NODE_ENV!=="production"&&hX();function hX(){dl=new Set}function qr(e,t){if(e&&!dl.has(t)){var n;dl.add(t),(n=console).warn.apply(n,ik(t))}}function Xm(e,t){if(e&&!dl.has(t)){var n;dl.add(t),(n=console).error.apply(n,ik(t))}}function mX(e){var t=!e,n=Object.prototype.toString.call(e)==="[object Object]"&&!e.addEventListener;Xm(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),Xm(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var ok={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},gX={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},In=Object.assign({appendTo:tk,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},ok,gX),vX=Object.keys(In),yX=function(t){process.env.NODE_ENV!=="production"&&sk(t,[]);var n=Object.keys(t);n.forEach(function(r){In[r]=t[r]})};function ak(e){var t=e.plugins||[],n=t.reduce(function(r,i){var o=i.name,a=i.defaultValue;if(o){var s;r[o]=e[o]!==void 0?e[o]:(s=In[o])!=null?s:a}return r},{});return Object.assign({},e,n)}function bX(e,t){var n=t?Object.keys(ak(Object.assign({},In,{plugins:t}))):vX,r=n.reduce(function(i,o){var a=(e.getAttribute("data-tippy-"+o)||"").trim();if(!a)return i;if(o==="content")i[o]=a;else try{i[o]=JSON.parse(a)}catch{i[o]=a}return i},{});return r}function GO(e,t){var n=Object.assign({},t,{content:nk(t.content,[e])},t.ignoreAttributes?{}:bX(e,t.plugins));return n.aria=Object.assign({},In.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}function sk(e,t){e===void 0&&(e={}),t===void 0&&(t=[]);var n=Object.keys(e);n.forEach(function(r){var i=JG(In,Object.keys(ok)),o=!ZG(i,r);o&&(o=t.filter(function(a){return a.name===r}).length===0),qr(o,["`"+r+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
|
|
316
316
|
|
|
317
317
|
`,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
|
|
318
|
-
`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var xX=function(){return"innerHTML"};function Zm(e,t){e[xX()]=t}function XO(e){var t
|
|
318
|
+
`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var xX=function(){return"innerHTML"};function Zm(e,t){e[xX()]=t}function XO(e){var t=Ls();return e===!0?t.className=QA:(t.className=ek,ul(e)?t.appendChild(e):Zm(t,e)),t}function ZO(e,t){ul(t.content)?(Zm(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?Zm(e,t.content):e.textContent=t.content)}function Jm(e){var t=e.firstElementChild,n=od(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(JA)}),arrow:n.find(function(r){return r.classList.contains(QA)||r.classList.contains(ek)}),backdrop:n.find(function(r){return r.classList.contains(XG)})}}function lk(e){var t=Ls(),n=Ls();n.className=GG,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Ls();r.className=JA,r.setAttribute("data-state","hidden"),ZO(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(o,a){var s=Jm(t),l=s.box,c=s.content,u=s.arrow;a.theme?l.setAttribute("data-theme",a.theme):l.removeAttribute("data-theme"),typeof a.animation=="string"?l.setAttribute("data-animation",a.animation):l.removeAttribute("data-animation"),a.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?l.setAttribute("role",a.role):l.removeAttribute("role"),(o.content!==a.content||o.allowHTML!==a.allowHTML)&&ZO(c,e.props),a.arrow?u?o.arrow!==a.arrow&&(l.removeChild(u),l.appendChild(XO(a.arrow))):l.appendChild(XO(a.arrow)):u&&l.removeChild(u)}return{popper:t,onUpdate:i}}lk.$$tippy=!0;var wX=1,Mc=[],Ch=[];function OX(e,t){var n=GO(e,Object.assign({},In,ak(UO(t)))),r,i,o,a=!1,s=!1,l=!1,c=!1,u,d,p,h=[],g=VO(re,n.interactiveDebounce),m,v=wX++,y=null,S=eX(n.plugins),x={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},b={id:v,reference:e,popper:Ls(),popperInstance:y,props:n,state:x,plugins:S,clearDelayTimeouts:Gt,setProps:nn,setContent:mn,show:Bt,hide:gn,hideWithInteractivity:ye,enable:Je,disable:tn,unmount:rn,destroy:zt};if(!n.render)return process.env.NODE_ENV!=="production"&&Xm(!0,"render() function has not been supplied."),b;var O=n.render(b),E=O.popper,C=O.onUpdate;E.setAttribute("data-tippy-root",""),E.id="tippy-"+b.id,b.popper=E,e._tippy=b,E._tippy=b;var T=S.map(function(U){return U.fn(b)}),k=e.hasAttribute("aria-expanded");return J(),F(),B(),K("onCreate",[b]),n.showOnCreate&&de(),E.addEventListener("mouseenter",function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()}),E.addEventListener("mouseleave",function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&j().addEventListener("mousemove",g)}),b;function R(){var U=b.props.touch;return Array.isArray(U)?U:[U,0]}function M(){return R()[0]==="hold"}function P(){var U;return!!((U=b.props.render)!=null&&U.$$tippy)}function D(){return m||e}function j(){var U=D().parentNode;return U?aX(U):document}function N(){return Jm(E)}function L(U){return b.state.isMounted&&!b.state.isVisible||_r.isTouch||u&&u.type==="focus"?0:Eh(b.props.delay,U?0:1,In.delay)}function B(U){U===void 0&&(U=!1),E.style.pointerEvents=b.props.interactive&&!U?"":"none",E.style.zIndex=""+b.props.zIndex}function K(U,le,Z){if(Z===void 0&&(Z=!0),T.forEach(function(pe){pe[U]&&pe[U].apply(pe,le)}),Z){var ce;(ce=b.props)[U].apply(ce,le)}}function z(){var U=b.props.aria;if(U.content){var le="aria-"+U.content,Z=E.id,ce=oa(b.props.triggerTarget||e);ce.forEach(function(pe){var Qe=pe.getAttribute(le);if(b.state.isVisible)pe.setAttribute(le,Qe?Qe+" "+Z:Z);else{var dt=Qe&&Qe.replace(Z,"").trim();dt?pe.setAttribute(le,dt):pe.removeAttribute(le)}})}}function F(){if(!(k||!b.props.aria.expanded)){var U=oa(b.props.triggerTarget||e);U.forEach(function(le){b.props.interactive?le.setAttribute("aria-expanded",b.state.isVisible&&le===D()?"true":"false"):le.removeAttribute("aria-expanded")})}}function G(){j().removeEventListener("mousemove",g),Mc=Mc.filter(function(U){return U!==g})}function Y(U){if(!(_r.isTouch&&(l||U.type==="mousedown"))){var le=U.composedPath&&U.composedPath()[0]||U.target;if(!(b.props.interactive&&qO(E,le))){if(oa(b.props.triggerTarget||e).some(function(Z){return qO(Z,le)})){if(_r.isTouch||b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else K("onClickOutside",[b,U]);b.props.hideOnClick===!0&&(b.clearDelayTimeouts(),b.hide(),s=!0,setTimeout(function(){s=!1}),b.state.isMounted||te())}}}function ne(){l=!0}function Q(){l=!1}function X(){var U=j();U.addEventListener("mousedown",Y,!0),U.addEventListener("touchend",Y,lo),U.addEventListener("touchstart",Q,lo),U.addEventListener("touchmove",ne,lo)}function te(){var U=j();U.removeEventListener("mousedown",Y,!0),U.removeEventListener("touchend",Y,lo),U.removeEventListener("touchstart",Q,lo),U.removeEventListener("touchmove",ne,lo)}function ie(U,le){W(U,function(){!b.state.isVisible&&E.parentNode&&E.parentNode.contains(E)&&le()})}function ae(U,le){W(U,le)}function W(U,le){var Z=N().box;function ce(pe){pe.target===Z&&(Ph(Z,"remove",ce),le())}if(U===0)return le();Ph(Z,"remove",d),Ph(Z,"add",ce),d=ce}function H(U,le,Z){Z===void 0&&(Z=!1);var ce=oa(b.props.triggerTarget||e);ce.forEach(function(pe){pe.addEventListener(U,le,Z),h.push({node:pe,eventType:U,handler:le,options:Z})})}function J(){M()&&(H("touchstart",fe,{passive:!0}),H("touchend",me,{passive:!0})),QG(b.props.trigger).forEach(function(U){if(U!=="manual")switch(H(U,fe),U){case"mouseenter":H("mouseleave",me);break;case"focus":H(fX?"focusout":"blur",we);break;case"focusin":H("focusout",we);break}})}function A(){h.forEach(function(U){var le=U.node,Z=U.eventType,ce=U.handler,pe=U.options;le.removeEventListener(Z,ce,pe)}),h=[]}function fe(U){var le,Z=!1;if(!(!b.state.isEnabled||Se(U)||s)){var ce=((le=u)==null?void 0:le.type)==="focus";u=U,m=U.currentTarget,F(),!b.state.isVisible&&rX(U)&&Mc.forEach(function(pe){return pe(U)}),U.type==="click"&&(b.props.trigger.indexOf("mouseenter")<0||a)&&b.props.hideOnClick!==!1&&b.state.isVisible?Z=!0:de(U),U.type==="click"&&(a=!Z),Z&&!ce&&Et(U)}}function re(U){var le=U.target,Z=D().contains(le)||E.contains(le);if(!(U.type==="mousemove"&&Z)){var ce=Te().concat(E).map(function(pe){var Qe,dt=pe._tippy,Hn=(Qe=dt.popperInstance)==null?void 0:Qe.state;return Hn?{popperRect:pe.getBoundingClientRect(),popperState:Hn,props:n}:null}).filter(Boolean);sX(ce,U)&&(G(),Et(U))}}function me(U){var le=Se(U)||b.props.trigger.indexOf("click")>=0&&a;if(!le){if(b.props.interactive){b.hideWithInteractivity(U);return}Et(U)}}function we(U){b.props.trigger.indexOf("focusin")<0&&U.target!==D()||b.props.interactive&&U.relatedTarget&&E.contains(U.relatedTarget)||Et(U)}function Se(U){return _r.isTouch?M()!==U.type.indexOf("touch")>=0:!1}function _e(){Ze();var U=b.props,le=U.popperOptions,Z=U.placement,ce=U.offset,pe=U.getReferenceClientRect,Qe=U.moveTransition,dt=P()?Jm(E).arrow:null,Hn=pe?{getBoundingClientRect:pe,contextElement:pe.contextElement||D()}:e,vi={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Br){var vr=Br.state;if(P()){var be=N(),dn=be.box;["placement","reference-hidden","escaped"].forEach(function(Ho){Ho==="placement"?dn.setAttribute("data-placement",vr.placement):vr.attributes.popper["data-popper-"+Ho]?dn.setAttribute("data-"+Ho,""):dn.removeAttribute("data-"+Ho)}),vr.attributes.popper={}}}},qn=[{name:"offset",options:{offset:ce}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Qe}},vi];P()&&dt&&qn.push({name:"arrow",options:{element:dt,padding:3}}),qn.push.apply(qn,le?.modifiers||[]),b.popperInstance=PA(Hn,E,Object.assign({},le,{placement:Z,onFirstUpdate:p,modifiers:qn}))}function Ze(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function De(){var U=b.props.appendTo,le,Z=D();b.props.interactive&&U===tk||U==="parent"?le=Z.parentNode:le=nk(U,[Z]),le.contains(E)||le.appendChild(E),b.state.isMounted=!0,_e(),process.env.NODE_ENV!=="production"&&qr(b.props.interactive&&U===In.appendTo&&Z.nextElementSibling!==E,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
|
|
319
319
|
|
|
320
320
|
`,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
|
|
321
321
|
|
|
322
322
|
`,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",`
|
|
323
323
|
|
|
324
|
-
`,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function Te(){return od(E.querySelectorAll("[data-tippy-root]"))}function de(U){b.clearDelayTimeouts(),U&&K("onTrigger",[b,U]),X();var le=L(!0),Z=R(),ce=Z[0],pe=Z[1];_r.isTouch&&ce==="hold"&&pe&&(le=pe),le?r=setTimeout(function(){b.show()},le):b.show()}function Et(U){if(b.clearDelayTimeouts(),K("onUntrigger",[b,U]),!b.state.isVisible){te();return}if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(U.type)>=0&&a)){var le=L(!1);le?i=setTimeout(function(){b.state.isVisible&&b.hide()},le):o=requestAnimationFrame(function(){b.hide()})}}function Je(){b.state.isEnabled=!0}function tn(){b.hide(),b.state.isEnabled=!1}function Gt(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function nn(U){if(process.env.NODE_ENV!=="production"&&qr(b.state.isDestroyed,ea("setProps")),!b.state.isDestroyed){K("onBeforeUpdate",[b,U]),A();var le=b.props,Z=GO(e,Object.assign({},le,UO(U),{ignoreAttributes:!0}));b.props=Z,J(),le.interactiveDebounce!==Z.interactiveDebounce&&(G(),g=VO(re,Z.interactiveDebounce)),le.triggerTarget&&!Z.triggerTarget?oa(le.triggerTarget).forEach(function(ce){ce.removeAttribute("aria-expanded")}):Z.triggerTarget&&e.removeAttribute("aria-expanded"),F(),B(),C&&C(le,Z),b.popperInstance&&(_e(),Te().forEach(function(ce){requestAnimationFrame(ce._tippy.popperInstance.forceUpdate)})),K("onAfterUpdate",[b,U])}}function mn(U){b.setProps({content:U})}function Bt(){process.env.NODE_ENV!=="production"&&qr(b.state.isDestroyed,ea("show"));var U=b.state.isVisible,le=b.state.isDestroyed,Z=!b.state.isEnabled,ce=_r.isTouch&&!b.props.touch,pe=Eh(b.props.duration,0,In.duration);if(!(U||le||Z||ce)&&!D().hasAttribute("disabled")&&(K("onShow",[b],!1),b.props.onShow(b)!==!1)){if(b.state.isVisible=!0,P()&&(E.style.visibility="visible"),B(),X(),b.state.isMounted||(E.style.transition="none"),P()){var Qe=N(),dt=Qe.box,Hn=Qe.content;_h([dt,Hn],0)}p=function(){var qn;if(!(!b.state.isVisible||c)){if(c=!0,E.offsetHeight,E.style.transition=b.props.moveTransition,P()&&b.props.animation){var Gi=N(),Br=Gi.box,vr=Gi.content;_h([Br,vr],pe),HO([Br,vr],"visible")}z(),F(),WO(Ch,b),(qn=b.popperInstance)==null||qn.forceUpdate(),K("onMount",[b]),b.props.animation&&P()&&ae(pe,function(){b.state.isShown=!0,K("onShown",[b])})}},De()}}function gn(){process.env.NODE_ENV!=="production"&&qr(b.state.isDestroyed,ea("hide"));var U=!b.state.isVisible,le=b.state.isDestroyed,Z=!b.state.isEnabled,ce=Eh(b.props.duration,1,In.duration);if(!(U||le||Z)&&(K("onHide",[b],!1),b.props.onHide(b)!==!1)){if(b.state.isVisible=!1,b.state.isShown=!1,c=!1,a=!1,P()&&(E.style.visibility="hidden"),G(),te(),B(!0),P()){var pe=N(),Qe=pe.box,dt=pe.content;b.props.animation&&(_h([Qe,dt],ce),HO([Qe,dt],"hidden"))}z(),F(),b.props.animation?P()&&ie(ce,b.unmount):b.unmount()}}function ye(U){process.env.NODE_ENV!=="production"&&qr(b.state.isDestroyed,ea("hideWithInteractivity")),j().addEventListener("mousemove",g),WO(Mc,g),g(U)}function rn(){process.env.NODE_ENV!=="production"&&qr(b.state.isDestroyed,ea("unmount")),b.state.isVisible&&b.hide(),b.state.isMounted&&(Ze(),Te().forEach(function(U){U._tippy.unmount()}),E.parentNode&&E.parentNode.removeChild(E),Ch=Ch.filter(function(U){return U!==b}),b.state.isMounted=!1,K("onHidden",[b]))}function zt(){process.env.NODE_ENV!=="production"&&qr(b.state.isDestroyed,ea("destroy")),!b.state.isDestroyed&&(b.clearDelayTimeouts(),b.unmount(),A(),delete e._tippy,b.state.isDestroyed=!0,K("onDestroy",[b]))}}function Gl(e,t){t===void 0&&(t={});var n=In.plugins.concat(t.plugins||[]);process.env.NODE_ENV!=="production"&&(mX(e),sk(t,n)),uX();var r=Object.assign({},t,{plugins:n}),i=oX(e);if(process.env.NODE_ENV!=="production"){var o=
|
|
324
|
+
`,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function Te(){return od(E.querySelectorAll("[data-tippy-root]"))}function de(U){b.clearDelayTimeouts(),U&&K("onTrigger",[b,U]),X();var le=L(!0),Z=R(),ce=Z[0],pe=Z[1];_r.isTouch&&ce==="hold"&&pe&&(le=pe),le?r=setTimeout(function(){b.show()},le):b.show()}function Et(U){if(b.clearDelayTimeouts(),K("onUntrigger",[b,U]),!b.state.isVisible){te();return}if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(U.type)>=0&&a)){var le=L(!1);le?i=setTimeout(function(){b.state.isVisible&&b.hide()},le):o=requestAnimationFrame(function(){b.hide()})}}function Je(){b.state.isEnabled=!0}function tn(){b.hide(),b.state.isEnabled=!1}function Gt(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function nn(U){if(process.env.NODE_ENV!=="production"&&qr(b.state.isDestroyed,ea("setProps")),!b.state.isDestroyed){K("onBeforeUpdate",[b,U]),A();var le=b.props,Z=GO(e,Object.assign({},le,UO(U),{ignoreAttributes:!0}));b.props=Z,J(),le.interactiveDebounce!==Z.interactiveDebounce&&(G(),g=VO(re,Z.interactiveDebounce)),le.triggerTarget&&!Z.triggerTarget?oa(le.triggerTarget).forEach(function(ce){ce.removeAttribute("aria-expanded")}):Z.triggerTarget&&e.removeAttribute("aria-expanded"),F(),B(),C&&C(le,Z),b.popperInstance&&(_e(),Te().forEach(function(ce){requestAnimationFrame(ce._tippy.popperInstance.forceUpdate)})),K("onAfterUpdate",[b,U])}}function mn(U){b.setProps({content:U})}function Bt(){process.env.NODE_ENV!=="production"&&qr(b.state.isDestroyed,ea("show"));var U=b.state.isVisible,le=b.state.isDestroyed,Z=!b.state.isEnabled,ce=_r.isTouch&&!b.props.touch,pe=Eh(b.props.duration,0,In.duration);if(!(U||le||Z||ce)&&!D().hasAttribute("disabled")&&(K("onShow",[b],!1),b.props.onShow(b)!==!1)){if(b.state.isVisible=!0,P()&&(E.style.visibility="visible"),B(),X(),b.state.isMounted||(E.style.transition="none"),P()){var Qe=N(),dt=Qe.box,Hn=Qe.content;_h([dt,Hn],0)}p=function(){var qn;if(!(!b.state.isVisible||c)){if(c=!0,E.offsetHeight,E.style.transition=b.props.moveTransition,P()&&b.props.animation){var Gi=N(),Br=Gi.box,vr=Gi.content;_h([Br,vr],pe),HO([Br,vr],"visible")}z(),F(),WO(Ch,b),(qn=b.popperInstance)==null||qn.forceUpdate(),K("onMount",[b]),b.props.animation&&P()&&ae(pe,function(){b.state.isShown=!0,K("onShown",[b])})}},De()}}function gn(){process.env.NODE_ENV!=="production"&&qr(b.state.isDestroyed,ea("hide"));var U=!b.state.isVisible,le=b.state.isDestroyed,Z=!b.state.isEnabled,ce=Eh(b.props.duration,1,In.duration);if(!(U||le||Z)&&(K("onHide",[b],!1),b.props.onHide(b)!==!1)){if(b.state.isVisible=!1,b.state.isShown=!1,c=!1,a=!1,P()&&(E.style.visibility="hidden"),G(),te(),B(!0),P()){var pe=N(),Qe=pe.box,dt=pe.content;b.props.animation&&(_h([Qe,dt],ce),HO([Qe,dt],"hidden"))}z(),F(),b.props.animation?P()&&ie(ce,b.unmount):b.unmount()}}function ye(U){process.env.NODE_ENV!=="production"&&qr(b.state.isDestroyed,ea("hideWithInteractivity")),j().addEventListener("mousemove",g),WO(Mc,g),g(U)}function rn(){process.env.NODE_ENV!=="production"&&qr(b.state.isDestroyed,ea("unmount")),b.state.isVisible&&b.hide(),b.state.isMounted&&(Ze(),Te().forEach(function(U){U._tippy.unmount()}),E.parentNode&&E.parentNode.removeChild(E),Ch=Ch.filter(function(U){return U!==b}),b.state.isMounted=!1,K("onHidden",[b]))}function zt(){process.env.NODE_ENV!=="production"&&qr(b.state.isDestroyed,ea("destroy")),!b.state.isDestroyed&&(b.clearDelayTimeouts(),b.unmount(),A(),delete e._tippy,b.state.isDestroyed=!0,K("onDestroy",[b]))}}function Gl(e,t){t===void 0&&(t={});var n=In.plugins.concat(t.plugins||[]);process.env.NODE_ENV!=="production"&&(mX(e),sk(t,n)),uX();var r=Object.assign({},t,{plugins:n}),i=oX(e);if(process.env.NODE_ENV!=="production"){var o=ul(r.content),a=i.length>1;qr(o&&a,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
|
|
325
325
|
|
|
326
326
|
`,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
|
|
327
327
|
|
|
328
328
|
`,`1) content: element.innerHTML
|
|
329
|
-
`,"2) content: () => element.cloneNode(true)"].join(" "))}var s=i.reduce(function(l,c){var u=c&&OX(c,r);return u&&l.push(u),l},[]);return cl(e)?s[0]:s}Gl.defaultProps=In;Gl.setDefaultProps=yX;Gl.currentInput=_r;Object.assign({},yA,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});Gl.setDefaultProps({render:lk});function ck(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var uk=typeof window<"u"&&typeof document<"u";function Qm(e,t){e&&(typeof e=="function"&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function JO(){return uk&&document.createElement("div")}function SX(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}function dk(e,t){if(e===t)return!0;if(typeof e=="object"&&e!=null&&typeof t=="object"&&t!=null){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(t.hasOwnProperty(n)){if(!dk(e[n],t[n]))return!1}else return!1;return!0}else return!1}function EX(e){var t=[];return e.forEach(function(n){t.find(function(r){return dk(n,r)})||t.push(n)}),t}function _X(e,t){var n,r;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:EX([].concat(((n=e.popperOptions)==null?void 0:n.modifiers)||[],((r=t.popperOptions)==null?void 0:r.modifiers)||[]))})})}var Th=uk?I.useLayoutEffect:I.useEffect;function PX(e){var t=I.useRef();return t.current||(t.current=typeof e=="function"?e():e),t.current}function QO(e,t,n){n.split(/\s+/).forEach(function(r){r&&e.classList[t](r)})}var CX={name:"className",defaultValue:"",fn:function(t){var n=t.popper.firstElementChild,r=function(){var s;return!!((s=t.props.render)!=null&&s.$$tippy)};function i(){if(t.props.className&&!r()){process.env.NODE_ENV!=="production"&&console.warn(["@tippyjs/react: Cannot use `className` prop in conjunction with","`render` prop. Place the className on the element you are","rendering."].join(" "));return}QO(n,"add",t.props.className)}function o(){r()&&QO(n,"remove",t.props.className)}return{onCreate:i,onBeforeUpdate:o,onAfterUpdate:i}}};function TX(e){function t(n){var r=n.children,i=n.content,o=n.visible,a=n.singleton,s=n.render,l=n.reference,c=n.disabled,u=c===void 0?!1:c,d=n.ignoreAttributes,p=d===void 0?!0:d;n.__source,n.__self;var h=ck(n,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"]),g=o!==void 0,m=a!==void 0,v=I.useState(!1),y=v[0],S=v[1],x=I.useState({}),b=x[0],O=x[1],E=I.useState(),C=E[0],T=E[1],k=PX(function(){return{container:JO(),renders:1}}),R=Object.assign({ignoreAttributes:p},h,{content:k.container});g&&(process.env.NODE_ENV!=="production"&&["trigger","hideOnClick","showOnCreate"].forEach(function(j){R[j]!==void 0&&console.warn(["@tippyjs/react: Cannot specify `"+j+"` prop in","controlled mode (`visible` prop)"].join(" "))}),R.trigger="manual",R.hideOnClick=!1),m&&(u=!0);var M=R,P=R.plugins||[];s&&(M=Object.assign({},R,{plugins:m&&a.data!=null?[].concat(P,[{fn:function(){return{onTrigger:function(L,B){var K=a.data.children.find(function(z){var F=z.instance;return F.reference===B.currentTarget});L.state.$$activeSingletonInstance=K.instance,T(K.content)}}}}]):P,render:function(){return{popper:k.container}}}));var D=[l].concat(r?[r.type]:[]);return Th(function(){var j=l;l&&l.hasOwnProperty("current")&&(j=l.current);var N=e(j||k.ref||JO(),Object.assign({},M,{plugins:[CX].concat(R.plugins||[])}));return k.instance=N,u&&N.disable(),o&&N.show(),m&&a.hook({instance:N,content:i,props:M,setSingletonContent:T}),S(!0),function(){N.destroy(),a?.cleanup(N)}},D),Th(function(){var j;if(k.renders===1){k.renders++;return}var N=k.instance;N.setProps(_X(N.props,M)),(j=N.popperInstance)==null||j.forceUpdate(),u?N.disable():N.enable(),g&&(o?N.show():N.hide()),m&&a.hook({instance:N,content:i,props:M,setSingletonContent:T})}),Th(function(){var j;if(s){var N=k.instance;N.setProps({popperOptions:Object.assign({},N.props.popperOptions,{modifiers:[].concat((((j=N.props.popperOptions)==null?void 0:j.modifiers)||[]).filter(function(L){var B=L.name;return B!=="$$tippyReact"}),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(B){var K,z=B.state,F=(K=z.modifiersData)==null?void 0:K.hide;(b.placement!==z.placement||b.referenceHidden!==F?.isReferenceHidden||b.escaped!==F?.hasPopperEscaped)&&O({placement:z.placement,referenceHidden:F?.isReferenceHidden,escaped:F?.hasPopperEscaped}),z.attributes.popper={}}}])})})}},[b.placement,b.referenceHidden,b.escaped].concat(D)),I.createElement(I.Fragment,null,r?I.cloneElement(r,{ref:function(N){k.ref=N,Qm(r.ref,N)}}):null,y&&fo.createPortal(s?s(SX(b),C,k.instance):i,k.container))}return t}var AX=(function(e,t){return I.forwardRef(function(r,i){var o=r.children,a=ck(r,["children"]);return I.createElement(e,Object.assign({},t,a),o?I.cloneElement(o,{ref:function(l){Qm(i,l),Qm(o.ref,l)}}):null)})}),kX=AX(TX(Gl));function MX(e){const t=e>=12?"PM":"AM";let n=e%12;return n===0&&(n=12),`${n} ${t}`}function jX(e=[]){return Array.from({length:24},(t,n)=>{const r=e.find(i=>i.hour===n)||{};return{hour:n,time:MX(n),walkins:r.walkins??0,checkins:r.preApproved??0,staffAttendance:r.staffAttendance??0}})}const ta={walkins:"#1FA05B",preApproved:"#E7A015",staffAttendance:"#329DFF"};function NX({type:e,data:t,children:n}){if(!e||!t)return n;const r={activeWalkins:[["Currently Inside",t.visitor_in],["Total Visited Today",t.total_pass]],preApprovedCheckins:[["Currently Inside",t.currently_inside],["Total Visited Today",t.expected_pass_scanned],["No show",t.expected_pass_not_scanned],["Total Scheduled",t.total_expected_pass]],staffAttendance:[["Currently Inside",t.total_in_now],["Absent Today",t.absent_staff],["Total Visited Today",t.total_in_today],["Total Staff",t.total_staff]]},i={activeWalkins:"Active Walk-ins",preApprovedCheckins:"Pre-approved Check-ins",staffAttendance:"Staff Attendance"},o={activeWalkins:"text-[#1FA05B]",preApprovedCheckins:"text-[#E7A015]",staffAttendance:"text-[#329DFF]"},a=w.jsx($o,{title:i[e],period:"Today",icon:w.jsx(Pg,{className:`${o[e]} !text-[24px]`}),className:"!gap-0 min-w-[353px] bg-white shadow-xl rounded-lg border border-gray-200",children:w.jsx("div",{className:"flex flex-col gap-[8px] mt-[12px] pt-[12px] border-t border-dashed border-[#EBEBEB]",children:r[e].map(([s,l])=>w.jsxs("div",{className:"flex justify-between text-[14px] text-[#64748B]",children:[w.jsx("div",{children:s}),w.jsx("div",{className:"font-semibold text-gray-800",children:l??0})]},s))})});return w.jsx(kX,{content:a,placement:"bottom-start",interactive:!0,delay:[100,0],offset:[0,8],appendTo:document.body,theme:"light-border",maxWidth:"none",children:n})}function RX({isStatic:e,data:t}){const n=t?.summary?.activeWalkins||{},r=t?.summary?.preApprovedCheckins||{},i=t?.summary?.staffAttendance||{},o=I.useMemo(()=>jX(t?.chart||[]),[t]),{yAxisTicks:a,yAxisMax:s}=I.useMemo(()=>{const l=Math.max(...o.flatMap(u=>[u.walkins,u.checkins,u.staffAttendance])),c=l>0?l:5;return{yAxisTicks:[0,Math.ceil(c/2),c],yAxisMax:c}},[o]);return w.jsx($o,{title:"Gate Updates",period:"Today",icon:w.jsx(Pg,{className:"!text-[24px] text-[#37CC6D]"}),className:`${e?"max-h-[303px]":""} h-[251px] mb-4 break-inside-avoid`,actionButtons:w.jsx(Yl,{widgetId:t?.widget_id,options:t?.communities,onFilterChange:(l,c)=>console.log(l,c),onExport:l=>console.log("Export triggered for",l)}),children:w.jsxs("div",{children:[w.jsx("div",{className:"grid grid-cols-3 gap-[24px] mb-[16px]",children:[{key:"activeWalkins",data:n,color:ta.walkins,label:"Active Walk-ins"},{key:"staffAttendance",data:i,color:ta.staffAttendance,label:"Staff Checked-in"},{key:"preApprovedCheckins",data:r,color:ta.preApproved,label:"Pre-approved"}].map(l=>w.jsx(NX,{type:l.key,data:l.data,children:w.jsxs("div",{className:"flex flex-col gap-[8px] cursor-pointer",children:[w.jsx("div",{className:"text-[10px] text-[#64748B] whitespace-nowrap",children:l.label}),w.jsxs("div",{className:"text-[28px] font-medium flex items-center",style:{color:l.color},children:[l.key==="activeWalkins"?l.data?.visitor_in??0:l.key==="preApprovedCheckins"?l.data?.currently_inside??0:l.data?.total_in_now??0,w.jsxs("div",{className:"text-[20px] text-[#64748B] ml-1",children:["/",l.key==="activeWalkins"?l.data?.total_pass??0:l.key==="preApprovedCheckins"?l.data?.total_expected_pass??0:l.data?.total_staff??0]})]})]})},l.key))}),w.jsx("div",{className:"w-full h-[105px]",children:w.jsx(Vo,{width:"100%",height:"100%",children:w.jsxs(tA,{data:o,margin:{top:5,right:0,left:-40,bottom:0},children:[w.jsx(uf,{strokeDasharray:"3 3",stroke:"#EBEBEB"}),w.jsx(df,{dataKey:"time",tickFormatter:(l,c)=>c%4===0?l:"",tick:{fontSize:10,fill:"#121212",fontWeight:400},axisLine:!1,tickLine:!1}),w.jsx(rl,{tick:{fontSize:10,fill:"#64748B",fontWeight:400},ticks:a,domain:[0,s],allowDecimals:!1,axisLine:!1,tickLine:!1}),w.jsx(zo,{content:w.jsx(El,{})}),w.jsx(pa,{type:"monotone",dataKey:"walkins",stroke:ta.walkins,strokeWidth:2,dot:!1,name:"Active Walk-ins"}),w.jsx(pa,{type:"monotone",dataKey:"checkins",stroke:ta.preApproved,strokeWidth:2,strokeDasharray:"5 5",dot:!1,name:"Pre-approved"}),w.jsx(pa,{type:"monotone",dataKey:"staffAttendance",stroke:ta.staffAttendance,strokeWidth:2,dot:!1,name:"Staff Attendance"})]})})})]})})}function DX({isStatic:e,data:t}){const n=["#1FA05B","#E7A015","#FA7E28","#EF4444","#CBD5E1"],r=[{name:"L1 Level",value:Number(t?.total_L1||0),color:n[0]},{name:"L2 Level",value:Number(t?.total_L2||0),color:n[1]},{name:"L3 Level",value:Number(t?.total_L3||0),color:n[2]},{name:"No Level",value:Number(t?.total_NoLevel||0),color:n[3]}];r.reduce((o,a)=>o+a.value,0);const i=r;return console.log("Helpdesk Data:",t),w.jsx($o,{title:"Helpdesk",period:"As of Today",icon:w.jsx(aD,{className:"!text-[24px] text-[#FA7E28]"}),className:`${e&&"max-h-[186px]"} h-[186px] mb-4 break-inside-avoid`,actionButtons:w.jsx(Yl,{widgetId:t?.widget_id,options:t?.communities,onFilterChange:(o,a)=>console.log(o,a),onExport:o=>console.log("Export triggered for",o)}),children:w.jsxs("div",{className:"flex gap-[12px] h-fit",children:[w.jsxs("div",{className:"w-[50%] flex flex-col gap-[28px]",children:[w.jsxs("div",{className:"flex flex-col gap-[8px]",children:[w.jsx("div",{className:"!m-0 !text-[12px] !leading-[16px] !text-[#64748B]",children:"Un-resolved Complaints"}),w.jsx("div",{className:"!m-0 !text-[28px] !leading-[32px] !font-medium text-[#FA7E28]",children:t?.total_open_complaints??0})]}),w.jsxs("div",{className:"!m-0 !text-[10px] !leading-[14px] !text-[#64748B] flex items-center gap-[4px]",children:[w.jsx(f_,{value:t?.percent_change}),w.jsx("div",{className:"whitespace-nowrap",children:"Compared to yesterday"})]})]}),w.jsx("div",{className:"w-[50%] h-[110px] flex justify-end",children:w.jsx(Vo,{width:"75%",height:"100%",children:w.jsxs(ff,{children:[w.jsx(Ul,{data:i,innerRadius:36,outerRadius:52,paddingAngle:2,dataKey:"value",children:i.map((o,a)=>w.jsx(Ir,{fill:n[a]||"#CBD5E1"},o.name))}),w.jsx(zo,{content:w.jsx(El,{})})]})})})]})})}/*!
|
|
329
|
+
`,"2) content: () => element.cloneNode(true)"].join(" "))}var s=i.reduce(function(l,c){var u=c&&OX(c,r);return u&&l.push(u),l},[]);return ul(e)?s[0]:s}Gl.defaultProps=In;Gl.setDefaultProps=yX;Gl.currentInput=_r;Object.assign({},yA,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});Gl.setDefaultProps({render:lk});function ck(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var uk=typeof window<"u"&&typeof document<"u";function Qm(e,t){e&&(typeof e=="function"&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function JO(){return uk&&document.createElement("div")}function SX(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}function dk(e,t){if(e===t)return!0;if(typeof e=="object"&&e!=null&&typeof t=="object"&&t!=null){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(t.hasOwnProperty(n)){if(!dk(e[n],t[n]))return!1}else return!1;return!0}else return!1}function EX(e){var t=[];return e.forEach(function(n){t.find(function(r){return dk(n,r)})||t.push(n)}),t}function _X(e,t){var n,r;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:EX([].concat(((n=e.popperOptions)==null?void 0:n.modifiers)||[],((r=t.popperOptions)==null?void 0:r.modifiers)||[]))})})}var Th=uk?I.useLayoutEffect:I.useEffect;function PX(e){var t=I.useRef();return t.current||(t.current=typeof e=="function"?e():e),t.current}function QO(e,t,n){n.split(/\s+/).forEach(function(r){r&&e.classList[t](r)})}var CX={name:"className",defaultValue:"",fn:function(t){var n=t.popper.firstElementChild,r=function(){var s;return!!((s=t.props.render)!=null&&s.$$tippy)};function i(){if(t.props.className&&!r()){process.env.NODE_ENV!=="production"&&console.warn(["@tippyjs/react: Cannot use `className` prop in conjunction with","`render` prop. Place the className on the element you are","rendering."].join(" "));return}QO(n,"add",t.props.className)}function o(){r()&&QO(n,"remove",t.props.className)}return{onCreate:i,onBeforeUpdate:o,onAfterUpdate:i}}};function TX(e){function t(n){var r=n.children,i=n.content,o=n.visible,a=n.singleton,s=n.render,l=n.reference,c=n.disabled,u=c===void 0?!1:c,d=n.ignoreAttributes,p=d===void 0?!0:d;n.__source,n.__self;var h=ck(n,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"]),g=o!==void 0,m=a!==void 0,v=I.useState(!1),y=v[0],S=v[1],x=I.useState({}),b=x[0],O=x[1],E=I.useState(),C=E[0],T=E[1],k=PX(function(){return{container:JO(),renders:1}}),R=Object.assign({ignoreAttributes:p},h,{content:k.container});g&&(process.env.NODE_ENV!=="production"&&["trigger","hideOnClick","showOnCreate"].forEach(function(j){R[j]!==void 0&&console.warn(["@tippyjs/react: Cannot specify `"+j+"` prop in","controlled mode (`visible` prop)"].join(" "))}),R.trigger="manual",R.hideOnClick=!1),m&&(u=!0);var M=R,P=R.plugins||[];s&&(M=Object.assign({},R,{plugins:m&&a.data!=null?[].concat(P,[{fn:function(){return{onTrigger:function(L,B){var K=a.data.children.find(function(z){var F=z.instance;return F.reference===B.currentTarget});L.state.$$activeSingletonInstance=K.instance,T(K.content)}}}}]):P,render:function(){return{popper:k.container}}}));var D=[l].concat(r?[r.type]:[]);return Th(function(){var j=l;l&&l.hasOwnProperty("current")&&(j=l.current);var N=e(j||k.ref||JO(),Object.assign({},M,{plugins:[CX].concat(R.plugins||[])}));return k.instance=N,u&&N.disable(),o&&N.show(),m&&a.hook({instance:N,content:i,props:M,setSingletonContent:T}),S(!0),function(){N.destroy(),a?.cleanup(N)}},D),Th(function(){var j;if(k.renders===1){k.renders++;return}var N=k.instance;N.setProps(_X(N.props,M)),(j=N.popperInstance)==null||j.forceUpdate(),u?N.disable():N.enable(),g&&(o?N.show():N.hide()),m&&a.hook({instance:N,content:i,props:M,setSingletonContent:T})}),Th(function(){var j;if(s){var N=k.instance;N.setProps({popperOptions:Object.assign({},N.props.popperOptions,{modifiers:[].concat((((j=N.props.popperOptions)==null?void 0:j.modifiers)||[]).filter(function(L){var B=L.name;return B!=="$$tippyReact"}),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(B){var K,z=B.state,F=(K=z.modifiersData)==null?void 0:K.hide;(b.placement!==z.placement||b.referenceHidden!==F?.isReferenceHidden||b.escaped!==F?.hasPopperEscaped)&&O({placement:z.placement,referenceHidden:F?.isReferenceHidden,escaped:F?.hasPopperEscaped}),z.attributes.popper={}}}])})})}},[b.placement,b.referenceHidden,b.escaped].concat(D)),I.createElement(I.Fragment,null,r?I.cloneElement(r,{ref:function(N){k.ref=N,Qm(r.ref,N)}}):null,y&&fo.createPortal(s?s(SX(b),C,k.instance):i,k.container))}return t}var AX=(function(e,t){return I.forwardRef(function(r,i){var o=r.children,a=ck(r,["children"]);return I.createElement(e,Object.assign({},t,a),o?I.cloneElement(o,{ref:function(l){Qm(i,l),Qm(o.ref,l)}}):null)})}),kX=AX(TX(Gl));function MX(e){const t=e>=12?"PM":"AM";let n=e%12;return n===0&&(n=12),`${n} ${t}`}function jX(e=[]){return Array.from({length:24},(t,n)=>{const r=e.find(i=>i.hour===n)||{};return{hour:n,time:MX(n),walkins:r.walkins??0,checkins:r.preApproved??0,staffAttendance:r.staffAttendance??0}})}const ta={walkins:"#1FA05B",preApproved:"#E7A015",staffAttendance:"#329DFF"};function NX({type:e,data:t,children:n}){if(!e||!t)return n;const r={activeWalkins:[["Currently Inside",t.visitor_in],["Total Visited Today",t.total_pass]],preApprovedCheckins:[["Currently Inside",t.currently_inside],["Total Visited Today",t.expected_pass_scanned],["No show",t.expected_pass_not_scanned],["Total Scheduled",t.total_expected_pass]],staffAttendance:[["Currently Inside",t.total_in_now],["Absent Today",t.absent_staff],["Total Visited Today",t.total_in_today],["Total Staff",t.total_staff]]},i={activeWalkins:"Active Walk-ins",preApprovedCheckins:"Pre-approved Check-ins",staffAttendance:"Staff Attendance"},o={activeWalkins:"text-[#1FA05B]",preApprovedCheckins:"text-[#E7A015]",staffAttendance:"text-[#329DFF]"},a=w.jsx($o,{title:i[e],period:"Today",icon:w.jsx(Pg,{className:`${o[e]} !text-[24px]`}),className:"!gap-0 min-w-[353px] bg-white shadow-xl rounded-lg border border-gray-200",children:w.jsx("div",{className:"flex flex-col gap-[8px] mt-[12px] pt-[12px] border-t border-dashed border-[#EBEBEB]",children:r[e].map(([s,l])=>w.jsxs("div",{className:"flex justify-between text-[14px] text-[#64748B]",children:[w.jsx("div",{children:s}),w.jsx("div",{className:"font-semibold text-gray-800",children:l??0})]},s))})});return w.jsx(kX,{content:a,placement:"bottom-start",interactive:!0,delay:[100,0],offset:[0,8],appendTo:document.body,theme:"light-border",maxWidth:"none",children:n})}function RX({isStatic:e,data:t}){const n=t?.summary?.activeWalkins||{},r=t?.summary?.preApprovedCheckins||{},i=t?.summary?.staffAttendance||{},o=I.useMemo(()=>jX(t?.chart||[]),[t]),{yAxisTicks:a,yAxisMax:s}=I.useMemo(()=>{const l=Math.max(...o.flatMap(u=>[u.walkins,u.checkins,u.staffAttendance])),c=l>0?l:5;return{yAxisTicks:[0,Math.ceil(c/2),c],yAxisMax:c}},[o]);return w.jsx($o,{title:"Gate Updates",period:"Today",icon:w.jsx(Pg,{className:"!text-[24px] text-[#37CC6D]"}),className:`${e?"max-h-[303px]":""} h-[251px] mb-4 break-inside-avoid`,actionButtons:w.jsx(Ya,{widgetId:t?.widget_id,options:t?.communities,onFilterChange:(l,c)=>console.log(l,c),onExport:l=>console.log("Export triggered for",l)}),children:w.jsxs("div",{children:[w.jsx("div",{className:"grid grid-cols-3 gap-[24px] mb-[16px]",children:[{key:"activeWalkins",data:n,color:ta.walkins,label:"Active Walk-ins"},{key:"staffAttendance",data:i,color:ta.staffAttendance,label:"Staff Checked-in"},{key:"preApprovedCheckins",data:r,color:ta.preApproved,label:"Pre-approved"}].map(l=>w.jsx(NX,{type:l.key,data:l.data,children:w.jsxs("div",{className:"flex flex-col gap-[8px] cursor-pointer",children:[w.jsx("div",{className:"text-[10px] text-[#64748B] whitespace-nowrap",children:l.label}),w.jsxs("div",{className:"text-[28px] font-medium flex items-center",style:{color:l.color},children:[l.key==="activeWalkins"?l.data?.visitor_in??0:l.key==="preApprovedCheckins"?l.data?.currently_inside??0:l.data?.total_in_now??0,w.jsxs("div",{className:"text-[20px] text-[#64748B] ml-1",children:["/",l.key==="activeWalkins"?l.data?.total_pass??0:l.key==="preApprovedCheckins"?l.data?.total_expected_pass??0:l.data?.total_staff??0]})]})]})},l.key))}),w.jsx("div",{className:"w-full h-[105px]",children:w.jsx(Vo,{width:"100%",height:"100%",children:w.jsxs(tA,{data:o,margin:{top:5,right:0,left:-40,bottom:0},children:[w.jsx(uf,{strokeDasharray:"3 3",stroke:"#EBEBEB"}),w.jsx(df,{dataKey:"time",tickFormatter:(l,c)=>c%4===0?l:"",tick:{fontSize:10,fill:"#121212",fontWeight:400},axisLine:!1,tickLine:!1}),w.jsx(il,{tick:{fontSize:10,fill:"#64748B",fontWeight:400},ticks:a,domain:[0,s],allowDecimals:!1,axisLine:!1,tickLine:!1}),w.jsx(zo,{content:w.jsx(_l,{})}),w.jsx(pa,{type:"monotone",dataKey:"walkins",stroke:ta.walkins,strokeWidth:2,dot:!1,name:"Active Walk-ins",isAnimationActive:!1}),w.jsx(pa,{type:"monotone",dataKey:"checkins",stroke:ta.preApproved,strokeWidth:2,strokeDasharray:"5 5",dot:!1,name:"Pre-approved",isAnimationActive:!1}),w.jsx(pa,{type:"monotone",dataKey:"staffAttendance",stroke:ta.staffAttendance,strokeWidth:2,dot:!1,name:"Staff Attendance",isAnimationActive:!1})]})})})]})})}function DX({isStatic:e,data:t}){const n=["#1FA05B","#E7A015","#FA7E28","#EF4444","#CBD5E1"],r=[{name:"L1 Level",value:Number(t?.total_L1||0),color:n[0]},{name:"L2 Level",value:Number(t?.total_L2||0),color:n[1]},{name:"L3 Level",value:Number(t?.total_L3||0),color:n[2]},{name:"No Level",value:Number(t?.total_NoLevel||0),color:n[3]}];r.reduce((o,a)=>o+a.value,0);const i=r;return console.log("Helpdesk Data:",t),w.jsx($o,{title:"Helpdesk",period:"As of Today",icon:w.jsx(aD,{className:"!text-[24px] text-[#FA7E28]"}),className:`${e&&"max-h-[186px]"} h-[186px] mb-4 break-inside-avoid`,actionButtons:w.jsx(Ya,{widgetId:t?.widget_id,options:t?.communities,onFilterChange:(o,a)=>console.log(o,a),onExport:o=>console.log("Export triggered for",o)}),children:w.jsxs("div",{className:"flex gap-[12px] h-fit",children:[w.jsxs("div",{className:"w-[50%] flex flex-col gap-[28px]",children:[w.jsxs("div",{className:"flex flex-col gap-[8px]",children:[w.jsx("div",{className:"!m-0 !text-[12px] !leading-[16px] !text-[#64748B]",children:"Un-resolved Complaints"}),w.jsx("div",{className:"!m-0 !text-[28px] !leading-[32px] !font-medium text-[#FA7E28]",children:t?.total_open_complaints??0})]}),w.jsxs("div",{className:"!m-0 !text-[10px] !leading-[14px] !text-[#64748B] flex items-center gap-[4px]",children:[w.jsx(f_,{value:t?.percent_change}),w.jsx("div",{className:"whitespace-nowrap",children:"Compared to yesterday"})]})]}),w.jsx("div",{className:"w-[50%] h-[110px] flex justify-end",children:w.jsx(Vo,{width:"75%",height:"100%",children:w.jsxs(ff,{children:[w.jsx(Hl,{data:i,innerRadius:36,outerRadius:52,paddingAngle:2,dataKey:"value",children:i.map((o,a)=>w.jsx(Ir,{fill:n[a]||"#CBD5E1"},o.name))}),w.jsx(zo,{content:w.jsx(_l,{})})]})})})]})})}/*!
|
|
330
330
|
* @kurkle/color v0.3.4
|
|
331
331
|
* https://github.com/kurkle/color#readme
|
|
332
332
|
* (c) 2024 Jukka Kurkela
|
|
333
333
|
* Released under the MIT License
|
|
334
|
-
*/function Xl(e){return e+.5|0}const Si=(e,t,n)=>Math.max(Math.min(e,n),t);function
|
|
334
|
+
*/function Xl(e){return e+.5|0}const Si=(e,t,n)=>Math.max(Math.min(e,n),t);function Ts(e){return Si(Xl(e*2.55),0,255)}function Ai(e){return Si(Xl(e*255),0,255)}function Kr(e){return Si(Xl(e/2.55)/100,0,1)}function eS(e){return Si(Xl(e*100),0,100)}const Xn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},eg=[..."0123456789ABCDEF"],IX=e=>eg[e&15],$X=e=>eg[(e&240)>>4]+eg[e&15],jc=e=>(e&240)>>4===(e&15),LX=e=>jc(e.r)&&jc(e.g)&&jc(e.b)&&jc(e.a);function FX(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Xn[e[1]]*17,g:255&Xn[e[2]]*17,b:255&Xn[e[3]]*17,a:t===5?Xn[e[4]]*17:255}:(t===7||t===9)&&(n={r:Xn[e[1]]<<4|Xn[e[2]],g:Xn[e[3]]<<4|Xn[e[4]],b:Xn[e[5]]<<4|Xn[e[6]],a:t===9?Xn[e[7]]<<4|Xn[e[8]]:255})),n}const BX=(e,t)=>e<255?t(e):"";function zX(e){var t=LX(e)?IX:$X;return e?"#"+t(e.r)+t(e.g)+t(e.b)+BX(e.a,t):void 0}const VX=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function fk(e,t,n){const r=t*Math.min(n,1-n),i=(o,a=(o+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[i(0),i(8),i(4)]}function WX(e,t,n){const r=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function UX(e,t,n){const r=fk(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function HX(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}function $y(e){const n=e.r/255,r=e.g/255,i=e.b/255,o=Math.max(n,r,i),a=Math.min(n,r,i),s=(o+a)/2;let l,c,u;return o!==a&&(u=o-a,c=s>.5?u/(2-o-a):u/(o+a),l=HX(n,r,i,u,o),l=l*60+.5),[l|0,c||0,s]}function Ly(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Ai)}function Fy(e,t,n){return Ly(fk,e,t,n)}function qX(e,t,n){return Ly(UX,e,t,n)}function KX(e,t,n){return Ly(WX,e,t,n)}function pk(e){return(e%360+360)%360}function YX(e){const t=VX.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?Ts(+t[5]):Ai(+t[5]));const i=pk(+t[2]),o=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?r=qX(i,o,a):t[1]==="hsv"?r=KX(i,o,a):r=Fy(i,o,a),{r:r[0],g:r[1],b:r[2],a:n}}function GX(e,t){var n=$y(e);n[0]=pk(n[0]+t),n=Fy(n),e.r=n[0],e.g=n[1],e.b=n[2]}function XX(e){if(!e)return;const t=$y(e),n=t[0],r=eS(t[1]),i=eS(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${Kr(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const tS={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},nS={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function ZX(){const e={},t=Object.keys(nS),n=Object.keys(tS);let r,i,o,a,s;for(r=0;r<t.length;r++){for(a=s=t[r],i=0;i<n.length;i++)o=n[i],s=s.replace(o,tS[o]);o=parseInt(nS[a],16),e[s]=[o>>16&255,o>>8&255,o&255]}return e}let Nc;function JX(e){Nc||(Nc=ZX(),Nc.transparent=[0,0,0,0]);const t=Nc[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const QX=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function eZ(e){const t=QX.exec(e);let n=255,r,i,o;if(t){if(t[7]!==r){const a=+t[7];n=t[8]?Ts(a):Si(a*255,0,255)}return r=+t[1],i=+t[3],o=+t[5],r=255&(t[2]?Ts(r):Si(r,0,255)),i=255&(t[4]?Ts(i):Si(i,0,255)),o=255&(t[6]?Ts(o):Si(o,0,255)),{r,g:i,b:o,a:n}}}function tZ(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Kr(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Ah=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,na=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function nZ(e,t,n){const r=na(Kr(e.r)),i=na(Kr(e.g)),o=na(Kr(e.b));return{r:Ai(Ah(r+n*(na(Kr(t.r))-r))),g:Ai(Ah(i+n*(na(Kr(t.g))-i))),b:Ai(Ah(o+n*(na(Kr(t.b))-o))),a:e.a+n*(t.a-e.a)}}function Rc(e,t,n){if(e){let r=$y(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=Fy(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function hk(e,t){return e&&Object.assign(t||{},e)}function rS(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Ai(e[3]))):(t=hk(e,{r:0,g:0,b:0,a:1}),t.a=Ai(t.a)),t}function rZ(e){return e.charAt(0)==="r"?eZ(e):YX(e)}class fl{constructor(t){if(t instanceof fl)return t;const n=typeof t;let r;n==="object"?r=rS(t):n==="string"&&(r=FX(t)||JX(t)||rZ(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=hk(this._rgb);return t&&(t.a=Kr(t.a)),t}set rgb(t){this._rgb=rS(t)}rgbString(){return this._valid?tZ(this._rgb):void 0}hexString(){return this._valid?zX(this._rgb):void 0}hslString(){return this._valid?XX(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let o;const a=n===o?.5:n,s=2*a-1,l=r.a-i.a,c=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;o=1-c,r.r=255&c*r.r+o*i.r+.5,r.g=255&c*r.g+o*i.g+.5,r.b=255&c*r.b+o*i.b+.5,r.a=a*r.a+(1-a)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=nZ(this._rgb,t._rgb,n)),this}clone(){return new fl(this.rgb)}alpha(t){return this._rgb.a=Ai(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Xl(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Rc(this._rgb,2,t),this}darken(t){return Rc(this._rgb,2,-t),this}saturate(t){return Rc(this._rgb,1,t),this}desaturate(t){return Rc(this._rgb,1,-t),this}rotate(t){return GX(this._rgb,t),this}}/*!
|
|
335
335
|
* Chart.js v4.5.0
|
|
336
336
|
* https://www.chartjs.org
|
|
337
337
|
* (c) 2025 Chart.js Contributors
|
|
338
338
|
* Released under the MIT License
|
|
339
|
-
*/function Wr(){}const iZ=(()=>{let e=0;return()=>e++})();function ze(e){return e==null}function Wt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Ae(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function sr(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function xr(e,t){return sr(e)?e:t}function Oe(e,t){return typeof e>"u"?t:e}const oZ=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,mk=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function lt(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Ue(e,t,n,r){let i,o,a;if(Wt(e))for(o=e.length,i=0;i<o;i++)t.call(n,e[i],i);else if(Ae(e))for(a=Object.keys(e),o=a.length,i=0;i<o;i++)t.call(n,e[a[i]],a[i])}function ad(e,t){let n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function sd(e){if(Wt(e))return e.map(sd);if(Ae(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=sd(e[n[i]]);return t}return e}function gk(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function aZ(e,t,n,r){if(!gk(e))return;const i=t[e],o=n[e];Ae(i)&&Ae(o)?fl(i,o,r):t[e]=sd(o)}function fl(e,t,n){const r=Wt(t)?t:[t],i=r.length;if(!Ae(e))return e;n=n||{};const o=n.merger||aZ;let a;for(let s=0;s<i;++s){if(a=r[s],!Ae(a))continue;const l=Object.keys(a);for(let c=0,u=l.length;c<u;++c)o(l[c],e,a,n)}return e}function Ls(e,t){return fl(e,t,{merger:sZ})}function sZ(e,t,n){if(!gk(e))return;const r=t[e],i=n[e];Ae(r)&&Ae(i)?Ls(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=sd(i))}const iS={"":e=>e,x:e=>e.x,y:e=>e.y};function lZ(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function cZ(e){const t=lZ(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function Do(e,t){return(iS[t]||(iS[t]=cZ(t)))(e)}function By(e){return e.charAt(0).toUpperCase()+e.slice(1)}const pl=e=>typeof e<"u",$i=e=>typeof e=="function",oS=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function uZ(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const tt=Math.PI,Ot=2*tt,dZ=Ot+tt,ld=Number.POSITIVE_INFINITY,fZ=tt/180,It=tt/2,eo=tt/4,aS=tt*2/3,vk=Math.log10,Mr=Math.sign;function Fs(e,t,n){return Math.abs(e-t)<n}function sS(e){const t=Math.round(e);e=Fs(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(vk(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function pZ(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((i,o)=>i-o).pop(),t}function hZ(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function hl(e){return!hZ(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function mZ(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function gZ(e,t,n){let r,i,o;for(r=0,i=e.length;r<i;r++)o=e[r][n],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function Jr(e){return e*(tt/180)}function vZ(e){return e*(180/tt)}function lS(e){if(!sr(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function yk(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let o=Math.atan2(r,n);return o<-.5*tt&&(o+=Ot),{angle:o,distance:i}}function tg(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function yZ(e,t){return(e-t+dZ)%Ot-tt}function dr(e){return(e%Ot+Ot)%Ot}function ml(e,t,n,r){const i=dr(e),o=dr(t),a=dr(n),s=dr(o-i),l=dr(a-i),c=dr(i-o),u=dr(i-a);return i===o||i===a||r&&o===a||s>l&&c<u}function ln(e,t,n){return Math.max(t,Math.min(n,e))}function bZ(e){return ln(e,-32768,32767)}function Ei(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function zy(e,t,n){n=n||(a=>e[a]<t);let r=e.length-1,i=0,o;for(;r-i>1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const bo=(e,t,n,r)=>zy(e,n,r?i=>{const o=e[i][t];return o<n||o===n&&e[i+1][t]===n}:i=>e[i][t]<n),xZ=(e,t,n)=>zy(e,n,r=>e[r][t]>=n);function wZ(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}const bk=["push","pop","shift","splice","unshift"];function OZ(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),bk.forEach(n=>{const r="_onData"+By(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const a=i.apply(this,o);return e._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...o)}),a}})})}function cS(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(bk.forEach(o=>{delete e[o]}),delete e._chartjs)}function xk(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const wk=(function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame})();function Ok(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,wk.call(window,()=>{r=!1,e.apply(t,n)}))}}function SZ(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const Sk=e=>e==="start"?"left":e==="end"?"right":"center",Mn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,EZ=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function _Z(e,t,n){const r=t.length;let i=0,o=r;if(e._sorted){const{iScale:a,vScale:s,_parsed:l}=e,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,u=a.axis,{min:d,max:p,minDefined:h,maxDefined:g}=a.getUserBounds();if(h){if(i=Math.min(bo(l,u,d).lo,n?r:bo(t,u,a.getPixelForValue(d)).lo),c){const m=l.slice(0,i+1).reverse().findIndex(v=>!ze(v[s.axis]));i-=Math.max(0,m)}i=ln(i,0,r-1)}if(g){let m=Math.max(bo(l,a.axis,p,!0).hi+1,n?0:bo(t,u,a.getPixelForValue(p),!0).hi+1);if(c){const v=l.slice(m-1).findIndex(y=>!ze(y[s.axis]));m+=Math.max(0,v)}o=ln(m,i,r)-i}else o=r-i}return{start:i,count:o}}function PZ(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const Dc=e=>e===0||e===1,uS=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Ot/n)),dS=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Ot/n)+1,Bs={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*It)+1,easeOutSine:e=>Math.sin(e*It),easeInOutSine:e=>-.5*(Math.cos(tt*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Dc(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Dc(e)?e:uS(e,.075,.3),easeOutElastic:e=>Dc(e)?e:dS(e,.075,.3),easeInOutElastic(e){return Dc(e)?e:e<.5?.5*uS(e*2,.1125,.45):.5+.5*dS(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Bs.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Bs.easeInBounce(e*2)*.5:Bs.easeOutBounce(e*2-1)*.5+.5};function Vy(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function fS(e){return Vy(e)?e:new dl(e)}function kh(e){return Vy(e)?e:new dl(e).saturate(.5).darken(.1).hexString()}const CZ=["x","y","borderWidth","radius","tension"],TZ=["color","borderColor","backgroundColor"];function AZ(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:TZ},numbers:{type:"number",properties:CZ}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function kZ(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const pS=new Map;function MZ(e,t){t=t||{};const n=e+JSON.stringify(t);let r=pS.get(n);return r||(r=new Intl.NumberFormat(e,t),pS.set(n,r)),r}function Wy(e,t,n){return MZ(t,n).format(e)}const jZ={values(e){return Wt(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),o=NZ(e,n)}const a=vk(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Wy(e,r,l)}};function NZ(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Ek={formatters:jZ};function RZ(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Ek.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Io=Object.create(null),ng=Object.create(null);function zs(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const o=n[r];e=e[o]||(e[o]=Object.create(null))}return e}function Mh(e,t,n){return typeof t=="string"?fl(zs(e,t),n):fl(zs(e,""),t)}class DZ{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>kh(i.backgroundColor),this.hoverBorderColor=(r,i)=>kh(i.borderColor),this.hoverColor=(r,i)=>kh(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return Mh(this,t,n)}get(t){return zs(this,t)}describe(t,n){return Mh(ng,t,n)}override(t,n){return Mh(Io,t,n)}route(t,n,r,i){const o=zs(this,t),a=zs(this,r),s="_"+n;Object.defineProperties(o,{[s]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[s],c=a[i];return Ae(l)?Object.assign({},c,l):Oe(l,c)},set(l){this[s]=l}}})}apply(t){t.forEach(n=>n(this))}}var Ct=new DZ({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[AZ,kZ,RZ]);function IZ(e){return!e||ze(e.size)||ze(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function hS(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function to(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function mS(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function rg(e,t,n,r){_k(e,t,n,r,null)}function _k(e,t,n,r,i){let o,a,s,l,c,u,d,p;const h=t.pointStyle,g=t.rotation,m=t.radius;let v=(g||0)*fZ;if(h&&typeof h=="object"&&(o=h.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(v),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!(isNaN(m)||m<=0)){switch(e.beginPath(),h){default:i?e.ellipse(n,r,i/2,m,0,0,Ot):e.arc(n,r,m,0,Ot),e.closePath();break;case"triangle":u=i?i/2:m,e.moveTo(n+Math.sin(v)*u,r-Math.cos(v)*m),v+=aS,e.lineTo(n+Math.sin(v)*u,r-Math.cos(v)*m),v+=aS,e.lineTo(n+Math.sin(v)*u,r-Math.cos(v)*m),e.closePath();break;case"rectRounded":c=m*.516,l=m-c,a=Math.cos(v+eo)*l,d=Math.cos(v+eo)*(i?i/2-c:l),s=Math.sin(v+eo)*l,p=Math.sin(v+eo)*(i?i/2-c:l),e.arc(n-d,r-s,c,v-tt,v-It),e.arc(n+p,r-a,c,v-It,v),e.arc(n+d,r+s,c,v,v+It),e.arc(n-p,r+a,c,v+It,v+tt),e.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*m,u=i?i/2:l,e.rect(n-u,r-l,2*u,2*l);break}v+=eo;case"rectRot":d=Math.cos(v)*(i?i/2:m),a=Math.cos(v)*m,s=Math.sin(v)*m,p=Math.sin(v)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+p,r-a),e.lineTo(n+d,r+s),e.lineTo(n-p,r+a),e.closePath();break;case"crossRot":v+=eo;case"cross":d=Math.cos(v)*(i?i/2:m),a=Math.cos(v)*m,s=Math.sin(v)*m,p=Math.sin(v)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a);break;case"star":d=Math.cos(v)*(i?i/2:m),a=Math.cos(v)*m,s=Math.sin(v)*m,p=Math.sin(v)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a),v+=eo,d=Math.cos(v)*(i?i/2:m),a=Math.cos(v)*m,s=Math.sin(v)*m,p=Math.sin(v)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a);break;case"line":a=i?i/2:Math.cos(v)*m,s=Math.sin(v)*m,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(v)*(i?i/2:m),r+Math.sin(v)*m);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function gl(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Uy(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Hy(e){e.restore()}function $Z(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){const o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else i==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function LZ(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function FZ(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),ze(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function BZ(e,t,n,r,i){if(i.strikethrough||i.underline){const o=e.measureText(r),a=t-o.actualBoundingBoxLeft,s=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,u=i.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(a,u),e.lineTo(s,u),e.stroke()}}function zZ(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function cd(e,t,n,r,i,o={}){const a=Wt(t)?t:[t],s=o.strokeWidth>0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,FZ(e,o),l=0;l<a.length;++l)c=a[l],o.backdrop&&zZ(e,o.backdrop),s&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),ze(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(c,n,r,o.maxWidth)),e.fillText(c,n,r,o.maxWidth),BZ(e,n,r,c,o),r+=Number(i.lineHeight);e.restore()}function ud(e,t){const{x:n,y:r,w:i,h:o,radius:a}=t;e.arc(n+a.topLeft,r+a.topLeft,a.topLeft,1.5*tt,tt,!0),e.lineTo(n,r+o-a.bottomLeft),e.arc(n+a.bottomLeft,r+o-a.bottomLeft,a.bottomLeft,tt,It,!0),e.lineTo(n+i-a.bottomRight,r+o),e.arc(n+i-a.bottomRight,r+o-a.bottomRight,a.bottomRight,It,0,!0),e.lineTo(n+i,r+a.topRight),e.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-It,!0),e.lineTo(n+a.topLeft,r)}const VZ=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,WZ=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function UZ(e,t){const n=(""+e).match(VZ);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const HZ=e=>+e||0;function qy(e,t){const n={},r=Ae(t),i=r?Object.keys(t):t,o=Ae(e)?r?a=>Oe(e[a],e[t[a]]):a=>e[a]:()=>e;for(const a of i)n[a]=HZ(o(a));return n}function Pk(e){return qy(e,{top:"y",right:"x",bottom:"y",left:"x"})}function ha(e){return qy(e,["topLeft","topRight","bottomLeft","bottomRight"])}function pr(e){const t=Pk(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Sn(e,t){e=e||{},t=t||Ct.font;let n=Oe(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Oe(e.style,t.style);r&&!(""+r).match(WZ)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Oe(e.family,t.family),lineHeight:UZ(Oe(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Oe(e.weight,t.weight),string:""};return i.string=IZ(i),i}function Ic(e,t,n,r){let i,o,a;for(i=0,o=e.length;i<o;++i)if(a=e[i],a!==void 0&&a!==void 0)return a}function qZ(e,t,n){const{min:r,max:i}=e,o=mk(t,(i-r)/2),a=(s,l)=>n&&s===0?0:s+l;return{min:a(r,-Math.abs(o)),max:a(i,o)}}function Uo(e,t){return Object.assign(Object.create(e),t)}function Ky(e,t=[""],n,r,i=()=>e[0]){const o=n||e;typeof r>"u"&&(r=kk("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:i,override:s=>Ky([s,...e],t,o,r)};return new Proxy(a,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return Tk(s,l,()=>eJ(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return vS(s).includes(l)},ownKeys(s){return vS(s)},set(s,l,c){const u=s._storage||(s._storage=i());return s[l]=u[l]=c,delete s._keys,!0}})}function Ma(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:Ck(e,r),setContext:o=>Ma(e,o,n,r),override:o=>Ma(e.override(o),t,n,r)};return new Proxy(i,{deleteProperty(o,a){return delete o[a],delete e[a],!0},get(o,a,s){return Tk(o,a,()=>YZ(o,a,s))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,a){return Reflect.has(e,a)},ownKeys(){return Reflect.ownKeys(e)},set(o,a,s){return e[a]=s,delete o[a],!0}})}function Ck(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:$i(n)?n:()=>n,isIndexable:$i(r)?r:()=>r}}const KZ=(e,t)=>e?e+By(t):t,Yy=(e,t)=>Ae(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function Tk(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function YZ(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:a}=e;let s=r[t];return $i(s)&&a.isScriptable(t)&&(s=GZ(t,s,e,n)),Wt(s)&&s.length&&(s=XZ(t,s,e,a.isIndexable)),Yy(t,s)&&(s=Ma(s,i,o&&o[t],a)),s}function GZ(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(o,a||r);return s.delete(e),Yy(e,l)&&(l=Gy(i._scopes,i,e,l)),l}function XZ(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=n;if(typeof o.index<"u"&&r(e))return t[o.index%t.length];if(Ae(t[0])){const l=t,c=i._scopes.filter(u=>u!==l);t=[];for(const u of l){const d=Gy(c,i,e,u);t.push(Ma(d,o,a&&a[e],s))}}return t}function Ak(e,t,n){return $i(e)?e(t,n):e}const ZZ=(e,t)=>e===!0?t:typeof e=="string"?Do(t,e):void 0;function JZ(e,t,n,r,i){for(const o of t){const a=ZZ(n,o);if(a){e.add(a);const s=Ak(a._fallback,n,i);if(typeof s<"u"&&s!==n&&s!==r)return s}else if(a===!1&&typeof r<"u"&&n!==r)return null}return!1}function Gy(e,t,n,r){const i=t._rootScopes,o=Ak(t._fallback,n,r),a=[...e,...i],s=new Set;s.add(r);let l=gS(s,a,n,o||n,r);return l===null||typeof o<"u"&&o!==n&&(l=gS(s,a,o,l,r),l===null)?!1:Ky(Array.from(s),[""],i,o,()=>QZ(t,n,r))}function gS(e,t,n,r,i){for(;n;)n=JZ(e,t,n,r,i);return n}function QZ(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return Wt(i)&&Ae(n)?n:i||{}}function eJ(e,t,n,r){let i;for(const o of t)if(i=kk(KZ(o,e),n),typeof i<"u")return Yy(e,i)?Gy(n,r,e,i):i}function kk(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function vS(e){let t=e._keys;return t||(t=e._keys=tJ(e._scopes)),t}function tJ(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}const nJ=Number.EPSILON||1e-14,ja=(e,t)=>t<e.length&&!e[t].skip&&e[t],Mk=e=>e==="x"?"y":"x";function rJ(e,t,n,r){const i=e.skip?t:e,o=t,a=n.skip?t:n,s=tg(o,i),l=tg(a,o);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=r*c,p=r*u;return{previous:{x:o.x-d*(a.x-i.x),y:o.y-d*(a.y-i.y)},next:{x:o.x+p*(a.x-i.x),y:o.y+p*(a.y-i.y)}}}function iJ(e,t,n){const r=e.length;let i,o,a,s,l,c=ja(e,0);for(let u=0;u<r-1;++u)if(l=c,c=ja(e,u+1),!(!l||!c)){if(Fs(t[u],0,nJ)){n[u]=n[u+1]=0;continue}i=n[u]/t[u],o=n[u+1]/t[u],s=Math.pow(i,2)+Math.pow(o,2),!(s<=9)&&(a=3/Math.sqrt(s),n[u]=i*a*t[u],n[u+1]=o*a*t[u])}}function oJ(e,t,n="x"){const r=Mk(n),i=e.length;let o,a,s,l=ja(e,0);for(let c=0;c<i;++c){if(a=s,s=l,l=ja(e,c+1),!s)continue;const u=s[n],d=s[r];a&&(o=(u-a[n])/3,s[`cp1${n}`]=u-o,s[`cp1${r}`]=d-o*t[c]),l&&(o=(l[n]-u)/3,s[`cp2${n}`]=u+o,s[`cp2${r}`]=d+o*t[c])}}function aJ(e,t="x"){const n=Mk(t),r=e.length,i=Array(r).fill(0),o=Array(r);let a,s,l,c=ja(e,0);for(a=0;a<r;++a)if(s=l,l=c,c=ja(e,a+1),!!l){if(c){const u=c[t]-l[t];i[a]=u!==0?(c[n]-l[n])/u:0}o[a]=s?c?Mr(i[a-1])!==Mr(i[a])?0:(i[a-1]+i[a])/2:i[a-1]:i[a]}iJ(e,i,o),oJ(e,o,t)}function $c(e,t,n){return Math.max(Math.min(e,n),t)}function sJ(e,t){let n,r,i,o,a,s=gl(e[0],t);for(n=0,r=e.length;n<r;++n)a=o,o=s,s=n<r-1&&gl(e[n+1],t),o&&(i=e[n],a&&(i.cp1x=$c(i.cp1x,t.left,t.right),i.cp1y=$c(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=$c(i.cp2x,t.left,t.right),i.cp2y=$c(i.cp2y,t.top,t.bottom)))}function lJ(e,t,n,r,i){let o,a,s,l;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")aJ(e,i);else{let c=r?e[e.length-1]:e[0];for(o=0,a=e.length;o<a;++o)s=e[o],l=rJ(c,s,e[Math.min(o+1,a-(r?0:1))%a],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,c=s}t.capBezierPoints&&sJ(e,n)}function Xy(){return typeof window<"u"&&typeof document<"u"}function Zy(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function dd(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const Pf=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function cJ(e,t){return Pf(e).getPropertyValue(t)}const uJ=["top","right","bottom","left"];function Po(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=uJ[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const dJ=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function fJ(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r;let a=!1,s,l;if(dJ(i,o,e.target))s=i,l=o;else{const c=t.getBoundingClientRect();s=r.clientX-c.left,l=r.clientY-c.top,a=!0}return{x:s,y:l,box:a}}function co(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=Pf(n),o=i.boxSizing==="border-box",a=Po(i,"padding"),s=Po(i,"border","width"),{x:l,y:c,box:u}=fJ(e,n),d=a.left+(u&&s.left),p=a.top+(u&&s.top);let{width:h,height:g}=t;return o&&(h-=a.width+s.width,g-=a.height+s.height),{x:Math.round((l-d)/h*n.width/r),y:Math.round((c-p)/g*n.height/r)}}function pJ(e,t,n){let r,i;if(t===void 0||n===void 0){const o=e&&Zy(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const a=o.getBoundingClientRect(),s=Pf(o),l=Po(s,"border","width"),c=Po(s,"padding");t=a.width-c.width-l.width,n=a.height-c.height-l.height,r=dd(s.maxWidth,o,"clientWidth"),i=dd(s.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:r||ld,maxHeight:i||ld}}const Lc=e=>Math.round(e*10)/10;function hJ(e,t,n,r){const i=Pf(e),o=Po(i,"margin"),a=dd(i.maxWidth,e,"clientWidth")||ld,s=dd(i.maxHeight,e,"clientHeight")||ld,l=pJ(e,t,n);let{width:c,height:u}=l;if(i.boxSizing==="content-box"){const p=Po(i,"border","width"),h=Po(i,"padding");c-=h.width+p.width,u-=h.height+p.height}return c=Math.max(0,c-o.width),u=Math.max(0,r?c/r:u-o.height),c=Lc(Math.min(c,a,l.maxWidth)),u=Lc(Math.min(u,s,l.maxHeight)),c&&!u&&(u=Lc(c/2)),(t!==void 0||n!==void 0)&&r&&l.height&&u>l.height&&(u=l.height,c=Lc(Math.floor(u*r))),{width:c,height:u}}function yS(e,t,n){const r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o?(e.currentDevicePixelRatio=r,a.height=i,a.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const mJ=(function(){let e=!1;try{const t={get passive(){return e=!0,!1}};Xy()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e})();function bS(e,t){const n=cJ(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function uo(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function gJ(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function vJ(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=uo(e,i,n),s=uo(i,o,n),l=uo(o,t,n),c=uo(a,s,n),u=uo(s,l,n);return uo(c,u,n)}const yJ=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},bJ=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function ma(e,t,n){return e?yJ(t,n):bJ()}function jk(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function Nk(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function Rk(e){return e==="angle"?{between:ml,compare:yZ,normalize:dr}:{between:Ei,compare:(t,n)=>t-n,normalize:t=>t}}function xS({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function xJ(e,t,n){const{property:r,start:i,end:o}=n,{between:a,normalize:s}=Rk(r),l=t.length;let{start:c,end:u,loop:d}=e,p,h;if(d){for(c+=l,u+=l,p=0,h=l;p<h&&a(s(t[c%l][r]),i,o);++p)c--,u--;c%=l,u%=l}return u<c&&(u+=l),{start:c,end:u,loop:d,style:e.style}}function wJ(e,t,n){if(!n)return[e];const{property:r,start:i,end:o}=n,a=t.length,{compare:s,between:l,normalize:c}=Rk(r),{start:u,end:d,loop:p,style:h}=xJ(e,t,n),g=[];let m=!1,v=null,y,S,x;const b=()=>l(i,x,y)&&s(i,x)!==0,O=()=>s(o,y)===0||l(o,x,y),E=()=>m||b(),C=()=>!m||O();for(let T=u,k=u;T<=d;++T)S=t[T%a],!S.skip&&(y=c(S[r]),y!==x&&(m=l(y,i,o),v===null&&E()&&(v=s(y,i)===0?T:k),v!==null&&C()&&(g.push(xS({start:v,end:T,loop:p,count:a,style:h})),v=null),k=T,x=y));return v!==null&&g.push(xS({start:v,end:d,loop:p,count:a,style:h})),g}function OJ(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const o=wJ(r[i],e.points,t);o.length&&n.push(...o)}return n}function SJ(e,t,n,r){let i=0,o=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(o+=i);o>i&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function EJ(e,t,n,r){const i=e.length,o=[];let a=t,s=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?s.skip||(r=!1,o.push({start:t%i,end:(l-1)%i,loop:r}),t=a=c.stop?l:null):(a=l,s.skip&&(t=l)),s=c}return a!==null&&o.push({start:t%i,end:a%i,loop:r}),o}function _J(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:a,end:s}=SJ(n,i,o,r);if(r===!0)return wS(e,[{start:a,end:s,loop:o}],n,t);const l=s<a?s+i:s,c=!!e._fullLoop&&a===0&&s===i-1;return wS(e,EJ(n,a,l,c),n,t)}function wS(e,t,n,r){return!r||!r.setContext||!n?t:PJ(e,t,n,r)}function PJ(e,t,n,r){const i=e._chart.getContext(),o=OS(e.options),{_datasetIndex:a,options:{spanGaps:s}}=e,l=n.length,c=[];let u=o,d=t[0].start,p=d;function h(g,m,v,y){const S=s?-1:1;if(g!==m){for(g+=l;n[g%l].skip;)g-=S;for(;n[m%l].skip;)m+=S;g%l!==m%l&&(c.push({start:g%l,end:m%l,loop:v,style:y}),u=y,d=m%l)}}for(const g of t){d=s?d:g.start;let m=n[d%l],v;for(p=d+1;p<=g.end;p++){const y=n[p%l];v=OS(r.setContext(Uo(i,{type:"segment",p0:m,p1:y,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:a}))),CJ(v,u)&&h(d,p-1,g.loop,u),m=y,u=v}d<p-1&&h(d,p-1,g.loop,u)}return c}function OS(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function CJ(e,t){if(!t)return!1;const n=[],r=function(i,o){return Vy(o)?(n.includes(o)||n.push(o),n.indexOf(o)):o};return JSON.stringify(e,r)!==JSON.stringify(t,r)}function Fc(e,t,n){return e.options.clip?e[n]:t[n]}function TJ(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:Fc(n,t,"left"),right:Fc(n,t,"right"),top:Fc(r,t,"top"),bottom:Fc(r,t,"bottom")}:t}function AJ(e,t){const n=t._clip;if(n.disabled)return!1;const r=TJ(t,e.chartArea);return{left:n.left===!1?0:r.left-(n.left===!0?0:n.left),right:n.right===!1?e.width:r.right+(n.right===!0?0:n.right),top:n.top===!1?0:r.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?e.height:r.bottom+(n.bottom===!0?0:n.bottom)}}/*!
|
|
339
|
+
*/function Wr(){}const iZ=(()=>{let e=0;return()=>e++})();function ze(e){return e==null}function Wt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Ae(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function sr(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function xr(e,t){return sr(e)?e:t}function Oe(e,t){return typeof e>"u"?t:e}const oZ=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,mk=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function lt(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Ue(e,t,n,r){let i,o,a;if(Wt(e))for(o=e.length,i=0;i<o;i++)t.call(n,e[i],i);else if(Ae(e))for(a=Object.keys(e),o=a.length,i=0;i<o;i++)t.call(n,e[a[i]],a[i])}function ad(e,t){let n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function sd(e){if(Wt(e))return e.map(sd);if(Ae(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=sd(e[n[i]]);return t}return e}function gk(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function aZ(e,t,n,r){if(!gk(e))return;const i=t[e],o=n[e];Ae(i)&&Ae(o)?pl(i,o,r):t[e]=sd(o)}function pl(e,t,n){const r=Wt(t)?t:[t],i=r.length;if(!Ae(e))return e;n=n||{};const o=n.merger||aZ;let a;for(let s=0;s<i;++s){if(a=r[s],!Ae(a))continue;const l=Object.keys(a);for(let c=0,u=l.length;c<u;++c)o(l[c],e,a,n)}return e}function Fs(e,t){return pl(e,t,{merger:sZ})}function sZ(e,t,n){if(!gk(e))return;const r=t[e],i=n[e];Ae(r)&&Ae(i)?Fs(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=sd(i))}const iS={"":e=>e,x:e=>e.x,y:e=>e.y};function lZ(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function cZ(e){const t=lZ(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function Do(e,t){return(iS[t]||(iS[t]=cZ(t)))(e)}function By(e){return e.charAt(0).toUpperCase()+e.slice(1)}const hl=e=>typeof e<"u",$i=e=>typeof e=="function",oS=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function uZ(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const tt=Math.PI,Ot=2*tt,dZ=Ot+tt,ld=Number.POSITIVE_INFINITY,fZ=tt/180,It=tt/2,eo=tt/4,aS=tt*2/3,vk=Math.log10,Mr=Math.sign;function Bs(e,t,n){return Math.abs(e-t)<n}function sS(e){const t=Math.round(e);e=Bs(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(vk(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function pZ(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((i,o)=>i-o).pop(),t}function hZ(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function ml(e){return!hZ(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function mZ(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function gZ(e,t,n){let r,i,o;for(r=0,i=e.length;r<i;r++)o=e[r][n],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function Jr(e){return e*(tt/180)}function vZ(e){return e*(180/tt)}function lS(e){if(!sr(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function yk(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let o=Math.atan2(r,n);return o<-.5*tt&&(o+=Ot),{angle:o,distance:i}}function tg(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function yZ(e,t){return(e-t+dZ)%Ot-tt}function dr(e){return(e%Ot+Ot)%Ot}function gl(e,t,n,r){const i=dr(e),o=dr(t),a=dr(n),s=dr(o-i),l=dr(a-i),c=dr(i-o),u=dr(i-a);return i===o||i===a||r&&o===a||s>l&&c<u}function ln(e,t,n){return Math.max(t,Math.min(n,e))}function bZ(e){return ln(e,-32768,32767)}function Ei(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function zy(e,t,n){n=n||(a=>e[a]<t);let r=e.length-1,i=0,o;for(;r-i>1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const bo=(e,t,n,r)=>zy(e,n,r?i=>{const o=e[i][t];return o<n||o===n&&e[i+1][t]===n}:i=>e[i][t]<n),xZ=(e,t,n)=>zy(e,n,r=>e[r][t]>=n);function wZ(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}const bk=["push","pop","shift","splice","unshift"];function OZ(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),bk.forEach(n=>{const r="_onData"+By(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const a=i.apply(this,o);return e._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...o)}),a}})})}function cS(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(bk.forEach(o=>{delete e[o]}),delete e._chartjs)}function xk(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const wk=(function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame})();function Ok(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,wk.call(window,()=>{r=!1,e.apply(t,n)}))}}function SZ(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const Sk=e=>e==="start"?"left":e==="end"?"right":"center",Mn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,EZ=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function _Z(e,t,n){const r=t.length;let i=0,o=r;if(e._sorted){const{iScale:a,vScale:s,_parsed:l}=e,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,u=a.axis,{min:d,max:p,minDefined:h,maxDefined:g}=a.getUserBounds();if(h){if(i=Math.min(bo(l,u,d).lo,n?r:bo(t,u,a.getPixelForValue(d)).lo),c){const m=l.slice(0,i+1).reverse().findIndex(v=>!ze(v[s.axis]));i-=Math.max(0,m)}i=ln(i,0,r-1)}if(g){let m=Math.max(bo(l,a.axis,p,!0).hi+1,n?0:bo(t,u,a.getPixelForValue(p),!0).hi+1);if(c){const v=l.slice(m-1).findIndex(y=>!ze(y[s.axis]));m+=Math.max(0,v)}o=ln(m,i,r)-i}else o=r-i}return{start:i,count:o}}function PZ(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const Dc=e=>e===0||e===1,uS=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Ot/n)),dS=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Ot/n)+1,zs={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*It)+1,easeOutSine:e=>Math.sin(e*It),easeInOutSine:e=>-.5*(Math.cos(tt*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Dc(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Dc(e)?e:uS(e,.075,.3),easeOutElastic:e=>Dc(e)?e:dS(e,.075,.3),easeInOutElastic(e){return Dc(e)?e:e<.5?.5*uS(e*2,.1125,.45):.5+.5*dS(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-zs.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?zs.easeInBounce(e*2)*.5:zs.easeOutBounce(e*2-1)*.5+.5};function Vy(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function fS(e){return Vy(e)?e:new fl(e)}function kh(e){return Vy(e)?e:new fl(e).saturate(.5).darken(.1).hexString()}const CZ=["x","y","borderWidth","radius","tension"],TZ=["color","borderColor","backgroundColor"];function AZ(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:TZ},numbers:{type:"number",properties:CZ}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function kZ(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const pS=new Map;function MZ(e,t){t=t||{};const n=e+JSON.stringify(t);let r=pS.get(n);return r||(r=new Intl.NumberFormat(e,t),pS.set(n,r)),r}function Wy(e,t,n){return MZ(t,n).format(e)}const jZ={values(e){return Wt(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),o=NZ(e,n)}const a=vk(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Wy(e,r,l)}};function NZ(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Ek={formatters:jZ};function RZ(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Ek.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Io=Object.create(null),ng=Object.create(null);function Vs(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const o=n[r];e=e[o]||(e[o]=Object.create(null))}return e}function Mh(e,t,n){return typeof t=="string"?pl(Vs(e,t),n):pl(Vs(e,""),t)}class DZ{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>kh(i.backgroundColor),this.hoverBorderColor=(r,i)=>kh(i.borderColor),this.hoverColor=(r,i)=>kh(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return Mh(this,t,n)}get(t){return Vs(this,t)}describe(t,n){return Mh(ng,t,n)}override(t,n){return Mh(Io,t,n)}route(t,n,r,i){const o=Vs(this,t),a=Vs(this,r),s="_"+n;Object.defineProperties(o,{[s]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[s],c=a[i];return Ae(l)?Object.assign({},c,l):Oe(l,c)},set(l){this[s]=l}}})}apply(t){t.forEach(n=>n(this))}}var Ct=new DZ({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[AZ,kZ,RZ]);function IZ(e){return!e||ze(e.size)||ze(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function hS(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function to(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function mS(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function rg(e,t,n,r){_k(e,t,n,r,null)}function _k(e,t,n,r,i){let o,a,s,l,c,u,d,p;const h=t.pointStyle,g=t.rotation,m=t.radius;let v=(g||0)*fZ;if(h&&typeof h=="object"&&(o=h.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(v),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!(isNaN(m)||m<=0)){switch(e.beginPath(),h){default:i?e.ellipse(n,r,i/2,m,0,0,Ot):e.arc(n,r,m,0,Ot),e.closePath();break;case"triangle":u=i?i/2:m,e.moveTo(n+Math.sin(v)*u,r-Math.cos(v)*m),v+=aS,e.lineTo(n+Math.sin(v)*u,r-Math.cos(v)*m),v+=aS,e.lineTo(n+Math.sin(v)*u,r-Math.cos(v)*m),e.closePath();break;case"rectRounded":c=m*.516,l=m-c,a=Math.cos(v+eo)*l,d=Math.cos(v+eo)*(i?i/2-c:l),s=Math.sin(v+eo)*l,p=Math.sin(v+eo)*(i?i/2-c:l),e.arc(n-d,r-s,c,v-tt,v-It),e.arc(n+p,r-a,c,v-It,v),e.arc(n+d,r+s,c,v,v+It),e.arc(n-p,r+a,c,v+It,v+tt),e.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*m,u=i?i/2:l,e.rect(n-u,r-l,2*u,2*l);break}v+=eo;case"rectRot":d=Math.cos(v)*(i?i/2:m),a=Math.cos(v)*m,s=Math.sin(v)*m,p=Math.sin(v)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+p,r-a),e.lineTo(n+d,r+s),e.lineTo(n-p,r+a),e.closePath();break;case"crossRot":v+=eo;case"cross":d=Math.cos(v)*(i?i/2:m),a=Math.cos(v)*m,s=Math.sin(v)*m,p=Math.sin(v)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a);break;case"star":d=Math.cos(v)*(i?i/2:m),a=Math.cos(v)*m,s=Math.sin(v)*m,p=Math.sin(v)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a),v+=eo,d=Math.cos(v)*(i?i/2:m),a=Math.cos(v)*m,s=Math.sin(v)*m,p=Math.sin(v)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a);break;case"line":a=i?i/2:Math.cos(v)*m,s=Math.sin(v)*m,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(v)*(i?i/2:m),r+Math.sin(v)*m);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function vl(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Uy(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Hy(e){e.restore()}function $Z(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){const o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else i==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function LZ(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function FZ(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),ze(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function BZ(e,t,n,r,i){if(i.strikethrough||i.underline){const o=e.measureText(r),a=t-o.actualBoundingBoxLeft,s=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,u=i.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(a,u),e.lineTo(s,u),e.stroke()}}function zZ(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function cd(e,t,n,r,i,o={}){const a=Wt(t)?t:[t],s=o.strokeWidth>0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,FZ(e,o),l=0;l<a.length;++l)c=a[l],o.backdrop&&zZ(e,o.backdrop),s&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),ze(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(c,n,r,o.maxWidth)),e.fillText(c,n,r,o.maxWidth),BZ(e,n,r,c,o),r+=Number(i.lineHeight);e.restore()}function ud(e,t){const{x:n,y:r,w:i,h:o,radius:a}=t;e.arc(n+a.topLeft,r+a.topLeft,a.topLeft,1.5*tt,tt,!0),e.lineTo(n,r+o-a.bottomLeft),e.arc(n+a.bottomLeft,r+o-a.bottomLeft,a.bottomLeft,tt,It,!0),e.lineTo(n+i-a.bottomRight,r+o),e.arc(n+i-a.bottomRight,r+o-a.bottomRight,a.bottomRight,It,0,!0),e.lineTo(n+i,r+a.topRight),e.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-It,!0),e.lineTo(n+a.topLeft,r)}const VZ=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,WZ=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function UZ(e,t){const n=(""+e).match(VZ);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const HZ=e=>+e||0;function qy(e,t){const n={},r=Ae(t),i=r?Object.keys(t):t,o=Ae(e)?r?a=>Oe(e[a],e[t[a]]):a=>e[a]:()=>e;for(const a of i)n[a]=HZ(o(a));return n}function Pk(e){return qy(e,{top:"y",right:"x",bottom:"y",left:"x"})}function ha(e){return qy(e,["topLeft","topRight","bottomLeft","bottomRight"])}function pr(e){const t=Pk(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Sn(e,t){e=e||{},t=t||Ct.font;let n=Oe(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Oe(e.style,t.style);r&&!(""+r).match(WZ)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Oe(e.family,t.family),lineHeight:UZ(Oe(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Oe(e.weight,t.weight),string:""};return i.string=IZ(i),i}function Ic(e,t,n,r){let i,o,a;for(i=0,o=e.length;i<o;++i)if(a=e[i],a!==void 0&&a!==void 0)return a}function qZ(e,t,n){const{min:r,max:i}=e,o=mk(t,(i-r)/2),a=(s,l)=>n&&s===0?0:s+l;return{min:a(r,-Math.abs(o)),max:a(i,o)}}function Uo(e,t){return Object.assign(Object.create(e),t)}function Ky(e,t=[""],n,r,i=()=>e[0]){const o=n||e;typeof r>"u"&&(r=kk("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:i,override:s=>Ky([s,...e],t,o,r)};return new Proxy(a,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return Tk(s,l,()=>eJ(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return vS(s).includes(l)},ownKeys(s){return vS(s)},set(s,l,c){const u=s._storage||(s._storage=i());return s[l]=u[l]=c,delete s._keys,!0}})}function Ma(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:Ck(e,r),setContext:o=>Ma(e,o,n,r),override:o=>Ma(e.override(o),t,n,r)};return new Proxy(i,{deleteProperty(o,a){return delete o[a],delete e[a],!0},get(o,a,s){return Tk(o,a,()=>YZ(o,a,s))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,a){return Reflect.has(e,a)},ownKeys(){return Reflect.ownKeys(e)},set(o,a,s){return e[a]=s,delete o[a],!0}})}function Ck(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:$i(n)?n:()=>n,isIndexable:$i(r)?r:()=>r}}const KZ=(e,t)=>e?e+By(t):t,Yy=(e,t)=>Ae(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function Tk(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function YZ(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:a}=e;let s=r[t];return $i(s)&&a.isScriptable(t)&&(s=GZ(t,s,e,n)),Wt(s)&&s.length&&(s=XZ(t,s,e,a.isIndexable)),Yy(t,s)&&(s=Ma(s,i,o&&o[t],a)),s}function GZ(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(o,a||r);return s.delete(e),Yy(e,l)&&(l=Gy(i._scopes,i,e,l)),l}function XZ(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=n;if(typeof o.index<"u"&&r(e))return t[o.index%t.length];if(Ae(t[0])){const l=t,c=i._scopes.filter(u=>u!==l);t=[];for(const u of l){const d=Gy(c,i,e,u);t.push(Ma(d,o,a&&a[e],s))}}return t}function Ak(e,t,n){return $i(e)?e(t,n):e}const ZZ=(e,t)=>e===!0?t:typeof e=="string"?Do(t,e):void 0;function JZ(e,t,n,r,i){for(const o of t){const a=ZZ(n,o);if(a){e.add(a);const s=Ak(a._fallback,n,i);if(typeof s<"u"&&s!==n&&s!==r)return s}else if(a===!1&&typeof r<"u"&&n!==r)return null}return!1}function Gy(e,t,n,r){const i=t._rootScopes,o=Ak(t._fallback,n,r),a=[...e,...i],s=new Set;s.add(r);let l=gS(s,a,n,o||n,r);return l===null||typeof o<"u"&&o!==n&&(l=gS(s,a,o,l,r),l===null)?!1:Ky(Array.from(s),[""],i,o,()=>QZ(t,n,r))}function gS(e,t,n,r,i){for(;n;)n=JZ(e,t,n,r,i);return n}function QZ(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return Wt(i)&&Ae(n)?n:i||{}}function eJ(e,t,n,r){let i;for(const o of t)if(i=kk(KZ(o,e),n),typeof i<"u")return Yy(e,i)?Gy(n,r,e,i):i}function kk(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function vS(e){let t=e._keys;return t||(t=e._keys=tJ(e._scopes)),t}function tJ(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}const nJ=Number.EPSILON||1e-14,ja=(e,t)=>t<e.length&&!e[t].skip&&e[t],Mk=e=>e==="x"?"y":"x";function rJ(e,t,n,r){const i=e.skip?t:e,o=t,a=n.skip?t:n,s=tg(o,i),l=tg(a,o);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=r*c,p=r*u;return{previous:{x:o.x-d*(a.x-i.x),y:o.y-d*(a.y-i.y)},next:{x:o.x+p*(a.x-i.x),y:o.y+p*(a.y-i.y)}}}function iJ(e,t,n){const r=e.length;let i,o,a,s,l,c=ja(e,0);for(let u=0;u<r-1;++u)if(l=c,c=ja(e,u+1),!(!l||!c)){if(Bs(t[u],0,nJ)){n[u]=n[u+1]=0;continue}i=n[u]/t[u],o=n[u+1]/t[u],s=Math.pow(i,2)+Math.pow(o,2),!(s<=9)&&(a=3/Math.sqrt(s),n[u]=i*a*t[u],n[u+1]=o*a*t[u])}}function oJ(e,t,n="x"){const r=Mk(n),i=e.length;let o,a,s,l=ja(e,0);for(let c=0;c<i;++c){if(a=s,s=l,l=ja(e,c+1),!s)continue;const u=s[n],d=s[r];a&&(o=(u-a[n])/3,s[`cp1${n}`]=u-o,s[`cp1${r}`]=d-o*t[c]),l&&(o=(l[n]-u)/3,s[`cp2${n}`]=u+o,s[`cp2${r}`]=d+o*t[c])}}function aJ(e,t="x"){const n=Mk(t),r=e.length,i=Array(r).fill(0),o=Array(r);let a,s,l,c=ja(e,0);for(a=0;a<r;++a)if(s=l,l=c,c=ja(e,a+1),!!l){if(c){const u=c[t]-l[t];i[a]=u!==0?(c[n]-l[n])/u:0}o[a]=s?c?Mr(i[a-1])!==Mr(i[a])?0:(i[a-1]+i[a])/2:i[a-1]:i[a]}iJ(e,i,o),oJ(e,o,t)}function $c(e,t,n){return Math.max(Math.min(e,n),t)}function sJ(e,t){let n,r,i,o,a,s=vl(e[0],t);for(n=0,r=e.length;n<r;++n)a=o,o=s,s=n<r-1&&vl(e[n+1],t),o&&(i=e[n],a&&(i.cp1x=$c(i.cp1x,t.left,t.right),i.cp1y=$c(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=$c(i.cp2x,t.left,t.right),i.cp2y=$c(i.cp2y,t.top,t.bottom)))}function lJ(e,t,n,r,i){let o,a,s,l;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")aJ(e,i);else{let c=r?e[e.length-1]:e[0];for(o=0,a=e.length;o<a;++o)s=e[o],l=rJ(c,s,e[Math.min(o+1,a-(r?0:1))%a],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,c=s}t.capBezierPoints&&sJ(e,n)}function Xy(){return typeof window<"u"&&typeof document<"u"}function Zy(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function dd(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const Pf=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function cJ(e,t){return Pf(e).getPropertyValue(t)}const uJ=["top","right","bottom","left"];function Po(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=uJ[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const dJ=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function fJ(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r;let a=!1,s,l;if(dJ(i,o,e.target))s=i,l=o;else{const c=t.getBoundingClientRect();s=r.clientX-c.left,l=r.clientY-c.top,a=!0}return{x:s,y:l,box:a}}function co(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=Pf(n),o=i.boxSizing==="border-box",a=Po(i,"padding"),s=Po(i,"border","width"),{x:l,y:c,box:u}=fJ(e,n),d=a.left+(u&&s.left),p=a.top+(u&&s.top);let{width:h,height:g}=t;return o&&(h-=a.width+s.width,g-=a.height+s.height),{x:Math.round((l-d)/h*n.width/r),y:Math.round((c-p)/g*n.height/r)}}function pJ(e,t,n){let r,i;if(t===void 0||n===void 0){const o=e&&Zy(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const a=o.getBoundingClientRect(),s=Pf(o),l=Po(s,"border","width"),c=Po(s,"padding");t=a.width-c.width-l.width,n=a.height-c.height-l.height,r=dd(s.maxWidth,o,"clientWidth"),i=dd(s.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:r||ld,maxHeight:i||ld}}const Lc=e=>Math.round(e*10)/10;function hJ(e,t,n,r){const i=Pf(e),o=Po(i,"margin"),a=dd(i.maxWidth,e,"clientWidth")||ld,s=dd(i.maxHeight,e,"clientHeight")||ld,l=pJ(e,t,n);let{width:c,height:u}=l;if(i.boxSizing==="content-box"){const p=Po(i,"border","width"),h=Po(i,"padding");c-=h.width+p.width,u-=h.height+p.height}return c=Math.max(0,c-o.width),u=Math.max(0,r?c/r:u-o.height),c=Lc(Math.min(c,a,l.maxWidth)),u=Lc(Math.min(u,s,l.maxHeight)),c&&!u&&(u=Lc(c/2)),(t!==void 0||n!==void 0)&&r&&l.height&&u>l.height&&(u=l.height,c=Lc(Math.floor(u*r))),{width:c,height:u}}function yS(e,t,n){const r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o?(e.currentDevicePixelRatio=r,a.height=i,a.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const mJ=(function(){let e=!1;try{const t={get passive(){return e=!0,!1}};Xy()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e})();function bS(e,t){const n=cJ(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function uo(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function gJ(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function vJ(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=uo(e,i,n),s=uo(i,o,n),l=uo(o,t,n),c=uo(a,s,n),u=uo(s,l,n);return uo(c,u,n)}const yJ=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},bJ=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function ma(e,t,n){return e?yJ(t,n):bJ()}function jk(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function Nk(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function Rk(e){return e==="angle"?{between:gl,compare:yZ,normalize:dr}:{between:Ei,compare:(t,n)=>t-n,normalize:t=>t}}function xS({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function xJ(e,t,n){const{property:r,start:i,end:o}=n,{between:a,normalize:s}=Rk(r),l=t.length;let{start:c,end:u,loop:d}=e,p,h;if(d){for(c+=l,u+=l,p=0,h=l;p<h&&a(s(t[c%l][r]),i,o);++p)c--,u--;c%=l,u%=l}return u<c&&(u+=l),{start:c,end:u,loop:d,style:e.style}}function wJ(e,t,n){if(!n)return[e];const{property:r,start:i,end:o}=n,a=t.length,{compare:s,between:l,normalize:c}=Rk(r),{start:u,end:d,loop:p,style:h}=xJ(e,t,n),g=[];let m=!1,v=null,y,S,x;const b=()=>l(i,x,y)&&s(i,x)!==0,O=()=>s(o,y)===0||l(o,x,y),E=()=>m||b(),C=()=>!m||O();for(let T=u,k=u;T<=d;++T)S=t[T%a],!S.skip&&(y=c(S[r]),y!==x&&(m=l(y,i,o),v===null&&E()&&(v=s(y,i)===0?T:k),v!==null&&C()&&(g.push(xS({start:v,end:T,loop:p,count:a,style:h})),v=null),k=T,x=y));return v!==null&&g.push(xS({start:v,end:d,loop:p,count:a,style:h})),g}function OJ(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const o=wJ(r[i],e.points,t);o.length&&n.push(...o)}return n}function SJ(e,t,n,r){let i=0,o=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(o+=i);o>i&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function EJ(e,t,n,r){const i=e.length,o=[];let a=t,s=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?s.skip||(r=!1,o.push({start:t%i,end:(l-1)%i,loop:r}),t=a=c.stop?l:null):(a=l,s.skip&&(t=l)),s=c}return a!==null&&o.push({start:t%i,end:a%i,loop:r}),o}function _J(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:a,end:s}=SJ(n,i,o,r);if(r===!0)return wS(e,[{start:a,end:s,loop:o}],n,t);const l=s<a?s+i:s,c=!!e._fullLoop&&a===0&&s===i-1;return wS(e,EJ(n,a,l,c),n,t)}function wS(e,t,n,r){return!r||!r.setContext||!n?t:PJ(e,t,n,r)}function PJ(e,t,n,r){const i=e._chart.getContext(),o=OS(e.options),{_datasetIndex:a,options:{spanGaps:s}}=e,l=n.length,c=[];let u=o,d=t[0].start,p=d;function h(g,m,v,y){const S=s?-1:1;if(g!==m){for(g+=l;n[g%l].skip;)g-=S;for(;n[m%l].skip;)m+=S;g%l!==m%l&&(c.push({start:g%l,end:m%l,loop:v,style:y}),u=y,d=m%l)}}for(const g of t){d=s?d:g.start;let m=n[d%l],v;for(p=d+1;p<=g.end;p++){const y=n[p%l];v=OS(r.setContext(Uo(i,{type:"segment",p0:m,p1:y,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:a}))),CJ(v,u)&&h(d,p-1,g.loop,u),m=y,u=v}d<p-1&&h(d,p-1,g.loop,u)}return c}function OS(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function CJ(e,t){if(!t)return!1;const n=[],r=function(i,o){return Vy(o)?(n.includes(o)||n.push(o),n.indexOf(o)):o};return JSON.stringify(e,r)!==JSON.stringify(t,r)}function Fc(e,t,n){return e.options.clip?e[n]:t[n]}function TJ(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:Fc(n,t,"left"),right:Fc(n,t,"right"),top:Fc(r,t,"top"),bottom:Fc(r,t,"bottom")}:t}function AJ(e,t){const n=t._clip;if(n.disabled)return!1;const r=TJ(t,e.chartArea);return{left:n.left===!1?0:r.left-(n.left===!0?0:n.left),right:n.right===!1?e.width:r.right+(n.right===!0?0:n.right),top:n.top===!1?0:r.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?e.height:r.bottom+(n.bottom===!0?0:n.bottom)}}/*!
|
|
340
340
|
* Chart.js v4.5.0
|
|
341
341
|
* https://www.chartjs.org
|
|
342
342
|
* (c) 2025 Chart.js Contributors
|
|
343
343
|
* Released under the MIT License
|
|
344
|
-
*/class kJ{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){const o=n.listeners[i],a=n.duration;o.forEach(s=>s({chart:t,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=wk.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let a=o.length-1,s=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),s=!0):(o[a]=o[o.length-1],o.pop());s&&(i.draw(),this._notify(i,r,t,"progress")),o.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Ur=new kJ;const SS="transparent",MJ={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=fS(e||SS),i=r.valid&&fS(t||SS);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class jJ{constructor(t,n,r,i){const o=n[r];i=Ic([t.to,i,o,t.from]);const a=Ic([t.from,o,i]);this._active=!0,this._fn=t.fn||MJ[t.type||typeof a],this._easing=Bs[t.easing]||Bs.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,a=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Ic([t.to,n,i,t.from]),this._from=Ic([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,o=this._from,a=this._loop,s=this._to;let l;if(this._active=o!==s&&(a||n<r),!this._active){this._target[i]=s,this._notify(!0);return}if(n<0){this._target[i]=o;return}l=n/r%2,l=a&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,s,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}}class Dk{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!Ae(t))return;const n=Object.keys(Ct.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const o=t[i];if(!Ae(o))return;const a={};for(const s of n)a[s]=o[s];(Wt(o.properties)&&o.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,a)})})}_animateOptions(t,n){const r=n.options,i=RJ(t,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&NJ(t.options.$animations,r).then(()=>{t.options=r},()=>{}),o}_createAnimations(t,n){const r=this._properties,i=[],o=t.$animations||(t.$animations={}),a=Object.keys(n),s=Date.now();let l;for(l=a.length-1;l>=0;--l){const c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const u=n[c];let d=o[c];const p=r.get(c);if(d)if(p&&d.active()){d.update(p,u,s);continue}else d.cancel();if(!p||!p.duration){t[c]=u;continue}o[c]=d=new jJ(p,t,c,u),i.push(d)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return Ur.add(this._chart,r),!0}}function NJ(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const o=e[r[i]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}function RJ(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function ES(e,t){const n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,o=n.max===void 0?t:0;return{start:r?o:i,end:r?i:o}}function DJ(e,t,n){if(n===!1)return!1;const r=ES(e,n),i=ES(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function IJ(e){let t,n,r,i;return Ae(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function Ik(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,o;for(i=0,o=r.length;i<o;++i)n.push(r[i].index);return n}function _S(e,t,n,r={}){const i=e.keys,o=r.mode==="single";let a,s,l,c;if(t===null)return;let u=!1;for(a=0,s=i.length;a<s;++a){if(l=+i[a],l===n){if(u=!0,r.all)continue;break}c=e.values[l],sr(c)&&(o||t===0||Mr(t)===Mr(c))&&(t+=c)}return!u&&!r.all?0:t}function $J(e,t){const{iScale:n,vScale:r}=t,i=n.axis==="x"?"x":"y",o=r.axis==="x"?"x":"y",a=Object.keys(e),s=new Array(a.length);let l,c,u;for(l=0,c=a.length;l<c;++l)u=a[l],s[l]={[i]:u,[o]:e[u]};return s}function jh(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function LJ(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function FJ(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function BJ(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function PS(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const o=e[i.index];if(n&&o>0||!n&&o<0)return i.index}return null}function CS(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:a,index:s}=r,l=o.axis,c=a.axis,u=LJ(o,a,r),d=t.length;let p;for(let h=0;h<d;++h){const g=t[h],{[l]:m,[c]:v}=g,y=g._stacks||(g._stacks={});p=y[c]=BJ(i,u,m),p[s]=v,p._top=PS(p,a,!0,r.type),p._bottom=PS(p,a,!1,r.type);const S=p._visualValues||(p._visualValues={});S[s]=v}}function Nh(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function zJ(e,t){return Uo(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function VJ(e,t,n){return Uo(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function ps(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[r]===void 0||o[r][n]===void 0)return;delete o[r][n],o[r]._visualValues!==void 0&&o[r]._visualValues[n]!==void 0&&delete o[r]._visualValues[n]}}}const Rh=e=>e==="reset"||e==="none",TS=(e,t)=>t?e:Object.assign({},e),WJ=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Ik(n,!0),values:null};class Cf{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=jh(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&ps(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(d,p,h,g)=>d==="x"?p:d==="r"?g:h,o=n.xAxisID=Oe(r.xAxisID,Nh(t,"x")),a=n.yAxisID=Oe(r.yAxisID,Nh(t,"y")),s=n.rAxisID=Oe(r.rAxisID,Nh(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,a,s),u=n.vAxisID=i(l,a,o,s);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&cS(this._data,this),t._stacked&&ps(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(Ae(n)){const i=this._cachedMeta;this._data=$J(n,i)}else if(r!==n){if(r){cS(r,this);const i=this._cachedMeta;ps(i),i._parsed=[]}n&&Object.isExtensible(n)&&OZ(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=jh(n.vScale,n),n.stack!==r.stack&&(i=!0,ps(n),n.stack=r.stack),this._resyncElements(t),(i||o!==n._stacked)&&(CS(this,n._parsed),n._stacked=jh(n.vScale,n))}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:a}=r,s=o.axis;let l=t===0&&n===i.length?!0:r._sorted,c=t>0&&r._parsed[t-1],u,d,p;if(this._parsing===!1)r._parsed=i,r._sorted=!0,p=i;else{Wt(i[t])?p=this.parseArrayData(r,i,t,n):Ae(i[t])?p=this.parseObjectData(r,i,t,n):p=this.parsePrimitiveData(r,i,t,n);const h=()=>d[s]===null||c&&d[s]<c[s];for(u=0;u<n;++u)r._parsed[u+t]=d=p[u],l&&(h()&&(l=!1),c=d);r._sorted=l}a&&CS(this,p)}parsePrimitiveData(t,n,r,i){const{iScale:o,vScale:a}=t,s=o.axis,l=a.axis,c=o.getLabels(),u=o===a,d=new Array(i);let p,h,g;for(p=0,h=i;p<h;++p)g=p+r,d[p]={[s]:u||o.parse(c[g],g),[l]:a.parse(n[g],g)};return d}parseArrayData(t,n,r,i){const{xScale:o,yScale:a}=t,s=new Array(i);let l,c,u,d;for(l=0,c=i;l<c;++l)u=l+r,d=n[u],s[l]={x:o.parse(d[0],u),y:a.parse(d[1],u)};return s}parseObjectData(t,n,r,i){const{xScale:o,yScale:a}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,c=new Array(i);let u,d,p,h;for(u=0,d=i;u<d;++u)p=u+r,h=n[p],c[u]={x:o.parse(Do(h,s),p),y:a.parse(Do(h,l),p)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const i=this.chart,o=this._cachedMeta,a=n[t.axis],s={keys:Ik(i,!0),values:n._stacks[t.axis]._visualValues};return _S(s,a,o.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const o=r[n.axis];let a=o===null?NaN:o;const s=i&&r._stacks[n.axis];i&&s&&(i.values=s,a=_S(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,o=r._sorted&&t===r.iScale,a=i.length,s=this._getOtherScale(t),l=WJ(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:d}=FJ(s);let p,h;function g(){h=i[p];const m=h[s.axis];return!sr(h[t.axis])||u>m||d<m}for(p=0;p<a&&!(!g()&&(this.updateRangeFromParsed(c,t,h,l),o));++p);if(o){for(p=a-1;p>=0;--p)if(!g()){this.updateRangeFromParsed(c,t,h,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,o,a;for(i=0,o=n.length;i<o;++i)a=n[i][t.axis],sr(a)&&r.push(a);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,i=n.vScale,o=this.getParsed(t);return{label:r?""+r.getLabelForValue(o[r.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=IJ(Oe(this.options.clip,DJ(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],o=n.chartArea,a=[],s=this._drawStart||0,l=this._drawCount||i.length-s,c=this.options.drawActiveElementsOnTop;let u;for(r.dataset&&r.dataset.draw(t,o,s,l),u=s;u<s+l;++u){const d=i[u];d.hidden||(d.active&&c?a.push(d):d.draw(t,o))}for(u=0;u<a.length;++u)a[u].draw(t,o)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const i=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const a=this._cachedMeta.data[t];o=a.$context||(a.$context=VJ(this.getContext(),t,a)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=zJ(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!n,o.mode=r,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const i=n==="active",o=this._cachedDataOpts,a=t+"-"+n,s=o[a],l=this.enableOptionSharing&&pl(r);if(s)return TS(s,l);const c=this.chart.config,u=c.datasetElementScopeKeys(this._type,t),d=i?[`${t}Hover`,"hover",t,""]:[t,""],p=c.getOptionScopes(this.getDataset(),u),h=Object.keys(Ct.elements[t]),g=()=>this.getContext(r,i,n),m=c.resolveNamedOptions(p,h,g,d);return m.$shared&&(m.$shared=l,o[a]=Object.freeze(TS(m,l))),m}_resolveAnimations(t,n,r){const i=this.chart,o=this._cachedDataOpts,a=`animation-${n}`,s=o[a];if(s)return s;let l;if(i.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),p=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(p,this.getContext(t,r,n))}const c=new Dk(i,l&&l.animations);return l&&l._cacheable&&(o[a]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Rh(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(r),a=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:a}}updateElement(t,n,r,i){Rh(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!Rh(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[s,l,c]of this._syncList)this[s](l,c);this._syncList=[];const i=r.length,o=n.length,a=Math.min(o,i);a&&this.parse(0,a),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,n,r=!0){const i=this._cachedMeta,o=i.data,a=t+n;let s;const l=c=>{for(c.length+=n,s=c.length-1;s>=a;s--)c[s]=c[s-n]};for(l(o),s=t;s<a;++s)o[s]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,n),r&&this.updateElements(o,t,n,"reset")}updateElements(t,n,r,i){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(t,n);r._stacked&&ps(r,i)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,i]=t;this[n](r,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function UJ(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let i=0,o=n.length;i<o;i++)r=r.concat(n[i].controller.getAllParsedValues(e));e._cache.$bar=xk(r.sort((i,o)=>i-o))}return e._cache.$bar}function HJ(e){const t=e.iScale,n=UJ(t,e.type);let r=t._length,i,o,a,s;const l=()=>{a===32767||a===-32768||(pl(s)&&(r=Math.min(r,Math.abs(a-s)||r)),s=a)};for(i=0,o=n.length;i<o;++i)a=t.getPixelForValue(n[i]),l();for(s=void 0,i=0,o=t.ticks.length;i<o;++i)a=t.getPixelForTick(i),l();return r}function qJ(e,t,n,r){const i=n.barThickness;let o,a;return ze(i)?(o=t.min*n.categoryPercentage,a=n.barPercentage):(o=i*r,a=1),{chunk:o/r,ratio:a,start:t.pixels[e]-o/2}}function KJ(e,t,n,r){const i=t.pixels,o=i[e];let a=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null;const l=n.categoryPercentage;a===null&&(a=o-(s===null?t.end-t.start:s-o)),s===null&&(s=o+o-a);const c=o-(o-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/r,ratio:n.barPercentage,start:c}}function YJ(e,t,n,r){const i=n.parse(e[0],r),o=n.parse(e[1],r),a=Math.min(i,o),s=Math.max(i,o);let l=a,c=s;Math.abs(a)>Math.abs(s)&&(l=s,c=a),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:i,end:o,min:a,max:s}}function $k(e,t,n,r){return Wt(e)?YJ(e,t,n,r):t[n.axis]=n.parse(e,r),t}function AS(e,t,n,r){const i=e.iScale,o=e.vScale,a=i.getLabels(),s=i===o,l=[];let c,u,d,p;for(c=n,u=n+r;c<u;++c)p=t[c],d={},d[i.axis]=s||i.parse(a[c],c),l.push($k(p,d,o,c));return l}function Dh(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function GJ(e,t,n){return e!==0?Mr(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function XJ(e){let t,n,r,i,o;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(i="end",o="start"):(i="start",o="end"),{start:n,end:r,reverse:t,top:i,bottom:o}}function ZJ(e,t,n,r){let i=t.borderSkipped;const o={};if(!i){e.borderSkipped=o;return}if(i===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:a,end:s,reverse:l,top:c,bottom:u}=XJ(e);i==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=c:(n._bottom||0)===r?i=u:(o[kS(u,a,s,l)]=!0,i=c)),o[kS(i,a,s,l)]=!0,e.borderSkipped=o}function kS(e,t,n,r){return r?(e=JJ(e,t,n),e=MS(e,n,t)):e=MS(e,t,n),e}function JJ(e,t,n){return e===t?n:e===n?t:e}function MS(e,t,n){return e==="start"?t:e==="end"?n:e}function QJ(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class eQ extends Cf{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,n,r,i){return AS(t,n,r,i)}parseArrayData(t,n,r,i){return AS(t,n,r,i)}parseObjectData(t,n,r,i){const{iScale:o,vScale:a}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,c=o.axis==="x"?s:l,u=a.axis==="x"?s:l,d=[];let p,h,g,m;for(p=r,h=r+i;p<h;++p)m=n[p],g={},g[o.axis]=o.parse(Do(m,c),p),d.push($k(Do(m,u),g,a,p));return d}updateRangeFromParsed(t,n,r,i){super.updateRangeFromParsed(t,n,r,i);const o=r._custom;o&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:r,vScale:i}=n,o=this.getParsed(t),a=o._custom,s=Dh(a)?"["+a.start+", "+a.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+r.getLabelForValue(o[r.axis]),value:s}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,r,i){const o=i==="reset",{index:a,_cachedMeta:{vScale:s}}=this,l=s.getBasePixel(),c=s.isHorizontal(),u=this._getRuler(),{sharedOptions:d,includeOptions:p}=this._getSharedOptions(n,i);for(let h=n;h<n+r;h++){const g=this.getParsed(h),m=o||ze(g[s.axis])?{base:l,head:l}:this._calculateBarValuePixels(h),v=this._calculateBarIndexPixels(h,u),y=(g._stacks||{})[s.axis],S={horizontal:c,base:m.base,enableBorderRadius:!y||Dh(g._custom)||a===y._top||a===y._bottom,x:c?m.head:v.center,y:c?v.center:m.head,height:c?v.size:Math.abs(m.size),width:c?Math.abs(m.size):v.size};p&&(S.options=d||this.resolveDataElementOptions(h,t[h].active?"active":i));const x=S.options||t[h].options;ZJ(S,x,y,a),QJ(S,x,u.ratio),this.updateElement(t[h],h,S,i)}}_getStacks(t,n){const{iScale:r}=this._cachedMeta,i=r.getMatchingVisibleMetas(this._type).filter(u=>u.controller.options.grouped),o=r.options.stacked,a=[],s=this._cachedMeta.controller.getParsed(n),l=s&&s[r.axis],c=u=>{const d=u._parsed.find(h=>h[r.axis]===l),p=d&&d[u.vScale.axis];if(ze(p)||isNaN(p))return!0};for(const u of i)if(!(n!==void 0&&c(u))&&((o===!1||a.indexOf(u.stack)===-1||o===void 0&&u.stack===void 0)&&a.push(u.stack),u.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,n=this.chart.options.indexAxis;return Object.keys(t).filter(r=>t[r].axis===n).shift()}_getAxis(){const t={},n=this.getFirstScaleIdForIndexAxis();for(const r of this.chart.data.datasets)t[Oe(this.chart.options.indexAxis==="x"?r.xAxisID:r.yAxisID,n)]=!0;return Object.keys(t)}_getStackIndex(t,n,r){const i=this._getStacks(t,r),o=n!==void 0?i.indexOf(n):-1;return o===-1?i.length-1:o}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,i=[];let o,a;for(o=0,a=n.data.length;o<a;++o)i.push(r.getPixelForValue(this.getParsed(o)[r.axis],o));const s=t.barThickness;return{min:s||HJ(n),pixels:i,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:s?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:r,index:i},options:{base:o,minBarLength:a}}=this,s=o||0,l=this.getParsed(t),c=l._custom,u=Dh(c);let d=l[n.axis],p=0,h=r?this.applyStack(n,l,r):d,g,m;h!==d&&(p=h-d,h=d),u&&(d=c.barStart,h=c.barEnd-c.barStart,d!==0&&Mr(d)!==Mr(c.barEnd)&&(p=0),p+=d);const v=!ze(o)&&!u?o:p;let y=n.getPixelForValue(v);if(this.chart.getDataVisibility(t)?g=n.getPixelForValue(p+h):g=y,m=g-y,Math.abs(m)<a){m=GJ(m,n,s)*a,d===s&&(y-=m/2);const S=n.getPixelForDecimal(0),x=n.getPixelForDecimal(1),b=Math.min(S,x),O=Math.max(S,x);y=Math.max(Math.min(y,O),b),g=y+m,r&&!u&&(l._stacks[n.axis]._visualValues[i]=n.getValueForPixel(g)-n.getValueForPixel(y))}if(y===n.getPixelForValue(s)){const S=Mr(m)*n.getLineWidthForValue(s)/2;y+=S,m-=S}return{size:m,base:y,head:g,center:g+m/2}}_calculateBarIndexPixels(t,n){const r=n.scale,i=this.options,o=i.skipNull,a=Oe(i.maxBarThickness,1/0);let s,l;const c=this._getAxisCount();if(n.grouped){const u=o?this._getStackCount(t):n.stackCount,d=i.barThickness==="flex"?KJ(t,n,i,u*c):qJ(t,n,i,u*c),p=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,h=this._getAxis().indexOf(Oe(p,this.getFirstScaleIdForIndexAxis())),g=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0)+h;s=d.start+d.chunk*g+d.chunk/2,l=Math.min(a,d.chunk*d.ratio)}else s=r.getPixelForValue(this.getParsed(t)[r.axis],t),l=Math.min(a,n.min*n.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,r=t.data,i=r.length;let o=0;for(;o<i;++o)this.getParsed(o)[n.axis]!==null&&!r[o].hidden&&r[o].draw(this._ctx)}}function tQ(e,t,n){let r=1,i=1,o=0,a=0;if(t<Ot){const s=e,l=s+t,c=Math.cos(s),u=Math.sin(s),d=Math.cos(l),p=Math.sin(l),h=(x,b,O)=>ml(x,s,l,!0)?1:Math.max(b,b*n,O,O*n),g=(x,b,O)=>ml(x,s,l,!0)?-1:Math.min(b,b*n,O,O*n),m=h(0,c,d),v=h(It,u,p),y=g(tt,c,d),S=g(tt+It,u,p);r=(m-y)/2,i=(v-S)/2,o=-(m+y)/2,a=-(v+S)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:a}}class nQ extends Cf{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((o,a)=>{const l=t.getDatasetMeta(0).controller.getStyle(a);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}};constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let o=l=>+r[l];if(Ae(r[t])){const{key:l="value"}=this._parsing;o=c=>+Do(r[c],l)}let a,s;for(a=t,s=t+n;a<s;++a)i._parsed[a]=o(a)}}_getRotation(){return Jr(this.options.rotation-90)}_getCircumference(){return Jr(this.options.circumference)}_getRotationExtents(){let t=Ot,n=-Ot;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const i=this.chart.getDatasetMeta(r).controller,o=i._getRotation(),a=i._getCircumference();t=Math.min(t,o),n=Math.max(n,o+a)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,i=this._cachedMeta,o=i.data,a=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,s=Math.max((Math.min(r.width,r.height)-a)/2,0),l=Math.min(oZ(this.options.cutout,s),1),c=this._getRingWeight(this.index),{circumference:u,rotation:d}=this._getRotationExtents(),{ratioX:p,ratioY:h,offsetX:g,offsetY:m}=tQ(d,u,l),v=(r.width-a)/p,y=(r.height-a)/h,S=Math.max(Math.min(v,y)/2,0),x=mk(this.options.radius,S),b=Math.max(x*l,0),O=(x-b)/this._getVisibleDatasetWeightTotal();this.offsetX=g*x,this.offsetY=m*x,i.total=this.calculateTotal(),this.outerRadius=x-O*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-O*c,0),this.updateElements(o,0,o.length,t)}_circumference(t,n){const r=this.options,i=this._cachedMeta,o=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*o/Ot)}updateElements(t,n,r,i){const o=i==="reset",a=this.chart,s=a.chartArea,c=a.options.animation,u=(s.left+s.right)/2,d=(s.top+s.bottom)/2,p=o&&c.animateScale,h=p?0:this.innerRadius,g=p?0:this.outerRadius,{sharedOptions:m,includeOptions:v}=this._getSharedOptions(n,i);let y=this._getRotation(),S;for(S=0;S<n;++S)y+=this._circumference(S,o);for(S=n;S<n+r;++S){const x=this._circumference(S,o),b=t[S],O={x:u+this.offsetX,y:d+this.offsetY,startAngle:y,endAngle:y+x,circumference:x,outerRadius:g,innerRadius:h};v&&(O.options=m||this.resolveDataElementOptions(S,b.active?"active":i)),y+=x,this.updateElement(b,S,O,i)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,i;for(i=0;i<n.length;i++){const o=t._parsed[i];o!==null&&!isNaN(o)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(r+=Math.abs(o))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?Ot*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=Wy(n._parsed[t],r.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,o,a,s,l;if(!t){for(i=0,o=r.data.datasets.length;i<o;++i)if(r.isDatasetVisible(i)){a=r.getDatasetMeta(i),t=a.data,s=a.controller;break}}if(!t)return 0;for(i=0,o=t.length;i<o;++i)l=s.resolveDataElementOptions(i),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,i=t.length;r<i;++r){const o=this.resolveDataElementOptions(r);n=Math.max(n,o.offset||0,o.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(t){return Math.max(Oe(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class rQ extends Cf{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:o}=n,a=this.chart._animationsDisabled;let{start:s,count:l}=_Z(n,i,a);this._drawStart=s,this._drawCount=l,PZ(n)&&(s=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(r,void 0,{animated:!a,options:c},t),this.updateElements(i,s,l,t)}updateElements(t,n,r,i){const o=i==="reset",{iScale:a,vScale:s,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(n,i),p=a.axis,h=s.axis,{spanGaps:g,segment:m}=this.options,v=hl(g)?g:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||o||i==="none",S=n+r,x=t.length;let b=n>0&&this.getParsed(n-1);for(let O=0;O<x;++O){const E=t[O],C=y?E:{};if(O<n||O>=S){C.skip=!0;continue}const T=this.getParsed(O),k=ze(T[h]),R=C[p]=a.getPixelForValue(T[p],O),M=C[h]=o||k?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,T,l):T[h],O);C.skip=isNaN(R)||isNaN(M)||k,C.stop=O>0&&Math.abs(T[p]-b[p])>v,m&&(C.parsed=T,C.raw=c.data[O]),d&&(C.options=u||this.resolveDataElementOptions(O,E.active?"active":i)),y||this.updateElement(E,O,C,i),b=T}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const o=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}function no(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Jy{static override(t){Object.assign(Jy.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return no()}parse(){return no()}format(){return no()}add(){return no()}diff(){return no()}startOf(){return no()}endOf(){return no()}}var iQ={_date:Jy};function oQ(e,t,n,r){const{controller:i,data:o,_sorted:a}=e,s=i._cachedMeta.iScale,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(s&&t===s.axis&&t!=="r"&&a&&o.length){const c=s._reversePixels?xZ:bo;if(r){if(i._sharedOptions){const u=o[0],d=typeof u.getRange=="function"&&u.getRange(t);if(d){const p=c(o,t,n-d),h=c(o,t,n+d);return{lo:p.lo,hi:h.hi}}}}else{const u=c(o,t,n);if(l){const{vScale:d}=i._cachedMeta,{_parsed:p}=e,h=p.slice(0,u.lo+1).reverse().findIndex(m=>!ze(m[d.axis]));u.lo-=Math.max(0,h);const g=p.slice(u.hi).findIndex(m=>!ze(m[d.axis]));u.hi+=Math.max(0,g)}return u}}return{lo:0,hi:o.length-1}}function Tf(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),a=n[t];for(let s=0,l=o.length;s<l;++s){const{index:c,data:u}=o[s],{lo:d,hi:p}=oQ(o[s],t,a,i);for(let h=d;h<=p;++h){const g=u[h];g.skip||r(g,c,h)}}}function aQ(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){const o=t?Math.abs(r.x-i.x):0,a=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(a,2))}}function Ih(e,t,n,r,i){const o=[];return!i&&!e.isPointInArea(t)||Tf(e,n,t,function(s,l,c){!i&&!gl(s,e.chartArea,0)||s.inRange(t.x,t.y,r)&&o.push({element:s,datasetIndex:l,index:c})},!0),o}function sQ(e,t,n,r){let i=[];function o(a,s,l){const{startAngle:c,endAngle:u}=a.getProps(["startAngle","endAngle"],r),{angle:d}=yk(a,{x:t.x,y:t.y});ml(d,c,u)&&i.push({element:a,datasetIndex:s,index:l})}return Tf(e,n,t,o),i}function lQ(e,t,n,r,i,o){let a=[];const s=aQ(n);let l=Number.POSITIVE_INFINITY;function c(u,d,p){const h=u.inRange(t.x,t.y,i);if(r&&!h)return;const g=u.getCenterPoint(i);if(!(!!o||e.isPointInArea(g))&&!h)return;const v=s(t,g);v<l?(a=[{element:u,datasetIndex:d,index:p}],l=v):v===l&&a.push({element:u,datasetIndex:d,index:p})}return Tf(e,n,t,c),a}function $h(e,t,n,r,i,o){return!o&&!e.isPointInArea(t)?[]:n==="r"&&!r?sQ(e,t,n,i):lQ(e,t,n,r,i,o)}function jS(e,t,n,r,i){const o=[],a=n==="x"?"inXRange":"inYRange";let s=!1;return Tf(e,n,t,(l,c,u)=>{l[a]&&l[a](t[n],i)&&(o.push({element:l,datasetIndex:c,index:u}),s=s||l.inRange(t.x,t.y,i))}),r&&!s?[]:o}var cQ={modes:{index(e,t,n,r){const i=co(t,e),o=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?Ih(e,i,o,r,a):$h(e,i,o,!1,r,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const u=s[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(e,t,n,r){const i=co(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?Ih(e,i,o,r,a):$h(e,i,o,!1,r,a);if(s.length>0){const l=s[0].datasetIndex,c=e.getDatasetMeta(l).data;s=[];for(let u=0;u<c.length;++u)s.push({element:c[u],datasetIndex:l,index:u})}return s},point(e,t,n,r){const i=co(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;return Ih(e,i,o,r,a)},nearest(e,t,n,r){const i=co(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;return $h(e,i,o,n.intersect,r,a)},x(e,t,n,r){const i=co(t,e);return jS(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=co(t,e);return jS(e,i,"y",n.intersect,r)}}};const Lk=["left","top","right","bottom"];function hs(e,t){return e.filter(n=>n.pos===t)}function NS(e,t){return e.filter(n=>Lk.indexOf(n.pos)===-1&&n.box.axis===t)}function ms(e,t){return e.sort((n,r)=>{const i=t?r:n,o=t?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function uQ(e){const t=[];let n,r,i,o,a,s;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:o,options:{stack:a,stackWeight:s=1}}=i,t.push({index:n,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:a&&o+a,stackWeight:s});return t}function dQ(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:o}=n;if(!r||!Lk.includes(i))continue;const a=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=o}return t}function fQ(e,t){const n=dQ(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let o,a,s;for(o=0,a=e.length;o<a;++o){s=e[o];const{fullSize:l}=s.box,c=n[s.stack],u=c&&s.stackWeight/c.weight;s.horizontal?(s.width=u?u*r:l&&t.availableWidth,s.height=i):(s.width=r,s.height=u?u*i:l&&t.availableHeight)}return n}function pQ(e){const t=uQ(e),n=ms(t.filter(c=>c.box.fullSize),!0),r=ms(hs(t,"left"),!0),i=ms(hs(t,"right")),o=ms(hs(t,"top"),!0),a=ms(hs(t,"bottom")),s=NS(t,"x"),l=NS(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(a).concat(s),chartArea:hs(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(a).concat(s)}}function RS(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function Fk(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function hQ(e,t,n,r){const{pos:i,box:o}=n,a=e.maxPadding;if(!Ae(i)){n.size&&(e[i]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?o.height:o.width),n.size=d.size/d.count,e[i]+=n.size}o.getPadding&&Fk(a,o.getPadding());const s=Math.max(0,t.outerWidth-RS(a,e,"left","right")),l=Math.max(0,t.outerHeight-RS(a,e,"top","bottom")),c=s!==e.w,u=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function mQ(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function gQ(e,t){const n=t.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(a=>{o[a]=Math.max(t[a],n[a])}),o}return r(e?["left","right"]:["top","bottom"])}function Ts(e,t,n,r){const i=[];let o,a,s,l,c,u;for(o=0,a=e.length,c=0;o<a;++o){s=e[o],l=s.box,l.update(s.width||t.w,s.height||t.h,gQ(s.horizontal,t));const{same:d,other:p}=hQ(t,n,s,r);c|=d&&i.length,u=u||p,l.fullSize||i.push(s)}return c&&Ts(i,t,n,r)||u}function Bc(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function DS(e,t,n,r){const i=n.padding;let{x:o,y:a}=t;for(const s of e){const l=s.box,c=r[s.stack]||{placed:0,weight:1},u=s.stackWeight/c.weight||1;if(s.horizontal){const d=t.w*u,p=c.size||l.height;pl(c.start)&&(a=c.start),l.fullSize?Bc(l,i.left,a,n.outerWidth-i.right-i.left,p):Bc(l,t.left+c.placed,a,d,p),c.start=a,c.placed+=d,a=l.bottom}else{const d=t.h*u,p=c.size||l.width;pl(c.start)&&(o=c.start),l.fullSize?Bc(l,o,i.top,p,n.outerHeight-i.bottom-i.top):Bc(l,o,t.top+c.placed,p,d),c.start=o,c.placed+=d,o=l.right}}t.x=o,t.y=a}var _i={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const i=pr(e.options.layout.padding),o=Math.max(t-i.width,0),a=Math.max(n-i.height,0),s=pQ(e.boxes),l=s.vertical,c=s.horizontal;Ue(e.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const u=l.reduce((m,v)=>v.box.options&&v.box.options.display===!1?m:m+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/u,hBoxMaxHeight:a/2}),p=Object.assign({},i);Fk(p,pr(r));const h=Object.assign({maxPadding:p,w:o,h:a,x:i.left,y:i.top},i),g=fQ(l.concat(c),d);Ts(s.fullSize,h,d,g),Ts(l,h,d,g),Ts(c,h,d,g)&&Ts(l,h,d,g),mQ(h),DS(s.leftAndTop,h,d,g),h.x+=h.w,h.y+=h.h,DS(s.rightAndBottom,h,d,g),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Ue(s.chartArea,m=>{const v=m.box;Object.assign(v,e.chartArea),v.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class Bk{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class vQ extends Bk{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const nu="$chartjs",yQ={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},IS=e=>e===null||e==="";function bQ(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[nu]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",IS(i)){const o=bS(e,"width");o!==void 0&&(e.width=o)}if(IS(r))if(e.style.height==="")e.height=e.width/(t||2);else{const o=bS(e,"height");o!==void 0&&(e.height=o)}return e}const zk=mJ?{passive:!0}:!1;function xQ(e,t,n){e&&e.addEventListener(t,n,zk)}function wQ(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,zk)}function OQ(e,t){const n=yQ[e.type]||e.type,{x:r,y:i}=co(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function fd(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function SQ(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||fd(s.addedNodes,r),a=a&&!fd(s.removedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function EQ(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||fd(s.removedNodes,r),a=a&&!fd(s.addedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const vl=new Map;let $S=0;function Vk(){const e=window.devicePixelRatio;e!==$S&&($S=e,vl.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function _Q(e,t){vl.size||window.addEventListener("resize",Vk),vl.set(e,t)}function PQ(e){vl.delete(e),vl.size||window.removeEventListener("resize",Vk)}function CQ(e,t,n){const r=e.canvas,i=r&&Zy(r);if(!i)return;const o=Ok((s,l)=>{const c=i.clientWidth;n(s,l),c<i.clientWidth&&n()},window),a=new ResizeObserver(s=>{const l=s[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||o(c,u)});return a.observe(i),_Q(e,o),a}function Lh(e,t,n){n&&n.disconnect(),t==="resize"&&PQ(e)}function TQ(e,t,n){const r=e.canvas,i=Ok(o=>{e.ctx!==null&&n(OQ(o,e))},e);return xQ(r,t,i),i}class AQ extends Bk{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(bQ(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[nu])return!1;const r=n[nu].initial;["height","width"].forEach(o=>{const a=r[o];ze(a)?n.removeAttribute(o):n.setAttribute(o,a)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[nu],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),a={attach:SQ,detach:EQ,resize:CQ}[n]||TQ;i[n]=a(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:Lh,detach:Lh,resize:Lh}[n]||wQ)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return hJ(t,n,r,i)}isAttached(t){const n=t&&Zy(t);return!!(n&&n.isConnected)}}function kQ(e){return!Xy()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?vQ:AQ}let qi=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return hl(this.x)&&hl(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}};function MQ(e,t){const n=e.options.ticks,r=jQ(e),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?RQ(t):[],a=o.length,s=o[0],l=o[a-1],c=[];if(a>i)return DQ(t,c,o,a/i),c;const u=NQ(o,t,i);if(a>0){let d,p;const h=a>1?Math.round((l-s)/(a-1)):null;for(zc(t,c,u,ze(h)?0:s-h,s),d=0,p=a-1;d<p;d++)zc(t,c,u,o[d],o[d+1]);return zc(t,c,u,l,ze(h)?t.length:l+h),c}return zc(t,c,u),c}function jQ(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}function NQ(e,t,n){const r=IQ(e),i=t.length/n;if(!r)return Math.max(i,1);const o=pZ(r);for(let a=0,s=o.length-1;a<s;a++){const l=o[a];if(l>i)return l}return Math.max(i,1)}function RQ(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function DQ(e,t,n,r){let i=0,o=n[0],a;for(r=Math.ceil(r),a=0;a<e.length;a++)a===o&&(t.push(e[a]),i++,o=n[i*r])}function zc(e,t,n,r,i){const o=Oe(r,0),a=Math.min(Oe(i,e.length),e.length);let s=0,l,c,u;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),u=o;u<0;)s++,u=Math.round(o+s*n);for(c=Math.max(o,0);c<a;c++)c===u&&(t.push(e[c]),s++,u=Math.round(o+s*n))}function IQ(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const $Q=e=>e==="left"?"right":e==="right"?"left":e,LS=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,FS=(e,t)=>Math.min(t||e,e);function BS(e,t){const n=[],r=e.length/t,i=e.length;let o=0;for(;o<i;o+=r)n.push(e[Math.floor(o)]);return n}function LQ(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),o=e._startPixel,a=e._endPixel,s=1e-6;let l=e.getPixelForTick(i),c;if(!(n&&(r===1?c=Math.max(l-o,a-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(i-1))/2,l+=i<t?c:-c,l<o-s||l>a+s)))return l}function FQ(e,t){Ue(e,n=>{const r=n.gc,i=r.length/2;let o;if(i>t){for(o=0;o<i;++o)delete n.data[r[o]];r.splice(0,i)}})}function gs(e){return e.drawTicks?e.tickLength:0}function zS(e,t){if(!e.display)return 0;const n=Sn(e.font,t),r=pr(e.padding);return(Wt(e.text)?e.text.length:1)*n.lineHeight+r.height}function BQ(e,t){return Uo(e,{scale:t,type:"scale"})}function zQ(e,t,n){return Uo(e,{tick:n,index:t,type:"tick"})}function VQ(e,t,n){let r=Sk(e);return(n&&t!=="right"||!n&&t==="right")&&(r=$Q(r)),r}function WQ(e,t,n,r){const{top:i,left:o,bottom:a,right:s,chart:l}=e,{chartArea:c,scales:u}=l;let d=0,p,h,g;const m=a-i,v=s-o;if(e.isHorizontal()){if(h=Mn(r,o,s),Ae(n)){const y=Object.keys(n)[0],S=n[y];g=u[y].getPixelForValue(S)+m-t}else n==="center"?g=(c.bottom+c.top)/2+m-t:g=LS(e,n,t);p=s-o}else{if(Ae(n)){const y=Object.keys(n)[0],S=n[y];h=u[y].getPixelForValue(S)-v+t}else n==="center"?h=(c.left+c.right)/2-v+t:h=LS(e,n,t);g=Mn(r,a,i),d=n==="left"?-It:It}return{titleX:h,titleY:g,maxWidth:p,rotation:d}}class Ya extends qi{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return t=xr(t,Number.POSITIVE_INFINITY),n=xr(n,Number.NEGATIVE_INFINITY),r=xr(r,Number.POSITIVE_INFINITY),i=xr(i,Number.NEGATIVE_INFINITY),{min:xr(t,r),max:xr(n,i),minDefined:sr(t),maxDefined:sr(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:o}=this.getUserBounds(),a;if(i&&o)return{min:n,max:r};const s=this.getMatchingVisibleMetas();for(let l=0,c=s.length;l<c;++l)a=s[l].controller.getMinMax(this,t),i||(n=Math.min(n,a.min)),o||(r=Math.max(r,a.max));return n=o&&n>r?r:n,r=i&&n>r?n:r,{min:xr(n,xr(r,n)),max:xr(r,xr(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){lt(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=qZ(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s<this.ticks.length;this._convertTicksToLabels(l?BS(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source==="auto")&&(this.ticks=MQ(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){lt(this.options.afterUpdate,[this])}beforeSetDimensions(){lt(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){lt(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),lt(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){lt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,i,o;for(r=0,i=t.length;r<i;r++)o=t[r],o.label=lt(n.callback,[o.value,r,t],this)}afterTickToLabelConversion(){lt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){lt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=FS(this.ticks.length,t.ticks.maxTicksLimit),i=n.minRotation||0,o=n.maxRotation;let a=i,s,l,c;if(!this._isVisible()||!n.display||i>=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const u=this._getLabelSizes(),d=u.widest.width,p=u.highest.height,h=ln(this.chart.width-d,0,this.maxWidth);s=t.offset?this.maxWidth/r:h/(r-1),d+6>s&&(s=h/(r-(t.offset?.5:1)),l=this.maxHeight-gs(t.grid)-n.padding-zS(t.title,this.chart.options.font),c=Math.sqrt(d*d+p*p),a=vZ(Math.min(Math.asin(ln((u.highest.height+6)/s,-1,1)),Math.asin(ln(l/c,-1,1))-Math.asin(ln(p/c,-1,1)))),a=Math.max(i,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){lt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){lt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){const l=zS(i,n.options.font);if(s?(t.width=this.maxWidth,t.height=gs(o)+l):(t.height=this.maxHeight,t.width=gs(o)+l),r.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:p}=this._getLabelSizes(),h=r.padding*2,g=Jr(this.labelRotation),m=Math.cos(g),v=Math.sin(g);if(s){const y=r.mirror?0:v*d.width+m*p.height;t.height=Math.min(this.maxHeight,t.height+y+h)}else{const y=r.mirror?0:m*d.width+v*p.height;t.width=Math.min(this.maxWidth,t.width+y+h)}this._calculatePadding(c,u,v,m)}}this._handleMargins(),s?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:o,padding:a},position:s}=this.options,l=this.labelRotation!==0,c=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let p=0,h=0;l?c?(p=i*t.width,h=r*n.height):(p=r*t.height,h=i*n.width):o==="start"?h=n.width:o==="end"?p=t.width:o!=="inner"&&(p=t.width/2,h=n.width/2),this.paddingLeft=Math.max((p-u+a)*this.width/(this.width-u),0),this.paddingRight=Math.max((h-d+a)*this.width/(this.width-d),0)}else{let u=n.height/2,d=t.height/2;o==="start"?(u=0,d=t.height):o==="end"&&(u=n.height,d=0),this.paddingTop=u+a,this.paddingBottom=d+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){lt(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)ze(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=BS(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:i,_longestTextCache:o}=this,a=[],s=[],l=Math.floor(n/FS(n,r));let c=0,u=0,d,p,h,g,m,v,y,S,x,b,O;for(d=0;d<n;d+=l){if(g=t[d].label,m=this._resolveTickFontOptions(d),i.font=v=m.string,y=o[v]=o[v]||{data:{},gc:[]},S=m.lineHeight,x=b=0,!ze(g)&&!Wt(g))x=hS(i,y.data,y.gc,x,g),b=S;else if(Wt(g))for(p=0,h=g.length;p<h;++p)O=g[p],!ze(O)&&!Wt(O)&&(x=hS(i,y.data,y.gc,x,O),b+=S);a.push(x),s.push(b),c=Math.max(x,c),u=Math.max(b,u)}FQ(o,n);const E=a.indexOf(c),C=s.indexOf(u),T=k=>({width:a[k]||0,height:s[k]||0});return{first:T(0),last:T(n-1),widest:T(E),highest:T(C),widths:a,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return bZ(this._alignToPixels?to(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=zQ(this.getContext(),t,r))}return this.$context||(this.$context=BQ(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=Jr(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),o=this._getLabelSizes(),a=t.autoSkipPadding||0,s=o?o.widest.width+a:0,l=o?o.highest.height+a:0;return this.isHorizontal()?l*r>s*i?s/r:l/i:l*i<s*r?l/r:s/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:a,border:s}=i,l=o.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),p=gs(o),h=[],g=s.setContext(this.getContext()),m=g.display?g.width:0,v=m/2,y=function(L){return to(r,L,m)};let S,x,b,O,E,C,T,k,R,M,P,D;if(a==="top")S=y(this.bottom),C=this.bottom-p,k=S-v,M=y(t.top)+v,D=t.bottom;else if(a==="bottom")S=y(this.top),M=t.top,D=y(t.bottom)-v,C=S+v,k=this.top+p;else if(a==="left")S=y(this.right),E=this.right-p,T=S-v,R=y(t.left)+v,P=t.right;else if(a==="right")S=y(this.left),R=t.left,P=y(t.right)-v,E=S+v,T=this.left+p;else if(n==="x"){if(a==="center")S=y((t.top+t.bottom)/2+.5);else if(Ae(a)){const L=Object.keys(a)[0],B=a[L];S=y(this.chart.scales[L].getPixelForValue(B))}M=t.top,D=t.bottom,C=S+v,k=C+p}else if(n==="y"){if(a==="center")S=y((t.left+t.right)/2);else if(Ae(a)){const L=Object.keys(a)[0],B=a[L];S=y(this.chart.scales[L].getPixelForValue(B))}E=S-v,T=E-p,R=t.left,P=t.right}const j=Oe(i.ticks.maxTicksLimit,d),N=Math.max(1,Math.ceil(d/j));for(x=0;x<d;x+=N){const L=this.getContext(x),B=o.setContext(L),K=s.setContext(L),z=B.lineWidth,F=B.color,G=K.dash||[],Y=K.dashOffset,ne=B.tickWidth,Q=B.tickColor,X=B.tickBorderDash||[],te=B.tickBorderDashOffset;b=LQ(this,x,l),b!==void 0&&(O=to(r,b,z),c?E=T=R=P=O:C=k=M=D=O,h.push({tx1:E,ty1:C,tx2:T,ty2:k,x1:R,y1:M,x2:P,y2:D,width:z,color:F,borderDash:G,borderDashOffset:Y,tickWidth:ne,tickColor:Q,tickBorderDash:X,tickBorderDashOffset:te}))}return this._ticksLength=d,this._borderValue=S,h}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:o}=r,a=this.isHorizontal(),s=this.ticks,{align:l,crossAlign:c,padding:u,mirror:d}=o,p=gs(r.grid),h=p+u,g=d?-u:h,m=-Jr(this.labelRotation),v=[];let y,S,x,b,O,E,C,T,k,R,M,P,D="middle";if(i==="top")E=this.bottom-g,C=this._getXAxisLabelAlignment();else if(i==="bottom")E=this.top+g,C=this._getXAxisLabelAlignment();else if(i==="left"){const N=this._getYAxisLabelAlignment(p);C=N.textAlign,O=N.x}else if(i==="right"){const N=this._getYAxisLabelAlignment(p);C=N.textAlign,O=N.x}else if(n==="x"){if(i==="center")E=(t.top+t.bottom)/2+h;else if(Ae(i)){const N=Object.keys(i)[0],L=i[N];E=this.chart.scales[N].getPixelForValue(L)+h}C=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")O=(t.left+t.right)/2-h;else if(Ae(i)){const N=Object.keys(i)[0],L=i[N];O=this.chart.scales[N].getPixelForValue(L)}C=this._getYAxisLabelAlignment(p).textAlign}n==="y"&&(l==="start"?D="top":l==="end"&&(D="bottom"));const j=this._getLabelSizes();for(y=0,S=s.length;y<S;++y){x=s[y],b=x.label;const N=o.setContext(this.getContext(y));T=this.getPixelForTick(y)+o.labelOffset,k=this._resolveTickFontOptions(y),R=k.lineHeight,M=Wt(b)?b.length:1;const L=M/2,B=N.color,K=N.textStrokeColor,z=N.textStrokeWidth;let F=C;a?(O=T,C==="inner"&&(y===S-1?F=this.options.reverse?"left":"right":y===0?F=this.options.reverse?"right":"left":F="center"),i==="top"?c==="near"||m!==0?P=-M*R+R/2:c==="center"?P=-j.highest.height/2-L*R+R:P=-j.highest.height+R/2:c==="near"||m!==0?P=R/2:c==="center"?P=j.highest.height/2-L*R:P=j.highest.height-M*R,d&&(P*=-1),m!==0&&!N.showLabelBackdrop&&(O+=R/2*Math.sin(m))):(E=T,P=(1-M)*R/2);let G;if(N.showLabelBackdrop){const Y=pr(N.backdropPadding),ne=j.heights[y],Q=j.widths[y];let X=P-Y.top,te=0-Y.left;switch(D){case"middle":X-=ne/2;break;case"bottom":X-=ne;break}switch(C){case"center":te-=Q/2;break;case"right":te-=Q;break;case"inner":y===S-1?te-=Q:y>0&&(te-=Q/2);break}G={left:te,top:X,width:Q+Y.width,height:ne+Y.height,color:N.backdropColor}}v.push({label:b,font:k,textOffset:P,options:{rotation:m,color:B,strokeColor:K,strokeWidth:z,textAlign:F,textBaseline:D,translation:[O,E],backdrop:G}})}return v}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-Jr(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:o}}=this.options,a=this._getLabelSizes(),s=t+o,l=a.widest.width;let c,u;return n==="left"?i?(u=this.right+o,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-s,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?i?(u=this.left+o,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+s,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:o,height:a}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,o,a),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(o=>o.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,a;const s=(l,c,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(o=0,a=i.length;o<a;++o){const l=i[o];n.drawOnChartArea&&s({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&s({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:i}}=this,o=r.setContext(this.getContext()),a=r.display?o.width:0;if(!a)return;const s=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,u,d,p;this.isHorizontal()?(c=to(t,this.left,a)-a/2,u=to(t,this.right,s)+s/2,d=p=l):(d=to(t,this.top,a)-a/2,p=to(t,this.bottom,s)+s/2,c=u=l),n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.beginPath(),n.moveTo(c,d),n.lineTo(u,p),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&Uy(r,i);const o=this.getLabelItems(t);for(const a of o){const s=a.options,l=a.font,c=a.label,u=a.textOffset;cd(r,c,0,u,l,s)}i&&Hy(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const o=Sn(r.font),a=pr(r.padding),s=r.align;let l=o.lineHeight/2;n==="bottom"||n==="center"||Ae(n)?(l+=a.bottom,Wt(r.text)&&(l+=o.lineHeight*(r.text.length-1))):l+=a.top;const{titleX:c,titleY:u,maxWidth:d,rotation:p}=WQ(this,l,n,s);cd(t,r.text,0,0,o,{color:r.color,maxWidth:d,rotation:p,textAlign:VQ(s,n,i),textBaseline:"middle",translation:[c,u]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=Oe(t.grid&&t.grid.z,-1),i=Oe(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Ya.prototype.draw?[{z:n,draw:o=>{this.draw(o)}}]:[{z:r,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,a;for(o=0,a=n.length;o<a;++o){const s=n[o];s[r]===this.id&&(!t||s.type===t)&&i.push(s)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return Sn(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Vc{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;qQ(n)&&(r=this.register(n));const i=this.items,o=t.id,a=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,UQ(t,a,r),this.override&&Ct.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,i=this.scope;r in n&&delete n[r],i&&r in Ct[i]&&(delete Ct[i][r],this.override&&delete Io[r])}}function UQ(e,t,n){const r=fl(Object.create(null),[n?Ct.get(n):{},Ct.get(t),e.defaults]);Ct.set(t,r),e.defaultRoutes&&HQ(t,e.defaultRoutes),e.descriptors&&Ct.describe(t,e.descriptors)}function HQ(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");Ct.route(o,i,l,s)})}function qQ(e){return"id"in e&&"defaults"in e}class KQ{constructor(){this.controllers=new Vc(Cf,"datasets",!0),this.elements=new Vc(qi,"elements"),this.plugins=new Vc(Object,"plugins"),this.scales=new Vc(Ya,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):Ue(i,a=>{const s=r||this._getRegistryForType(a);this._exec(t,s,a)})})}_exec(t,n,r){const i=By(t);lt(r["before"+i],[],r),n[t](r),lt(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}}var Or=new KQ;class YQ{constructor(){this._init=[]}notify(t,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=i?this._descriptors(t).filter(i):this._descriptors(t),a=this._notify(o,t,n,r);return n==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),a}_notify(t,n,r,i){i=i||{};for(const o of t){const a=o.plugin,s=a[r],l=[n,i,o.options];if(lt(s,l,a)===!1&&i.cancelable)return!1}return!0}invalidate(){ze(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,i=Oe(r.options&&r.options.plugins,{}),o=GQ(r);return i===!1&&!n?[]:ZQ(t,o,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(o,a)=>o.filter(s=>!a.some(l=>s.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function GQ(e){const t={},n=[],r=Object.keys(Or.plugins.items);for(let o=0;o<r.length;o++)n.push(Or.getPlugin(r[o]));const i=e.plugins||[];for(let o=0;o<i.length;o++){const a=i[o];n.indexOf(a)===-1&&(n.push(a),t[a.id]=!0)}return{plugins:n,localIds:t}}function XQ(e,t){return!t&&e===!1?null:e===!0?{}:e}function ZQ(e,{plugins:t,localIds:n},r,i){const o=[],a=e.getContext();for(const s of t){const l=s.id,c=XQ(r[l],i);c!==null&&o.push({plugin:s,options:JQ(e.config,{plugin:s,local:n[l]},c,a)})}return o}function JQ(e,{plugin:t,local:n},r,i){const o=e.pluginScopeKeys(t),a=e.getOptionScopes(r,o);return n&&t.defaults&&a.push(t.defaults),e.createResolver(a,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ig(e,t){const n=Ct.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function QQ(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function eee(e,t){return e===t?"_index_":"_value_"}function VS(e){if(e==="x"||e==="y"||e==="r")return e}function tee(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function og(e,...t){if(VS(e))return e;for(const n of t){const r=n.axis||tee(n.position)||e.length>1&&VS(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function WS(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function nee(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return WS(e,"x",n[0])||WS(e,"y",n[0])}return{}}function ree(e,t){const n=Io[e.type]||{scales:{}},r=t.scales||{},i=ig(e.type,t),o=Object.create(null);return Object.keys(r).forEach(a=>{const s=r[a];if(!Ae(s))return console.error(`Invalid scale configuration for scale: ${a}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const l=og(a,s,nee(a,e),Ct.scales[s.type]),c=eee(l,i),u=n.scales||{};o[a]=Ls(Object.create(null),[{axis:l},s,u[l],u[c]])}),e.data.datasets.forEach(a=>{const s=a.type||e.type,l=a.indexAxis||ig(s,t),u=(Io[s]||{}).scales||{};Object.keys(u).forEach(d=>{const p=QQ(d,l),h=a[p+"AxisID"]||p;o[h]=o[h]||Object.create(null),Ls(o[h],[{axis:p},r[h],u[d]])})}),Object.keys(o).forEach(a=>{const s=o[a];Ls(s,[Ct.scales[s.type],Ct.scale])}),o}function Wk(e){const t=e.options||(e.options={});t.plugins=Oe(t.plugins,{}),t.scales=ree(e,t)}function Uk(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function iee(e){return e=e||{},e.data=Uk(e.data),Wk(e),e}const US=new Map,Hk=new Set;function Wc(e,t){let n=US.get(e);return n||(n=t(),US.set(e,n),Hk.add(n)),n}const vs=(e,t,n)=>{const r=Do(t,n);r!==void 0&&e.add(r)};class oee{constructor(t){this._config=iee(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Uk(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Wk(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Wc(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Wc(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Wc(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Wc(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:o}=this,a=this._cachedScopes(t,r),s=a.get(n);if(s)return s;const l=new Set;n.forEach(u=>{t&&(l.add(t),u.forEach(d=>vs(l,t,d))),u.forEach(d=>vs(l,i,d)),u.forEach(d=>vs(l,Io[o]||{},d)),u.forEach(d=>vs(l,Ct,d)),u.forEach(d=>vs(l,ng,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Hk.has(n)&&a.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Io[n]||{},Ct.datasets[n]||{},{type:n},Ct,ng]}resolveNamedOptions(t,n,r,i=[""]){const o={$shared:!0},{resolver:a,subPrefixes:s}=HS(this._resolverCache,t,i);let l=a;if(see(a,n)){o.$shared=!1,r=$i(r)?r():r;const c=this.createResolver(t,r,s);l=Ma(a,r,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,r=[""],i){const{resolver:o}=HS(this._resolverCache,t,r);return Ae(n)?Ma(o,n,void 0,i):o}}function HS(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let o=r.get(i);return o||(o={resolver:Ky(t,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,o)),o}const aee=e=>Ae(e)&&Object.getOwnPropertyNames(e).some(t=>$i(e[t]));function see(e,t){const{isScriptable:n,isIndexable:r}=Ck(e);for(const i of t){const o=n(i),a=r(i),s=(a||o)&&e[i];if(o&&($i(s)||aee(s))||a&&Wt(s))return!0}return!1}var lee="4.5.0";const cee=["top","bottom","left","right","chartArea"];function qS(e,t){return e==="top"||e==="bottom"||cee.indexOf(e)===-1&&t==="x"}function KS(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function YS(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),lt(n&&n.onComplete,[e],t)}function uee(e){const t=e.chart,n=t.options.animation;lt(n&&n.onProgress,[e],t)}function qk(e){return Xy()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const ru={},GS=e=>{const t=qk(e);return Object.values(ru).filter(n=>n.canvas===t).pop()};function dee(e,t,n){const r=Object.keys(e);for(const i of r){const o=+i;if(o>=t){const a=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=a)}}}function fee(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}let Tn=class{static defaults=Ct;static instances=ru;static overrides=Io;static registry=Or;static version=lee;static getChart=GS;static register(...t){Or.add(...t),XS()}static unregister(...t){Or.remove(...t),XS()}constructor(t,n){const r=this.config=new oee(n),i=qk(t),o=GS(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||kQ(i)),this.platform.updateConfig(r);const s=this.platform.acquireContext(i,a.aspectRatio),l=s&&s.canvas,c=l&&l.height,u=l&&l.width;if(this.id=iZ(),this.ctx=s,this.canvas=l,this.width=u,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new YQ,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=SZ(d=>this.update(d),a.resizeDelay||0),this._dataChanges=[],ru[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Ur.listen(this,"complete",YS),Ur.listen(this,"progress",uee),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:o}=this;return ze(t)?n&&o?o:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Or}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():yS(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return mS(this.canvas,this.ctx),this}stop(){return Ur.stop(this),this}resize(t,n){Ur.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,t,n,o),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,yS(this,s,!0)&&(this.notifyPlugins("resize",{size:a}),lt(r.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Ue(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((a,s)=>(a[s]=!1,a),{});let o=[];n&&(o=o.concat(Object.keys(n).map(a=>{const s=n[a],l=og(a,s),c=l==="r",u=l==="x";return{options:s,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),Ue(o,a=>{const s=a.options,l=s.id,c=og(l,s),u=Oe(s.type,a.dtype);(s.position===void 0||qS(s.position,c)!==qS(a.dposition))&&(s.position=a.dposition),i[l]=!0;let d=null;if(l in r&&r[l].type===u)d=r[l];else{const p=Or.getScale(u);d=new p({id:l,type:u,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(s,t)}),Ue(i,(a,s)=>{a||delete r[s]}),Ue(r,a=>{_i.configure(this,a,a.options),_i.addBox(this,a)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,o)=>i.index-o.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(KS("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const o=n[r];let a=this.getDatasetMeta(r);const s=o.type||this.config.type;if(a.type&&a.type!==s&&(this._destroyDatasetMeta(r),a=this.getDatasetMeta(r)),a.type=s,a.indexAxis=o.indexAxis||ig(s,this.options),a.order=o.order||0,a.index=r,a.label=""+o.label,a.visible=this.isDatasetVisible(r),a.controller)a.controller.updateIndex(r),a.controller.linkScales();else{const l=Or.getController(s),{datasetElementType:c,dataElementType:u}=Ct.datasets[s];Object.assign(l,{dataElementType:Or.getElement(u),datasetElementType:c&&Or.getElement(c)}),a.controller=new l(this,r),t.push(a.controller)}}return this._updateMetasets(),t}_resetElements(){Ue(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let c=0,u=this.data.datasets.length;c<u;c++){const{controller:d}=this.getDatasetMeta(c),p=!i&&o.indexOf(d)===-1;d.buildOrUpdateElements(p),a=Math.max(+d.getMaxOverflow(),a)}a=this._minPadding=r.layout.autoPadding?a:0,this._updateLayout(a),i||Ue(o,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(KS("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){Ue(this.scales,t=>{_i.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!oS(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:o}of n){const a=r==="_removeElements"?-o:o;dee(t,i,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=o=>new Set(t.filter(a=>a[0]===o).map((a,s)=>s+","+a.splice(1).join(","))),i=r(0);for(let o=1;o<n;o++)if(!oS(i,r(o)))return;return Array.from(i).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;_i.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Ue(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,$i(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),i={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Ur.has(this)?this.attached&&!Ur.running(this)&&Ur.start(this):(this.draw(),YS({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,i)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let i,o;for(i=0,o=n.length;i<o;++i){const a=n[i];(!t||a.visible)&&r.push(a)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r={meta:t,index:t.index,cancelable:!0},i=AJ(this,t);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(i&&Uy(n,i),t.controller.draw(),i&&Hy(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return gl(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const o=cQ.modes[n];return typeof o=="function"?o(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=Uo(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,i);pl(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(o,{visible:r}),this.update(s=>s.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),Ur.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),mS(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete ru[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,r=(o,a)=>{n.addEventListener(this,o,a),t[o]=a},i=(o,a,s)=>{o.offsetX=a,o.offsetY=s,this._eventHandler(o)};Ue(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let a;const s=()=>{i("attach",s),this.attached=!0,this.resize(),r("resize",o),r("detach",a)};a=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",s)},n.isAttached(this.canvas)?s():a()}unbindEvents(){Ue(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Ue(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let o,a,s,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),s=0,l=t.length;s<l;++s){a=t[s];const c=a&&this.getDatasetMeta(a.datasetIndex).controller;c&&c[i+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:o,index:a})=>{const s=this.getDatasetMeta(o);if(!s)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:s.data[a],index:a}});!ad(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,o=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),a=o(n,t),s=r?t:o(t,n);a.length&&this.updateHoverStyle(a,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const o=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:o}=this,a=n,s=this._getActiveElements(t,i,r,a),l=uZ(t),c=fee(t,this._lastEvent,r,l);r&&(this._lastEvent=null,lt(o.onHover,[t,s,this],this),l&<(o.onClick,[t,s,this],this));const u=!ad(s,i);return(u||n)&&(this._active=s,this._updateHoverStyles(s,i,n)),this._lastEvent=c,u}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}};function XS(){return Ue(Tn.instances,e=>e._plugins.invalidate())}function pee(e,t,n){const{startAngle:r,x:i,y:o,outerRadius:a,innerRadius:s,options:l}=t,{borderWidth:c,borderJoinStyle:u}=l,d=Math.min(c/a,dr(r-n));if(e.beginPath(),e.arc(i,o,a-c/2,r+d/2,n-d/2),s>0){const p=Math.min(c/s,dr(r-n));e.arc(i,o,s+c/2,n-p/2,r+p/2,!0)}else{const p=Math.min(c/2,a*dr(r-n));if(u==="round")e.arc(i,o,p,n-tt/2,r+tt/2,!0);else if(u==="bevel"){const h=2*p*p,g=-h*Math.cos(n+tt/2)+i,m=-h*Math.sin(n+tt/2)+o,v=h*Math.cos(r+tt/2)+i,y=h*Math.sin(r+tt/2)+o;e.lineTo(g,m),e.lineTo(v,y)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip("evenodd")}function hee(e,t,n){const{startAngle:r,pixelMargin:i,x:o,y:a,outerRadius:s,innerRadius:l}=t;let c=i/s;e.beginPath(),e.arc(o,a,s,r-c,n+c),l>i?(c=i/l,e.arc(o,a,l,n+c,r-c,!0)):e.arc(o,a,i,n+It,r-It),e.closePath(),e.clip()}function mee(e){return qy(e,["outerStart","outerEnd","innerStart","innerEnd"])}function gee(e,t,n,r){const i=mee(e.options.borderRadius),o=(n-t)/2,a=Math.min(o,r*t/2),s=l=>{const c=(n-Math.min(o,l))*r/2;return ln(l,0,Math.min(o,c))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:ln(i.innerStart,0,a),innerEnd:ln(i.innerEnd,0,a)}}function ra(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function pd(e,t,n,r,i,o){const{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+r+n-c,0),p=u>0?u+r+n+c:0;let h=0;const g=i-l;if(r){const N=u>0?u-r:0,L=d>0?d-r:0,B=(N+L)/2,K=B!==0?g*B/(B+r):g;h=(g-K)/2}const m=Math.max(.001,g*d-n/tt)/d,v=(g-m)/2,y=l+v+h,S=i-v-h,{outerStart:x,outerEnd:b,innerStart:O,innerEnd:E}=gee(t,p,d,S-y),C=d-x,T=d-b,k=y+x/C,R=S-b/T,M=p+O,P=p+E,D=y+O/M,j=S-E/P;if(e.beginPath(),o){const N=(k+R)/2;if(e.arc(a,s,d,k,N),e.arc(a,s,d,N,R),b>0){const z=ra(T,R,a,s);e.arc(z.x,z.y,b,R,S+It)}const L=ra(P,S,a,s);if(e.lineTo(L.x,L.y),E>0){const z=ra(P,j,a,s);e.arc(z.x,z.y,E,S+It,j+Math.PI)}const B=(S-E/p+(y+O/p))/2;if(e.arc(a,s,p,S-E/p,B,!0),e.arc(a,s,p,B,y+O/p,!0),O>0){const z=ra(M,D,a,s);e.arc(z.x,z.y,O,D+Math.PI,y-It)}const K=ra(C,y,a,s);if(e.lineTo(K.x,K.y),x>0){const z=ra(C,k,a,s);e.arc(z.x,z.y,x,y-It,k)}}else{e.moveTo(a,s);const N=Math.cos(k)*d+a,L=Math.sin(k)*d+s;e.lineTo(N,L);const B=Math.cos(R)*d+a,K=Math.sin(R)*d+s;e.lineTo(B,K)}e.closePath()}function vee(e,t,n,r,i){const{fullCircles:o,startAngle:a,circumference:s}=t;let l=t.endAngle;if(o){pd(e,t,n,r,l,i);for(let c=0;c<o;++c)e.fill();isNaN(s)||(l=a+(s%Ot||Ot))}return pd(e,t,n,r,l,i),e.fill(),l}function yee(e,t,n,r,i){const{fullCircles:o,startAngle:a,circumference:s,options:l}=t,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:p,borderRadius:h}=l,g=l.borderAlign==="inner";if(!c)return;e.setLineDash(d||[]),e.lineDashOffset=p,g?(e.lineWidth=c*2,e.lineJoin=u||"round"):(e.lineWidth=c,e.lineJoin=u||"bevel");let m=t.endAngle;if(o){pd(e,t,n,r,m,i);for(let v=0;v<o;++v)e.stroke();isNaN(s)||(m=a+(s%Ot||Ot))}g&&hee(e,t,m),l.selfJoin&&m-a>=tt&&h===0&&u!=="miter"&&pee(e,t,m),o||(pd(e,t,n,r,m,i),e.stroke())}class Qy extends qi{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,n,r){const i=this.getProps(["x","y"],r),{angle:o,distance:a}=yk(i,{x:t,y:n}),{startAngle:s,endAngle:l,innerRadius:c,outerRadius:u,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),p=(this.options.spacing+this.options.borderWidth)/2,h=Oe(d,l-s),g=ml(o,s,l)&&s!==l,m=h>=Ot||g,v=Ei(a,c+p,u+p);return m&&v}getCenterPoint(t){const{x:n,y:r,startAngle:i,endAngle:o,innerRadius:a,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:l,spacing:c}=this.options,u=(i+o)/2,d=(a+s+c+l)/2;return{x:n+Math.cos(u)*d,y:r+Math.sin(u)*d}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:n,circumference:r}=this,i=(n.offset||0)/4,o=(n.spacing||0)/2,a=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>Ot?Math.floor(r/Ot):0,r===0||this.innerRadius<0||this.outerRadius<0)return;t.save();const s=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(s)*i,Math.sin(s)*i);const l=1-Math.sin(Math.min(tt,r||0)),c=i*l;t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,vee(t,this,c,o,a),yee(t,this,c,o,a),t.restore()}}function Kk(e,t,n=t){e.lineCap=Oe(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Oe(n.borderDash,t.borderDash)),e.lineDashOffset=Oe(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Oe(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Oe(n.borderWidth,t.borderWidth),e.strokeStyle=Oe(n.borderColor,t.borderColor)}function bee(e,t,n){e.lineTo(n.x,n.y)}function xee(e){return e.stepped?$Z:e.tension||e.cubicInterpolationMode==="monotone"?LZ:bee}function Yk(e,t,n={}){const r=e.length,{start:i=0,end:o=r-1}=n,{start:a,end:s}=t,l=Math.max(i,a),c=Math.min(o,s),u=i<a&&o<a||i>s&&o>s;return{count:r,start:l,loop:t.loop,ilen:c<l&&!u?r+c-l:c-l}}function wee(e,t,n,r){const{points:i,options:o}=t,{count:a,start:s,loop:l,ilen:c}=Yk(i,n,r),u=xee(o);let{move:d=!0,reverse:p}=r||{},h,g,m;for(h=0;h<=c;++h)g=i[(s+(p?c-h:h))%a],!g.skip&&(d?(e.moveTo(g.x,g.y),d=!1):u(e,m,g,p,o.stepped),m=g);return l&&(g=i[(s+(p?c:0))%a],u(e,m,g,p,o.stepped)),!!l}function Oee(e,t,n,r){const i=t.points,{count:o,start:a,ilen:s}=Yk(i,n,r),{move:l=!0,reverse:c}=r||{};let u=0,d=0,p,h,g,m,v,y;const S=b=>(a+(c?s-b:b))%o,x=()=>{m!==v&&(e.lineTo(u,v),e.lineTo(u,m),e.lineTo(u,y))};for(l&&(h=i[S(0)],e.moveTo(h.x,h.y)),p=0;p<=s;++p){if(h=i[S(p)],h.skip)continue;const b=h.x,O=h.y,E=b|0;E===g?(O<m?m=O:O>v&&(v=O),u=(d*u+b)/++d):(x(),e.lineTo(b,O),g=E,d=0,m=v=O),y=O}x()}function ag(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?Oee:wee}function See(e){return e.stepped?gJ:e.tension||e.cubicInterpolationMode==="monotone"?vJ:uo}function Eee(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),Kk(e,t.options),e.stroke(i)}function _ee(e,t,n,r){const{segments:i,options:o}=t,a=ag(t);for(const s of i)Kk(e,o,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const Pee=typeof Path2D=="function";function Cee(e,t,n,r){Pee&&!t.options.segment?Eee(e,t,n,r):_ee(e,t,n,r)}class eb extends qi{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;lJ(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=_J(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],o=this.points,a=OJ(this,{property:n,start:i,end:i});if(!a.length)return;const s=[],l=See(r);let c,u;for(c=0,u=a.length;c<u;++c){const{start:d,end:p}=a[c],h=o[d],g=o[p];if(h===g){s.push(h);continue}const m=Math.abs((i-h[n])/(g[n]-h[n])),v=l(h,g,m,r.stepped);v[n]=t[n],s.push(v)}return s.length===1?s[0]:s}pathSegment(t,n,r){return ag(this)(t,this,n,r)}path(t,n,r){const i=this.segments,o=ag(this);let a=this._loop;n=n||0,r=r||this.points.length-n;for(const s of i)a&=o(t,this,s,{start:n,end:n+r-1});return!!a}draw(t,n,r,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),Cee(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function ZS(e,t,n,r){const i=e.options,{[n]:o}=e.getProps([n],r);return Math.abs(t-o)<i.radius+i.hitRadius}class tb extends qi{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,n,r){const i=this.options,{x:o,y:a}=this.getProps(["x","y"],r);return Math.pow(t-o,2)+Math.pow(n-a,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,n){return ZS(this,t,"x",n)}inYRange(t,n){return ZS(this,t,"y",n)}getCenterPoint(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}size(t){t=t||this.options||{};let n=t.radius||0;n=Math.max(n,n&&t.hoverRadius||0);const r=n&&t.borderWidth||0;return(n+r)*2}draw(t,n){const r=this.options;this.skip||r.radius<.1||!gl(this,n,this.size(r)/2)||(t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.fillStyle=r.backgroundColor,rg(t,r,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function Gk(e,t){const{x:n,y:r,base:i,width:o,height:a}=e.getProps(["x","y","base","width","height"],t);let s,l,c,u,d;return e.horizontal?(d=a/2,s=Math.min(n,i),l=Math.max(n,i),c=r-d,u=r+d):(d=o/2,s=n-d,l=n+d,c=Math.min(r,i),u=Math.max(r,i)),{left:s,top:c,right:l,bottom:u}}function Pi(e,t,n,r){return e?0:ln(t,n,r)}function Tee(e,t,n){const r=e.options.borderWidth,i=e.borderSkipped,o=Pk(r);return{t:Pi(i.top,o.top,0,n),r:Pi(i.right,o.right,0,t),b:Pi(i.bottom,o.bottom,0,n),l:Pi(i.left,o.left,0,t)}}function Aee(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,o=ha(i),a=Math.min(t,n),s=e.borderSkipped,l=r||Ae(i);return{topLeft:Pi(!l||s.top||s.left,o.topLeft,0,a),topRight:Pi(!l||s.top||s.right,o.topRight,0,a),bottomLeft:Pi(!l||s.bottom||s.left,o.bottomLeft,0,a),bottomRight:Pi(!l||s.bottom||s.right,o.bottomRight,0,a)}}function kee(e){const t=Gk(e),n=t.right-t.left,r=t.bottom-t.top,i=Tee(e,n/2,r/2),o=Aee(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:o},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,o.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(i.b,i.r))}}}}function Fh(e,t,n,r){const i=t===null,o=n===null,s=e&&!(i&&o)&&Gk(e,r);return s&&(i||Ei(t,s.left,s.right))&&(o||Ei(n,s.top,s.bottom))}function Mee(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function jee(e,t){e.rect(t.x,t.y,t.w,t.h)}function Bh(e,t,n={}){const r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,o=(e.x+e.w!==n.x+n.w?t:0)-r,a=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+o,h:e.h+a,radius:e.radius}}class Zl extends qi{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:i}}=this,{inner:o,outer:a}=kee(this),s=Mee(a.radius)?ud:jee;t.save(),(a.w!==o.w||a.h!==o.h)&&(t.beginPath(),s(t,Bh(a,n,o)),t.clip(),s(t,Bh(o,-n,a)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),s(t,Bh(o,n)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,n,r){return Fh(this,t,n,r)}inXRange(t,n){return Fh(this,t,null,n)}inYRange(t,n){return Fh(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(n+i)/2:n,y:o?r:(r+i)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}const JS=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},Nee=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class QS extends qi{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=lt(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=Sn(r.font),o=i.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=JS(r,o);let c,u;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(a,o,s,l)+10):(u=this.maxHeight,c=this._fitCols(a,i,s,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=i+s;let d=t;o.textAlign="left",o.textBaseline="middle";let p=-1,h=-u;return this.legendItems.forEach((g,m)=>{const v=r+n/2+o.measureText(g.text).width;(m===0||c[c.length-1]+v+2*s>a)&&(d+=u,c[c.length-(m>0?0:1)]=0,h+=u,p++),l[m]={left:0,top:h,row:p,width:v,height:i},c[c.length-1]+=v+s}),d}_fitCols(t,n,r,i){const{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=a-t;let d=s,p=0,h=0,g=0,m=0;return this.legendItems.forEach((v,y)=>{const{itemWidth:S,itemHeight:x}=Ree(r,n,o,v,i);y>0&&h+x+2*s>u&&(d+=p+s,c.push({width:p,height:h}),g+=p+s,m++,p=h=0),l[y]={left:g,top:h,col:m,width:S,height:x},p=Math.max(p,S),h+=x+s}),d+=p,c.push({width:p,height:h}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,a=ma(o,this.left,this.width);if(this.isHorizontal()){let s=0,l=Mn(r,this.left+i,this.right-this.lineWidths[s]);for(const c of n)s!==c.row&&(s=c.row,l=Mn(r,this.left+i,this.right-this.lineWidths[s])),c.top+=this.top+t+i,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+i}else{let s=0,l=Mn(r,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const c of n)c.col!==s&&(s=c.col,l=Mn(r,this.top+t+i,this.bottom-this.columnSizes[s].height)),c.top=l,c.left+=this.left+i,c.left=a.leftForLtr(a.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Uy(t,this),this._draw(),Hy(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:a}=t,s=Ct.color,l=ma(t.rtl,this.left,this.width),c=Sn(a.font),{padding:u}=a,d=c.size,p=d/2;let h;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:g,boxHeight:m,itemHeight:v}=JS(a,d),y=function(E,C,T){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;i.save();const k=Oe(T.lineWidth,1);if(i.fillStyle=Oe(T.fillStyle,s),i.lineCap=Oe(T.lineCap,"butt"),i.lineDashOffset=Oe(T.lineDashOffset,0),i.lineJoin=Oe(T.lineJoin,"miter"),i.lineWidth=k,i.strokeStyle=Oe(T.strokeStyle,s),i.setLineDash(Oe(T.lineDash,[])),a.usePointStyle){const R={radius:m*Math.SQRT2/2,pointStyle:T.pointStyle,rotation:T.rotation,borderWidth:k},M=l.xPlus(E,g/2),P=C+p;_k(i,R,M,P,a.pointStyleWidth&&g)}else{const R=C+Math.max((d-m)/2,0),M=l.leftForLtr(E,g),P=ha(T.borderRadius);i.beginPath(),Object.values(P).some(D=>D!==0)?ud(i,{x:M,y:R,w:g,h:m,radius:P}):i.rect(M,R,g,m),i.fill(),k!==0&&i.stroke()}i.restore()},S=function(E,C,T){cd(i,T.text,E,C+v/2,c,{strikethrough:T.hidden,textAlign:l.textAlign(T.textAlign)})},x=this.isHorizontal(),b=this._computeTitleHeight();x?h={x:Mn(o,this.left+u,this.right-r[0]),y:this.top+u+b,line:0}:h={x:this.left+u,y:Mn(o,this.top+b+u,this.bottom-n[0].height),line:0},jk(this.ctx,t.textDirection);const O=v+u;this.legendItems.forEach((E,C)=>{i.strokeStyle=E.fontColor,i.fillStyle=E.fontColor;const T=i.measureText(E.text).width,k=l.textAlign(E.textAlign||(E.textAlign=a.textAlign)),R=g+p+T;let M=h.x,P=h.y;l.setWidth(this.width),x?C>0&&M+R+u>this.right&&(P=h.y+=O,h.line++,M=h.x=Mn(o,this.left+u,this.right-r[h.line])):C>0&&P+O>this.bottom&&(M=h.x=M+n[h.line].width+u,h.line++,P=h.y=Mn(o,this.top+b+u,this.bottom-n[h.line].height));const D=l.x(M);if(y(D,P,E),M=EZ(k,M+g+p,x?M+R:this.right,t.rtl),S(l.x(M),P,E),x)h.x+=R+u;else if(typeof E.text!="string"){const j=c.lineHeight;h.y+=Xk(E,j)+u}else h.y+=O}),Nk(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=Sn(n.font),i=pr(n.padding);if(!n.display)return;const o=ma(t.rtl,this.left,this.width),a=this.ctx,s=n.position,l=r.size/2,c=i.top+l;let u,d=this.left,p=this.width;if(this.isHorizontal())p=Math.max(...this.lineWidths),u=this.top+c,d=Mn(t.align,d,this.right-p);else{const g=this.columnSizes.reduce((m,v)=>Math.max(m,v.height),0);u=c+Mn(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const h=Mn(s,d,d+p);a.textAlign=o.textAlign(Sk(s)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,cd(a,n.text,h,u,r)}_computeTitleHeight(){const t=this.options.title,n=Sn(t.font),r=pr(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,o;if(Ei(t,this.left,this.right)&&Ei(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;r<o.length;++r)if(i=o[r],Ei(t,i.left,i.left+i.width)&&Ei(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!$ee(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,o=Nee(i,r);i&&!o&<(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!o&<(n.onHover,[t,r,this],this)}else r&<(n.onClick,[t,r,this],this)}}function Ree(e,t,n,r,i){const o=Dee(r,e,t,n),a=Iee(i,r,t.lineHeight);return{itemWidth:o,itemHeight:a}}function Dee(e,t,n,r){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((o,a)=>o.length>a.length?o:a)),t+n.size/2+r.measureText(i).width}function Iee(e,t,n){let r=e;return typeof t.text!="string"&&(r=Xk(t,n)),r}function Xk(e,t){const n=e.text?e.text.length:0;return t*n}function $ee(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var mr={id:"legend",_element:QS,start(e,t,n){const r=e.legend=new QS({ctx:e.ctx,options:n,chart:e});_i.configure(e,r,n),_i.addBox(e,r)},stop(e){_i.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;_i.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o,useBorderRadius:a,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=pr(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:a&&(s||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};const As={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,o=0;for(t=0,n=e.length;t<n;++t){const s=e[t].element;if(s&&s.hasValue()){const l=s.tooltipPosition();r.add(l.x),i+=l.y,++o}}return o===0||r.size===0?!1:{x:[...r].reduce((s,l)=>s+l)/r.size,y:i/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,o,a,s;for(o=0,a=e.length;o<a;++o){const l=e[o].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),u=tg(t,c);u<i&&(i=u,s=l)}}if(s){const l=s.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function wr(e,t){return t&&(Wt(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Hr(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
|
344
|
+
*/class kJ{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){const o=n.listeners[i],a=n.duration;o.forEach(s=>s({chart:t,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=wk.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let a=o.length-1,s=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),s=!0):(o[a]=o[o.length-1],o.pop());s&&(i.draw(),this._notify(i,r,t,"progress")),o.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Ur=new kJ;const SS="transparent",MJ={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=fS(e||SS),i=r.valid&&fS(t||SS);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class jJ{constructor(t,n,r,i){const o=n[r];i=Ic([t.to,i,o,t.from]);const a=Ic([t.from,o,i]);this._active=!0,this._fn=t.fn||MJ[t.type||typeof a],this._easing=zs[t.easing]||zs.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,a=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Ic([t.to,n,i,t.from]),this._from=Ic([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,o=this._from,a=this._loop,s=this._to;let l;if(this._active=o!==s&&(a||n<r),!this._active){this._target[i]=s,this._notify(!0);return}if(n<0){this._target[i]=o;return}l=n/r%2,l=a&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,s,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}}class Dk{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!Ae(t))return;const n=Object.keys(Ct.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const o=t[i];if(!Ae(o))return;const a={};for(const s of n)a[s]=o[s];(Wt(o.properties)&&o.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,a)})})}_animateOptions(t,n){const r=n.options,i=RJ(t,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&NJ(t.options.$animations,r).then(()=>{t.options=r},()=>{}),o}_createAnimations(t,n){const r=this._properties,i=[],o=t.$animations||(t.$animations={}),a=Object.keys(n),s=Date.now();let l;for(l=a.length-1;l>=0;--l){const c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const u=n[c];let d=o[c];const p=r.get(c);if(d)if(p&&d.active()){d.update(p,u,s);continue}else d.cancel();if(!p||!p.duration){t[c]=u;continue}o[c]=d=new jJ(p,t,c,u),i.push(d)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return Ur.add(this._chart,r),!0}}function NJ(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const o=e[r[i]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}function RJ(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function ES(e,t){const n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,o=n.max===void 0?t:0;return{start:r?o:i,end:r?i:o}}function DJ(e,t,n){if(n===!1)return!1;const r=ES(e,n),i=ES(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function IJ(e){let t,n,r,i;return Ae(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function Ik(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,o;for(i=0,o=r.length;i<o;++i)n.push(r[i].index);return n}function _S(e,t,n,r={}){const i=e.keys,o=r.mode==="single";let a,s,l,c;if(t===null)return;let u=!1;for(a=0,s=i.length;a<s;++a){if(l=+i[a],l===n){if(u=!0,r.all)continue;break}c=e.values[l],sr(c)&&(o||t===0||Mr(t)===Mr(c))&&(t+=c)}return!u&&!r.all?0:t}function $J(e,t){const{iScale:n,vScale:r}=t,i=n.axis==="x"?"x":"y",o=r.axis==="x"?"x":"y",a=Object.keys(e),s=new Array(a.length);let l,c,u;for(l=0,c=a.length;l<c;++l)u=a[l],s[l]={[i]:u,[o]:e[u]};return s}function jh(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function LJ(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function FJ(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function BJ(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function PS(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const o=e[i.index];if(n&&o>0||!n&&o<0)return i.index}return null}function CS(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:a,index:s}=r,l=o.axis,c=a.axis,u=LJ(o,a,r),d=t.length;let p;for(let h=0;h<d;++h){const g=t[h],{[l]:m,[c]:v}=g,y=g._stacks||(g._stacks={});p=y[c]=BJ(i,u,m),p[s]=v,p._top=PS(p,a,!0,r.type),p._bottom=PS(p,a,!1,r.type);const S=p._visualValues||(p._visualValues={});S[s]=v}}function Nh(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function zJ(e,t){return Uo(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function VJ(e,t,n){return Uo(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function hs(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[r]===void 0||o[r][n]===void 0)return;delete o[r][n],o[r]._visualValues!==void 0&&o[r]._visualValues[n]!==void 0&&delete o[r]._visualValues[n]}}}const Rh=e=>e==="reset"||e==="none",TS=(e,t)=>t?e:Object.assign({},e),WJ=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Ik(n,!0),values:null};class Cf{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=jh(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&hs(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(d,p,h,g)=>d==="x"?p:d==="r"?g:h,o=n.xAxisID=Oe(r.xAxisID,Nh(t,"x")),a=n.yAxisID=Oe(r.yAxisID,Nh(t,"y")),s=n.rAxisID=Oe(r.rAxisID,Nh(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,a,s),u=n.vAxisID=i(l,a,o,s);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&cS(this._data,this),t._stacked&&hs(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(Ae(n)){const i=this._cachedMeta;this._data=$J(n,i)}else if(r!==n){if(r){cS(r,this);const i=this._cachedMeta;hs(i),i._parsed=[]}n&&Object.isExtensible(n)&&OZ(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=jh(n.vScale,n),n.stack!==r.stack&&(i=!0,hs(n),n.stack=r.stack),this._resyncElements(t),(i||o!==n._stacked)&&(CS(this,n._parsed),n._stacked=jh(n.vScale,n))}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:a}=r,s=o.axis;let l=t===0&&n===i.length?!0:r._sorted,c=t>0&&r._parsed[t-1],u,d,p;if(this._parsing===!1)r._parsed=i,r._sorted=!0,p=i;else{Wt(i[t])?p=this.parseArrayData(r,i,t,n):Ae(i[t])?p=this.parseObjectData(r,i,t,n):p=this.parsePrimitiveData(r,i,t,n);const h=()=>d[s]===null||c&&d[s]<c[s];for(u=0;u<n;++u)r._parsed[u+t]=d=p[u],l&&(h()&&(l=!1),c=d);r._sorted=l}a&&CS(this,p)}parsePrimitiveData(t,n,r,i){const{iScale:o,vScale:a}=t,s=o.axis,l=a.axis,c=o.getLabels(),u=o===a,d=new Array(i);let p,h,g;for(p=0,h=i;p<h;++p)g=p+r,d[p]={[s]:u||o.parse(c[g],g),[l]:a.parse(n[g],g)};return d}parseArrayData(t,n,r,i){const{xScale:o,yScale:a}=t,s=new Array(i);let l,c,u,d;for(l=0,c=i;l<c;++l)u=l+r,d=n[u],s[l]={x:o.parse(d[0],u),y:a.parse(d[1],u)};return s}parseObjectData(t,n,r,i){const{xScale:o,yScale:a}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,c=new Array(i);let u,d,p,h;for(u=0,d=i;u<d;++u)p=u+r,h=n[p],c[u]={x:o.parse(Do(h,s),p),y:a.parse(Do(h,l),p)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const i=this.chart,o=this._cachedMeta,a=n[t.axis],s={keys:Ik(i,!0),values:n._stacks[t.axis]._visualValues};return _S(s,a,o.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const o=r[n.axis];let a=o===null?NaN:o;const s=i&&r._stacks[n.axis];i&&s&&(i.values=s,a=_S(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,o=r._sorted&&t===r.iScale,a=i.length,s=this._getOtherScale(t),l=WJ(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:d}=FJ(s);let p,h;function g(){h=i[p];const m=h[s.axis];return!sr(h[t.axis])||u>m||d<m}for(p=0;p<a&&!(!g()&&(this.updateRangeFromParsed(c,t,h,l),o));++p);if(o){for(p=a-1;p>=0;--p)if(!g()){this.updateRangeFromParsed(c,t,h,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,o,a;for(i=0,o=n.length;i<o;++i)a=n[i][t.axis],sr(a)&&r.push(a);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,i=n.vScale,o=this.getParsed(t);return{label:r?""+r.getLabelForValue(o[r.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=IJ(Oe(this.options.clip,DJ(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],o=n.chartArea,a=[],s=this._drawStart||0,l=this._drawCount||i.length-s,c=this.options.drawActiveElementsOnTop;let u;for(r.dataset&&r.dataset.draw(t,o,s,l),u=s;u<s+l;++u){const d=i[u];d.hidden||(d.active&&c?a.push(d):d.draw(t,o))}for(u=0;u<a.length;++u)a[u].draw(t,o)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const i=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const a=this._cachedMeta.data[t];o=a.$context||(a.$context=VJ(this.getContext(),t,a)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=zJ(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!n,o.mode=r,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const i=n==="active",o=this._cachedDataOpts,a=t+"-"+n,s=o[a],l=this.enableOptionSharing&&hl(r);if(s)return TS(s,l);const c=this.chart.config,u=c.datasetElementScopeKeys(this._type,t),d=i?[`${t}Hover`,"hover",t,""]:[t,""],p=c.getOptionScopes(this.getDataset(),u),h=Object.keys(Ct.elements[t]),g=()=>this.getContext(r,i,n),m=c.resolveNamedOptions(p,h,g,d);return m.$shared&&(m.$shared=l,o[a]=Object.freeze(TS(m,l))),m}_resolveAnimations(t,n,r){const i=this.chart,o=this._cachedDataOpts,a=`animation-${n}`,s=o[a];if(s)return s;let l;if(i.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),p=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(p,this.getContext(t,r,n))}const c=new Dk(i,l&&l.animations);return l&&l._cacheable&&(o[a]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Rh(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(r),a=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:a}}updateElement(t,n,r,i){Rh(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!Rh(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[s,l,c]of this._syncList)this[s](l,c);this._syncList=[];const i=r.length,o=n.length,a=Math.min(o,i);a&&this.parse(0,a),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,n,r=!0){const i=this._cachedMeta,o=i.data,a=t+n;let s;const l=c=>{for(c.length+=n,s=c.length-1;s>=a;s--)c[s]=c[s-n]};for(l(o),s=t;s<a;++s)o[s]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,n),r&&this.updateElements(o,t,n,"reset")}updateElements(t,n,r,i){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(t,n);r._stacked&&hs(r,i)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,i]=t;this[n](r,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function UJ(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let i=0,o=n.length;i<o;i++)r=r.concat(n[i].controller.getAllParsedValues(e));e._cache.$bar=xk(r.sort((i,o)=>i-o))}return e._cache.$bar}function HJ(e){const t=e.iScale,n=UJ(t,e.type);let r=t._length,i,o,a,s;const l=()=>{a===32767||a===-32768||(hl(s)&&(r=Math.min(r,Math.abs(a-s)||r)),s=a)};for(i=0,o=n.length;i<o;++i)a=t.getPixelForValue(n[i]),l();for(s=void 0,i=0,o=t.ticks.length;i<o;++i)a=t.getPixelForTick(i),l();return r}function qJ(e,t,n,r){const i=n.barThickness;let o,a;return ze(i)?(o=t.min*n.categoryPercentage,a=n.barPercentage):(o=i*r,a=1),{chunk:o/r,ratio:a,start:t.pixels[e]-o/2}}function KJ(e,t,n,r){const i=t.pixels,o=i[e];let a=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null;const l=n.categoryPercentage;a===null&&(a=o-(s===null?t.end-t.start:s-o)),s===null&&(s=o+o-a);const c=o-(o-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/r,ratio:n.barPercentage,start:c}}function YJ(e,t,n,r){const i=n.parse(e[0],r),o=n.parse(e[1],r),a=Math.min(i,o),s=Math.max(i,o);let l=a,c=s;Math.abs(a)>Math.abs(s)&&(l=s,c=a),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:i,end:o,min:a,max:s}}function $k(e,t,n,r){return Wt(e)?YJ(e,t,n,r):t[n.axis]=n.parse(e,r),t}function AS(e,t,n,r){const i=e.iScale,o=e.vScale,a=i.getLabels(),s=i===o,l=[];let c,u,d,p;for(c=n,u=n+r;c<u;++c)p=t[c],d={},d[i.axis]=s||i.parse(a[c],c),l.push($k(p,d,o,c));return l}function Dh(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function GJ(e,t,n){return e!==0?Mr(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function XJ(e){let t,n,r,i,o;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(i="end",o="start"):(i="start",o="end"),{start:n,end:r,reverse:t,top:i,bottom:o}}function ZJ(e,t,n,r){let i=t.borderSkipped;const o={};if(!i){e.borderSkipped=o;return}if(i===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:a,end:s,reverse:l,top:c,bottom:u}=XJ(e);i==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=c:(n._bottom||0)===r?i=u:(o[kS(u,a,s,l)]=!0,i=c)),o[kS(i,a,s,l)]=!0,e.borderSkipped=o}function kS(e,t,n,r){return r?(e=JJ(e,t,n),e=MS(e,n,t)):e=MS(e,t,n),e}function JJ(e,t,n){return e===t?n:e===n?t:e}function MS(e,t,n){return e==="start"?t:e==="end"?n:e}function QJ(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class eQ extends Cf{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,n,r,i){return AS(t,n,r,i)}parseArrayData(t,n,r,i){return AS(t,n,r,i)}parseObjectData(t,n,r,i){const{iScale:o,vScale:a}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,c=o.axis==="x"?s:l,u=a.axis==="x"?s:l,d=[];let p,h,g,m;for(p=r,h=r+i;p<h;++p)m=n[p],g={},g[o.axis]=o.parse(Do(m,c),p),d.push($k(Do(m,u),g,a,p));return d}updateRangeFromParsed(t,n,r,i){super.updateRangeFromParsed(t,n,r,i);const o=r._custom;o&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:r,vScale:i}=n,o=this.getParsed(t),a=o._custom,s=Dh(a)?"["+a.start+", "+a.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+r.getLabelForValue(o[r.axis]),value:s}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,r,i){const o=i==="reset",{index:a,_cachedMeta:{vScale:s}}=this,l=s.getBasePixel(),c=s.isHorizontal(),u=this._getRuler(),{sharedOptions:d,includeOptions:p}=this._getSharedOptions(n,i);for(let h=n;h<n+r;h++){const g=this.getParsed(h),m=o||ze(g[s.axis])?{base:l,head:l}:this._calculateBarValuePixels(h),v=this._calculateBarIndexPixels(h,u),y=(g._stacks||{})[s.axis],S={horizontal:c,base:m.base,enableBorderRadius:!y||Dh(g._custom)||a===y._top||a===y._bottom,x:c?m.head:v.center,y:c?v.center:m.head,height:c?v.size:Math.abs(m.size),width:c?Math.abs(m.size):v.size};p&&(S.options=d||this.resolveDataElementOptions(h,t[h].active?"active":i));const x=S.options||t[h].options;ZJ(S,x,y,a),QJ(S,x,u.ratio),this.updateElement(t[h],h,S,i)}}_getStacks(t,n){const{iScale:r}=this._cachedMeta,i=r.getMatchingVisibleMetas(this._type).filter(u=>u.controller.options.grouped),o=r.options.stacked,a=[],s=this._cachedMeta.controller.getParsed(n),l=s&&s[r.axis],c=u=>{const d=u._parsed.find(h=>h[r.axis]===l),p=d&&d[u.vScale.axis];if(ze(p)||isNaN(p))return!0};for(const u of i)if(!(n!==void 0&&c(u))&&((o===!1||a.indexOf(u.stack)===-1||o===void 0&&u.stack===void 0)&&a.push(u.stack),u.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,n=this.chart.options.indexAxis;return Object.keys(t).filter(r=>t[r].axis===n).shift()}_getAxis(){const t={},n=this.getFirstScaleIdForIndexAxis();for(const r of this.chart.data.datasets)t[Oe(this.chart.options.indexAxis==="x"?r.xAxisID:r.yAxisID,n)]=!0;return Object.keys(t)}_getStackIndex(t,n,r){const i=this._getStacks(t,r),o=n!==void 0?i.indexOf(n):-1;return o===-1?i.length-1:o}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,i=[];let o,a;for(o=0,a=n.data.length;o<a;++o)i.push(r.getPixelForValue(this.getParsed(o)[r.axis],o));const s=t.barThickness;return{min:s||HJ(n),pixels:i,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:s?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:r,index:i},options:{base:o,minBarLength:a}}=this,s=o||0,l=this.getParsed(t),c=l._custom,u=Dh(c);let d=l[n.axis],p=0,h=r?this.applyStack(n,l,r):d,g,m;h!==d&&(p=h-d,h=d),u&&(d=c.barStart,h=c.barEnd-c.barStart,d!==0&&Mr(d)!==Mr(c.barEnd)&&(p=0),p+=d);const v=!ze(o)&&!u?o:p;let y=n.getPixelForValue(v);if(this.chart.getDataVisibility(t)?g=n.getPixelForValue(p+h):g=y,m=g-y,Math.abs(m)<a){m=GJ(m,n,s)*a,d===s&&(y-=m/2);const S=n.getPixelForDecimal(0),x=n.getPixelForDecimal(1),b=Math.min(S,x),O=Math.max(S,x);y=Math.max(Math.min(y,O),b),g=y+m,r&&!u&&(l._stacks[n.axis]._visualValues[i]=n.getValueForPixel(g)-n.getValueForPixel(y))}if(y===n.getPixelForValue(s)){const S=Mr(m)*n.getLineWidthForValue(s)/2;y+=S,m-=S}return{size:m,base:y,head:g,center:g+m/2}}_calculateBarIndexPixels(t,n){const r=n.scale,i=this.options,o=i.skipNull,a=Oe(i.maxBarThickness,1/0);let s,l;const c=this._getAxisCount();if(n.grouped){const u=o?this._getStackCount(t):n.stackCount,d=i.barThickness==="flex"?KJ(t,n,i,u*c):qJ(t,n,i,u*c),p=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,h=this._getAxis().indexOf(Oe(p,this.getFirstScaleIdForIndexAxis())),g=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0)+h;s=d.start+d.chunk*g+d.chunk/2,l=Math.min(a,d.chunk*d.ratio)}else s=r.getPixelForValue(this.getParsed(t)[r.axis],t),l=Math.min(a,n.min*n.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,r=t.data,i=r.length;let o=0;for(;o<i;++o)this.getParsed(o)[n.axis]!==null&&!r[o].hidden&&r[o].draw(this._ctx)}}function tQ(e,t,n){let r=1,i=1,o=0,a=0;if(t<Ot){const s=e,l=s+t,c=Math.cos(s),u=Math.sin(s),d=Math.cos(l),p=Math.sin(l),h=(x,b,O)=>gl(x,s,l,!0)?1:Math.max(b,b*n,O,O*n),g=(x,b,O)=>gl(x,s,l,!0)?-1:Math.min(b,b*n,O,O*n),m=h(0,c,d),v=h(It,u,p),y=g(tt,c,d),S=g(tt+It,u,p);r=(m-y)/2,i=(v-S)/2,o=-(m+y)/2,a=-(v+S)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:a}}class nQ extends Cf{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((o,a)=>{const l=t.getDatasetMeta(0).controller.getStyle(a);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}};constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let o=l=>+r[l];if(Ae(r[t])){const{key:l="value"}=this._parsing;o=c=>+Do(r[c],l)}let a,s;for(a=t,s=t+n;a<s;++a)i._parsed[a]=o(a)}}_getRotation(){return Jr(this.options.rotation-90)}_getCircumference(){return Jr(this.options.circumference)}_getRotationExtents(){let t=Ot,n=-Ot;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const i=this.chart.getDatasetMeta(r).controller,o=i._getRotation(),a=i._getCircumference();t=Math.min(t,o),n=Math.max(n,o+a)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,i=this._cachedMeta,o=i.data,a=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,s=Math.max((Math.min(r.width,r.height)-a)/2,0),l=Math.min(oZ(this.options.cutout,s),1),c=this._getRingWeight(this.index),{circumference:u,rotation:d}=this._getRotationExtents(),{ratioX:p,ratioY:h,offsetX:g,offsetY:m}=tQ(d,u,l),v=(r.width-a)/p,y=(r.height-a)/h,S=Math.max(Math.min(v,y)/2,0),x=mk(this.options.radius,S),b=Math.max(x*l,0),O=(x-b)/this._getVisibleDatasetWeightTotal();this.offsetX=g*x,this.offsetY=m*x,i.total=this.calculateTotal(),this.outerRadius=x-O*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-O*c,0),this.updateElements(o,0,o.length,t)}_circumference(t,n){const r=this.options,i=this._cachedMeta,o=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*o/Ot)}updateElements(t,n,r,i){const o=i==="reset",a=this.chart,s=a.chartArea,c=a.options.animation,u=(s.left+s.right)/2,d=(s.top+s.bottom)/2,p=o&&c.animateScale,h=p?0:this.innerRadius,g=p?0:this.outerRadius,{sharedOptions:m,includeOptions:v}=this._getSharedOptions(n,i);let y=this._getRotation(),S;for(S=0;S<n;++S)y+=this._circumference(S,o);for(S=n;S<n+r;++S){const x=this._circumference(S,o),b=t[S],O={x:u+this.offsetX,y:d+this.offsetY,startAngle:y,endAngle:y+x,circumference:x,outerRadius:g,innerRadius:h};v&&(O.options=m||this.resolveDataElementOptions(S,b.active?"active":i)),y+=x,this.updateElement(b,S,O,i)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,i;for(i=0;i<n.length;i++){const o=t._parsed[i];o!==null&&!isNaN(o)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(r+=Math.abs(o))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?Ot*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=Wy(n._parsed[t],r.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,o,a,s,l;if(!t){for(i=0,o=r.data.datasets.length;i<o;++i)if(r.isDatasetVisible(i)){a=r.getDatasetMeta(i),t=a.data,s=a.controller;break}}if(!t)return 0;for(i=0,o=t.length;i<o;++i)l=s.resolveDataElementOptions(i),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,i=t.length;r<i;++r){const o=this.resolveDataElementOptions(r);n=Math.max(n,o.offset||0,o.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(t){return Math.max(Oe(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class rQ extends Cf{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:o}=n,a=this.chart._animationsDisabled;let{start:s,count:l}=_Z(n,i,a);this._drawStart=s,this._drawCount=l,PZ(n)&&(s=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(r,void 0,{animated:!a,options:c},t),this.updateElements(i,s,l,t)}updateElements(t,n,r,i){const o=i==="reset",{iScale:a,vScale:s,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(n,i),p=a.axis,h=s.axis,{spanGaps:g,segment:m}=this.options,v=ml(g)?g:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||o||i==="none",S=n+r,x=t.length;let b=n>0&&this.getParsed(n-1);for(let O=0;O<x;++O){const E=t[O],C=y?E:{};if(O<n||O>=S){C.skip=!0;continue}const T=this.getParsed(O),k=ze(T[h]),R=C[p]=a.getPixelForValue(T[p],O),M=C[h]=o||k?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,T,l):T[h],O);C.skip=isNaN(R)||isNaN(M)||k,C.stop=O>0&&Math.abs(T[p]-b[p])>v,m&&(C.parsed=T,C.raw=c.data[O]),d&&(C.options=u||this.resolveDataElementOptions(O,E.active?"active":i)),y||this.updateElement(E,O,C,i),b=T}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const o=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}function no(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Jy{static override(t){Object.assign(Jy.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return no()}parse(){return no()}format(){return no()}add(){return no()}diff(){return no()}startOf(){return no()}endOf(){return no()}}var iQ={_date:Jy};function oQ(e,t,n,r){const{controller:i,data:o,_sorted:a}=e,s=i._cachedMeta.iScale,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(s&&t===s.axis&&t!=="r"&&a&&o.length){const c=s._reversePixels?xZ:bo;if(r){if(i._sharedOptions){const u=o[0],d=typeof u.getRange=="function"&&u.getRange(t);if(d){const p=c(o,t,n-d),h=c(o,t,n+d);return{lo:p.lo,hi:h.hi}}}}else{const u=c(o,t,n);if(l){const{vScale:d}=i._cachedMeta,{_parsed:p}=e,h=p.slice(0,u.lo+1).reverse().findIndex(m=>!ze(m[d.axis]));u.lo-=Math.max(0,h);const g=p.slice(u.hi).findIndex(m=>!ze(m[d.axis]));u.hi+=Math.max(0,g)}return u}}return{lo:0,hi:o.length-1}}function Tf(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),a=n[t];for(let s=0,l=o.length;s<l;++s){const{index:c,data:u}=o[s],{lo:d,hi:p}=oQ(o[s],t,a,i);for(let h=d;h<=p;++h){const g=u[h];g.skip||r(g,c,h)}}}function aQ(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){const o=t?Math.abs(r.x-i.x):0,a=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(a,2))}}function Ih(e,t,n,r,i){const o=[];return!i&&!e.isPointInArea(t)||Tf(e,n,t,function(s,l,c){!i&&!vl(s,e.chartArea,0)||s.inRange(t.x,t.y,r)&&o.push({element:s,datasetIndex:l,index:c})},!0),o}function sQ(e,t,n,r){let i=[];function o(a,s,l){const{startAngle:c,endAngle:u}=a.getProps(["startAngle","endAngle"],r),{angle:d}=yk(a,{x:t.x,y:t.y});gl(d,c,u)&&i.push({element:a,datasetIndex:s,index:l})}return Tf(e,n,t,o),i}function lQ(e,t,n,r,i,o){let a=[];const s=aQ(n);let l=Number.POSITIVE_INFINITY;function c(u,d,p){const h=u.inRange(t.x,t.y,i);if(r&&!h)return;const g=u.getCenterPoint(i);if(!(!!o||e.isPointInArea(g))&&!h)return;const v=s(t,g);v<l?(a=[{element:u,datasetIndex:d,index:p}],l=v):v===l&&a.push({element:u,datasetIndex:d,index:p})}return Tf(e,n,t,c),a}function $h(e,t,n,r,i,o){return!o&&!e.isPointInArea(t)?[]:n==="r"&&!r?sQ(e,t,n,i):lQ(e,t,n,r,i,o)}function jS(e,t,n,r,i){const o=[],a=n==="x"?"inXRange":"inYRange";let s=!1;return Tf(e,n,t,(l,c,u)=>{l[a]&&l[a](t[n],i)&&(o.push({element:l,datasetIndex:c,index:u}),s=s||l.inRange(t.x,t.y,i))}),r&&!s?[]:o}var cQ={modes:{index(e,t,n,r){const i=co(t,e),o=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?Ih(e,i,o,r,a):$h(e,i,o,!1,r,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const u=s[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(e,t,n,r){const i=co(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?Ih(e,i,o,r,a):$h(e,i,o,!1,r,a);if(s.length>0){const l=s[0].datasetIndex,c=e.getDatasetMeta(l).data;s=[];for(let u=0;u<c.length;++u)s.push({element:c[u],datasetIndex:l,index:u})}return s},point(e,t,n,r){const i=co(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;return Ih(e,i,o,r,a)},nearest(e,t,n,r){const i=co(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;return $h(e,i,o,n.intersect,r,a)},x(e,t,n,r){const i=co(t,e);return jS(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=co(t,e);return jS(e,i,"y",n.intersect,r)}}};const Lk=["left","top","right","bottom"];function ms(e,t){return e.filter(n=>n.pos===t)}function NS(e,t){return e.filter(n=>Lk.indexOf(n.pos)===-1&&n.box.axis===t)}function gs(e,t){return e.sort((n,r)=>{const i=t?r:n,o=t?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function uQ(e){const t=[];let n,r,i,o,a,s;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:o,options:{stack:a,stackWeight:s=1}}=i,t.push({index:n,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:a&&o+a,stackWeight:s});return t}function dQ(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:o}=n;if(!r||!Lk.includes(i))continue;const a=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=o}return t}function fQ(e,t){const n=dQ(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let o,a,s;for(o=0,a=e.length;o<a;++o){s=e[o];const{fullSize:l}=s.box,c=n[s.stack],u=c&&s.stackWeight/c.weight;s.horizontal?(s.width=u?u*r:l&&t.availableWidth,s.height=i):(s.width=r,s.height=u?u*i:l&&t.availableHeight)}return n}function pQ(e){const t=uQ(e),n=gs(t.filter(c=>c.box.fullSize),!0),r=gs(ms(t,"left"),!0),i=gs(ms(t,"right")),o=gs(ms(t,"top"),!0),a=gs(ms(t,"bottom")),s=NS(t,"x"),l=NS(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(a).concat(s),chartArea:ms(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(a).concat(s)}}function RS(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function Fk(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function hQ(e,t,n,r){const{pos:i,box:o}=n,a=e.maxPadding;if(!Ae(i)){n.size&&(e[i]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?o.height:o.width),n.size=d.size/d.count,e[i]+=n.size}o.getPadding&&Fk(a,o.getPadding());const s=Math.max(0,t.outerWidth-RS(a,e,"left","right")),l=Math.max(0,t.outerHeight-RS(a,e,"top","bottom")),c=s!==e.w,u=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function mQ(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function gQ(e,t){const n=t.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(a=>{o[a]=Math.max(t[a],n[a])}),o}return r(e?["left","right"]:["top","bottom"])}function As(e,t,n,r){const i=[];let o,a,s,l,c,u;for(o=0,a=e.length,c=0;o<a;++o){s=e[o],l=s.box,l.update(s.width||t.w,s.height||t.h,gQ(s.horizontal,t));const{same:d,other:p}=hQ(t,n,s,r);c|=d&&i.length,u=u||p,l.fullSize||i.push(s)}return c&&As(i,t,n,r)||u}function Bc(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function DS(e,t,n,r){const i=n.padding;let{x:o,y:a}=t;for(const s of e){const l=s.box,c=r[s.stack]||{placed:0,weight:1},u=s.stackWeight/c.weight||1;if(s.horizontal){const d=t.w*u,p=c.size||l.height;hl(c.start)&&(a=c.start),l.fullSize?Bc(l,i.left,a,n.outerWidth-i.right-i.left,p):Bc(l,t.left+c.placed,a,d,p),c.start=a,c.placed+=d,a=l.bottom}else{const d=t.h*u,p=c.size||l.width;hl(c.start)&&(o=c.start),l.fullSize?Bc(l,o,i.top,p,n.outerHeight-i.bottom-i.top):Bc(l,o,t.top+c.placed,p,d),c.start=o,c.placed+=d,o=l.right}}t.x=o,t.y=a}var _i={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const i=pr(e.options.layout.padding),o=Math.max(t-i.width,0),a=Math.max(n-i.height,0),s=pQ(e.boxes),l=s.vertical,c=s.horizontal;Ue(e.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const u=l.reduce((m,v)=>v.box.options&&v.box.options.display===!1?m:m+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/u,hBoxMaxHeight:a/2}),p=Object.assign({},i);Fk(p,pr(r));const h=Object.assign({maxPadding:p,w:o,h:a,x:i.left,y:i.top},i),g=fQ(l.concat(c),d);As(s.fullSize,h,d,g),As(l,h,d,g),As(c,h,d,g)&&As(l,h,d,g),mQ(h),DS(s.leftAndTop,h,d,g),h.x+=h.w,h.y+=h.h,DS(s.rightAndBottom,h,d,g),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Ue(s.chartArea,m=>{const v=m.box;Object.assign(v,e.chartArea),v.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class Bk{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class vQ extends Bk{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const nu="$chartjs",yQ={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},IS=e=>e===null||e==="";function bQ(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[nu]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",IS(i)){const o=bS(e,"width");o!==void 0&&(e.width=o)}if(IS(r))if(e.style.height==="")e.height=e.width/(t||2);else{const o=bS(e,"height");o!==void 0&&(e.height=o)}return e}const zk=mJ?{passive:!0}:!1;function xQ(e,t,n){e&&e.addEventListener(t,n,zk)}function wQ(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,zk)}function OQ(e,t){const n=yQ[e.type]||e.type,{x:r,y:i}=co(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function fd(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function SQ(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||fd(s.addedNodes,r),a=a&&!fd(s.removedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function EQ(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||fd(s.removedNodes,r),a=a&&!fd(s.addedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const yl=new Map;let $S=0;function Vk(){const e=window.devicePixelRatio;e!==$S&&($S=e,yl.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function _Q(e,t){yl.size||window.addEventListener("resize",Vk),yl.set(e,t)}function PQ(e){yl.delete(e),yl.size||window.removeEventListener("resize",Vk)}function CQ(e,t,n){const r=e.canvas,i=r&&Zy(r);if(!i)return;const o=Ok((s,l)=>{const c=i.clientWidth;n(s,l),c<i.clientWidth&&n()},window),a=new ResizeObserver(s=>{const l=s[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||o(c,u)});return a.observe(i),_Q(e,o),a}function Lh(e,t,n){n&&n.disconnect(),t==="resize"&&PQ(e)}function TQ(e,t,n){const r=e.canvas,i=Ok(o=>{e.ctx!==null&&n(OQ(o,e))},e);return xQ(r,t,i),i}class AQ extends Bk{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(bQ(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[nu])return!1;const r=n[nu].initial;["height","width"].forEach(o=>{const a=r[o];ze(a)?n.removeAttribute(o):n.setAttribute(o,a)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[nu],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),a={attach:SQ,detach:EQ,resize:CQ}[n]||TQ;i[n]=a(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:Lh,detach:Lh,resize:Lh}[n]||wQ)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return hJ(t,n,r,i)}isAttached(t){const n=t&&Zy(t);return!!(n&&n.isConnected)}}function kQ(e){return!Xy()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?vQ:AQ}let qi=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return ml(this.x)&&ml(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}};function MQ(e,t){const n=e.options.ticks,r=jQ(e),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?RQ(t):[],a=o.length,s=o[0],l=o[a-1],c=[];if(a>i)return DQ(t,c,o,a/i),c;const u=NQ(o,t,i);if(a>0){let d,p;const h=a>1?Math.round((l-s)/(a-1)):null;for(zc(t,c,u,ze(h)?0:s-h,s),d=0,p=a-1;d<p;d++)zc(t,c,u,o[d],o[d+1]);return zc(t,c,u,l,ze(h)?t.length:l+h),c}return zc(t,c,u),c}function jQ(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}function NQ(e,t,n){const r=IQ(e),i=t.length/n;if(!r)return Math.max(i,1);const o=pZ(r);for(let a=0,s=o.length-1;a<s;a++){const l=o[a];if(l>i)return l}return Math.max(i,1)}function RQ(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function DQ(e,t,n,r){let i=0,o=n[0],a;for(r=Math.ceil(r),a=0;a<e.length;a++)a===o&&(t.push(e[a]),i++,o=n[i*r])}function zc(e,t,n,r,i){const o=Oe(r,0),a=Math.min(Oe(i,e.length),e.length);let s=0,l,c,u;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),u=o;u<0;)s++,u=Math.round(o+s*n);for(c=Math.max(o,0);c<a;c++)c===u&&(t.push(e[c]),s++,u=Math.round(o+s*n))}function IQ(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const $Q=e=>e==="left"?"right":e==="right"?"left":e,LS=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,FS=(e,t)=>Math.min(t||e,e);function BS(e,t){const n=[],r=e.length/t,i=e.length;let o=0;for(;o<i;o+=r)n.push(e[Math.floor(o)]);return n}function LQ(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),o=e._startPixel,a=e._endPixel,s=1e-6;let l=e.getPixelForTick(i),c;if(!(n&&(r===1?c=Math.max(l-o,a-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(i-1))/2,l+=i<t?c:-c,l<o-s||l>a+s)))return l}function FQ(e,t){Ue(e,n=>{const r=n.gc,i=r.length/2;let o;if(i>t){for(o=0;o<i;++o)delete n.data[r[o]];r.splice(0,i)}})}function vs(e){return e.drawTicks?e.tickLength:0}function zS(e,t){if(!e.display)return 0;const n=Sn(e.font,t),r=pr(e.padding);return(Wt(e.text)?e.text.length:1)*n.lineHeight+r.height}function BQ(e,t){return Uo(e,{scale:t,type:"scale"})}function zQ(e,t,n){return Uo(e,{tick:n,index:t,type:"tick"})}function VQ(e,t,n){let r=Sk(e);return(n&&t!=="right"||!n&&t==="right")&&(r=$Q(r)),r}function WQ(e,t,n,r){const{top:i,left:o,bottom:a,right:s,chart:l}=e,{chartArea:c,scales:u}=l;let d=0,p,h,g;const m=a-i,v=s-o;if(e.isHorizontal()){if(h=Mn(r,o,s),Ae(n)){const y=Object.keys(n)[0],S=n[y];g=u[y].getPixelForValue(S)+m-t}else n==="center"?g=(c.bottom+c.top)/2+m-t:g=LS(e,n,t);p=s-o}else{if(Ae(n)){const y=Object.keys(n)[0],S=n[y];h=u[y].getPixelForValue(S)-v+t}else n==="center"?h=(c.left+c.right)/2-v+t:h=LS(e,n,t);g=Mn(r,a,i),d=n==="left"?-It:It}return{titleX:h,titleY:g,maxWidth:p,rotation:d}}class Ga extends qi{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return t=xr(t,Number.POSITIVE_INFINITY),n=xr(n,Number.NEGATIVE_INFINITY),r=xr(r,Number.POSITIVE_INFINITY),i=xr(i,Number.NEGATIVE_INFINITY),{min:xr(t,r),max:xr(n,i),minDefined:sr(t),maxDefined:sr(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:o}=this.getUserBounds(),a;if(i&&o)return{min:n,max:r};const s=this.getMatchingVisibleMetas();for(let l=0,c=s.length;l<c;++l)a=s[l].controller.getMinMax(this,t),i||(n=Math.min(n,a.min)),o||(r=Math.max(r,a.max));return n=o&&n>r?r:n,r=i&&n>r?n:r,{min:xr(n,xr(r,n)),max:xr(r,xr(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){lt(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=qZ(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s<this.ticks.length;this._convertTicksToLabels(l?BS(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source==="auto")&&(this.ticks=MQ(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){lt(this.options.afterUpdate,[this])}beforeSetDimensions(){lt(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){lt(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),lt(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){lt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,i,o;for(r=0,i=t.length;r<i;r++)o=t[r],o.label=lt(n.callback,[o.value,r,t],this)}afterTickToLabelConversion(){lt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){lt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=FS(this.ticks.length,t.ticks.maxTicksLimit),i=n.minRotation||0,o=n.maxRotation;let a=i,s,l,c;if(!this._isVisible()||!n.display||i>=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const u=this._getLabelSizes(),d=u.widest.width,p=u.highest.height,h=ln(this.chart.width-d,0,this.maxWidth);s=t.offset?this.maxWidth/r:h/(r-1),d+6>s&&(s=h/(r-(t.offset?.5:1)),l=this.maxHeight-vs(t.grid)-n.padding-zS(t.title,this.chart.options.font),c=Math.sqrt(d*d+p*p),a=vZ(Math.min(Math.asin(ln((u.highest.height+6)/s,-1,1)),Math.asin(ln(l/c,-1,1))-Math.asin(ln(p/c,-1,1)))),a=Math.max(i,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){lt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){lt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){const l=zS(i,n.options.font);if(s?(t.width=this.maxWidth,t.height=vs(o)+l):(t.height=this.maxHeight,t.width=vs(o)+l),r.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:p}=this._getLabelSizes(),h=r.padding*2,g=Jr(this.labelRotation),m=Math.cos(g),v=Math.sin(g);if(s){const y=r.mirror?0:v*d.width+m*p.height;t.height=Math.min(this.maxHeight,t.height+y+h)}else{const y=r.mirror?0:m*d.width+v*p.height;t.width=Math.min(this.maxWidth,t.width+y+h)}this._calculatePadding(c,u,v,m)}}this._handleMargins(),s?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:o,padding:a},position:s}=this.options,l=this.labelRotation!==0,c=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let p=0,h=0;l?c?(p=i*t.width,h=r*n.height):(p=r*t.height,h=i*n.width):o==="start"?h=n.width:o==="end"?p=t.width:o!=="inner"&&(p=t.width/2,h=n.width/2),this.paddingLeft=Math.max((p-u+a)*this.width/(this.width-u),0),this.paddingRight=Math.max((h-d+a)*this.width/(this.width-d),0)}else{let u=n.height/2,d=t.height/2;o==="start"?(u=0,d=t.height):o==="end"&&(u=n.height,d=0),this.paddingTop=u+a,this.paddingBottom=d+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){lt(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)ze(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=BS(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:i,_longestTextCache:o}=this,a=[],s=[],l=Math.floor(n/FS(n,r));let c=0,u=0,d,p,h,g,m,v,y,S,x,b,O;for(d=0;d<n;d+=l){if(g=t[d].label,m=this._resolveTickFontOptions(d),i.font=v=m.string,y=o[v]=o[v]||{data:{},gc:[]},S=m.lineHeight,x=b=0,!ze(g)&&!Wt(g))x=hS(i,y.data,y.gc,x,g),b=S;else if(Wt(g))for(p=0,h=g.length;p<h;++p)O=g[p],!ze(O)&&!Wt(O)&&(x=hS(i,y.data,y.gc,x,O),b+=S);a.push(x),s.push(b),c=Math.max(x,c),u=Math.max(b,u)}FQ(o,n);const E=a.indexOf(c),C=s.indexOf(u),T=k=>({width:a[k]||0,height:s[k]||0});return{first:T(0),last:T(n-1),widest:T(E),highest:T(C),widths:a,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return bZ(this._alignToPixels?to(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=zQ(this.getContext(),t,r))}return this.$context||(this.$context=BQ(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=Jr(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),o=this._getLabelSizes(),a=t.autoSkipPadding||0,s=o?o.widest.width+a:0,l=o?o.highest.height+a:0;return this.isHorizontal()?l*r>s*i?s/r:l/i:l*i<s*r?l/r:s/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:a,border:s}=i,l=o.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),p=vs(o),h=[],g=s.setContext(this.getContext()),m=g.display?g.width:0,v=m/2,y=function(L){return to(r,L,m)};let S,x,b,O,E,C,T,k,R,M,P,D;if(a==="top")S=y(this.bottom),C=this.bottom-p,k=S-v,M=y(t.top)+v,D=t.bottom;else if(a==="bottom")S=y(this.top),M=t.top,D=y(t.bottom)-v,C=S+v,k=this.top+p;else if(a==="left")S=y(this.right),E=this.right-p,T=S-v,R=y(t.left)+v,P=t.right;else if(a==="right")S=y(this.left),R=t.left,P=y(t.right)-v,E=S+v,T=this.left+p;else if(n==="x"){if(a==="center")S=y((t.top+t.bottom)/2+.5);else if(Ae(a)){const L=Object.keys(a)[0],B=a[L];S=y(this.chart.scales[L].getPixelForValue(B))}M=t.top,D=t.bottom,C=S+v,k=C+p}else if(n==="y"){if(a==="center")S=y((t.left+t.right)/2);else if(Ae(a)){const L=Object.keys(a)[0],B=a[L];S=y(this.chart.scales[L].getPixelForValue(B))}E=S-v,T=E-p,R=t.left,P=t.right}const j=Oe(i.ticks.maxTicksLimit,d),N=Math.max(1,Math.ceil(d/j));for(x=0;x<d;x+=N){const L=this.getContext(x),B=o.setContext(L),K=s.setContext(L),z=B.lineWidth,F=B.color,G=K.dash||[],Y=K.dashOffset,ne=B.tickWidth,Q=B.tickColor,X=B.tickBorderDash||[],te=B.tickBorderDashOffset;b=LQ(this,x,l),b!==void 0&&(O=to(r,b,z),c?E=T=R=P=O:C=k=M=D=O,h.push({tx1:E,ty1:C,tx2:T,ty2:k,x1:R,y1:M,x2:P,y2:D,width:z,color:F,borderDash:G,borderDashOffset:Y,tickWidth:ne,tickColor:Q,tickBorderDash:X,tickBorderDashOffset:te}))}return this._ticksLength=d,this._borderValue=S,h}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:o}=r,a=this.isHorizontal(),s=this.ticks,{align:l,crossAlign:c,padding:u,mirror:d}=o,p=vs(r.grid),h=p+u,g=d?-u:h,m=-Jr(this.labelRotation),v=[];let y,S,x,b,O,E,C,T,k,R,M,P,D="middle";if(i==="top")E=this.bottom-g,C=this._getXAxisLabelAlignment();else if(i==="bottom")E=this.top+g,C=this._getXAxisLabelAlignment();else if(i==="left"){const N=this._getYAxisLabelAlignment(p);C=N.textAlign,O=N.x}else if(i==="right"){const N=this._getYAxisLabelAlignment(p);C=N.textAlign,O=N.x}else if(n==="x"){if(i==="center")E=(t.top+t.bottom)/2+h;else if(Ae(i)){const N=Object.keys(i)[0],L=i[N];E=this.chart.scales[N].getPixelForValue(L)+h}C=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")O=(t.left+t.right)/2-h;else if(Ae(i)){const N=Object.keys(i)[0],L=i[N];O=this.chart.scales[N].getPixelForValue(L)}C=this._getYAxisLabelAlignment(p).textAlign}n==="y"&&(l==="start"?D="top":l==="end"&&(D="bottom"));const j=this._getLabelSizes();for(y=0,S=s.length;y<S;++y){x=s[y],b=x.label;const N=o.setContext(this.getContext(y));T=this.getPixelForTick(y)+o.labelOffset,k=this._resolveTickFontOptions(y),R=k.lineHeight,M=Wt(b)?b.length:1;const L=M/2,B=N.color,K=N.textStrokeColor,z=N.textStrokeWidth;let F=C;a?(O=T,C==="inner"&&(y===S-1?F=this.options.reverse?"left":"right":y===0?F=this.options.reverse?"right":"left":F="center"),i==="top"?c==="near"||m!==0?P=-M*R+R/2:c==="center"?P=-j.highest.height/2-L*R+R:P=-j.highest.height+R/2:c==="near"||m!==0?P=R/2:c==="center"?P=j.highest.height/2-L*R:P=j.highest.height-M*R,d&&(P*=-1),m!==0&&!N.showLabelBackdrop&&(O+=R/2*Math.sin(m))):(E=T,P=(1-M)*R/2);let G;if(N.showLabelBackdrop){const Y=pr(N.backdropPadding),ne=j.heights[y],Q=j.widths[y];let X=P-Y.top,te=0-Y.left;switch(D){case"middle":X-=ne/2;break;case"bottom":X-=ne;break}switch(C){case"center":te-=Q/2;break;case"right":te-=Q;break;case"inner":y===S-1?te-=Q:y>0&&(te-=Q/2);break}G={left:te,top:X,width:Q+Y.width,height:ne+Y.height,color:N.backdropColor}}v.push({label:b,font:k,textOffset:P,options:{rotation:m,color:B,strokeColor:K,strokeWidth:z,textAlign:F,textBaseline:D,translation:[O,E],backdrop:G}})}return v}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-Jr(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:o}}=this.options,a=this._getLabelSizes(),s=t+o,l=a.widest.width;let c,u;return n==="left"?i?(u=this.right+o,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-s,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?i?(u=this.left+o,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+s,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:o,height:a}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,o,a),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(o=>o.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,a;const s=(l,c,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(o=0,a=i.length;o<a;++o){const l=i[o];n.drawOnChartArea&&s({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&s({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:i}}=this,o=r.setContext(this.getContext()),a=r.display?o.width:0;if(!a)return;const s=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,u,d,p;this.isHorizontal()?(c=to(t,this.left,a)-a/2,u=to(t,this.right,s)+s/2,d=p=l):(d=to(t,this.top,a)-a/2,p=to(t,this.bottom,s)+s/2,c=u=l),n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.beginPath(),n.moveTo(c,d),n.lineTo(u,p),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&Uy(r,i);const o=this.getLabelItems(t);for(const a of o){const s=a.options,l=a.font,c=a.label,u=a.textOffset;cd(r,c,0,u,l,s)}i&&Hy(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const o=Sn(r.font),a=pr(r.padding),s=r.align;let l=o.lineHeight/2;n==="bottom"||n==="center"||Ae(n)?(l+=a.bottom,Wt(r.text)&&(l+=o.lineHeight*(r.text.length-1))):l+=a.top;const{titleX:c,titleY:u,maxWidth:d,rotation:p}=WQ(this,l,n,s);cd(t,r.text,0,0,o,{color:r.color,maxWidth:d,rotation:p,textAlign:VQ(s,n,i),textBaseline:"middle",translation:[c,u]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=Oe(t.grid&&t.grid.z,-1),i=Oe(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Ga.prototype.draw?[{z:n,draw:o=>{this.draw(o)}}]:[{z:r,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,a;for(o=0,a=n.length;o<a;++o){const s=n[o];s[r]===this.id&&(!t||s.type===t)&&i.push(s)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return Sn(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Vc{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;qQ(n)&&(r=this.register(n));const i=this.items,o=t.id,a=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,UQ(t,a,r),this.override&&Ct.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,i=this.scope;r in n&&delete n[r],i&&r in Ct[i]&&(delete Ct[i][r],this.override&&delete Io[r])}}function UQ(e,t,n){const r=pl(Object.create(null),[n?Ct.get(n):{},Ct.get(t),e.defaults]);Ct.set(t,r),e.defaultRoutes&&HQ(t,e.defaultRoutes),e.descriptors&&Ct.describe(t,e.descriptors)}function HQ(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");Ct.route(o,i,l,s)})}function qQ(e){return"id"in e&&"defaults"in e}class KQ{constructor(){this.controllers=new Vc(Cf,"datasets",!0),this.elements=new Vc(qi,"elements"),this.plugins=new Vc(Object,"plugins"),this.scales=new Vc(Ga,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):Ue(i,a=>{const s=r||this._getRegistryForType(a);this._exec(t,s,a)})})}_exec(t,n,r){const i=By(t);lt(r["before"+i],[],r),n[t](r),lt(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}}var Or=new KQ;class YQ{constructor(){this._init=[]}notify(t,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=i?this._descriptors(t).filter(i):this._descriptors(t),a=this._notify(o,t,n,r);return n==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),a}_notify(t,n,r,i){i=i||{};for(const o of t){const a=o.plugin,s=a[r],l=[n,i,o.options];if(lt(s,l,a)===!1&&i.cancelable)return!1}return!0}invalidate(){ze(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,i=Oe(r.options&&r.options.plugins,{}),o=GQ(r);return i===!1&&!n?[]:ZQ(t,o,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(o,a)=>o.filter(s=>!a.some(l=>s.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function GQ(e){const t={},n=[],r=Object.keys(Or.plugins.items);for(let o=0;o<r.length;o++)n.push(Or.getPlugin(r[o]));const i=e.plugins||[];for(let o=0;o<i.length;o++){const a=i[o];n.indexOf(a)===-1&&(n.push(a),t[a.id]=!0)}return{plugins:n,localIds:t}}function XQ(e,t){return!t&&e===!1?null:e===!0?{}:e}function ZQ(e,{plugins:t,localIds:n},r,i){const o=[],a=e.getContext();for(const s of t){const l=s.id,c=XQ(r[l],i);c!==null&&o.push({plugin:s,options:JQ(e.config,{plugin:s,local:n[l]},c,a)})}return o}function JQ(e,{plugin:t,local:n},r,i){const o=e.pluginScopeKeys(t),a=e.getOptionScopes(r,o);return n&&t.defaults&&a.push(t.defaults),e.createResolver(a,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ig(e,t){const n=Ct.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function QQ(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function eee(e,t){return e===t?"_index_":"_value_"}function VS(e){if(e==="x"||e==="y"||e==="r")return e}function tee(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function og(e,...t){if(VS(e))return e;for(const n of t){const r=n.axis||tee(n.position)||e.length>1&&VS(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function WS(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function nee(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return WS(e,"x",n[0])||WS(e,"y",n[0])}return{}}function ree(e,t){const n=Io[e.type]||{scales:{}},r=t.scales||{},i=ig(e.type,t),o=Object.create(null);return Object.keys(r).forEach(a=>{const s=r[a];if(!Ae(s))return console.error(`Invalid scale configuration for scale: ${a}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const l=og(a,s,nee(a,e),Ct.scales[s.type]),c=eee(l,i),u=n.scales||{};o[a]=Fs(Object.create(null),[{axis:l},s,u[l],u[c]])}),e.data.datasets.forEach(a=>{const s=a.type||e.type,l=a.indexAxis||ig(s,t),u=(Io[s]||{}).scales||{};Object.keys(u).forEach(d=>{const p=QQ(d,l),h=a[p+"AxisID"]||p;o[h]=o[h]||Object.create(null),Fs(o[h],[{axis:p},r[h],u[d]])})}),Object.keys(o).forEach(a=>{const s=o[a];Fs(s,[Ct.scales[s.type],Ct.scale])}),o}function Wk(e){const t=e.options||(e.options={});t.plugins=Oe(t.plugins,{}),t.scales=ree(e,t)}function Uk(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function iee(e){return e=e||{},e.data=Uk(e.data),Wk(e),e}const US=new Map,Hk=new Set;function Wc(e,t){let n=US.get(e);return n||(n=t(),US.set(e,n),Hk.add(n)),n}const ys=(e,t,n)=>{const r=Do(t,n);r!==void 0&&e.add(r)};class oee{constructor(t){this._config=iee(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Uk(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Wk(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Wc(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Wc(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Wc(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Wc(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:o}=this,a=this._cachedScopes(t,r),s=a.get(n);if(s)return s;const l=new Set;n.forEach(u=>{t&&(l.add(t),u.forEach(d=>ys(l,t,d))),u.forEach(d=>ys(l,i,d)),u.forEach(d=>ys(l,Io[o]||{},d)),u.forEach(d=>ys(l,Ct,d)),u.forEach(d=>ys(l,ng,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Hk.has(n)&&a.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Io[n]||{},Ct.datasets[n]||{},{type:n},Ct,ng]}resolveNamedOptions(t,n,r,i=[""]){const o={$shared:!0},{resolver:a,subPrefixes:s}=HS(this._resolverCache,t,i);let l=a;if(see(a,n)){o.$shared=!1,r=$i(r)?r():r;const c=this.createResolver(t,r,s);l=Ma(a,r,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,r=[""],i){const{resolver:o}=HS(this._resolverCache,t,r);return Ae(n)?Ma(o,n,void 0,i):o}}function HS(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let o=r.get(i);return o||(o={resolver:Ky(t,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,o)),o}const aee=e=>Ae(e)&&Object.getOwnPropertyNames(e).some(t=>$i(e[t]));function see(e,t){const{isScriptable:n,isIndexable:r}=Ck(e);for(const i of t){const o=n(i),a=r(i),s=(a||o)&&e[i];if(o&&($i(s)||aee(s))||a&&Wt(s))return!0}return!1}var lee="4.5.0";const cee=["top","bottom","left","right","chartArea"];function qS(e,t){return e==="top"||e==="bottom"||cee.indexOf(e)===-1&&t==="x"}function KS(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function YS(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),lt(n&&n.onComplete,[e],t)}function uee(e){const t=e.chart,n=t.options.animation;lt(n&&n.onProgress,[e],t)}function qk(e){return Xy()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const ru={},GS=e=>{const t=qk(e);return Object.values(ru).filter(n=>n.canvas===t).pop()};function dee(e,t,n){const r=Object.keys(e);for(const i of r){const o=+i;if(o>=t){const a=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=a)}}}function fee(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}let Tn=class{static defaults=Ct;static instances=ru;static overrides=Io;static registry=Or;static version=lee;static getChart=GS;static register(...t){Or.add(...t),XS()}static unregister(...t){Or.remove(...t),XS()}constructor(t,n){const r=this.config=new oee(n),i=qk(t),o=GS(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||kQ(i)),this.platform.updateConfig(r);const s=this.platform.acquireContext(i,a.aspectRatio),l=s&&s.canvas,c=l&&l.height,u=l&&l.width;if(this.id=iZ(),this.ctx=s,this.canvas=l,this.width=u,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new YQ,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=SZ(d=>this.update(d),a.resizeDelay||0),this._dataChanges=[],ru[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Ur.listen(this,"complete",YS),Ur.listen(this,"progress",uee),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:o}=this;return ze(t)?n&&o?o:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Or}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():yS(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return mS(this.canvas,this.ctx),this}stop(){return Ur.stop(this),this}resize(t,n){Ur.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,t,n,o),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,yS(this,s,!0)&&(this.notifyPlugins("resize",{size:a}),lt(r.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Ue(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((a,s)=>(a[s]=!1,a),{});let o=[];n&&(o=o.concat(Object.keys(n).map(a=>{const s=n[a],l=og(a,s),c=l==="r",u=l==="x";return{options:s,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),Ue(o,a=>{const s=a.options,l=s.id,c=og(l,s),u=Oe(s.type,a.dtype);(s.position===void 0||qS(s.position,c)!==qS(a.dposition))&&(s.position=a.dposition),i[l]=!0;let d=null;if(l in r&&r[l].type===u)d=r[l];else{const p=Or.getScale(u);d=new p({id:l,type:u,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(s,t)}),Ue(i,(a,s)=>{a||delete r[s]}),Ue(r,a=>{_i.configure(this,a,a.options),_i.addBox(this,a)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,o)=>i.index-o.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(KS("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const o=n[r];let a=this.getDatasetMeta(r);const s=o.type||this.config.type;if(a.type&&a.type!==s&&(this._destroyDatasetMeta(r),a=this.getDatasetMeta(r)),a.type=s,a.indexAxis=o.indexAxis||ig(s,this.options),a.order=o.order||0,a.index=r,a.label=""+o.label,a.visible=this.isDatasetVisible(r),a.controller)a.controller.updateIndex(r),a.controller.linkScales();else{const l=Or.getController(s),{datasetElementType:c,dataElementType:u}=Ct.datasets[s];Object.assign(l,{dataElementType:Or.getElement(u),datasetElementType:c&&Or.getElement(c)}),a.controller=new l(this,r),t.push(a.controller)}}return this._updateMetasets(),t}_resetElements(){Ue(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let c=0,u=this.data.datasets.length;c<u;c++){const{controller:d}=this.getDatasetMeta(c),p=!i&&o.indexOf(d)===-1;d.buildOrUpdateElements(p),a=Math.max(+d.getMaxOverflow(),a)}a=this._minPadding=r.layout.autoPadding?a:0,this._updateLayout(a),i||Ue(o,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(KS("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){Ue(this.scales,t=>{_i.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!oS(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:o}of n){const a=r==="_removeElements"?-o:o;dee(t,i,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=o=>new Set(t.filter(a=>a[0]===o).map((a,s)=>s+","+a.splice(1).join(","))),i=r(0);for(let o=1;o<n;o++)if(!oS(i,r(o)))return;return Array.from(i).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;_i.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Ue(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,$i(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),i={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Ur.has(this)?this.attached&&!Ur.running(this)&&Ur.start(this):(this.draw(),YS({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,i)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let i,o;for(i=0,o=n.length;i<o;++i){const a=n[i];(!t||a.visible)&&r.push(a)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r={meta:t,index:t.index,cancelable:!0},i=AJ(this,t);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(i&&Uy(n,i),t.controller.draw(),i&&Hy(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return vl(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const o=cQ.modes[n];return typeof o=="function"?o(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=Uo(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,i);hl(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(o,{visible:r}),this.update(s=>s.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),Ur.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),mS(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete ru[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,r=(o,a)=>{n.addEventListener(this,o,a),t[o]=a},i=(o,a,s)=>{o.offsetX=a,o.offsetY=s,this._eventHandler(o)};Ue(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let a;const s=()=>{i("attach",s),this.attached=!0,this.resize(),r("resize",o),r("detach",a)};a=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",s)},n.isAttached(this.canvas)?s():a()}unbindEvents(){Ue(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Ue(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let o,a,s,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),s=0,l=t.length;s<l;++s){a=t[s];const c=a&&this.getDatasetMeta(a.datasetIndex).controller;c&&c[i+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:o,index:a})=>{const s=this.getDatasetMeta(o);if(!s)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:s.data[a],index:a}});!ad(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,o=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),a=o(n,t),s=r?t:o(t,n);a.length&&this.updateHoverStyle(a,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const o=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:o}=this,a=n,s=this._getActiveElements(t,i,r,a),l=uZ(t),c=fee(t,this._lastEvent,r,l);r&&(this._lastEvent=null,lt(o.onHover,[t,s,this],this),l&<(o.onClick,[t,s,this],this));const u=!ad(s,i);return(u||n)&&(this._active=s,this._updateHoverStyles(s,i,n)),this._lastEvent=c,u}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}};function XS(){return Ue(Tn.instances,e=>e._plugins.invalidate())}function pee(e,t,n){const{startAngle:r,x:i,y:o,outerRadius:a,innerRadius:s,options:l}=t,{borderWidth:c,borderJoinStyle:u}=l,d=Math.min(c/a,dr(r-n));if(e.beginPath(),e.arc(i,o,a-c/2,r+d/2,n-d/2),s>0){const p=Math.min(c/s,dr(r-n));e.arc(i,o,s+c/2,n-p/2,r+p/2,!0)}else{const p=Math.min(c/2,a*dr(r-n));if(u==="round")e.arc(i,o,p,n-tt/2,r+tt/2,!0);else if(u==="bevel"){const h=2*p*p,g=-h*Math.cos(n+tt/2)+i,m=-h*Math.sin(n+tt/2)+o,v=h*Math.cos(r+tt/2)+i,y=h*Math.sin(r+tt/2)+o;e.lineTo(g,m),e.lineTo(v,y)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip("evenodd")}function hee(e,t,n){const{startAngle:r,pixelMargin:i,x:o,y:a,outerRadius:s,innerRadius:l}=t;let c=i/s;e.beginPath(),e.arc(o,a,s,r-c,n+c),l>i?(c=i/l,e.arc(o,a,l,n+c,r-c,!0)):e.arc(o,a,i,n+It,r-It),e.closePath(),e.clip()}function mee(e){return qy(e,["outerStart","outerEnd","innerStart","innerEnd"])}function gee(e,t,n,r){const i=mee(e.options.borderRadius),o=(n-t)/2,a=Math.min(o,r*t/2),s=l=>{const c=(n-Math.min(o,l))*r/2;return ln(l,0,Math.min(o,c))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:ln(i.innerStart,0,a),innerEnd:ln(i.innerEnd,0,a)}}function ra(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function pd(e,t,n,r,i,o){const{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+r+n-c,0),p=u>0?u+r+n+c:0;let h=0;const g=i-l;if(r){const N=u>0?u-r:0,L=d>0?d-r:0,B=(N+L)/2,K=B!==0?g*B/(B+r):g;h=(g-K)/2}const m=Math.max(.001,g*d-n/tt)/d,v=(g-m)/2,y=l+v+h,S=i-v-h,{outerStart:x,outerEnd:b,innerStart:O,innerEnd:E}=gee(t,p,d,S-y),C=d-x,T=d-b,k=y+x/C,R=S-b/T,M=p+O,P=p+E,D=y+O/M,j=S-E/P;if(e.beginPath(),o){const N=(k+R)/2;if(e.arc(a,s,d,k,N),e.arc(a,s,d,N,R),b>0){const z=ra(T,R,a,s);e.arc(z.x,z.y,b,R,S+It)}const L=ra(P,S,a,s);if(e.lineTo(L.x,L.y),E>0){const z=ra(P,j,a,s);e.arc(z.x,z.y,E,S+It,j+Math.PI)}const B=(S-E/p+(y+O/p))/2;if(e.arc(a,s,p,S-E/p,B,!0),e.arc(a,s,p,B,y+O/p,!0),O>0){const z=ra(M,D,a,s);e.arc(z.x,z.y,O,D+Math.PI,y-It)}const K=ra(C,y,a,s);if(e.lineTo(K.x,K.y),x>0){const z=ra(C,k,a,s);e.arc(z.x,z.y,x,y-It,k)}}else{e.moveTo(a,s);const N=Math.cos(k)*d+a,L=Math.sin(k)*d+s;e.lineTo(N,L);const B=Math.cos(R)*d+a,K=Math.sin(R)*d+s;e.lineTo(B,K)}e.closePath()}function vee(e,t,n,r,i){const{fullCircles:o,startAngle:a,circumference:s}=t;let l=t.endAngle;if(o){pd(e,t,n,r,l,i);for(let c=0;c<o;++c)e.fill();isNaN(s)||(l=a+(s%Ot||Ot))}return pd(e,t,n,r,l,i),e.fill(),l}function yee(e,t,n,r,i){const{fullCircles:o,startAngle:a,circumference:s,options:l}=t,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:p,borderRadius:h}=l,g=l.borderAlign==="inner";if(!c)return;e.setLineDash(d||[]),e.lineDashOffset=p,g?(e.lineWidth=c*2,e.lineJoin=u||"round"):(e.lineWidth=c,e.lineJoin=u||"bevel");let m=t.endAngle;if(o){pd(e,t,n,r,m,i);for(let v=0;v<o;++v)e.stroke();isNaN(s)||(m=a+(s%Ot||Ot))}g&&hee(e,t,m),l.selfJoin&&m-a>=tt&&h===0&&u!=="miter"&&pee(e,t,m),o||(pd(e,t,n,r,m,i),e.stroke())}class Qy extends qi{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,n,r){const i=this.getProps(["x","y"],r),{angle:o,distance:a}=yk(i,{x:t,y:n}),{startAngle:s,endAngle:l,innerRadius:c,outerRadius:u,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),p=(this.options.spacing+this.options.borderWidth)/2,h=Oe(d,l-s),g=gl(o,s,l)&&s!==l,m=h>=Ot||g,v=Ei(a,c+p,u+p);return m&&v}getCenterPoint(t){const{x:n,y:r,startAngle:i,endAngle:o,innerRadius:a,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:l,spacing:c}=this.options,u=(i+o)/2,d=(a+s+c+l)/2;return{x:n+Math.cos(u)*d,y:r+Math.sin(u)*d}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:n,circumference:r}=this,i=(n.offset||0)/4,o=(n.spacing||0)/2,a=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>Ot?Math.floor(r/Ot):0,r===0||this.innerRadius<0||this.outerRadius<0)return;t.save();const s=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(s)*i,Math.sin(s)*i);const l=1-Math.sin(Math.min(tt,r||0)),c=i*l;t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,vee(t,this,c,o,a),yee(t,this,c,o,a),t.restore()}}function Kk(e,t,n=t){e.lineCap=Oe(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Oe(n.borderDash,t.borderDash)),e.lineDashOffset=Oe(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Oe(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Oe(n.borderWidth,t.borderWidth),e.strokeStyle=Oe(n.borderColor,t.borderColor)}function bee(e,t,n){e.lineTo(n.x,n.y)}function xee(e){return e.stepped?$Z:e.tension||e.cubicInterpolationMode==="monotone"?LZ:bee}function Yk(e,t,n={}){const r=e.length,{start:i=0,end:o=r-1}=n,{start:a,end:s}=t,l=Math.max(i,a),c=Math.min(o,s),u=i<a&&o<a||i>s&&o>s;return{count:r,start:l,loop:t.loop,ilen:c<l&&!u?r+c-l:c-l}}function wee(e,t,n,r){const{points:i,options:o}=t,{count:a,start:s,loop:l,ilen:c}=Yk(i,n,r),u=xee(o);let{move:d=!0,reverse:p}=r||{},h,g,m;for(h=0;h<=c;++h)g=i[(s+(p?c-h:h))%a],!g.skip&&(d?(e.moveTo(g.x,g.y),d=!1):u(e,m,g,p,o.stepped),m=g);return l&&(g=i[(s+(p?c:0))%a],u(e,m,g,p,o.stepped)),!!l}function Oee(e,t,n,r){const i=t.points,{count:o,start:a,ilen:s}=Yk(i,n,r),{move:l=!0,reverse:c}=r||{};let u=0,d=0,p,h,g,m,v,y;const S=b=>(a+(c?s-b:b))%o,x=()=>{m!==v&&(e.lineTo(u,v),e.lineTo(u,m),e.lineTo(u,y))};for(l&&(h=i[S(0)],e.moveTo(h.x,h.y)),p=0;p<=s;++p){if(h=i[S(p)],h.skip)continue;const b=h.x,O=h.y,E=b|0;E===g?(O<m?m=O:O>v&&(v=O),u=(d*u+b)/++d):(x(),e.lineTo(b,O),g=E,d=0,m=v=O),y=O}x()}function ag(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?Oee:wee}function See(e){return e.stepped?gJ:e.tension||e.cubicInterpolationMode==="monotone"?vJ:uo}function Eee(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),Kk(e,t.options),e.stroke(i)}function _ee(e,t,n,r){const{segments:i,options:o}=t,a=ag(t);for(const s of i)Kk(e,o,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const Pee=typeof Path2D=="function";function Cee(e,t,n,r){Pee&&!t.options.segment?Eee(e,t,n,r):_ee(e,t,n,r)}class eb extends qi{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;lJ(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=_J(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],o=this.points,a=OJ(this,{property:n,start:i,end:i});if(!a.length)return;const s=[],l=See(r);let c,u;for(c=0,u=a.length;c<u;++c){const{start:d,end:p}=a[c],h=o[d],g=o[p];if(h===g){s.push(h);continue}const m=Math.abs((i-h[n])/(g[n]-h[n])),v=l(h,g,m,r.stepped);v[n]=t[n],s.push(v)}return s.length===1?s[0]:s}pathSegment(t,n,r){return ag(this)(t,this,n,r)}path(t,n,r){const i=this.segments,o=ag(this);let a=this._loop;n=n||0,r=r||this.points.length-n;for(const s of i)a&=o(t,this,s,{start:n,end:n+r-1});return!!a}draw(t,n,r,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),Cee(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function ZS(e,t,n,r){const i=e.options,{[n]:o}=e.getProps([n],r);return Math.abs(t-o)<i.radius+i.hitRadius}class tb extends qi{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,n,r){const i=this.options,{x:o,y:a}=this.getProps(["x","y"],r);return Math.pow(t-o,2)+Math.pow(n-a,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,n){return ZS(this,t,"x",n)}inYRange(t,n){return ZS(this,t,"y",n)}getCenterPoint(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}size(t){t=t||this.options||{};let n=t.radius||0;n=Math.max(n,n&&t.hoverRadius||0);const r=n&&t.borderWidth||0;return(n+r)*2}draw(t,n){const r=this.options;this.skip||r.radius<.1||!vl(this,n,this.size(r)/2)||(t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.fillStyle=r.backgroundColor,rg(t,r,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function Gk(e,t){const{x:n,y:r,base:i,width:o,height:a}=e.getProps(["x","y","base","width","height"],t);let s,l,c,u,d;return e.horizontal?(d=a/2,s=Math.min(n,i),l=Math.max(n,i),c=r-d,u=r+d):(d=o/2,s=n-d,l=n+d,c=Math.min(r,i),u=Math.max(r,i)),{left:s,top:c,right:l,bottom:u}}function Pi(e,t,n,r){return e?0:ln(t,n,r)}function Tee(e,t,n){const r=e.options.borderWidth,i=e.borderSkipped,o=Pk(r);return{t:Pi(i.top,o.top,0,n),r:Pi(i.right,o.right,0,t),b:Pi(i.bottom,o.bottom,0,n),l:Pi(i.left,o.left,0,t)}}function Aee(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,o=ha(i),a=Math.min(t,n),s=e.borderSkipped,l=r||Ae(i);return{topLeft:Pi(!l||s.top||s.left,o.topLeft,0,a),topRight:Pi(!l||s.top||s.right,o.topRight,0,a),bottomLeft:Pi(!l||s.bottom||s.left,o.bottomLeft,0,a),bottomRight:Pi(!l||s.bottom||s.right,o.bottomRight,0,a)}}function kee(e){const t=Gk(e),n=t.right-t.left,r=t.bottom-t.top,i=Tee(e,n/2,r/2),o=Aee(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:o},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,o.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(i.b,i.r))}}}}function Fh(e,t,n,r){const i=t===null,o=n===null,s=e&&!(i&&o)&&Gk(e,r);return s&&(i||Ei(t,s.left,s.right))&&(o||Ei(n,s.top,s.bottom))}function Mee(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function jee(e,t){e.rect(t.x,t.y,t.w,t.h)}function Bh(e,t,n={}){const r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,o=(e.x+e.w!==n.x+n.w?t:0)-r,a=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+o,h:e.h+a,radius:e.radius}}class Zl extends qi{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:i}}=this,{inner:o,outer:a}=kee(this),s=Mee(a.radius)?ud:jee;t.save(),(a.w!==o.w||a.h!==o.h)&&(t.beginPath(),s(t,Bh(a,n,o)),t.clip(),s(t,Bh(o,-n,a)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),s(t,Bh(o,n)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,n,r){return Fh(this,t,n,r)}inXRange(t,n){return Fh(this,t,null,n)}inYRange(t,n){return Fh(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(n+i)/2:n,y:o?r:(r+i)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}const JS=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},Nee=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class QS extends qi{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=lt(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=Sn(r.font),o=i.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=JS(r,o);let c,u;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(a,o,s,l)+10):(u=this.maxHeight,c=this._fitCols(a,i,s,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=i+s;let d=t;o.textAlign="left",o.textBaseline="middle";let p=-1,h=-u;return this.legendItems.forEach((g,m)=>{const v=r+n/2+o.measureText(g.text).width;(m===0||c[c.length-1]+v+2*s>a)&&(d+=u,c[c.length-(m>0?0:1)]=0,h+=u,p++),l[m]={left:0,top:h,row:p,width:v,height:i},c[c.length-1]+=v+s}),d}_fitCols(t,n,r,i){const{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=a-t;let d=s,p=0,h=0,g=0,m=0;return this.legendItems.forEach((v,y)=>{const{itemWidth:S,itemHeight:x}=Ree(r,n,o,v,i);y>0&&h+x+2*s>u&&(d+=p+s,c.push({width:p,height:h}),g+=p+s,m++,p=h=0),l[y]={left:g,top:h,col:m,width:S,height:x},p=Math.max(p,S),h+=x+s}),d+=p,c.push({width:p,height:h}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,a=ma(o,this.left,this.width);if(this.isHorizontal()){let s=0,l=Mn(r,this.left+i,this.right-this.lineWidths[s]);for(const c of n)s!==c.row&&(s=c.row,l=Mn(r,this.left+i,this.right-this.lineWidths[s])),c.top+=this.top+t+i,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+i}else{let s=0,l=Mn(r,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const c of n)c.col!==s&&(s=c.col,l=Mn(r,this.top+t+i,this.bottom-this.columnSizes[s].height)),c.top=l,c.left+=this.left+i,c.left=a.leftForLtr(a.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Uy(t,this),this._draw(),Hy(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:a}=t,s=Ct.color,l=ma(t.rtl,this.left,this.width),c=Sn(a.font),{padding:u}=a,d=c.size,p=d/2;let h;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:g,boxHeight:m,itemHeight:v}=JS(a,d),y=function(E,C,T){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;i.save();const k=Oe(T.lineWidth,1);if(i.fillStyle=Oe(T.fillStyle,s),i.lineCap=Oe(T.lineCap,"butt"),i.lineDashOffset=Oe(T.lineDashOffset,0),i.lineJoin=Oe(T.lineJoin,"miter"),i.lineWidth=k,i.strokeStyle=Oe(T.strokeStyle,s),i.setLineDash(Oe(T.lineDash,[])),a.usePointStyle){const R={radius:m*Math.SQRT2/2,pointStyle:T.pointStyle,rotation:T.rotation,borderWidth:k},M=l.xPlus(E,g/2),P=C+p;_k(i,R,M,P,a.pointStyleWidth&&g)}else{const R=C+Math.max((d-m)/2,0),M=l.leftForLtr(E,g),P=ha(T.borderRadius);i.beginPath(),Object.values(P).some(D=>D!==0)?ud(i,{x:M,y:R,w:g,h:m,radius:P}):i.rect(M,R,g,m),i.fill(),k!==0&&i.stroke()}i.restore()},S=function(E,C,T){cd(i,T.text,E,C+v/2,c,{strikethrough:T.hidden,textAlign:l.textAlign(T.textAlign)})},x=this.isHorizontal(),b=this._computeTitleHeight();x?h={x:Mn(o,this.left+u,this.right-r[0]),y:this.top+u+b,line:0}:h={x:this.left+u,y:Mn(o,this.top+b+u,this.bottom-n[0].height),line:0},jk(this.ctx,t.textDirection);const O=v+u;this.legendItems.forEach((E,C)=>{i.strokeStyle=E.fontColor,i.fillStyle=E.fontColor;const T=i.measureText(E.text).width,k=l.textAlign(E.textAlign||(E.textAlign=a.textAlign)),R=g+p+T;let M=h.x,P=h.y;l.setWidth(this.width),x?C>0&&M+R+u>this.right&&(P=h.y+=O,h.line++,M=h.x=Mn(o,this.left+u,this.right-r[h.line])):C>0&&P+O>this.bottom&&(M=h.x=M+n[h.line].width+u,h.line++,P=h.y=Mn(o,this.top+b+u,this.bottom-n[h.line].height));const D=l.x(M);if(y(D,P,E),M=EZ(k,M+g+p,x?M+R:this.right,t.rtl),S(l.x(M),P,E),x)h.x+=R+u;else if(typeof E.text!="string"){const j=c.lineHeight;h.y+=Xk(E,j)+u}else h.y+=O}),Nk(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=Sn(n.font),i=pr(n.padding);if(!n.display)return;const o=ma(t.rtl,this.left,this.width),a=this.ctx,s=n.position,l=r.size/2,c=i.top+l;let u,d=this.left,p=this.width;if(this.isHorizontal())p=Math.max(...this.lineWidths),u=this.top+c,d=Mn(t.align,d,this.right-p);else{const g=this.columnSizes.reduce((m,v)=>Math.max(m,v.height),0);u=c+Mn(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const h=Mn(s,d,d+p);a.textAlign=o.textAlign(Sk(s)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,cd(a,n.text,h,u,r)}_computeTitleHeight(){const t=this.options.title,n=Sn(t.font),r=pr(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,o;if(Ei(t,this.left,this.right)&&Ei(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;r<o.length;++r)if(i=o[r],Ei(t,i.left,i.left+i.width)&&Ei(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!$ee(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,o=Nee(i,r);i&&!o&<(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!o&<(n.onHover,[t,r,this],this)}else r&<(n.onClick,[t,r,this],this)}}function Ree(e,t,n,r,i){const o=Dee(r,e,t,n),a=Iee(i,r,t.lineHeight);return{itemWidth:o,itemHeight:a}}function Dee(e,t,n,r){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((o,a)=>o.length>a.length?o:a)),t+n.size/2+r.measureText(i).width}function Iee(e,t,n){let r=e;return typeof t.text!="string"&&(r=Xk(t,n)),r}function Xk(e,t){const n=e.text?e.text.length:0;return t*n}function $ee(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var mr={id:"legend",_element:QS,start(e,t,n){const r=e.legend=new QS({ctx:e.ctx,options:n,chart:e});_i.configure(e,r,n),_i.addBox(e,r)},stop(e){_i.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;_i.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o,useBorderRadius:a,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=pr(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:a&&(s||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};const ks={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,o=0;for(t=0,n=e.length;t<n;++t){const s=e[t].element;if(s&&s.hasValue()){const l=s.tooltipPosition();r.add(l.x),i+=l.y,++o}}return o===0||r.size===0?!1:{x:[...r].reduce((s,l)=>s+l)/r.size,y:i/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,o,a,s;for(o=0,a=e.length;o<a;++o){const l=e[o].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),u=tg(t,c);u<i&&(i=u,s=l)}}if(s){const l=s.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function wr(e,t){return t&&(Wt(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Hr(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
|
345
345
|
`)>-1?e.split(`
|
|
346
|
-
`):e}function Lee(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:a,value:s}=o.getLabelAndValue(i);return{chart:e,label:a,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function eE(e,t){const n=e.chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:a,boxHeight:s}=t,l=Sn(t.bodyFont),c=Sn(t.titleFont),u=Sn(t.footerFont),d=o.length,p=i.length,h=r.length,g=pr(t.padding);let m=g.height,v=0,y=r.reduce((b,O)=>b+O.before.length+O.lines.length+O.after.length,0);if(y+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),y){const b=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;m+=h*b+(y-h)*l.lineHeight+(y-1)*t.bodySpacing}p&&(m+=t.footerMarginTop+p*u.lineHeight+(p-1)*t.footerSpacing);let S=0;const x=function(b){v=Math.max(v,n.measureText(b).width+S)};return n.save(),n.font=c.string,Ue(e.title,x),n.font=l.string,Ue(e.beforeBody.concat(e.afterBody),x),S=t.displayColors?a+2+t.boxPadding:0,Ue(r,b=>{Ue(b.before,x),Ue(b.lines,x),Ue(b.after,x)}),S=0,n.font=u.string,Ue(e.footer,x),n.restore(),v+=g.width,{width:v,height:m}}function Fee(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function Bee(e,t,n,r){const{x:i,width:o}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&i+o+a>t.width||e==="right"&&i-o-a<0)return!0}function zee(e,t,n,r){const{x:i,width:o}=n,{width:a,chartArea:{left:s,right:l}}=e;let c="center";return r==="center"?c=i<=(s+l)/2?"left":"right":i<=o/2?c="left":i>=a-o/2&&(c="right"),Bee(c,e,t,n)&&(c="center"),c}function tE(e,t,n){const r=n.yAlign||t.yAlign||Fee(e,n);return{xAlign:n.xAlign||t.xAlign||zee(e,t,n,r),yAlign:r}}function Vee(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function Wee(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function nE(e,t,n,r){const{caretSize:i,caretPadding:o,cornerRadius:a}=e,{xAlign:s,yAlign:l}=n,c=i+o,{topLeft:u,topRight:d,bottomLeft:p,bottomRight:h}=ha(a);let g=Vee(t,s);const m=Wee(t,l,c);return l==="center"?s==="left"?g+=c:s==="right"&&(g-=c):s==="left"?g-=Math.max(u,p)+i:s==="right"&&(g+=Math.max(d,h)+i),{x:ln(g,0,r.width-t.width),y:ln(m,0,r.height-t.height)}}function Uc(e,t,n){const r=pr(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function rE(e){return wr([],Hr(e))}function Uee(e,t,n){return Uo(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function iE(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const Zk={beforeTitle:Wr,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:Wr,beforeBody:Wr,beforeLabel:Wr,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return ze(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Wr,afterBody:Wr,beforeFooter:Wr,footer:Wr,afterFooter:Wr};function yn(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?Zk[t].call(n,r):i}class oE extends qi{static positioners=As;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new Dk(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=Uee(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=yn(r,"beforeTitle",this,t),o=yn(r,"title",this,t),a=yn(r,"afterTitle",this,t);let s=[];return s=wr(s,Hr(i)),s=wr(s,Hr(o)),s=wr(s,Hr(a)),s}getBeforeBody(t,n){return rE(yn(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return Ue(t,o=>{const a={before:[],lines:[],after:[]},s=iE(r,o);wr(a.before,Hr(yn(s,"beforeLabel",this,o))),wr(a.lines,yn(s,"label",this,o)),wr(a.after,Hr(yn(s,"afterLabel",this,o))),i.push(a)}),i}getAfterBody(t,n){return rE(yn(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=yn(r,"beforeFooter",this,t),o=yn(r,"footer",this,t),a=yn(r,"afterFooter",this,t);let s=[];return s=wr(s,Hr(i)),s=wr(s,Hr(o)),s=wr(s,Hr(a)),s}_createItems(t){const n=this._active,r=this.chart.data,i=[],o=[],a=[];let s=[],l,c;for(l=0,c=n.length;l<c;++l)s.push(Lee(this.chart,n[l]));return t.filter&&(s=s.filter((u,d,p)=>t.filter(u,d,p,r))),t.itemSort&&(s=s.sort((u,d)=>t.itemSort(u,d,r))),Ue(s,u=>{const d=iE(t.callbacks,u);i.push(yn(d,"labelColor",this,u)),o.push(yn(d,"labelPointStyle",this,u)),a.push(yn(d,"labelTextColor",this,u))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=s,s}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,a=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const s=As[r.position].call(this,i,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const l=this._size=eE(this,r),c=Object.assign({},s,l),u=tE(this.chart,r,c),d=nE(r,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,o={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const o=this.getCaretPosition(t,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:o}=this,{caretSize:a,cornerRadius:s}=r,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=ha(s),{x:p,y:h}=t,{width:g,height:m}=n;let v,y,S,x,b,O;return o==="center"?(b=h+m/2,i==="left"?(v=p,y=v-a,x=b+a,O=b-a):(v=p+g,y=v+a,x=b-a,O=b+a),S=v):(i==="left"?y=p+Math.max(l,u)+a:i==="right"?y=p+g-Math.max(c,d)-a:y=this.caretX,o==="top"?(x=h,b=x-a,v=y-a,S=y+a):(x=h+m,b=x+a,v=y+a,S=y-a),O=x),{x1:v,x2:y,x3:S,y1:x,y2:b,y3:O}}drawTitle(t,n,r){const i=this.title,o=i.length;let a,s,l;if(o){const c=ma(r.rtl,this.x,this.width);for(t.x=Uc(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",a=Sn(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,l=0;l<o;++l)n.fillText(i[l],c.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+s,l+1===o&&(t.y+=r.titleMarginBottom-s)}}_drawColorBox(t,n,r,i,o){const a=this.labelColors[r],s=this.labelPointStyles[r],{boxHeight:l,boxWidth:c}=o,u=Sn(o.bodyFont),d=Uc(this,"left",o),p=i.x(d),h=l<u.lineHeight?(u.lineHeight-l)/2:0,g=n.y+h;if(o.usePointStyle){const m={radius:Math.min(c,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},v=i.leftForLtr(p,c)+c/2,y=g+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,rg(t,m,v,y),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,rg(t,m,v,y)}else{t.lineWidth=Ae(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const m=i.leftForLtr(p,c),v=i.leftForLtr(i.xPlus(p,1),c-2),y=ha(a.borderRadius);Object.values(y).some(S=>S!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,ud(t,{x:m,y:g,w:c,h:l,radius:y}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),ud(t,{x:v,y:g+1,w:c-2,h:l-2,radius:y}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(m,g,c,l),t.strokeRect(m,g,c,l),t.fillStyle=a.backgroundColor,t.fillRect(v,g+1,c-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:a,displayColors:s,boxHeight:l,boxWidth:c,boxPadding:u}=r,d=Sn(r.bodyFont);let p=d.lineHeight,h=0;const g=ma(r.rtl,this.x,this.width),m=function(T){n.fillText(T,g.x(t.x+h),t.y+p/2),t.y+=p+o},v=g.textAlign(a);let y,S,x,b,O,E,C;for(n.textAlign=a,n.textBaseline="middle",n.font=d.string,t.x=Uc(this,v,r),n.fillStyle=r.bodyColor,Ue(this.beforeBody,m),h=s&&v!=="right"?a==="center"?c/2+u:c+2+u:0,b=0,E=i.length;b<E;++b){for(y=i[b],S=this.labelTextColors[b],n.fillStyle=S,Ue(y.before,m),x=y.lines,s&&x.length&&(this._drawColorBox(n,t,b,g,r),p=Math.max(d.lineHeight,l)),O=0,C=x.length;O<C;++O)m(x[O]),p=d.lineHeight;Ue(y.after,m)}h=0,p=d.lineHeight,Ue(this.afterBody,m),t.y-=o}drawFooter(t,n,r){const i=this.footer,o=i.length;let a,s;if(o){const l=ma(r.rtl,this.x,this.width);for(t.x=Uc(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",a=Sn(r.footerFont),n.fillStyle=r.footerColor,n.font=a.string,s=0;s<o;++s)n.fillText(i[s],l.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:o,yAlign:a}=this,{x:s,y:l}=t,{width:c,height:u}=r,{topLeft:d,topRight:p,bottomLeft:h,bottomRight:g}=ha(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(s+d,l),a==="top"&&this.drawCaret(t,n,r,i),n.lineTo(s+c-p,l),n.quadraticCurveTo(s+c,l,s+c,l+p),a==="center"&&o==="right"&&this.drawCaret(t,n,r,i),n.lineTo(s+c,l+u-g),n.quadraticCurveTo(s+c,l+u,s+c-g,l+u),a==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(s+h,l+u),n.quadraticCurveTo(s,l+u,s,l+u-h),a==="center"&&o==="left"&&this.drawCaret(t,n,r,i),n.lineTo(s,l+d),n.quadraticCurveTo(s,l,s+d,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const a=As[t.position].call(this,this._active,this._eventPosition);if(!a)return;const s=this._size=eE(this,t),l=Object.assign({},a,this._size),c=tE(n,t,l),u=nE(t,l,c,n);(i._to!==u.x||o._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=s.width,this.height=s.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=pr(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,i,n),jk(t,n.textDirection),o.y+=a.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),Nk(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:s,index:l})=>{const c=this.chart.getDatasetMeta(s);if(!c)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:c.data[l],index:l}}),o=!ad(r,i),a=this._positionChanged(i,n);(o||a)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],a=this._getActiveElements(t,o,n,r),s=this._positionChanged(a,t),l=n||!ad(a,o)||s;return l&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(s=>this.chart.data.datasets[s.datasetIndex]&&this.chart.getDatasetMeta(s.datasetIndex).controller.getParsed(s.index)!==void 0);const a=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:i,options:o}=this,a=As[o.position].call(this,t,n);return a!==!1&&(r!==a.x||i!==a.y)}}var gr={id:"tooltip",_element:oE,positioners:As,afterInit(e,t,n){n&&(e.tooltip=new oE({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Zk},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const Hee=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function qee(e,t,n,r){const i=e.indexOf(t);if(i===-1)return Hee(e,t,n,r);const o=e.lastIndexOf(t);return i!==o?n:i}const Kee=(e,t)=>e===null?null:ln(Math.round(e),0,t);function aE(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class Ki extends Ya{static id="category";static defaults={ticks:{callback:aE}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:o}of n)r[i]===o&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(ze(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:qee(r,t,Oe(n,t),this._addedLabels),Kee(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,i=[];let o=this.getLabels();o=t===0&&n===o.length-1?o:o.slice(t,n+1),this._valueRange=Math.max(o.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let a=t;a<=n;a++)i.push({value:a});return i}getLabelForValue(t){return aE.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Yee(e,t){const n=[],{bounds:i,step:o,min:a,max:s,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:p}=e,h=o||1,g=u-1,{min:m,max:v}=t,y=!ze(a),S=!ze(s),x=!ze(c),b=(v-m)/(d+1);let O=sS((v-m)/g/h)*h,E,C,T,k;if(O<1e-14&&!y&&!S)return[{value:m},{value:v}];k=Math.ceil(v/O)-Math.floor(m/O),k>g&&(O=sS(k*O/g/h)*h),ze(l)||(E=Math.pow(10,l),O=Math.ceil(O*E)/E),i==="ticks"?(C=Math.floor(m/O)*O,T=Math.ceil(v/O)*O):(C=m,T=v),y&&S&&o&&mZ((s-a)/o,O/1e3)?(k=Math.round(Math.min((s-a)/O,u)),O=(s-a)/k,C=a,T=s):x?(C=y?a:C,T=S?s:T,k=c-1,O=(T-C)/k):(k=(T-C)/O,Fs(k,Math.round(k),O/1e3)?k=Math.round(k):k=Math.ceil(k));const R=Math.max(lS(O),lS(C));E=Math.pow(10,ze(l)?R:l),C=Math.round(C*E)/E,T=Math.round(T*E)/E;let M=0;for(y&&(p&&C!==a?(n.push({value:a}),C<a&&M++,Fs(Math.round((C+M*O)*E)/E,a,sE(a,b,e))&&M++):C<a&&M++);M<k;++M){const P=Math.round((C+M*O)*E)/E;if(S&&P>s)break;n.push({value:P})}return S&&p&&T!==s?n.length&&Fs(n[n.length-1].value,s,sE(s,b,e))?n[n.length-1].value=s:n.push({value:s}):(!S||T===s)&&n.push({value:T}),n}function sE(e,t,{horizontal:n,minRotation:r}){const i=Jr(r),o=(n?Math.sin(i):Math.cos(i))||.001,a=.75*t*(""+e).length;return Math.min(t/o,a)}class Gee extends Ya{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return ze(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:o}=this;const a=l=>i=n?i:l,s=l=>o=r?o:l;if(t){const l=Mr(i),c=Mr(o);l<0&&c<0?s(0):l>0&&c>0&&a(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);s(o+l),t||a(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,a=Yee(i,o);return t.bounds==="ticks"&&gZ(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Wy(t,this.chart.options.locale,this.options.ticks.format)}}class Yi extends Gee{static id="linear";static defaults={ticks:{callback:Ek.formatters.numeric}};determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=sr(t)?t:0,this.max=sr(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Jr(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const Af={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},wn=Object.keys(Af);function lE(e,t){return e-t}function cE(e,t){if(ze(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),sr(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(i&&(a=i==="week"&&(hl(o)||o===!0)?n.startOf(a,"isoWeek",o):n.startOf(a,i)),+a)}function uE(e,t,n,r){const i=wn.length;for(let o=wn.indexOf(e);o<i-1;++o){const a=Af[wn[o]],s=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((n-t)/(s*a.size))<=r)return wn[o]}return wn[i-1]}function Xee(e,t,n,r,i){for(let o=wn.length-1;o>=wn.indexOf(n);o--){const a=wn[o];if(Af[a].common&&e._adapter.diff(i,r,a)>=t-1)return a}return wn[n?wn.indexOf(n):0]}function Zee(e){for(let t=wn.indexOf(e)+1,n=wn.length;t<n;++t)if(Af[wn[t]].common)return wn[t]}function dE(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=zy(n,t),o=n[r]>=t?n[r]:n[i];e[o]=!0}}function Jee(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),a=t[t.length-1].value;let s,l;for(s=o;s<=a;s=+i.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}function fE(e,t,n){const r=[],i={},o=t.length;let a,s;for(a=0;a<o;++a)s=t[a],i[s]=a,r.push({value:s,major:!1});return o===0||!n?r:Jee(e,r,i,n)}class pE extends Ya{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const r=t.time||(t.time={}),i=this._adapter=new iQ._date(t.adapters.date);i.init(n),Ls(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:cE(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:i,max:o,minDefined:a,maxDefined:s}=this.getUserBounds();function l(c){!a&&!isNaN(c.min)&&(i=Math.min(i,c.min)),!s&&!isNaN(c.max)&&(o=Math.max(o,c.max))}(!a||!s)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=sr(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),o=sr(o)&&!isNaN(o)?o:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,a=this.max,s=wZ(i,o,a);return this._unit=n.unit||(r.autoSkip?uE(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):Xee(this,s.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:Zee(this._unit),this.initOffsets(i),t.reverse&&s.reverse(),fE(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?r=o:r=(o-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=ln(n,0,a),r=ln(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,a=o.unit||uE(o.minUnit,n,r,this._getLabelCapacity(n)),s=Oe(i.ticks.stepSize,1),l=a==="week"?o.isoWeekday:!1,c=hl(l)||l===!0,u={};let d=n,p,h;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":a),t.diff(r,n,a)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+a);const g=i.ticks.source==="data"&&this.getDataTimestamps();for(p=d,h=0;p<r;p=+t.add(p,s,a),h++)dE(u,p,g);return(p===r||i.bounds==="ticks"||h===1)&&dE(u,p,g),Object.keys(u).sort(lE).map(m=>+m)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,o=this._unit,a=n||i[o];return this._adapter.format(t,a)}_tickFormatFunction(t,n,r,i){const o=this.options,a=o.ticks.callback;if(a)return lt(a,[t,n,r],this);const s=o.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&s[l],d=c&&s[c],p=r[n],h=c&&d&&p&&p.major;return this._adapter.format(t,i||(h?d:u))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n<r;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,i=Jr(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(i),a=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:r*o+s*a,h:r*a+s*o}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,o=this._tickFormatFunction(t,0,fE(this,[t],this._majorUnit),i),a=this._getLabelSize(o),s=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return s>0?s:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)t.push(cE(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return xk(t.sort(lE))}}function Hc(e,t,n){let r=0,i=e.length-1,o,a,s,l;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=bo(e,"pos",t)),{pos:o,time:s}=e[r],{pos:a,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=bo(e,"time",t)),{time:o,pos:s}=e[r],{time:a,pos:l}=e[i]);const c=a-o;return c?s+(l-s)*(t-o)/c:s}class fne extends pE{static id="timeseries";static defaults=pE.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Hc(n,this.min),this._tableRange=Hc(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],o=[];let a,s,l,c,u;for(a=0,s=t.length;a<s;++a)c=t[a],c>=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,s=i.length;a<s;++a)u=i[a+1],l=i[a-1],c=i[a],Math.round((u+l)/2)!==c&&o.push({time:c,pos:a/(s-1)});return o}_generate(){const t=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(t)||!r.length)&&r.splice(0,0,t),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((i,o)=>i-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(Hc(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return Hc(this._table,r*this._tableRange+this._minPos,!0)}}const Jk="label";function hE(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Qee(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function Qk(e,t){e.labels=t}function eM(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Jk;const r=[];e.datasets=t.map(i=>{const o=e.datasets.find(a=>a[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function ete(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jk;const n={labels:[],datasets:[]};return Qk(n,e.labels),eM(n,e.datasets,t),n}function tte(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:a,data:s,options:l,plugins:c=[],fallbackContent:u,updateMode:d,...p}=e,h=I.useRef(null),g=I.useRef(null),m=()=>{h.current&&(g.current=new Tn(h.current,{type:a,data:ete(s,o),options:l&&{...l},plugins:c}),hE(t,g.current))},v=()=>{hE(t,null),g.current&&(g.current.destroy(),g.current=null)};return I.useEffect(()=>{!i&&g.current&&l&&Qee(g.current,l)},[i,l]),I.useEffect(()=>{!i&&g.current&&Qk(g.current.config.data,s.labels)},[i,s.labels]),I.useEffect(()=>{!i&&g.current&&s.datasets&&eM(g.current.config.data,s.datasets,o)},[i,s.datasets]),I.useEffect(()=>{g.current&&(i?(v(),setTimeout(m)):g.current.update(d))},[i,l,s.labels,s.datasets,d]),I.useEffect(()=>{g.current&&(v(),setTimeout(m))},[a]),I.useEffect(()=>(m(),()=>v()),[]),I.createElement("canvas",{ref:h,role:"img",height:n,width:r,...p},u)}const nte=I.forwardRef(tte);function nb(e,t){return Tn.register(t),I.forwardRef((n,r)=>I.createElement(nte,{...n,ref:r,type:e}))}const rb=nb("line",rQ),Jl=nb("bar",eQ),ib=nb("doughnut",nQ);Tn.register(Qy,gr,mr);const rte={id:"centerText",afterDraw(e,t,n){const{ctx:r}=e,i=e.getDatasetMeta(0);if(!i?.data?.[0])return;const{x:o,y:a}=i.data[0],{top:s="",bottom:l="",topSize:c=20,bottomSize:u=10,topColor:d="#0F172A",bottomColor:p="#64748B"}=n||{};r.save(),r.textAlign="center",r.textBaseline="middle",r.fillStyle=d,r.font=`600 ${c}px Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif`,r.fillText(s,o,a-5),r.fillStyle=p,r.font=`500 ${u}px Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif`,r.fillText(l,o,a+12),r.restore()}},ite=({sold:e=847,unsold:t=73,growthPct:n="+9.1%"})=>{const r=e+t,i={labels:["Sold","Unsold"],datasets:[{data:[e,t],backgroundColor:["#12B981","#EF4444"],borderWidth:2,hoverOffset:4}]},o={responsive:!0,maintainAspectRatio:!1,cutout:"68%",plugins:{legend:{display:!1},tooltip:{callbacks:{label:a=>`${a.label}: ${a.parsed}`},displayColors:!1},centerText:{top:`${r}`,bottom:"Total Units",topSize:20,bottomSize:10}}};return w.jsx(st,{title:"Unit Status",period:"This Month",icon:w.jsx(_g,{className:"h-6 w-6 text-green-600"}),className:"h-[238px]",children:w.jsxs("div",{className:"grid grid-cols-12 gap-[16px] items-center",children:[w.jsxs("div",{className:"col-span-5 space-y-3",children:[w.jsxs("div",{children:[w.jsx("div",{className:"!text-[12px] lending-[16px] text-[#64748B]",children:"Sold"}),w.jsx("div",{className:"text-[28px] leading-[32px] text-[#1FA05B]",children:e})]}),w.jsxs("div",{children:[w.jsx("div",{className:"!text-[12px] lending-[16px] text-[#64748B]",children:"Unsold"}),w.jsx("div",{className:"text-[28px] leading-[32px] text-[#EF4444]",children:t})]}),w.jsxs("div",{className:"text-[10px] text-[#1FA05B] flex gap-[8px] items-center ",children:[n," ",w.jsx("div",{className:"text-[#64748B] text-[10px]",children:"Compared to last month"})]})]}),w.jsx("div",{className:"col-span-7",children:w.jsx("div",{className:"h-[158px] w-[158px] ml-auto mr-2",children:w.jsx(ib,{data:i,options:o,plugins:[rte]})})})]})})},mE=({value:e=0,total:t=1,colorClass:n="",label:r=""})=>{const i=Math.max(0,Math.min(100,e/(t||1)*100)),o=n==="bg-[#8B5CF6]"?"text-[#8B5CF6]":n==="bg-[#12B981]"?"text-[#12B981]":"text-slate-600";return w.jsxs("div",{className:"flex flex-col items-start",children:[w.jsx("div",{className:"w-2/3 min-w-[80px] h-3 rounded-full overflow-hidden",children:w.jsx("div",{className:`h-3 rounded-full ${n}`,style:{width:`${i}%`}})}),w.jsx("div",{className:`${o} !text-[12px] font-bold mt-1`,children:e}),w.jsx("div",{className:"!text-[12px] text-[#64748B] mt-1",children:r})]})},gE=({title:e,value:t,suffix:n,valueClass:r=""})=>w.jsxs("div",{className:"bg-white border border-[#EBEBEB] rounded-xl shadow-[0_0_12px_0_#EAF2FF] h-[98px] p-4 flex flex-col justify-center",children:[w.jsx("div",{className:"!text-[12px] leading-[16px] text-[#121212] mb-1",children:e}),w.jsxs("div",{className:`text-[28px] leading-[32px] flex item gap-[4px] font-medium ${r}`,children:[t," ",n&&w.jsx("div",{className:"text-[28px] leading-[32px] font-medium",children:n})]})]}),ote=({totalUnits:e=847,occupiedUnits:t=756,ownerCount:n=700,tenantCount:r=56,avgResidents:i=4.4,avgLeaseMonths:o=18})=>{const a=n+r;return w.jsxs("div",{children:[w.jsxs("div",{className:"bg-white border border-[#EBEBEB] rounded-xl shadow-[0_0_12px_0_#EAF2FF] p-4 h-[128px]",children:[w.jsxs("div",{className:"flex items-center gap-[12px] mb-4",children:[w.jsx(u_,{className:"h-6 w-6 text-[#329DFF]"}),w.jsx("div",{className:"font-medium text-[#121212]",children:"Occupancy Overview"})]}),w.jsxs("div",{className:"flex items-center justify-between gap-",children:[w.jsxs("div",{children:[w.jsx("div",{className:"text-xs leading-[16px] text-[#64748B]",children:"Occupied Units"}),w.jsxs("div",{className:"flex items-center gap-1",children:[w.jsx("div",{className:"text-[28px] leading-[32px] font-medium text-[#121212]",children:t}),w.jsxs("div",{className:"text-[#64748B] text-[20px] leading-[32px]",children:["/",e]})]})]}),w.jsxs("div",{className:"flex items-end",children:[w.jsx(mE,{value:n,total:a,colorClass:"bg-[#8B5CF6]",label:"Owner"}),w.jsx(mE,{value:r,total:a,colorClass:"bg-[#12B981]",label:"Tenant"})]})]})]}),w.jsxs("div",{className:"mt-2.5 grid grid-cols-2 gap-[12px]",children:[w.jsx(gE,{title:"Avg Residents Per Unit",value:i,valueClass:"text-[#8B5CF6]"}),w.jsx(gE,{title:"Avg Lease Period",value:o,suffix:"months",valueClass:"text-[#E7A015]"})]})]})};Tn.register(Qy,gr,mr);const ate={id:"centerText",afterDraw(e,t,n){const{ctx:r}=e,i=e.getDatasetMeta(0);if(!i?.data?.[0])return;const{x:o,y:a}=i.data[0],{top:s="",bottom:l="",topSize:c=20,bottomSize:u=10,topColor:d="#0F172A",bottomColor:p="#64748B"}=n||{};r.save(),r.textAlign="center",r.textBaseline="middle",r.fillStyle=d,r.font=`600 ${c}px Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif`,r.fillText(s,o,a-5),r.fillStyle=p,r.font=`500 ${u}px Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif`,r.fillText(l,o,a+12),r.restore()}},ste=({ownerCount:e=1e3,tenantCount:t=200,nonResidingOwners:n=26,growthPct:r="+9.1%"})=>{const i=Math.max(e-n,0),o=e+t,a={labels:["Owners","Tenants","Non-residing Owner"],datasets:[{data:[i,t,n],backgroundColor:["#3C81F6","#08B6D4","#8B5CF6"],borderWidth:2,hoverOffset:4}]},s={responsive:!0,maintainAspectRatio:!1,cutout:"68%",plugins:{legend:{display:!1},tooltip:{callbacks:{label:l=>`${l.label}: ${l.parsed}`},displayColors:!1},centerText:{top:`${o}`,bottom:"Total Members",topSize:20,bottomSize:10}}};return w.jsx(st,{title:"Resident Overview",icon:w.jsx(c_,{className:"h-6 w-6 text-[#8B5CF6]"}),className:"h-[238px]",children:w.jsxs("div",{className:" flex-1 min-h-0 grid grid-cols-12 gap-[16px] items-center",children:[w.jsxs("div",{className:"col-span-5",children:[w.jsxs("div",{children:[w.jsx("div",{className:"!text-[12px] text-[#64748B] leading-[16px]",children:"Total Owners"}),w.jsx("div",{className:"text-[28px] leading-[32px ] text-[#3C81F6]",children:e})]}),w.jsxs("div",{children:[w.jsx("div",{className:"!text-[12px] text-[#64748B] leading-[16px]",children:"Total Tenants"}),w.jsx("div",{className:"text-[28px] leading-[32px ] text-[#08B6D4]",children:t})]}),w.jsxs("div",{className:"text-[10px] text-[#1FA05B] flex gap-2 items-center",children:[r," ",w.jsx("div",{className:"text-[#64748B] ",children:"Compared to last month"})]})]}),w.jsx("div",{className:"col-span-7",children:w.jsx("div",{className:"h-[162px] w-[162px] ml-auto mr-2",children:w.jsx(ib,{data:a,options:s,plugins:[ate]})})})]})})};Tn.register(Ki,Yi,Zl,gr,mr);const lte=({blocks:e=[{name:"Block A",owner:110,rented:24,vacant:8},{name:"Block B",owner:95,rented:18,vacant:6},{name:"Block C",owner:65,rented:12,vacant:18},{name:"Block D",owner:78,rented:16,vacant:30}]})=>{const t=e.map(s=>s.name),n=e.map(s=>s.owner),r=e.map(s=>s.rented),i=e.map(s=>s.vacant),o={labels:t,datasets:[{label:"Owner",data:n,backgroundColor:"#3C81F6",barThickness:40},{label:"",data:n.map(()=>2),backgroundColor:"transparent",barThickness:40},{label:"Rented",data:r,backgroundColor:"#8B5CF6",barThickness:40},{label:"",data:r.map(()=>2),backgroundColor:"transparent",barThickness:40},{label:"Vacant",data:i,backgroundColor:"#08B6D4",barThickness:40}]},a={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom",labels:{usePointStyle:!0,boxWidth:10,boxHeight:10,pointStyle:"rectRot",padding:20}},tooltip:{callbacks:{label:s=>`${s.dataset.label}: ${s.parsed.y}`}}},scales:{x:{stacked:!0,grid:{display:!1},ticks:{color:"#64748B"}},y:{stacked:!0,beginAtZero:!0,suggestedMax:180,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",stepSize:20}}}};return w.jsx(st,{title:"Block-wise Occupancy",period:w.jsx(qt,{className:"text-xl text-[#884EA7]"}),className:"w-full h-[360px]",titleWeight:"semi-bold",children:w.jsx(Jl,{data:o,options:a})})};Tn.register(Ki,Yi,tb,eb,gr,mr);const cte=e=>{const[t,n]=String(e).split(" ");return`${{Jan:"January",Feb:"February",Mar:"March",Apr:"April",May:"May",Jun:"June",Jul:"July",Aug:"August",Sep:"September",Oct:"October",Nov:"November",Dec:"December"}[t]||t} 20${n}`},ute=({labels:e=["Jan 25","Feb 25","Mar 25","Apr 25","May 25"],moveIn:t=[24,27,20,26,23],moveOut:n=[12,17,8,5,16]})=>{const r={labels:e,datasets:[{label:"Move-in",data:t,borderColor:"#12B981",backgroundColor:"rgba(16,185,129,0.15)",pointBackgroundColor:"#12B981",pointStyle:"rectRot",fill:!1},{label:"Move-out",data:n,borderColor:"#8B5CF6",backgroundColor:"rgba(124,58,237,0.15)",pointBackgroundColor:"#8B5CF6",pointStyle:"rectRot",fill:!1}]},i={responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"bottom",labels:{usePointStyle:!0,boxWidth:10,boxHeight:10,padding:20}},tooltip:{backgroundColor:"#0F172A",titleColor:"#FFFFFF",bodyColor:"#FFFFFF",displayColors:!1,padding:12,caretSize:0,callbacks:{title:o=>cte(o[0].label),label:o=>`${o.dataset.label}: ${o.parsed.y}`}}},scales:{x:{grid:{color:"#F1F5F9"},ticks:{color:"#64748B"}},y:{beginAtZero:!0,suggestedMax:28,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",stepSize:4,precision:0}}},elements:{line:{borderWidth:2,tension:0},point:{radius:0,hoverRadius:3,hitRadius:10}}};return w.jsx(st,{title:"Move-in/Out Trends",className:"w-full h-[360px]",period:w.jsx(qt,{className:"text-[20px] text-[#884EA7]"}),titleWeight:"semi-bold",children:w.jsx(rb,{data:r,options:i})})};Tn.register(Ki,Yi,tb,eb,gr,mr);const dte=e=>{const[t,n]=String(e).split(" ");return`${{Jan:"January",Feb:"February",Mar:"March",Apr:"April",May:"May",Jun:"June",Jul:"July",Aug:"August",Sep:"September",Oct:"October",Nov:"November",Dec:"December"}[t]||t} 20${n}`},tM=({labels:e=["Jan 25","Feb 25","Mar 25","Apr 25","May 25"],moveIn:t=[24,27,20,26,23],moveOut:n=[4,17,8,5,16,4,7]})=>{const r={labels:e,datasets:[{label:"Income",data:t,borderColor:"#10B981",backgroundColor:"rgba(16,185,129,0.15)",pointBackgroundColor:"#10B981",pointStyle:"rectRot",fill:!1},{label:"Expenditure",data:n,borderColor:"#AB0000",backgroundColor:"rgba(124,58,237,0.15)",pointBackgroundColor:"#AB0000",pointStyle:"rectRot",fill:!1}]},i={responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"bottom",labels:{usePointStyle:!0,boxWidth:10,boxHeight:10,padding:20}},tooltip:{backgroundColor:"#0F172A",titleColor:"#FFFFFF",bodyColor:"#FFFFFF",displayColors:!1,padding:12,caretSize:0,callbacks:{title:o=>dte(o[0].label),label:o=>`${o.dataset.label}: ${o.parsed.y}`}}},scales:{x:{grid:{color:"#F1F5F9"},ticks:{color:"#64748B"}},y:{beginAtZero:!0,suggestedMax:28,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",stepSize:4,precision:0}}},elements:{line:{borderWidth:2,tension:0},point:{radius:0,hoverRadius:3,hitRadius:10}}};return w.jsx(rb,{data:r,options:i})};function vE({label:e,value:t,positive:n,bgColor:r,delta:i,deltaLabel:o,textColor:a}){return w.jsxs("div",{className:`rounded-lg p-4 ${r} border border-[#EBEBEB] h-[126px]`,children:[w.jsx("div",{className:`text-[16px] leading-[20px] ${a}`,children:e}),w.jsx("div",{className:"mt-[16px] leading-[28px] !text-[24px] font-medium text-[#121212]",children:t}),w.jsxs("div",{className:"mt-[8px] flex items-center gap-[8px] leading-[14px] text-[10px]",children:[w.jsx("div",{className:n?"text-[#1FA05B] font-medium":"text-[#EF4444] font-medium",children:i}),w.jsx("div",{className:"text-[#64748B] ",children:o})]})]})}function fte(){return w.jsxs(st,{title:"Accounting",className:"w-full h-[523px]",period:w.jsx(qt,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),titleWeight:"semi-bold",children:[w.jsxs("div",{className:"grid grid-cols-2 gap-[16px]",children:[w.jsx(vE,{label:"Total Income",value:"AED 5.68M",delta:"+4.4%",positive:!0,bgColor:"bg-slate-50",deltaLabel:"Compared to last month",textColor:"text-[#1FA05B]"}),w.jsx(vE,{label:"Total Expenditure",value:"AED 1.83M",delta:"-1.1%",positive:!1,bgColor:"bg-slate-50",deltaLabel:"Compared to last month",textColor:"text-[#AB0000]"})]}),w.jsx("div",{className:"h-[254px] mt-[35.5px]",children:w.jsx(tM,{})})]})}Tn.register(Ki,Yi,Zl,gr,mr);const pte=()=>{const e=["Maintenance","Security","Utilities","Housekeeping","Administration","Others"],r={labels:e,datasets:[{label:"Budget",data:[55e3,56e3,64e3,38e3,54e3,65e3],backgroundColor:"#93C5FD",barThickness:60},{label:"Actual",data:[63e3,48e3,51300,28e3,42e3,35e3],backgroundColor:"#3B82F6",barThickness:60}]},i={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom",labels:{usePointStyle:!0,pointStyle:"rectRot",padding:20}},tooltip:{backgroundColor:"#0F172A",titleColor:"#FFFFFF",bodyColor:"#FFFFFF",displayColors:!1,padding:12,caretSize:6,callbacks:{title:o=>e[o[0].dataIndex],label:o=>{const a=o.parsed.y;return`${o.dataset.label}: AED ${(a/1e3).toFixed(1)}K`}}}},scales:{x:{grid:{display:!1},ticks:{color:"#64748B"}},y:{beginAtZero:!0,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",callback:o=>`${o/1e3}K`}}}};return w.jsx(st,{title:"Budget vs Actuals",className:"w-full h-[362px]",period:w.jsx(qt,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),titleWeight:"semi-bold",children:w.jsx(Jl,{data:r,options:i})})},hte=()=>{const e=[{title:"Primary Account",amount:285e4,subtitle:"Savings"},{title:"Emergency Fund",amount:12e5,subtitle:"Fixed deposit"},{title:"Maintenance Fund",amount:68e4,subtitle:"Current"}],t=e.reduce((r,i)=>r+i.amount,0),n=r=>r>=1e6?`AED ${(r/1e6).toFixed(2)}M`:r>=1e3?`AED ${(r/1e3).toFixed(1)}K`:`AED ${r}`;return w.jsxs(st,{title:"Cash & Bank Balance",className:"w-full h-[362px]",period:w.jsx(qt,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),children:[w.jsx("div",{className:"flex flex-col gap-[12px]",children:e.map((r,i)=>w.jsxs("div",{className:"flex items-center justify-between bg-[#F9FAFB] rounded-lg p-3",children:[w.jsxs("div",{className:"flex flex-col",children:[w.jsx("div",{className:"text-[14px] font-medium text-[#121212]",children:r.title}),w.jsx("div",{className:"!text-[12px] text-[#64748B]",children:r?.subtitle})]}),w.jsx("div",{className:"flex flex-col items-end",children:w.jsx("div",{className:"text-[14px] text-[#1FA05B] font-semibold",children:n(r.amount)})})]},i))}),w.jsxs("div",{className:"flex items-center justify-between border-t border-[#EBEBEB] h-[68px] px-3",children:[w.jsx("div",{className:"text-[14px] font-medium text-[#121212]",children:"Total"}),w.jsx("div",{className:"text-[16px] text-[#1FA05B] font-bold",children:n(t)})]})]})};Tn.register(Ki,Yi,Zl,gr,mr);const mte=()=>{const e=["Current Month","1-3 Months","3-6 Months","6+ Months"],t=[13e3,9400,8800,7200],n=[18,12,18,6],r={labels:e,datasets:[{label:"Due",data:t,backgroundColor:"#EF4444",barThickness:60}]},i={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{backgroundColor:"#0F172A",titleColor:"#FFFFFF",bodyColor:"#FFFFFF",displayColors:!1,padding:12,caretSize:6,callbacks:{title:o=>e[o[0].dataIndex],label:o=>`Due: AED ${(o.parsed.y/1e3).toFixed(1)}K`,afterLabel:o=>`Units Count: ${n[o.dataIndex]}`}}},scales:{x:{grid:{display:!1},ticks:{color:"#64748B"}},y:{beginAtZero:!0,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",callback:o=>`${o/1e3}K`}}}};return w.jsxs(st,{title:"Dues Ageing",className:"w-full h-[362px]",period:w.jsx(qt,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),titleWeight:"semi-bold",children:[w.jsx("div",{className:"grid grid-cols-4 md:grid-cols-4 gap-[12px] h-[48px]",children:e.map((o,a)=>w.jsx("div",{className:"p-2 rounded-lg bg-slate-50",children:w.jsxs("div",{className:"flex justify-between items-start",children:[w.jsx("div",{className:"font-medium leading-[16px] !text-[12px] rounded",children:o}),w.jsxs("div",{className:"text-right",children:[w.jsxs("div",{className:"text-red-600 font-medium leading-[16px] !text-[12px]",children:["AED ",(t[a]/1e3).toFixed(1),"K"]}),w.jsxs("div",{className:" text-gray-500 leading-[14px] text-[10px]",children:[n[a]," Units"]})]})]})},o))}),w.jsx("div",{className:"h-[192px]",children:w.jsx(Jl,{data:r,options:i})})]})};Tn.register(Qy,gr,mr);const gte=()=>{const e=["Maintenance","Utilities","Security","Administration","Others"],t=[45e4,32e4,28e4,18e4,12e4],n={labels:e,datasets:[{label:"Expenses",data:t,backgroundColor:["#08B6D4","#8B5CF6","#EF4444","#F69E0A","#12B981"],borderColor:"#FFFFFF",borderWidth:2,cutout:"70%"}]},r=t.reduce((o,a)=>o+a,0),i={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{backgroundColor:"#0F172A",titleColor:"#FFFFFF",bodyColor:"#FFFFFF",displayColors:!1,padding:10,callbacks:{label:o=>`${o.label}: AED ${o.formattedValue}`}}}};return w.jsxs(st,{title:"Expense Categories",className:"w-full h-[523px]",period:w.jsx(qt,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),titleWeight:"semi-bold",children:[w.jsxs("div",{className:"relative h-[259px] flex justify-center items-center",children:[w.jsx(ib,{data:n,options:i}),w.jsxs("div",{className:"absolute text-center",children:[w.jsxs("div",{className:"!text-[24px] font-medium leading-[28px] text-[#121212]",children:["AED ",(r/1e6).toFixed(2),"M"]}),w.jsx("div",{className:"text-[#121212] leading-[18px] text-[14px]",children:"Total Expenses"})]})]}),w.jsx("div",{className:"space-y-2",children:e.map((o,a)=>w.jsxs("div",{className:"flex justify-between items-center text-[14px] pb-2",children:[w.jsxs("div",{className:"flex items-center gap-[8px] !text-[12px] leading-[16px] text-[#64748B]",children:[w.jsx("div",{className:"w-[7px] h-[7px] rotate-45",style:{backgroundColor:n.datasets[0].backgroundColor[a]}}),o]}),w.jsxs("div",{className:"leading-[16px] !text-[12px] text-[#64748B]",children:["AED ",(t[a]/1e3).toFixed(0),"K"]})]},o))})]})},ys=[{name:"Gym Equipment",value:1e6,color:"#08B6D4"},{name:"Security",value:8e5,color:"#EF4444"},{name:"Others",value:6e5,color:"#F59E0B"},{name:"Pool Maintenance",value:7e5,color:"#8B5CF6"},{name:"Administration",value:52e4,color:"#10B981"}];function vte(){const e=ys.reduce((t,n)=>t+n.value,0);return w.jsx(st,{title:"Asset Value Breakdown",period:w.jsx(qt,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),className:"h-[362px]",titleWeight:"semi-bold",children:w.jsxs("div",{className:"flex flex-col items-center justify-center",children:[w.jsxs("div",{className:"w-[214px] h-[181px] relative",children:[w.jsx(Vo,{width:"100%",height:"100%",children:w.jsxs(ff,{children:[w.jsx(Ul,{data:ys,innerRadius:60,outerRadius:90,paddingAngle:2,dataKey:"value",nameKey:"name",children:ys.map((t,n)=>w.jsx(Ir,{fill:t.color},`cell-${n}`))}),w.jsx(zo,{formatter:t=>`AED ${t.toLocaleString()}`})]})}),w.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center pointer-events-none",children:[w.jsxs("div",{className:"font-medium text-lg leading-[12px] ",children:["AED ",(e/1e6).toFixed(2),"M"]}),w.jsx("div",{className:"text-[10px] leading-[12.59px] text-[#121212] mt-[6px]",children:"Total Assets"})]})]}),w.jsxs("div",{className:"flex justify-between w-full px-4 sm:px-8 mt-4 text-[14px]",children:[w.jsx("div",{className:"flex flex-col gap-[8px]",children:ys.slice(0,3).map(t=>w.jsxs("div",{className:"flex items-center gap-[8px]",children:[w.jsx("div",{className:"inline-block h-[7px] w-[7px] rotate-45",style:{backgroundColor:t.color}}),w.jsx("div",{className:"text-[#64748B] leading-[16px] !text-[12px]",children:t.name})]},t.name))}),w.jsx("div",{className:"flex flex-col gap-[8px] items-start",children:ys.slice(3).map(t=>w.jsxs("div",{className:"flex items-center gap-[8px]",children:[w.jsx("div",{className:"inline-block h-[7px] w-[7px] rotate-45",style:{backgroundColor:t.color}}),w.jsx("div",{className:"text-[#64748B] leading-[16px] !text-[12px]",children:t.name})]},t.name))})]})]})})}Tn.register(Ki,Yi,Zl,gr,mr);const yte=()=>{const e=["Gym","Parking","Swimming Pool","Community Hall","Tennis Court"],t=[13e3,9400,8800,7200,6e3],n=[18,12,18,6],r={labels:e,datasets:[{label:"Due",data:t,backgroundColor:"#8B5CF6",barThickness:60}]},i={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{backgroundColor:"#0F172A",titleColor:"#FFFFFF",bodyColor:"#FFFFFF",displayColors:!1,padding:12,caretSize:6,callbacks:{title:o=>e[o[0].dataIndex],label:o=>`Due: AED ${(o.parsed.y/1e3).toFixed(1)}K`,afterLabel:o=>`Units Count: ${n[o.dataIndex]}`}}},scales:{x:{grid:{display:!1},ticks:{color:"#64748B"}},y:{beginAtZero:!0,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",callback:o=>`${o/1e3}K`}}}};return w.jsx(st,{title:"Revenue by Category",className:"w-full h-[362px]",period:w.jsx(qt,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),titleWeight:"semi-bold",children:w.jsx(Jl,{data:r,options:i})})};function bte(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 5l0 2"},child:[]},{tag:"path",attr:{d:"M15 11l0 2"},child:[]},{tag:"path",attr:{d:"M15 17l0 2"},child:[]},{tag:"path",attr:{d:"M5 5h14a2 2 0 0 1 2 2v3a2 2 0 0 0 0 4v3a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-3a2 2 0 0 0 0 -4v-3a2 2 0 0 1 2 -2"},child:[]}]})(e)}function xte(e){return Xe({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M855.7 210.8l-42.4-42.4a8.03 8.03 0 0 0-11.3 0L168.3 801.9a8.03 8.03 0 0 0 0 11.3l42.4 42.4c3.1 3.1 8.2 3.1 11.3 0L855.6 222c3.2-3 3.2-8.1.1-11.2zM304 448c79.4 0 144-64.6 144-144s-64.6-144-144-144-144 64.6-144 144 64.6 144 144 144zm0-216c39.7 0 72 32.3 72 72s-32.3 72-72 72-72-32.3-72-72 32.3-72 72-72zm416 344c-79.4 0-144 64.6-144 144s64.6 144 144 144 144-64.6 144-144-64.6-144-144-144zm0 216c-39.7 0-72-32.3-72-72s32.3-72 72-72 72 32.3 72 72-32.3 72-72 72z"},child:[]}]})(e)}function wte({title:e,value:t,delta:n,deltaLabel:r,positive:i=!0,Icon:o=Sl,iconColor:a="text-emerald-600",iconBg:s="bg-emerald-50"}){return w.jsxs(st,{title:e,icon:w.jsx("div",{className:"h-6 w-6 grid place-items-center",children:w.jsx(o,{className:`h-6 w-6 ${a}`})}),children:[w.jsx("div",{className:"text-4xl font-semibold tracking-tight text-[#121212]",children:t}),w.jsxs("div",{className:"flex items-center gap-[8px] text-[14px]",children:[w.jsx("div",{className:i?"text-emerald-600 font-medium":"text-rose-600 font-medium",children:n}),w.jsx("div",{className:"text-slate-500",children:r})]})]})}function Ote(){const e=[{title:"Total Bookings",value:160,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:l_,iconColor:"text-emerald-600"},{title:"Utilisation Rate",value:73,delta:"+2.0%",deltaLabel:"Compared to last month",positive:!0,Icon:xte,iconColor:"text-[#329DFF]"},{title:"Revenue",value:3,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:bte,iconColor:"text-[#FA7E28]"},{title:"Pending Dues",value:5,delta:"-8.0%",deltaLabel:"Compared to last month",positive:!1,Icon:d_,iconColor:"text-[#DBB467]"}];return w.jsx("div",{className:"px-5 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[24px]",children:e.map((t,n)=>w.jsx(wte,{...t},n))})}const qc=[{name:"Completed",value:46,color:"#12B981"},{name:"Delayed",value:2,color:"#EF4444"},{name:"Missed",value:2,color:"#F69E0A"}];function Ste(){const t=qc.find(n=>n.name==="Completed")?.value||0;return w.jsx(st,{title:"Guard Patrols",period:w.jsx(qt,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),className:"h-[362px]",children:w.jsxs("div",{className:"flex flex-col items-center justify-center",children:[w.jsxs("div",{className:"w-[215px] h-[182px] relative",children:[w.jsx(Vo,{width:"100%",height:"100%",children:w.jsxs(ff,{children:[w.jsx(Ul,{data:qc,innerRadius:60,outerRadius:90,paddingAngle:2,dataKey:"value",nameKey:"name",children:qc.map((n,r)=>w.jsx(Ir,{fill:n.color},`cell-${r}`))}),w.jsx(zo,{formatter:n=>n.toLocaleString()})]})}),w.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center pointer-events-none",children:[w.jsxs("div",{className:"font-medium text-[19.35px] leading-[23.65px] ",children:[t,"/",50]}),w.jsx("div",{className:"text-[10.75px] leading-[15.05px] text-[#64748B]",children:"Completed"})]})]}),w.jsx("div",{className:"flex flex-col gap-[8px] mt-3 w-full px-6 text-[14px]",children:qc.map(n=>w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsxs("div",{className:"flex items-center gap-[8px]",children:[w.jsx("div",{className:"inline-block w-[7px] h-[7px] rotate-45",style:{backgroundColor:n.color}}),w.jsx("div",{className:"leading-[16.09px] text-[12.07px] text-[#64748B]",children:n.name})]}),w.jsx("div",{className:"leading-[16.09px] text-[12.07px] text-[#64748B]",children:n.value})]},n.name))})]})})}Tn.register(Ki,Yi,tb,eb,gr,mr);const Ete=()=>{const t={labels:["10 AM","12 PM","2 PM","4 PM","6 PM","8 PM","10 PM"],datasets:[{label:"Guest",data:[9,5,12,7,3,6,4],borderColor:"#EF4444",backgroundColor:"rgba(239,68,68,0.15)",pointBackgroundColor:"#EF4444",pointStyle:"rectRot",fill:!1},{label:"Cab",data:[15,12,10,14,7,12,8],borderColor:"#7C3AED",backgroundColor:"rgba(124,58,237,0.15)",pointBackgroundColor:"#7C3AED",pointStyle:"rectRot",fill:!1},{label:"Delivery",data:[22,18,16,20,22,14,17],borderColor:"#10B981",backgroundColor:"rgba(16,185,129,0.15)",pointBackgroundColor:"#10B981",pointStyle:"rectRot",fill:!1},{label:"Service",data:[13,12,8,9,5,10,7],borderColor:"#F59E0B",backgroundColor:"rgba(245,158,11,0.15)",pointBackgroundColor:"#F59E0B",pointStyle:"rectRot",fill:!1}]},n={responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"bottom",labels:{usePointStyle:!0,boxWidth:10,boxHeight:10,padding:20}},tooltip:{backgroundColor:"#0F172A",titleColor:"#FFFFFF",bodyColor:"#FFFFFF",displayColors:!1,padding:12,caretSize:0,callbacks:{title:r=>r[0].label,label:r=>`${r.dataset.label} ${r.parsed.y}`}}},scales:{x:{grid:{color:"#F1F5F9"},ticks:{color:"#64748B"}},y:{beginAtZero:!0,suggestedMax:28,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",stepSize:4,precision:0}}},elements:{line:{borderWidth:2,tension:0},point:{radius:0,hoverRadius:3,hitRadius:10}}};return w.jsx(st,{title:"Hourly Traffic Flow",className:"w-full h-[362px]",period:w.jsx(qt,{className:"text-[20px] text-[#884EA7]"}),children:w.jsx(rb,{data:t,options:n})})};function _te(){return w.jsx(st,{title:"Incident Reports",period:w.jsx(qt,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),className:"h-[362px]",children:w.jsxs("div",{children:[w.jsxs("div",{className:"flex w-full text-center gap-[24px]",children:[w.jsxs("div",{className:"flex-1 py-3 bg-[#FBF4F4] h-[76px] rounded",children:[w.jsx("div",{className:"!text-[24px] leading-[28px] font-medium text-[#AB0000]",children:"3"}),w.jsx("div",{className:"!text-[12px] leading-[16px] text-[#AB0000]",children:"Open"})]}),w.jsxs("div",{className:"flex-1 py-3 bg-[#FFFBF2] h-[76px] rounded",children:[w.jsx("div",{className:"!text-[24px] leading-[28px] font-medium text-[#E7A015]",children:"5"}),w.jsx("div",{className:"!text-[12px] leading-[16px] text-[#E7A015]",children:"In-progress"})]}),w.jsxs("div",{className:"flex-1 py-3 bg-[#F7FEFA] h-[76px] rounded",children:[w.jsx("div",{className:"!text-[24px] leading-[28px] font-medium text-[#1FA05B]",children:"12"}),w.jsx("div",{className:"!text-[12px] leading-[16px] text-[#1FA05B]",children:"Closed"})]})]}),w.jsxs("div",{className:"mt-4 ",children:[w.jsxs("div",{className:"flex items-center justify-between p-3 bg-[#FAFBFD] rounded-md border border-[#FAFBFD]",children:[w.jsxs("div",{className:"flex items-center gap-[8px]",children:[w.jsx("div",{className:"w-4 h-4 rounded-full flex items-center justify-center bg-[#AB0000]",children:w.jsx("div",{className:"text-white !text-[12px] font-bold",children:"!"})}),w.jsx("div",{className:"text-gray-700 font-medium",children:"INC 001"})]}),w.jsxs("div",{className:"px-3 py-1 rounded-full !text-[12px] font-semibold flex items-center gap-[4px] text-[#AB0000] bg-red-50",children:[w.jsx("div",{children:"4 - Danger"}),w.jsx("div",{className:"w-2 h-2 rounded-full bg-[#AB0000]"})]})]}),w.jsxs("div",{className:"flex items-center justify-between p-3 bg-[#FAFBFD] rounded-md border border-[#FAFBFD]",children:[w.jsxs("div",{className:"flex items-center gap-[8px]",children:[w.jsx("div",{className:"w-4 h-4 rounded-full flex items-center justify-center bg-[#E7A015]",children:w.jsx(a0,{className:"text-white text-[10px]"})}),w.jsx("div",{className:"text-gray-700 font-medium",children:"INC 002"})]}),w.jsxs("div",{className:"px-3 py-1 rounded-full !text-[12px] font-semibold flex items-center gap-[4px] text-[#E7A015] bg-yellow-50",children:[w.jsx("div",{children:"3 - High"}),w.jsx("div",{className:"w-2 h-2 rounded-full bg-[#E7A015]"})]})]}),w.jsxs("div",{className:"flex items-center justify-between p-3 bg-[#FAFBFD] rounded-md border border-[#FAFBFD]",children:[w.jsxs("div",{className:"flex items-center gap-[8px]",children:[w.jsx("div",{className:"w-4 h-4 rounded-full flex items-center justify-center bg-[#1FA05B]",children:w.jsx(a0,{className:"text-white text-[10px]"})}),w.jsx("div",{className:"text-gray-700 font-medium",children:"INC 003"})]}),w.jsxs("div",{className:"px-3 py-1 rounded-full !text-[12px] font-semibold flex items-center gap-[4px] text-[#1FA05B] bg-green-50",children:[w.jsx("div",{children:"1 - Low"}),w.jsx("div",{className:"w-2 h-2 rounded-full bg-[#1FA05B]"})]})]})]})]})})}function Pte(){return w.jsx(st,{title:"Staff Attendance",period:w.jsx(qt,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),className:"h-[362px]",children:w.jsxs("div",{children:[w.jsxs("div",{className:"flex w-full text-center h-[76px] gap-[16px] mb-2",children:[w.jsxs("div",{className:"flex-1 py-4 bg-green-50 rounded-md",children:[w.jsx("div",{className:"!text-[24px] leading-[18px] font-medium text-[#1FA05B] pb-[8px]",children:"25"}),w.jsx("div",{className:"!text-[12px] leading-[16px] text-[#1FA05B]",children:"Present"})]}),w.jsxs("div",{className:"flex-1 py-4 bg-red-50 rounded-md",children:[w.jsx("div",{className:"!text-[24px] leading-[18px] font-medium text-[#AB0000] pb-[8px]",children:"1"}),w.jsx("div",{className:"!text-[12px] leading-[16px] text-[#AB0000]",children:"Absent"})]})]}),w.jsxs("div",{className:"mt-[24px] ",children:[w.jsxs("div",{className:"flex justify-between items-center p-3 bg-[#FAFBFD] rounded-md",children:[w.jsx("div",{className:" font-medium !text-[12px] leading-[18px]",children:"Security guards"}),w.jsx("div",{className:"text-[#64748B] leading[20px] text-[14px]",children:"12/12 Present"})]}),w.jsxs("div",{className:"flex justify-between items-center p-3 bg-[#FAFBFD] rounded-md",children:[w.jsx("div",{className:" font-medium !text-[12px] leading-[18px]",children:"Housekeeping"}),w.jsx("div",{className:"text-[#64748B] leading[20px] text-[14px]",children:"7/8 Present"})]}),w.jsxs("div",{className:"flex justify-between items-center p-3 bg-[#FAFBFD] rounded-md",children:[w.jsx("div",{className:" font-medium !text-[12px] leading-[18px]",children:"Maintenance"}),w.jsx("div",{className:"text-[#64748B] leading[20px] text-[14px]",children:"4/4 Present"})]}),w.jsxs("div",{className:"flex justify-between items-center p-3 bg-[#FAFBFD] rounded-md",children:[w.jsx("div",{className:" font-medium !text-[12px] leading-[18px]",children:"Gardening"}),w.jsx("div",{className:"text-[#64748B] leading[20px] text-[14px]",children:"2/2 Present"})]})]})]})})}function Cte(e){return Xe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M116,132V96a12,12,0,0,1,24,0v36a12,12,0,0,1-24,0Zm12,56a16,16,0,1,0-16-16A16,16,0,0,0,128,188ZM228,56v56c0,54.29-26.32,87.22-48.4,105.29-23.71,19.39-47.44,26-48.44,26.29a12.1,12.1,0,0,1-6.32,0c-1-.28-24.73-6.9-48.44-26.29C54.32,199.22,28,166.29,28,112V56A20,20,0,0,1,48,36H208A20,20,0,0,1,228,56Zm-24,4H52v52c0,35.71,13.09,64.69,38.91,86.15A126.14,126.14,0,0,0,128,219.38a126.28,126.28,0,0,0,37.09-21.23C190.91,176.69,204,147.71,204,112Z"},child:[]}]})(e)}function Tte({title:e,value:t,delta:n,deltaLabel:r,positive:i=!0,Icon:o=Sl,iconColor:a="text-emerald-600",iconBg:s="bg-emerald-50"}){return w.jsxs(st,{title:e,icon:w.jsx("div",{className:"h-6 w-6 grid place-items-center",children:w.jsx(o,{className:`h-6 w-6 ${a}`})}),children:[w.jsx("div",{className:"text-4xl font-semibold tracking-tight text-[#121212]",children:t}),w.jsxs("div",{className:"flex items-center gap-[8px] text-[14px]",children:[w.jsx("div",{className:i?"text-emerald-600 font-medium":"text-rose-600 font-medium",children:n}),w.jsx("div",{className:"text-slate-500",children:r})]})]})}function Ate(){const e=[{title:"Total Visitors",value:160,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:u_,iconColor:"text-[#329DFF]"},{title:"Active Incidents",value:73,delta:"+2.0%",deltaLabel:"Compared to last month",positive:!0,Icon:WG,iconColor:"text-[#F69E0A]"},{title:"Missed Patrols",value:3,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:Cte,iconColor:"text-[#AB0000]"},{title:"Parking Usage",value:5,delta:"-8.0%",deltaLabel:"Compared to last month",positive:!1,Icon:iD,iconColor:"text-[#36AB6C]"}];return w.jsx("div",{className:"px-5 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[24px]",children:e.map((t,n)=>w.jsx(Tte,{...t},n))})}const kte=[{title:"Maintenance",total:25,pending:8},{title:"Security",total:15,pending:3},{title:"Housekeeping",total:12,pending:4},{title:"Utilities",total:10,pending:2}];function Mte(){return w.jsx(st,{title:"Complaints",period:w.jsx(qt,{className:"text-[20px] text-[#884EA7]"}),className:"h-[362px]",children:w.jsx("div",{className:"flex flex-col gap-[12px]",children:kte.map((e,t)=>w.jsxs("div",{className:"flex items-center justify-between bg-[#F9FAFB] rounded-lg p-3 h-[62px]",children:[w.jsxs("div",{className:"flex flex-col",children:[w.jsx("div",{className:"text-[14px] leading-[18px] font-medium text-[#121212]",children:e.title}),w.jsxs("div",{className:"!text-[12px] leading-[16px] text-[#64748B]",children:["Total: ",e.total]})]}),w.jsxs("div",{className:"flex flex-col items-end",children:[w.jsx("div",{className:"text-[14px] leading-[18px] font-medium text-red-700",children:String(e.pending).padStart(2,"0")}),w.jsx("div",{className:"!text-[12px] leading-[16px] text-[#64748B]",children:"Pending"})]})]},t))})})}Tn.register(Ki,Yi,Zl,gr,mr);const jte=({blocks:e=[{name:"Level 1",owner:110,rented:24,vacant:8},{name:"Level 2",owner:95,rented:18,vacant:6},{name:"Level 3",owner:65,rented:12,vacant:18},{name:"Level 4",owner:78,rented:16,vacant:30}]})=>{const t=e.map(s=>s.name),n=e.map(s=>s.owner),r=e.map(s=>s.rented),i=e.map(s=>s.vacant),o={labels:t,datasets:[{label:"Closed",data:n,backgroundColor:"#12B981",barThickness:44},{label:"",data:n.map(()=>2),backgroundColor:"transparent",barThickness:44},{label:"In Progress",data:r,backgroundColor:"#F59D0D",barThickness:44},{label:"",data:n.map(()=>2),backgroundColor:"transparent",barThickness:44},{label:"Open",data:i,backgroundColor:"#EF4444",barThickness:44}]},a={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom",labels:{usePointStyle:!0,boxWidth:10,boxHeight:10,pointStyle:"rectRot",padding:20}},tooltip:{callbacks:{label:s=>`${s.dataset.label}: ${s.parsed.y}`}}},scales:{x:{stacked:!0,grid:{display:!1},ticks:{color:"#64748B"}},y:{stacked:!0,beginAtZero:!0,suggestedMax:180,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",stepSize:20}}}};return w.jsx(st,{title:"Complaints by Level",className:"w-full h-[362px]",period:w.jsx(qt,{className:"text-[20px] text-[#884EA7]"}),children:w.jsx(Jl,{data:o,options:a})})},Nte=[{title:"Access Card",total:45,pending:11},{title:"NOC Request",total:12,pending:7},{title:"Parking Allocation",total:8,pending:6},{title:"Document Request",total:25,pending:2}];function Rte(){return w.jsx(st,{title:"Request Box",period:w.jsx(qt,{className:"text-[20px] text-[#884EA7]"}),className:"h-[362px]",children:w.jsx("div",{className:"flex flex-col gap-[12px]",children:Nte.map((e,t)=>w.jsxs("div",{className:"flex items-center justify-between bg-[#F9FAFB] rounded-lg p-3 h-[62px]",children:[w.jsxs("div",{className:"flex flex-col",children:[w.jsx("div",{className:"text-[14px] leading-[18px] font-medium text-[#121212]",children:e.title}),w.jsxs("div",{className:"!text-[12px] leading-[16px] text-[#64748B]",children:["Total: ",e.total]})]}),w.jsxs("div",{className:"flex flex-col items-end",children:[w.jsx("div",{className:"text-[14px] leading-[18px] font-medium text-red-700",children:String(e.pending).padStart(2,"0")}),w.jsx("div",{className:"!text-[12px] leading-[16px] text-[#64748B]",children:"Pending"})]})]},t))})})}function Dte(e){return Xe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"32",d:"M416 221.25V416a48 48 0 0 1-48 48H144a48 48 0 0 1-48-48V96a48 48 0 0 1 48-48h98.75a32 32 0 0 1 22.62 9.37l141.26 141.26a32 32 0 0 1 9.37 22.62z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 56v120a32 32 0 0 0 32 32h120m-232 80h160m-160 80h160"},child:[]}]})(e)}function Ite({title:e,value:t,delta:n,deltaLabel:r,positive:i=!0,Icon:o=Sl,iconColor:a="text-emerald-600",iconBg:s="bg-emerald-50"}){return w.jsxs(st,{title:e,icon:w.jsx("div",{className:"h-6 w-6 grid place-items-center",children:w.jsx(o,{className:`h-6 w-6 ${a}`})}),children:[w.jsx("div",{className:"text-4xl font-semibold tracking-tight text-[#121212]",children:t}),w.jsxs("div",{className:"flex items-center gap-[8px] text-[14px]",children:[w.jsx("div",{className:i?"text-emerald-600 font-medium":"text-rose-600 font-medium",children:n}),w.jsx("div",{className:"text-slate-500",children:r})]})]})}function $te(){const e=[{title:"Open Complaints",value:145,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:l_,iconColor:"text-[#AB0000]"},{title:"Pending Requests",value:83,delta:"+2.0%",deltaLabel:"Compared to last month",positive:!0,Icon:Dte,iconColor:"text-[#E7A015]"},{title:"Avg Response Time",value:"3h",delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:tD,iconColor:"text-[#1FA05B]"},{title:"Resolution Rate",value:"93%",delta:"-8.0%",deltaLabel:"Compared to last month",positive:!1,Icon:ZR,iconColor:"text-[#329DFF]"}];return w.jsx("div",{className:"px-5 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[24px]",children:e.map((t,n)=>w.jsx(Ite,{...t},n))})}function yE({title:e,date:t,rsvp:n,utilisation:r,status:i}){return w.jsxs("div",{className:" bg-[#F8FAFC] h-[106px] px-3 mt-3",children:[w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsx("div",{className:"text-[16px] leading-[20px] font-semibold text-[#121212]",children:e}),w.jsx("div",{className:`!text-[12px] font-medium leading-[16px] px-2 py-1 ${i==="Completed"?"text-[#36AB6C] bg-[#E6F7EE]":i==="Upcoming"?"text-[#329DFF] bg-[#E6F2FF]":"text-slate-500 bg-slate-100"}`,children:i})]}),w.jsx("div",{className:"text-[14px] leading-[18px] text-[#64748B]",children:t}),w.jsxs("div",{className:"flex justify-between items-center mt-2",children:[w.jsxs("div",{className:"text-[14px] leading-[18px] text-[#64748B]",children:[n," RSVP"]}),w.jsxs("div",{className:"text-[#3C82F6] text-[14px] leading-[18px] font-medium",children:[r,"% utilisation"]})]}),w.jsx("div",{className:"w-full bg-[#F8FAFC] h-[6px] rounded mt-2 mb-3",children:w.jsx("div",{className:"h-[6px] rounded bg-[#3C82F6]",style:{width:`${r}%`}})})]})}function Lte(){return w.jsx(st,{title:"Events Utilisation",period:w.jsx(qt,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),className:"w-full h-[360px]",children:w.jsxs("div",{children:[w.jsx(yE,{title:"Holi Celebration",date:"25 Jun 2025",rsvp:"78/100",utilisation:71,status:"Upcoming"}),w.jsx(yE,{title:"Maintenance Meeting",date:"25 Jun 2025",rsvp:"45/60",utilisation:75,status:"Completed"})]})})}function Kc({label:e,value:t,subLabel:n,bgColor:r,textColor:i}){return w.jsxs("div",{className:`rounded-lg p-4 ${r} h-[124px]`,children:[w.jsx("div",{className:`text-[16px] font-medium ${i} leading-[20px]`,children:e}),w.jsx("div",{className:"mt-4 text-[28px] leading-[32px] font-semibold text-[#121212]",children:t}),w.jsx("div",{className:"!text-[12px] leading-[16px] text-[#64748B] mt-2",children:n})]})}function Fte(){return w.jsx(st,{title:"Notice Board Status",period:w.jsx(qt,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),className:"w-full h-[360px]",children:w.jsxs("div",{className:"grid grid-cols-2 gap-[16px]",children:[w.jsx(Kc,{label:"Active",value:138,subLabel:"3 expiring soon",bgColor:"bg-[#F0FFF7]",textColor:"text-[#1FA05B]"}),w.jsx(Kc,{label:"Scheduled",value:13,subLabel:"4 this week",bgColor:"bg-[#FFFBF2]",textColor:"text-[#E7A015]"}),w.jsx(Kc,{label:"Recurring",value:3,subLabel:"All active",bgColor:"bg-[#EDF6FF]",textColor:"text-[#329DFF]"}),w.jsx(Kc,{label:"Expired",value:7,subLabel:"4 recent",bgColor:"bg-[#F6F6F6]",textColor:"text-[#64748B]"})]})})}function nM(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 9H16V11H8V9ZM8 13H16V15H8V13Z"},child:[]}]})(e)}function Bte({title:e,value:t,delta:n,deltaLabel:r,positive:i=!0,Icon:o=Sl,iconColor:a="text-emerald-600",iconBg:s="bg-emerald-50"}){return w.jsx(st,{title:e,icon:w.jsx("div",{className:`h-6 w-6 grid place-items-center rounded-md ${s}`,children:w.jsx(o,{className:`h-4 w-4 ${a}`})}),className:"h-[132px]",children:w.jsxs("div",{children:[w.jsx("div",{className:"text-[28px] leading-[32px] font-medium text-[#121212]",children:t}),w.jsxs("div",{className:"flex items-center gap-[8px] pt-[8px] !text-[12px] leading-[16px]",children:[w.jsx("div",{className:i?"text-[#1FA05B] font-medium":"text-rose-600 font-medium",children:n}),w.jsx("div",{className:"text-[#64748B]",children:r})]})]})})}function zte({data:e}){const t=[{title:e?.title||"Total Bookings",value:145,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:nM,iconColor:"text-emerald-600",iconBg:"bg-emerald-50"}];return w.jsx("div",{className:"h-full",children:t.map((n,r)=>w.jsx(Bte,{...n},r))})}function Vte(e){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"},child:[]}]})(e)}function Wte({title:e,value:t,delta:n,deltaLabel:r,positive:i=!0,Icon:o=Sl,iconColor:a="text-emerald-600",iconBg:s="bg-emerald-50"}){return w.jsx(st,{title:e,icon:w.jsx("div",{className:`h-6 w-6 grid place-items-center rounded-md ${s}`,children:w.jsx(o,{className:`h-4 w-4 ${a}`})}),className:"h-[132px]",children:w.jsxs("div",{children:[w.jsx("div",{className:"text-[28px] leading-[32px] font-medium text-[#121212]",children:t}),w.jsxs("div",{className:"flex items-center gap-[8px] pt-[8px] !text-[12px] leading-[16px]",children:[w.jsx("div",{className:i?"text-[#1FA05B] font-medium":"text-rose-600 font-medium",children:n}),w.jsx("div",{className:"text-[#64748B]",children:r})]})]})})}function Ute(){const e=[{title:"Notice",value:160,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:nM,iconColor:"text-emerald-600",iconBg:"bg-emerald-50"},{title:"Post",value:83,delta:"+2.0%",deltaLabel:"Compared to last month",positive:!0,Icon:oD,iconColor:"text-[#329DFF]",iconBg:"bg-emerald-50"},{title:"Poll",value:3,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:zG,iconColor:"text-[#FA7E28]",iconBg:"bg-orange-100"},{title:"Poll",value:5,delta:"-8.0%",deltaLabel:"Compared to last month",positive:!1,Icon:Vte,iconColor:"text-[#DBB467]",iconBg:"bg-yellow-100"}];return w.jsx("div",{className:"px-5 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[24px]",children:e.map((t,n)=>w.jsx(Wte,{...t},n))})}exports.Accounting=fte;exports.AssetValueBreakdown=vte;exports.BlockWiseOccupancy=lte;exports.Budgets=pte;exports.Card=st;exports.CashBankBalance=hte;exports.Community=HG;exports.Complaints=Mte;exports.ComplaintsByLevel=jte;exports.DuesAgeing=mte;exports.Engagement=qG;exports.EngagementStatsGrid=Ute;exports.EventsUtilisation=Lte;exports.ExpenseCategories=gte;exports.Facilities=KG;exports.FinanceSummary=YG;exports.GateAndSecurityStatsGrid=Ate;exports.GateUpdates=RX;exports.GuardPatrols=Ste;exports.Header=nD;exports.Helpdesk=DX;exports.HelpdeskStatsGrid=$te;exports.HourlyTrafficFlow=Ete;exports.IncidentReports=_te;exports.IncomeExpenditure=tM;exports.MainHeader=lD;exports.MoveInOutTrends=ute;exports.NoticeBoardStatus=Fte;exports.OccupancyOverview=ote;exports.RequestBox=Rte;exports.ResidentOverview=ste;exports.RevenuebyCategory=yte;exports.SingleStats=zte;exports.StaffAttendance=Pte;exports.StatsGrid=Ote;exports.UnitStatus=ite;
|
|
346
|
+
`):e}function Lee(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:a,value:s}=o.getLabelAndValue(i);return{chart:e,label:a,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function eE(e,t){const n=e.chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:a,boxHeight:s}=t,l=Sn(t.bodyFont),c=Sn(t.titleFont),u=Sn(t.footerFont),d=o.length,p=i.length,h=r.length,g=pr(t.padding);let m=g.height,v=0,y=r.reduce((b,O)=>b+O.before.length+O.lines.length+O.after.length,0);if(y+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),y){const b=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;m+=h*b+(y-h)*l.lineHeight+(y-1)*t.bodySpacing}p&&(m+=t.footerMarginTop+p*u.lineHeight+(p-1)*t.footerSpacing);let S=0;const x=function(b){v=Math.max(v,n.measureText(b).width+S)};return n.save(),n.font=c.string,Ue(e.title,x),n.font=l.string,Ue(e.beforeBody.concat(e.afterBody),x),S=t.displayColors?a+2+t.boxPadding:0,Ue(r,b=>{Ue(b.before,x),Ue(b.lines,x),Ue(b.after,x)}),S=0,n.font=u.string,Ue(e.footer,x),n.restore(),v+=g.width,{width:v,height:m}}function Fee(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function Bee(e,t,n,r){const{x:i,width:o}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&i+o+a>t.width||e==="right"&&i-o-a<0)return!0}function zee(e,t,n,r){const{x:i,width:o}=n,{width:a,chartArea:{left:s,right:l}}=e;let c="center";return r==="center"?c=i<=(s+l)/2?"left":"right":i<=o/2?c="left":i>=a-o/2&&(c="right"),Bee(c,e,t,n)&&(c="center"),c}function tE(e,t,n){const r=n.yAlign||t.yAlign||Fee(e,n);return{xAlign:n.xAlign||t.xAlign||zee(e,t,n,r),yAlign:r}}function Vee(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function Wee(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function nE(e,t,n,r){const{caretSize:i,caretPadding:o,cornerRadius:a}=e,{xAlign:s,yAlign:l}=n,c=i+o,{topLeft:u,topRight:d,bottomLeft:p,bottomRight:h}=ha(a);let g=Vee(t,s);const m=Wee(t,l,c);return l==="center"?s==="left"?g+=c:s==="right"&&(g-=c):s==="left"?g-=Math.max(u,p)+i:s==="right"&&(g+=Math.max(d,h)+i),{x:ln(g,0,r.width-t.width),y:ln(m,0,r.height-t.height)}}function Uc(e,t,n){const r=pr(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function rE(e){return wr([],Hr(e))}function Uee(e,t,n){return Uo(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function iE(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const Zk={beforeTitle:Wr,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:Wr,beforeBody:Wr,beforeLabel:Wr,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return ze(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Wr,afterBody:Wr,beforeFooter:Wr,footer:Wr,afterFooter:Wr};function yn(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?Zk[t].call(n,r):i}class oE extends qi{static positioners=ks;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new Dk(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=Uee(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=yn(r,"beforeTitle",this,t),o=yn(r,"title",this,t),a=yn(r,"afterTitle",this,t);let s=[];return s=wr(s,Hr(i)),s=wr(s,Hr(o)),s=wr(s,Hr(a)),s}getBeforeBody(t,n){return rE(yn(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return Ue(t,o=>{const a={before:[],lines:[],after:[]},s=iE(r,o);wr(a.before,Hr(yn(s,"beforeLabel",this,o))),wr(a.lines,yn(s,"label",this,o)),wr(a.after,Hr(yn(s,"afterLabel",this,o))),i.push(a)}),i}getAfterBody(t,n){return rE(yn(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=yn(r,"beforeFooter",this,t),o=yn(r,"footer",this,t),a=yn(r,"afterFooter",this,t);let s=[];return s=wr(s,Hr(i)),s=wr(s,Hr(o)),s=wr(s,Hr(a)),s}_createItems(t){const n=this._active,r=this.chart.data,i=[],o=[],a=[];let s=[],l,c;for(l=0,c=n.length;l<c;++l)s.push(Lee(this.chart,n[l]));return t.filter&&(s=s.filter((u,d,p)=>t.filter(u,d,p,r))),t.itemSort&&(s=s.sort((u,d)=>t.itemSort(u,d,r))),Ue(s,u=>{const d=iE(t.callbacks,u);i.push(yn(d,"labelColor",this,u)),o.push(yn(d,"labelPointStyle",this,u)),a.push(yn(d,"labelTextColor",this,u))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=s,s}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,a=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const s=ks[r.position].call(this,i,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const l=this._size=eE(this,r),c=Object.assign({},s,l),u=tE(this.chart,r,c),d=nE(r,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,o={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const o=this.getCaretPosition(t,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:o}=this,{caretSize:a,cornerRadius:s}=r,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=ha(s),{x:p,y:h}=t,{width:g,height:m}=n;let v,y,S,x,b,O;return o==="center"?(b=h+m/2,i==="left"?(v=p,y=v-a,x=b+a,O=b-a):(v=p+g,y=v+a,x=b-a,O=b+a),S=v):(i==="left"?y=p+Math.max(l,u)+a:i==="right"?y=p+g-Math.max(c,d)-a:y=this.caretX,o==="top"?(x=h,b=x-a,v=y-a,S=y+a):(x=h+m,b=x+a,v=y+a,S=y-a),O=x),{x1:v,x2:y,x3:S,y1:x,y2:b,y3:O}}drawTitle(t,n,r){const i=this.title,o=i.length;let a,s,l;if(o){const c=ma(r.rtl,this.x,this.width);for(t.x=Uc(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",a=Sn(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,l=0;l<o;++l)n.fillText(i[l],c.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+s,l+1===o&&(t.y+=r.titleMarginBottom-s)}}_drawColorBox(t,n,r,i,o){const a=this.labelColors[r],s=this.labelPointStyles[r],{boxHeight:l,boxWidth:c}=o,u=Sn(o.bodyFont),d=Uc(this,"left",o),p=i.x(d),h=l<u.lineHeight?(u.lineHeight-l)/2:0,g=n.y+h;if(o.usePointStyle){const m={radius:Math.min(c,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},v=i.leftForLtr(p,c)+c/2,y=g+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,rg(t,m,v,y),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,rg(t,m,v,y)}else{t.lineWidth=Ae(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const m=i.leftForLtr(p,c),v=i.leftForLtr(i.xPlus(p,1),c-2),y=ha(a.borderRadius);Object.values(y).some(S=>S!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,ud(t,{x:m,y:g,w:c,h:l,radius:y}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),ud(t,{x:v,y:g+1,w:c-2,h:l-2,radius:y}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(m,g,c,l),t.strokeRect(m,g,c,l),t.fillStyle=a.backgroundColor,t.fillRect(v,g+1,c-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:a,displayColors:s,boxHeight:l,boxWidth:c,boxPadding:u}=r,d=Sn(r.bodyFont);let p=d.lineHeight,h=0;const g=ma(r.rtl,this.x,this.width),m=function(T){n.fillText(T,g.x(t.x+h),t.y+p/2),t.y+=p+o},v=g.textAlign(a);let y,S,x,b,O,E,C;for(n.textAlign=a,n.textBaseline="middle",n.font=d.string,t.x=Uc(this,v,r),n.fillStyle=r.bodyColor,Ue(this.beforeBody,m),h=s&&v!=="right"?a==="center"?c/2+u:c+2+u:0,b=0,E=i.length;b<E;++b){for(y=i[b],S=this.labelTextColors[b],n.fillStyle=S,Ue(y.before,m),x=y.lines,s&&x.length&&(this._drawColorBox(n,t,b,g,r),p=Math.max(d.lineHeight,l)),O=0,C=x.length;O<C;++O)m(x[O]),p=d.lineHeight;Ue(y.after,m)}h=0,p=d.lineHeight,Ue(this.afterBody,m),t.y-=o}drawFooter(t,n,r){const i=this.footer,o=i.length;let a,s;if(o){const l=ma(r.rtl,this.x,this.width);for(t.x=Uc(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",a=Sn(r.footerFont),n.fillStyle=r.footerColor,n.font=a.string,s=0;s<o;++s)n.fillText(i[s],l.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:o,yAlign:a}=this,{x:s,y:l}=t,{width:c,height:u}=r,{topLeft:d,topRight:p,bottomLeft:h,bottomRight:g}=ha(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(s+d,l),a==="top"&&this.drawCaret(t,n,r,i),n.lineTo(s+c-p,l),n.quadraticCurveTo(s+c,l,s+c,l+p),a==="center"&&o==="right"&&this.drawCaret(t,n,r,i),n.lineTo(s+c,l+u-g),n.quadraticCurveTo(s+c,l+u,s+c-g,l+u),a==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(s+h,l+u),n.quadraticCurveTo(s,l+u,s,l+u-h),a==="center"&&o==="left"&&this.drawCaret(t,n,r,i),n.lineTo(s,l+d),n.quadraticCurveTo(s,l,s+d,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const a=ks[t.position].call(this,this._active,this._eventPosition);if(!a)return;const s=this._size=eE(this,t),l=Object.assign({},a,this._size),c=tE(n,t,l),u=nE(t,l,c,n);(i._to!==u.x||o._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=s.width,this.height=s.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=pr(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,i,n),jk(t,n.textDirection),o.y+=a.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),Nk(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:s,index:l})=>{const c=this.chart.getDatasetMeta(s);if(!c)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:c.data[l],index:l}}),o=!ad(r,i),a=this._positionChanged(i,n);(o||a)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],a=this._getActiveElements(t,o,n,r),s=this._positionChanged(a,t),l=n||!ad(a,o)||s;return l&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(s=>this.chart.data.datasets[s.datasetIndex]&&this.chart.getDatasetMeta(s.datasetIndex).controller.getParsed(s.index)!==void 0);const a=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:i,options:o}=this,a=ks[o.position].call(this,t,n);return a!==!1&&(r!==a.x||i!==a.y)}}var gr={id:"tooltip",_element:oE,positioners:ks,afterInit(e,t,n){n&&(e.tooltip=new oE({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Zk},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const Hee=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function qee(e,t,n,r){const i=e.indexOf(t);if(i===-1)return Hee(e,t,n,r);const o=e.lastIndexOf(t);return i!==o?n:i}const Kee=(e,t)=>e===null?null:ln(Math.round(e),0,t);function aE(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class Ki extends Ga{static id="category";static defaults={ticks:{callback:aE}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:o}of n)r[i]===o&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(ze(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:qee(r,t,Oe(n,t),this._addedLabels),Kee(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,i=[];let o=this.getLabels();o=t===0&&n===o.length-1?o:o.slice(t,n+1),this._valueRange=Math.max(o.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let a=t;a<=n;a++)i.push({value:a});return i}getLabelForValue(t){return aE.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Yee(e,t){const n=[],{bounds:i,step:o,min:a,max:s,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:p}=e,h=o||1,g=u-1,{min:m,max:v}=t,y=!ze(a),S=!ze(s),x=!ze(c),b=(v-m)/(d+1);let O=sS((v-m)/g/h)*h,E,C,T,k;if(O<1e-14&&!y&&!S)return[{value:m},{value:v}];k=Math.ceil(v/O)-Math.floor(m/O),k>g&&(O=sS(k*O/g/h)*h),ze(l)||(E=Math.pow(10,l),O=Math.ceil(O*E)/E),i==="ticks"?(C=Math.floor(m/O)*O,T=Math.ceil(v/O)*O):(C=m,T=v),y&&S&&o&&mZ((s-a)/o,O/1e3)?(k=Math.round(Math.min((s-a)/O,u)),O=(s-a)/k,C=a,T=s):x?(C=y?a:C,T=S?s:T,k=c-1,O=(T-C)/k):(k=(T-C)/O,Bs(k,Math.round(k),O/1e3)?k=Math.round(k):k=Math.ceil(k));const R=Math.max(lS(O),lS(C));E=Math.pow(10,ze(l)?R:l),C=Math.round(C*E)/E,T=Math.round(T*E)/E;let M=0;for(y&&(p&&C!==a?(n.push({value:a}),C<a&&M++,Bs(Math.round((C+M*O)*E)/E,a,sE(a,b,e))&&M++):C<a&&M++);M<k;++M){const P=Math.round((C+M*O)*E)/E;if(S&&P>s)break;n.push({value:P})}return S&&p&&T!==s?n.length&&Bs(n[n.length-1].value,s,sE(s,b,e))?n[n.length-1].value=s:n.push({value:s}):(!S||T===s)&&n.push({value:T}),n}function sE(e,t,{horizontal:n,minRotation:r}){const i=Jr(r),o=(n?Math.sin(i):Math.cos(i))||.001,a=.75*t*(""+e).length;return Math.min(t/o,a)}class Gee extends Ga{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return ze(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:o}=this;const a=l=>i=n?i:l,s=l=>o=r?o:l;if(t){const l=Mr(i),c=Mr(o);l<0&&c<0?s(0):l>0&&c>0&&a(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);s(o+l),t||a(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,a=Yee(i,o);return t.bounds==="ticks"&&gZ(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Wy(t,this.chart.options.locale,this.options.ticks.format)}}class Yi extends Gee{static id="linear";static defaults={ticks:{callback:Ek.formatters.numeric}};determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=sr(t)?t:0,this.max=sr(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Jr(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const Af={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},wn=Object.keys(Af);function lE(e,t){return e-t}function cE(e,t){if(ze(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),sr(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(i&&(a=i==="week"&&(ml(o)||o===!0)?n.startOf(a,"isoWeek",o):n.startOf(a,i)),+a)}function uE(e,t,n,r){const i=wn.length;for(let o=wn.indexOf(e);o<i-1;++o){const a=Af[wn[o]],s=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((n-t)/(s*a.size))<=r)return wn[o]}return wn[i-1]}function Xee(e,t,n,r,i){for(let o=wn.length-1;o>=wn.indexOf(n);o--){const a=wn[o];if(Af[a].common&&e._adapter.diff(i,r,a)>=t-1)return a}return wn[n?wn.indexOf(n):0]}function Zee(e){for(let t=wn.indexOf(e)+1,n=wn.length;t<n;++t)if(Af[wn[t]].common)return wn[t]}function dE(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=zy(n,t),o=n[r]>=t?n[r]:n[i];e[o]=!0}}function Jee(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),a=t[t.length-1].value;let s,l;for(s=o;s<=a;s=+i.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}function fE(e,t,n){const r=[],i={},o=t.length;let a,s;for(a=0;a<o;++a)s=t[a],i[s]=a,r.push({value:s,major:!1});return o===0||!n?r:Jee(e,r,i,n)}class pE extends Ga{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const r=t.time||(t.time={}),i=this._adapter=new iQ._date(t.adapters.date);i.init(n),Fs(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:cE(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:i,max:o,minDefined:a,maxDefined:s}=this.getUserBounds();function l(c){!a&&!isNaN(c.min)&&(i=Math.min(i,c.min)),!s&&!isNaN(c.max)&&(o=Math.max(o,c.max))}(!a||!s)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=sr(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),o=sr(o)&&!isNaN(o)?o:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,a=this.max,s=wZ(i,o,a);return this._unit=n.unit||(r.autoSkip?uE(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):Xee(this,s.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:Zee(this._unit),this.initOffsets(i),t.reverse&&s.reverse(),fE(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?r=o:r=(o-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=ln(n,0,a),r=ln(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,a=o.unit||uE(o.minUnit,n,r,this._getLabelCapacity(n)),s=Oe(i.ticks.stepSize,1),l=a==="week"?o.isoWeekday:!1,c=ml(l)||l===!0,u={};let d=n,p,h;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":a),t.diff(r,n,a)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+a);const g=i.ticks.source==="data"&&this.getDataTimestamps();for(p=d,h=0;p<r;p=+t.add(p,s,a),h++)dE(u,p,g);return(p===r||i.bounds==="ticks"||h===1)&&dE(u,p,g),Object.keys(u).sort(lE).map(m=>+m)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,o=this._unit,a=n||i[o];return this._adapter.format(t,a)}_tickFormatFunction(t,n,r,i){const o=this.options,a=o.ticks.callback;if(a)return lt(a,[t,n,r],this);const s=o.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&s[l],d=c&&s[c],p=r[n],h=c&&d&&p&&p.major;return this._adapter.format(t,i||(h?d:u))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n<r;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,i=Jr(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(i),a=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:r*o+s*a,h:r*a+s*o}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,o=this._tickFormatFunction(t,0,fE(this,[t],this._majorUnit),i),a=this._getLabelSize(o),s=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return s>0?s:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)t.push(cE(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return xk(t.sort(lE))}}function Hc(e,t,n){let r=0,i=e.length-1,o,a,s,l;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=bo(e,"pos",t)),{pos:o,time:s}=e[r],{pos:a,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=bo(e,"time",t)),{time:o,pos:s}=e[r],{time:a,pos:l}=e[i]);const c=a-o;return c?s+(l-s)*(t-o)/c:s}class fne extends pE{static id="timeseries";static defaults=pE.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Hc(n,this.min),this._tableRange=Hc(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],o=[];let a,s,l,c,u;for(a=0,s=t.length;a<s;++a)c=t[a],c>=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,s=i.length;a<s;++a)u=i[a+1],l=i[a-1],c=i[a],Math.round((u+l)/2)!==c&&o.push({time:c,pos:a/(s-1)});return o}_generate(){const t=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(t)||!r.length)&&r.splice(0,0,t),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((i,o)=>i-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(Hc(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return Hc(this._table,r*this._tableRange+this._minPos,!0)}}const Jk="label";function hE(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Qee(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function Qk(e,t){e.labels=t}function eM(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Jk;const r=[];e.datasets=t.map(i=>{const o=e.datasets.find(a=>a[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function ete(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jk;const n={labels:[],datasets:[]};return Qk(n,e.labels),eM(n,e.datasets,t),n}function tte(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:a,data:s,options:l,plugins:c=[],fallbackContent:u,updateMode:d,...p}=e,h=I.useRef(null),g=I.useRef(null),m=()=>{h.current&&(g.current=new Tn(h.current,{type:a,data:ete(s,o),options:l&&{...l},plugins:c}),hE(t,g.current))},v=()=>{hE(t,null),g.current&&(g.current.destroy(),g.current=null)};return I.useEffect(()=>{!i&&g.current&&l&&Qee(g.current,l)},[i,l]),I.useEffect(()=>{!i&&g.current&&Qk(g.current.config.data,s.labels)},[i,s.labels]),I.useEffect(()=>{!i&&g.current&&s.datasets&&eM(g.current.config.data,s.datasets,o)},[i,s.datasets]),I.useEffect(()=>{g.current&&(i?(v(),setTimeout(m)):g.current.update(d))},[i,l,s.labels,s.datasets,d]),I.useEffect(()=>{g.current&&(v(),setTimeout(m))},[a]),I.useEffect(()=>(m(),()=>v()),[]),I.createElement("canvas",{ref:h,role:"img",height:n,width:r,...p},u)}const nte=I.forwardRef(tte);function nb(e,t){return Tn.register(t),I.forwardRef((n,r)=>I.createElement(nte,{...n,ref:r,type:e}))}const rb=nb("line",rQ),Jl=nb("bar",eQ),ib=nb("doughnut",nQ);Tn.register(Qy,gr,mr);const rte={id:"centerText",afterDraw(e,t,n){const{ctx:r}=e,i=e.getDatasetMeta(0);if(!i?.data?.[0])return;const{x:o,y:a}=i.data[0],{top:s="",bottom:l="",topSize:c=20,bottomSize:u=10,topColor:d="#0F172A",bottomColor:p="#64748B"}=n||{};r.save(),r.textAlign="center",r.textBaseline="middle",r.fillStyle=d,r.font=`600 ${c}px Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif`,r.fillText(s,o,a-5),r.fillStyle=p,r.font=`500 ${u}px Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif`,r.fillText(l,o,a+12),r.restore()}},ite=({sold:e=847,unsold:t=73,growthPct:n="+9.1%"})=>{const r=e+t,i={labels:["Sold","Unsold"],datasets:[{data:[e,t],backgroundColor:["#12B981","#EF4444"],borderWidth:2,hoverOffset:4}]},o={responsive:!0,maintainAspectRatio:!1,cutout:"68%",plugins:{legend:{display:!1},tooltip:{callbacks:{label:a=>`${a.label}: ${a.parsed}`},displayColors:!1},centerText:{top:`${r}`,bottom:"Total Units",topSize:20,bottomSize:10}}};return w.jsx(st,{title:"Unit Status",period:"This Month",icon:w.jsx(_g,{className:"h-6 w-6 text-green-600"}),className:"h-[238px]",children:w.jsxs("div",{className:"grid grid-cols-12 gap-[16px] items-center",children:[w.jsxs("div",{className:"col-span-5 space-y-3",children:[w.jsxs("div",{children:[w.jsx("div",{className:"!text-[12px] lending-[16px] text-[#64748B]",children:"Sold"}),w.jsx("div",{className:"text-[28px] leading-[32px] text-[#1FA05B]",children:e})]}),w.jsxs("div",{children:[w.jsx("div",{className:"!text-[12px] lending-[16px] text-[#64748B]",children:"Unsold"}),w.jsx("div",{className:"text-[28px] leading-[32px] text-[#EF4444]",children:t})]}),w.jsxs("div",{className:"text-[10px] text-[#1FA05B] flex gap-[8px] items-center ",children:[n," ",w.jsx("div",{className:"text-[#64748B] text-[10px]",children:"Compared to last month"})]})]}),w.jsx("div",{className:"col-span-7",children:w.jsx("div",{className:"h-[158px] w-[158px] ml-auto mr-2",children:w.jsx(ib,{data:i,options:o,plugins:[rte]})})})]})})},mE=({value:e=0,total:t=1,colorClass:n="",label:r=""})=>{const i=Math.max(0,Math.min(100,e/(t||1)*100)),o=n==="bg-[#8B5CF6]"?"text-[#8B5CF6]":n==="bg-[#12B981]"?"text-[#12B981]":"text-slate-600";return w.jsxs("div",{className:"flex flex-col items-start",children:[w.jsx("div",{className:"w-2/3 min-w-[80px] h-3 rounded-full overflow-hidden",children:w.jsx("div",{className:`h-3 rounded-full ${n}`,style:{width:`${i}%`}})}),w.jsx("div",{className:`${o} !text-[12px] font-bold mt-1`,children:e}),w.jsx("div",{className:"!text-[12px] text-[#64748B] mt-1",children:r})]})},gE=({title:e,value:t,suffix:n,valueClass:r=""})=>w.jsxs("div",{className:"bg-white border border-[#EBEBEB] rounded-xl shadow-[0_0_12px_0_#EAF2FF] h-[98px] p-4 flex flex-col justify-center",children:[w.jsx("div",{className:"!text-[12px] leading-[16px] text-[#121212] mb-1",children:e}),w.jsxs("div",{className:`text-[28px] leading-[32px] flex item gap-[4px] font-medium ${r}`,children:[t," ",n&&w.jsx("div",{className:"text-[28px] leading-[32px] font-medium",children:n})]})]}),ote=({totalUnits:e=847,occupiedUnits:t=756,ownerCount:n=700,tenantCount:r=56,avgResidents:i=4.4,avgLeaseMonths:o=18})=>{const a=n+r;return w.jsxs("div",{children:[w.jsxs("div",{className:"bg-white border border-[#EBEBEB] rounded-xl shadow-[0_0_12px_0_#EAF2FF] p-4 h-[128px]",children:[w.jsxs("div",{className:"flex items-center gap-[12px] mb-4",children:[w.jsx(u_,{className:"h-6 w-6 text-[#329DFF]"}),w.jsx("div",{className:"font-medium text-[#121212]",children:"Occupancy Overview"})]}),w.jsxs("div",{className:"flex items-center justify-between gap-",children:[w.jsxs("div",{children:[w.jsx("div",{className:"text-xs leading-[16px] text-[#64748B]",children:"Occupied Units"}),w.jsxs("div",{className:"flex items-center gap-1",children:[w.jsx("div",{className:"text-[28px] leading-[32px] font-medium text-[#121212]",children:t}),w.jsxs("div",{className:"text-[#64748B] text-[20px] leading-[32px]",children:["/",e]})]})]}),w.jsxs("div",{className:"flex items-end",children:[w.jsx(mE,{value:n,total:a,colorClass:"bg-[#8B5CF6]",label:"Owner"}),w.jsx(mE,{value:r,total:a,colorClass:"bg-[#12B981]",label:"Tenant"})]})]})]}),w.jsxs("div",{className:"mt-2.5 grid grid-cols-2 gap-[12px]",children:[w.jsx(gE,{title:"Avg Residents Per Unit",value:i,valueClass:"text-[#8B5CF6]"}),w.jsx(gE,{title:"Avg Lease Period",value:o,suffix:"months",valueClass:"text-[#E7A015]"})]})]})};Tn.register(Qy,gr,mr);const ate={id:"centerText",afterDraw(e,t,n){const{ctx:r}=e,i=e.getDatasetMeta(0);if(!i?.data?.[0])return;const{x:o,y:a}=i.data[0],{top:s="",bottom:l="",topSize:c=20,bottomSize:u=10,topColor:d="#0F172A",bottomColor:p="#64748B"}=n||{};r.save(),r.textAlign="center",r.textBaseline="middle",r.fillStyle=d,r.font=`600 ${c}px Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif`,r.fillText(s,o,a-5),r.fillStyle=p,r.font=`500 ${u}px Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif`,r.fillText(l,o,a+12),r.restore()}},ste=({ownerCount:e=1e3,tenantCount:t=200,nonResidingOwners:n=26,growthPct:r="+9.1%"})=>{const i=Math.max(e-n,0),o=e+t,a={labels:["Owners","Tenants","Non-residing Owner"],datasets:[{data:[i,t,n],backgroundColor:["#3C81F6","#08B6D4","#8B5CF6"],borderWidth:2,hoverOffset:4}]},s={responsive:!0,maintainAspectRatio:!1,cutout:"68%",plugins:{legend:{display:!1},tooltip:{callbacks:{label:l=>`${l.label}: ${l.parsed}`},displayColors:!1},centerText:{top:`${o}`,bottom:"Total Members",topSize:20,bottomSize:10}}};return w.jsx(st,{title:"Resident Overview",icon:w.jsx(c_,{className:"h-6 w-6 text-[#8B5CF6]"}),className:"h-[238px]",children:w.jsxs("div",{className:" flex-1 min-h-0 grid grid-cols-12 gap-[16px] items-center",children:[w.jsxs("div",{className:"col-span-5",children:[w.jsxs("div",{children:[w.jsx("div",{className:"!text-[12px] text-[#64748B] leading-[16px]",children:"Total Owners"}),w.jsx("div",{className:"text-[28px] leading-[32px ] text-[#3C81F6]",children:e})]}),w.jsxs("div",{children:[w.jsx("div",{className:"!text-[12px] text-[#64748B] leading-[16px]",children:"Total Tenants"}),w.jsx("div",{className:"text-[28px] leading-[32px ] text-[#08B6D4]",children:t})]}),w.jsxs("div",{className:"text-[10px] text-[#1FA05B] flex gap-2 items-center",children:[r," ",w.jsx("div",{className:"text-[#64748B] ",children:"Compared to last month"})]})]}),w.jsx("div",{className:"col-span-7",children:w.jsx("div",{className:"h-[162px] w-[162px] ml-auto mr-2",children:w.jsx(ib,{data:a,options:s,plugins:[ate]})})})]})})};Tn.register(Ki,Yi,Zl,gr,mr);const lte=({blocks:e=[{name:"Block A",owner:110,rented:24,vacant:8},{name:"Block B",owner:95,rented:18,vacant:6},{name:"Block C",owner:65,rented:12,vacant:18},{name:"Block D",owner:78,rented:16,vacant:30}]})=>{const t=e.map(s=>s.name),n=e.map(s=>s.owner),r=e.map(s=>s.rented),i=e.map(s=>s.vacant),o={labels:t,datasets:[{label:"Owner",data:n,backgroundColor:"#3C81F6",barThickness:40},{label:"",data:n.map(()=>2),backgroundColor:"transparent",barThickness:40},{label:"Rented",data:r,backgroundColor:"#8B5CF6",barThickness:40},{label:"",data:r.map(()=>2),backgroundColor:"transparent",barThickness:40},{label:"Vacant",data:i,backgroundColor:"#08B6D4",barThickness:40}]},a={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom",labels:{usePointStyle:!0,boxWidth:10,boxHeight:10,pointStyle:"rectRot",padding:20}},tooltip:{callbacks:{label:s=>`${s.dataset.label}: ${s.parsed.y}`}}},scales:{x:{stacked:!0,grid:{display:!1},ticks:{color:"#64748B"}},y:{stacked:!0,beginAtZero:!0,suggestedMax:180,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",stepSize:20}}}};return w.jsx(st,{title:"Block-wise Occupancy",period:w.jsx(qt,{className:"text-xl text-[#884EA7]"}),className:"w-full h-[360px]",titleWeight:"semi-bold",children:w.jsx(Jl,{data:o,options:a})})};Tn.register(Ki,Yi,tb,eb,gr,mr);const cte=e=>{const[t,n]=String(e).split(" ");return`${{Jan:"January",Feb:"February",Mar:"March",Apr:"April",May:"May",Jun:"June",Jul:"July",Aug:"August",Sep:"September",Oct:"October",Nov:"November",Dec:"December"}[t]||t} 20${n}`},ute=({labels:e=["Jan 25","Feb 25","Mar 25","Apr 25","May 25"],moveIn:t=[24,27,20,26,23],moveOut:n=[12,17,8,5,16]})=>{const r={labels:e,datasets:[{label:"Move-in",data:t,borderColor:"#12B981",backgroundColor:"rgba(16,185,129,0.15)",pointBackgroundColor:"#12B981",pointStyle:"rectRot",fill:!1},{label:"Move-out",data:n,borderColor:"#8B5CF6",backgroundColor:"rgba(124,58,237,0.15)",pointBackgroundColor:"#8B5CF6",pointStyle:"rectRot",fill:!1}]},i={responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"bottom",labels:{usePointStyle:!0,boxWidth:10,boxHeight:10,padding:20}},tooltip:{backgroundColor:"#0F172A",titleColor:"#FFFFFF",bodyColor:"#FFFFFF",displayColors:!1,padding:12,caretSize:0,callbacks:{title:o=>cte(o[0].label),label:o=>`${o.dataset.label}: ${o.parsed.y}`}}},scales:{x:{grid:{color:"#F1F5F9"},ticks:{color:"#64748B"}},y:{beginAtZero:!0,suggestedMax:28,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",stepSize:4,precision:0}}},elements:{line:{borderWidth:2,tension:0},point:{radius:0,hoverRadius:3,hitRadius:10}}};return w.jsx(st,{title:"Move-in/Out Trends",className:"w-full h-[360px]",period:w.jsx(qt,{className:"text-[20px] text-[#884EA7]"}),titleWeight:"semi-bold",children:w.jsx(rb,{data:r,options:i})})};Tn.register(Ki,Yi,tb,eb,gr,mr);const dte=e=>{const[t,n]=String(e).split(" ");return`${{Jan:"January",Feb:"February",Mar:"March",Apr:"April",May:"May",Jun:"June",Jul:"July",Aug:"August",Sep:"September",Oct:"October",Nov:"November",Dec:"December"}[t]||t} 20${n}`},tM=({labels:e=["Jan 25","Feb 25","Mar 25","Apr 25","May 25"],moveIn:t=[24,27,20,26,23],moveOut:n=[4,17,8,5,16,4,7]})=>{const r={labels:e,datasets:[{label:"Income",data:t,borderColor:"#10B981",backgroundColor:"rgba(16,185,129,0.15)",pointBackgroundColor:"#10B981",pointStyle:"rectRot",fill:!1},{label:"Expenditure",data:n,borderColor:"#AB0000",backgroundColor:"rgba(124,58,237,0.15)",pointBackgroundColor:"#AB0000",pointStyle:"rectRot",fill:!1}]},i={responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"bottom",labels:{usePointStyle:!0,boxWidth:10,boxHeight:10,padding:20}},tooltip:{backgroundColor:"#0F172A",titleColor:"#FFFFFF",bodyColor:"#FFFFFF",displayColors:!1,padding:12,caretSize:0,callbacks:{title:o=>dte(o[0].label),label:o=>`${o.dataset.label}: ${o.parsed.y}`}}},scales:{x:{grid:{color:"#F1F5F9"},ticks:{color:"#64748B"}},y:{beginAtZero:!0,suggestedMax:28,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",stepSize:4,precision:0}}},elements:{line:{borderWidth:2,tension:0},point:{radius:0,hoverRadius:3,hitRadius:10}}};return w.jsx(rb,{data:r,options:i})};function vE({label:e,value:t,positive:n,bgColor:r,delta:i,deltaLabel:o,textColor:a}){return w.jsxs("div",{className:`rounded-lg p-4 ${r} border border-[#EBEBEB] h-[126px]`,children:[w.jsx("div",{className:`text-[16px] leading-[20px] ${a}`,children:e}),w.jsx("div",{className:"mt-[16px] leading-[28px] !text-[24px] font-medium text-[#121212]",children:t}),w.jsxs("div",{className:"mt-[8px] flex items-center gap-[8px] leading-[14px] text-[10px]",children:[w.jsx("div",{className:n?"text-[#1FA05B] font-medium":"text-[#EF4444] font-medium",children:i}),w.jsx("div",{className:"text-[#64748B] ",children:o})]})]})}function fte(){return w.jsxs(st,{title:"Accounting",className:"w-full h-[523px]",period:w.jsx(qt,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),titleWeight:"semi-bold",children:[w.jsxs("div",{className:"grid grid-cols-2 gap-[16px]",children:[w.jsx(vE,{label:"Total Income",value:"AED 5.68M",delta:"+4.4%",positive:!0,bgColor:"bg-slate-50",deltaLabel:"Compared to last month",textColor:"text-[#1FA05B]"}),w.jsx(vE,{label:"Total Expenditure",value:"AED 1.83M",delta:"-1.1%",positive:!1,bgColor:"bg-slate-50",deltaLabel:"Compared to last month",textColor:"text-[#AB0000]"})]}),w.jsx("div",{className:"h-[254px] mt-[35.5px]",children:w.jsx(tM,{})})]})}Tn.register(Ki,Yi,Zl,gr,mr);const pte=()=>{const e=["Maintenance","Security","Utilities","Housekeeping","Administration","Others"],r={labels:e,datasets:[{label:"Budget",data:[55e3,56e3,64e3,38e3,54e3,65e3],backgroundColor:"#93C5FD",barThickness:60},{label:"Actual",data:[63e3,48e3,51300,28e3,42e3,35e3],backgroundColor:"#3B82F6",barThickness:60}]},i={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom",labels:{usePointStyle:!0,pointStyle:"rectRot",padding:20}},tooltip:{backgroundColor:"#0F172A",titleColor:"#FFFFFF",bodyColor:"#FFFFFF",displayColors:!1,padding:12,caretSize:6,callbacks:{title:o=>e[o[0].dataIndex],label:o=>{const a=o.parsed.y;return`${o.dataset.label}: AED ${(a/1e3).toFixed(1)}K`}}}},scales:{x:{grid:{display:!1},ticks:{color:"#64748B"}},y:{beginAtZero:!0,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",callback:o=>`${o/1e3}K`}}}};return w.jsx(st,{title:"Budget vs Actuals",className:"w-full h-[362px]",period:w.jsx(qt,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),titleWeight:"semi-bold",children:w.jsx(Jl,{data:r,options:i})})},hte=()=>{const e=[{title:"Primary Account",amount:285e4,subtitle:"Savings"},{title:"Emergency Fund",amount:12e5,subtitle:"Fixed deposit"},{title:"Maintenance Fund",amount:68e4,subtitle:"Current"}],t=e.reduce((r,i)=>r+i.amount,0),n=r=>r>=1e6?`AED ${(r/1e6).toFixed(2)}M`:r>=1e3?`AED ${(r/1e3).toFixed(1)}K`:`AED ${r}`;return w.jsxs(st,{title:"Cash & Bank Balance",className:"w-full h-[362px]",period:w.jsx(qt,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),children:[w.jsx("div",{className:"flex flex-col gap-[12px]",children:e.map((r,i)=>w.jsxs("div",{className:"flex items-center justify-between bg-[#F9FAFB] rounded-lg p-3",children:[w.jsxs("div",{className:"flex flex-col",children:[w.jsx("div",{className:"text-[14px] font-medium text-[#121212]",children:r.title}),w.jsx("div",{className:"!text-[12px] text-[#64748B]",children:r?.subtitle})]}),w.jsx("div",{className:"flex flex-col items-end",children:w.jsx("div",{className:"text-[14px] text-[#1FA05B] font-semibold",children:n(r.amount)})})]},i))}),w.jsxs("div",{className:"flex items-center justify-between border-t border-[#EBEBEB] h-[68px] px-3",children:[w.jsx("div",{className:"text-[14px] font-medium text-[#121212]",children:"Total"}),w.jsx("div",{className:"text-[16px] text-[#1FA05B] font-bold",children:n(t)})]})]})};Tn.register(Ki,Yi,Zl,gr,mr);const mte=()=>{const e=["Current Month","1-3 Months","3-6 Months","6+ Months"],t=[13e3,9400,8800,7200],n=[18,12,18,6],r={labels:e,datasets:[{label:"Due",data:t,backgroundColor:"#EF4444",barThickness:60}]},i={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{backgroundColor:"#0F172A",titleColor:"#FFFFFF",bodyColor:"#FFFFFF",displayColors:!1,padding:12,caretSize:6,callbacks:{title:o=>e[o[0].dataIndex],label:o=>`Due: AED ${(o.parsed.y/1e3).toFixed(1)}K`,afterLabel:o=>`Units Count: ${n[o.dataIndex]}`}}},scales:{x:{grid:{display:!1},ticks:{color:"#64748B"}},y:{beginAtZero:!0,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",callback:o=>`${o/1e3}K`}}}};return w.jsxs(st,{title:"Dues Ageing",className:"w-full h-[362px]",period:w.jsx(qt,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),titleWeight:"semi-bold",children:[w.jsx("div",{className:"grid grid-cols-4 md:grid-cols-4 gap-[12px] h-[48px]",children:e.map((o,a)=>w.jsx("div",{className:"p-2 rounded-lg bg-slate-50",children:w.jsxs("div",{className:"flex justify-between items-start",children:[w.jsx("div",{className:"font-medium leading-[16px] !text-[12px] rounded",children:o}),w.jsxs("div",{className:"text-right",children:[w.jsxs("div",{className:"text-red-600 font-medium leading-[16px] !text-[12px]",children:["AED ",(t[a]/1e3).toFixed(1),"K"]}),w.jsxs("div",{className:" text-gray-500 leading-[14px] text-[10px]",children:[n[a]," Units"]})]})]})},o))}),w.jsx("div",{className:"h-[192px]",children:w.jsx(Jl,{data:r,options:i})})]})};Tn.register(Qy,gr,mr);const gte=()=>{const e=["Maintenance","Utilities","Security","Administration","Others"],t=[45e4,32e4,28e4,18e4,12e4],n={labels:e,datasets:[{label:"Expenses",data:t,backgroundColor:["#08B6D4","#8B5CF6","#EF4444","#F69E0A","#12B981"],borderColor:"#FFFFFF",borderWidth:2,cutout:"70%"}]},r=t.reduce((o,a)=>o+a,0),i={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{backgroundColor:"#0F172A",titleColor:"#FFFFFF",bodyColor:"#FFFFFF",displayColors:!1,padding:10,callbacks:{label:o=>`${o.label}: AED ${o.formattedValue}`}}}};return w.jsxs(st,{title:"Expense Categories",className:"w-full h-[523px]",period:w.jsx(qt,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),titleWeight:"semi-bold",children:[w.jsxs("div",{className:"relative h-[259px] flex justify-center items-center",children:[w.jsx(ib,{data:n,options:i}),w.jsxs("div",{className:"absolute text-center",children:[w.jsxs("div",{className:"!text-[24px] font-medium leading-[28px] text-[#121212]",children:["AED ",(r/1e6).toFixed(2),"M"]}),w.jsx("div",{className:"text-[#121212] leading-[18px] text-[14px]",children:"Total Expenses"})]})]}),w.jsx("div",{className:"space-y-2",children:e.map((o,a)=>w.jsxs("div",{className:"flex justify-between items-center text-[14px] pb-2",children:[w.jsxs("div",{className:"flex items-center gap-[8px] !text-[12px] leading-[16px] text-[#64748B]",children:[w.jsx("div",{className:"w-[7px] h-[7px] rotate-45",style:{backgroundColor:n.datasets[0].backgroundColor[a]}}),o]}),w.jsxs("div",{className:"leading-[16px] !text-[12px] text-[#64748B]",children:["AED ",(t[a]/1e3).toFixed(0),"K"]})]},o))})]})},bs=[{name:"Gym Equipment",value:1e6,color:"#08B6D4"},{name:"Security",value:8e5,color:"#EF4444"},{name:"Others",value:6e5,color:"#F59E0B"},{name:"Pool Maintenance",value:7e5,color:"#8B5CF6"},{name:"Administration",value:52e4,color:"#10B981"}];function vte(){const e=bs.reduce((t,n)=>t+n.value,0);return w.jsx(st,{title:"Asset Value Breakdown",period:w.jsx(qt,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),className:"h-[362px]",titleWeight:"semi-bold",children:w.jsxs("div",{className:"flex flex-col items-center justify-center",children:[w.jsxs("div",{className:"w-[214px] h-[181px] relative",children:[w.jsx(Vo,{width:"100%",height:"100%",children:w.jsxs(ff,{children:[w.jsx(Hl,{data:bs,innerRadius:60,outerRadius:90,paddingAngle:2,dataKey:"value",nameKey:"name",children:bs.map((t,n)=>w.jsx(Ir,{fill:t.color},`cell-${n}`))}),w.jsx(zo,{formatter:t=>`AED ${t.toLocaleString()}`})]})}),w.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center pointer-events-none",children:[w.jsxs("div",{className:"font-medium text-lg leading-[12px] ",children:["AED ",(e/1e6).toFixed(2),"M"]}),w.jsx("div",{className:"text-[10px] leading-[12.59px] text-[#121212] mt-[6px]",children:"Total Assets"})]})]}),w.jsxs("div",{className:"flex justify-between w-full px-4 sm:px-8 mt-4 text-[14px]",children:[w.jsx("div",{className:"flex flex-col gap-[8px]",children:bs.slice(0,3).map(t=>w.jsxs("div",{className:"flex items-center gap-[8px]",children:[w.jsx("div",{className:"inline-block h-[7px] w-[7px] rotate-45",style:{backgroundColor:t.color}}),w.jsx("div",{className:"text-[#64748B] leading-[16px] !text-[12px]",children:t.name})]},t.name))}),w.jsx("div",{className:"flex flex-col gap-[8px] items-start",children:bs.slice(3).map(t=>w.jsxs("div",{className:"flex items-center gap-[8px]",children:[w.jsx("div",{className:"inline-block h-[7px] w-[7px] rotate-45",style:{backgroundColor:t.color}}),w.jsx("div",{className:"text-[#64748B] leading-[16px] !text-[12px]",children:t.name})]},t.name))})]})]})})}Tn.register(Ki,Yi,Zl,gr,mr);const yte=()=>{const e=["Gym","Parking","Swimming Pool","Community Hall","Tennis Court"],t=[13e3,9400,8800,7200,6e3],n=[18,12,18,6],r={labels:e,datasets:[{label:"Due",data:t,backgroundColor:"#8B5CF6",barThickness:60}]},i={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{backgroundColor:"#0F172A",titleColor:"#FFFFFF",bodyColor:"#FFFFFF",displayColors:!1,padding:12,caretSize:6,callbacks:{title:o=>e[o[0].dataIndex],label:o=>`Due: AED ${(o.parsed.y/1e3).toFixed(1)}K`,afterLabel:o=>`Units Count: ${n[o.dataIndex]}`}}},scales:{x:{grid:{display:!1},ticks:{color:"#64748B"}},y:{beginAtZero:!0,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",callback:o=>`${o/1e3}K`}}}};return w.jsx(st,{title:"Revenue by Category",className:"w-full h-[362px]",period:w.jsx(qt,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),titleWeight:"semi-bold",children:w.jsx(Jl,{data:r,options:i})})};function bte(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 5l0 2"},child:[]},{tag:"path",attr:{d:"M15 11l0 2"},child:[]},{tag:"path",attr:{d:"M15 17l0 2"},child:[]},{tag:"path",attr:{d:"M5 5h14a2 2 0 0 1 2 2v3a2 2 0 0 0 0 4v3a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-3a2 2 0 0 0 0 -4v-3a2 2 0 0 1 2 -2"},child:[]}]})(e)}function xte(e){return Xe({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M855.7 210.8l-42.4-42.4a8.03 8.03 0 0 0-11.3 0L168.3 801.9a8.03 8.03 0 0 0 0 11.3l42.4 42.4c3.1 3.1 8.2 3.1 11.3 0L855.6 222c3.2-3 3.2-8.1.1-11.2zM304 448c79.4 0 144-64.6 144-144s-64.6-144-144-144-144 64.6-144 144 64.6 144 144 144zm0-216c39.7 0 72 32.3 72 72s-32.3 72-72 72-72-32.3-72-72 32.3-72 72-72zm416 344c-79.4 0-144 64.6-144 144s64.6 144 144 144 144-64.6 144-144-64.6-144-144-144zm0 216c-39.7 0-72-32.3-72-72s32.3-72 72-72 72 32.3 72 72-32.3 72-72 72z"},child:[]}]})(e)}function wte({title:e,value:t,delta:n,deltaLabel:r,positive:i=!0,Icon:o=El,iconColor:a="text-emerald-600",iconBg:s="bg-emerald-50"}){return w.jsxs(st,{title:e,icon:w.jsx("div",{className:"h-6 w-6 grid place-items-center",children:w.jsx(o,{className:`h-6 w-6 ${a}`})}),children:[w.jsx("div",{className:"text-4xl font-semibold tracking-tight text-[#121212]",children:t}),w.jsxs("div",{className:"flex items-center gap-[8px] text-[14px]",children:[w.jsx("div",{className:i?"text-emerald-600 font-medium":"text-rose-600 font-medium",children:n}),w.jsx("div",{className:"text-slate-500",children:r})]})]})}function Ote(){const e=[{title:"Total Bookings",value:160,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:l_,iconColor:"text-emerald-600"},{title:"Utilisation Rate",value:73,delta:"+2.0%",deltaLabel:"Compared to last month",positive:!0,Icon:xte,iconColor:"text-[#329DFF]"},{title:"Revenue",value:3,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:bte,iconColor:"text-[#FA7E28]"},{title:"Pending Dues",value:5,delta:"-8.0%",deltaLabel:"Compared to last month",positive:!1,Icon:d_,iconColor:"text-[#DBB467]"}];return w.jsx("div",{className:"px-5 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[24px]",children:e.map((t,n)=>w.jsx(wte,{...t},n))})}const qc=[{name:"Completed",value:46,color:"#12B981"},{name:"Delayed",value:2,color:"#EF4444"},{name:"Missed",value:2,color:"#F69E0A"}];function Ste(){const t=qc.find(n=>n.name==="Completed")?.value||0;return w.jsx(st,{title:"Guard Patrols",period:w.jsx(qt,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),className:"h-[362px]",children:w.jsxs("div",{className:"flex flex-col items-center justify-center",children:[w.jsxs("div",{className:"w-[215px] h-[182px] relative",children:[w.jsx(Vo,{width:"100%",height:"100%",children:w.jsxs(ff,{children:[w.jsx(Hl,{data:qc,innerRadius:60,outerRadius:90,paddingAngle:2,dataKey:"value",nameKey:"name",children:qc.map((n,r)=>w.jsx(Ir,{fill:n.color},`cell-${r}`))}),w.jsx(zo,{formatter:n=>n.toLocaleString()})]})}),w.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center pointer-events-none",children:[w.jsxs("div",{className:"font-medium text-[19.35px] leading-[23.65px] ",children:[t,"/",50]}),w.jsx("div",{className:"text-[10.75px] leading-[15.05px] text-[#64748B]",children:"Completed"})]})]}),w.jsx("div",{className:"flex flex-col gap-[8px] mt-3 w-full px-6 text-[14px]",children:qc.map(n=>w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsxs("div",{className:"flex items-center gap-[8px]",children:[w.jsx("div",{className:"inline-block w-[7px] h-[7px] rotate-45",style:{backgroundColor:n.color}}),w.jsx("div",{className:"leading-[16.09px] text-[12.07px] text-[#64748B]",children:n.name})]}),w.jsx("div",{className:"leading-[16.09px] text-[12.07px] text-[#64748B]",children:n.value})]},n.name))})]})})}Tn.register(Ki,Yi,tb,eb,gr,mr);const Ete=()=>{const t={labels:["10 AM","12 PM","2 PM","4 PM","6 PM","8 PM","10 PM"],datasets:[{label:"Guest",data:[9,5,12,7,3,6,4],borderColor:"#EF4444",backgroundColor:"rgba(239,68,68,0.15)",pointBackgroundColor:"#EF4444",pointStyle:"rectRot",fill:!1},{label:"Cab",data:[15,12,10,14,7,12,8],borderColor:"#7C3AED",backgroundColor:"rgba(124,58,237,0.15)",pointBackgroundColor:"#7C3AED",pointStyle:"rectRot",fill:!1},{label:"Delivery",data:[22,18,16,20,22,14,17],borderColor:"#10B981",backgroundColor:"rgba(16,185,129,0.15)",pointBackgroundColor:"#10B981",pointStyle:"rectRot",fill:!1},{label:"Service",data:[13,12,8,9,5,10,7],borderColor:"#F59E0B",backgroundColor:"rgba(245,158,11,0.15)",pointBackgroundColor:"#F59E0B",pointStyle:"rectRot",fill:!1}]},n={responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"bottom",labels:{usePointStyle:!0,boxWidth:10,boxHeight:10,padding:20}},tooltip:{backgroundColor:"#0F172A",titleColor:"#FFFFFF",bodyColor:"#FFFFFF",displayColors:!1,padding:12,caretSize:0,callbacks:{title:r=>r[0].label,label:r=>`${r.dataset.label} ${r.parsed.y}`}}},scales:{x:{grid:{color:"#F1F5F9"},ticks:{color:"#64748B"}},y:{beginAtZero:!0,suggestedMax:28,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",stepSize:4,precision:0}}},elements:{line:{borderWidth:2,tension:0},point:{radius:0,hoverRadius:3,hitRadius:10}}};return w.jsx(st,{title:"Hourly Traffic Flow",className:"w-full h-[362px]",period:w.jsx(qt,{className:"text-[20px] text-[#884EA7]"}),children:w.jsx(rb,{data:t,options:n})})};function _te(){return w.jsx(st,{title:"Incident Reports",period:w.jsx(qt,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),className:"h-[362px]",children:w.jsxs("div",{children:[w.jsxs("div",{className:"flex w-full text-center gap-[24px]",children:[w.jsxs("div",{className:"flex-1 py-3 bg-[#FBF4F4] h-[76px] rounded",children:[w.jsx("div",{className:"!text-[24px] leading-[28px] font-medium text-[#AB0000]",children:"3"}),w.jsx("div",{className:"!text-[12px] leading-[16px] text-[#AB0000]",children:"Open"})]}),w.jsxs("div",{className:"flex-1 py-3 bg-[#FFFBF2] h-[76px] rounded",children:[w.jsx("div",{className:"!text-[24px] leading-[28px] font-medium text-[#E7A015]",children:"5"}),w.jsx("div",{className:"!text-[12px] leading-[16px] text-[#E7A015]",children:"In-progress"})]}),w.jsxs("div",{className:"flex-1 py-3 bg-[#F7FEFA] h-[76px] rounded",children:[w.jsx("div",{className:"!text-[24px] leading-[28px] font-medium text-[#1FA05B]",children:"12"}),w.jsx("div",{className:"!text-[12px] leading-[16px] text-[#1FA05B]",children:"Closed"})]})]}),w.jsxs("div",{className:"mt-4 ",children:[w.jsxs("div",{className:"flex items-center justify-between p-3 bg-[#FAFBFD] rounded-md border border-[#FAFBFD]",children:[w.jsxs("div",{className:"flex items-center gap-[8px]",children:[w.jsx("div",{className:"w-4 h-4 rounded-full flex items-center justify-center bg-[#AB0000]",children:w.jsx("div",{className:"text-white !text-[12px] font-bold",children:"!"})}),w.jsx("div",{className:"text-gray-700 font-medium",children:"INC 001"})]}),w.jsxs("div",{className:"px-3 py-1 rounded-full !text-[12px] font-semibold flex items-center gap-[4px] text-[#AB0000] bg-red-50",children:[w.jsx("div",{children:"4 - Danger"}),w.jsx("div",{className:"w-2 h-2 rounded-full bg-[#AB0000]"})]})]}),w.jsxs("div",{className:"flex items-center justify-between p-3 bg-[#FAFBFD] rounded-md border border-[#FAFBFD]",children:[w.jsxs("div",{className:"flex items-center gap-[8px]",children:[w.jsx("div",{className:"w-4 h-4 rounded-full flex items-center justify-center bg-[#E7A015]",children:w.jsx(a0,{className:"text-white text-[10px]"})}),w.jsx("div",{className:"text-gray-700 font-medium",children:"INC 002"})]}),w.jsxs("div",{className:"px-3 py-1 rounded-full !text-[12px] font-semibold flex items-center gap-[4px] text-[#E7A015] bg-yellow-50",children:[w.jsx("div",{children:"3 - High"}),w.jsx("div",{className:"w-2 h-2 rounded-full bg-[#E7A015]"})]})]}),w.jsxs("div",{className:"flex items-center justify-between p-3 bg-[#FAFBFD] rounded-md border border-[#FAFBFD]",children:[w.jsxs("div",{className:"flex items-center gap-[8px]",children:[w.jsx("div",{className:"w-4 h-4 rounded-full flex items-center justify-center bg-[#1FA05B]",children:w.jsx(a0,{className:"text-white text-[10px]"})}),w.jsx("div",{className:"text-gray-700 font-medium",children:"INC 003"})]}),w.jsxs("div",{className:"px-3 py-1 rounded-full !text-[12px] font-semibold flex items-center gap-[4px] text-[#1FA05B] bg-green-50",children:[w.jsx("div",{children:"1 - Low"}),w.jsx("div",{className:"w-2 h-2 rounded-full bg-[#1FA05B]"})]})]})]})]})})}function Pte(){return w.jsx(st,{title:"Staff Attendance",period:w.jsx(qt,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),className:"h-[362px]",children:w.jsxs("div",{children:[w.jsxs("div",{className:"flex w-full text-center h-[76px] gap-[16px] mb-2",children:[w.jsxs("div",{className:"flex-1 py-4 bg-green-50 rounded-md",children:[w.jsx("div",{className:"!text-[24px] leading-[18px] font-medium text-[#1FA05B] pb-[8px]",children:"25"}),w.jsx("div",{className:"!text-[12px] leading-[16px] text-[#1FA05B]",children:"Present"})]}),w.jsxs("div",{className:"flex-1 py-4 bg-red-50 rounded-md",children:[w.jsx("div",{className:"!text-[24px] leading-[18px] font-medium text-[#AB0000] pb-[8px]",children:"1"}),w.jsx("div",{className:"!text-[12px] leading-[16px] text-[#AB0000]",children:"Absent"})]})]}),w.jsxs("div",{className:"mt-[24px] ",children:[w.jsxs("div",{className:"flex justify-between items-center p-3 bg-[#FAFBFD] rounded-md",children:[w.jsx("div",{className:" font-medium !text-[12px] leading-[18px]",children:"Security guards"}),w.jsx("div",{className:"text-[#64748B] leading[20px] text-[14px]",children:"12/12 Present"})]}),w.jsxs("div",{className:"flex justify-between items-center p-3 bg-[#FAFBFD] rounded-md",children:[w.jsx("div",{className:" font-medium !text-[12px] leading-[18px]",children:"Housekeeping"}),w.jsx("div",{className:"text-[#64748B] leading[20px] text-[14px]",children:"7/8 Present"})]}),w.jsxs("div",{className:"flex justify-between items-center p-3 bg-[#FAFBFD] rounded-md",children:[w.jsx("div",{className:" font-medium !text-[12px] leading-[18px]",children:"Maintenance"}),w.jsx("div",{className:"text-[#64748B] leading[20px] text-[14px]",children:"4/4 Present"})]}),w.jsxs("div",{className:"flex justify-between items-center p-3 bg-[#FAFBFD] rounded-md",children:[w.jsx("div",{className:" font-medium !text-[12px] leading-[18px]",children:"Gardening"}),w.jsx("div",{className:"text-[#64748B] leading[20px] text-[14px]",children:"2/2 Present"})]})]})]})})}function Cte(e){return Xe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M116,132V96a12,12,0,0,1,24,0v36a12,12,0,0,1-24,0Zm12,56a16,16,0,1,0-16-16A16,16,0,0,0,128,188ZM228,56v56c0,54.29-26.32,87.22-48.4,105.29-23.71,19.39-47.44,26-48.44,26.29a12.1,12.1,0,0,1-6.32,0c-1-.28-24.73-6.9-48.44-26.29C54.32,199.22,28,166.29,28,112V56A20,20,0,0,1,48,36H208A20,20,0,0,1,228,56Zm-24,4H52v52c0,35.71,13.09,64.69,38.91,86.15A126.14,126.14,0,0,0,128,219.38a126.28,126.28,0,0,0,37.09-21.23C190.91,176.69,204,147.71,204,112Z"},child:[]}]})(e)}function Tte({title:e,value:t,delta:n,deltaLabel:r,positive:i=!0,Icon:o=El,iconColor:a="text-emerald-600",iconBg:s="bg-emerald-50"}){return w.jsxs(st,{title:e,icon:w.jsx("div",{className:"h-6 w-6 grid place-items-center",children:w.jsx(o,{className:`h-6 w-6 ${a}`})}),children:[w.jsx("div",{className:"text-4xl font-semibold tracking-tight text-[#121212]",children:t}),w.jsxs("div",{className:"flex items-center gap-[8px] text-[14px]",children:[w.jsx("div",{className:i?"text-emerald-600 font-medium":"text-rose-600 font-medium",children:n}),w.jsx("div",{className:"text-slate-500",children:r})]})]})}function Ate(){const e=[{title:"Total Visitors",value:160,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:u_,iconColor:"text-[#329DFF]"},{title:"Active Incidents",value:73,delta:"+2.0%",deltaLabel:"Compared to last month",positive:!0,Icon:WG,iconColor:"text-[#F69E0A]"},{title:"Missed Patrols",value:3,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:Cte,iconColor:"text-[#AB0000]"},{title:"Parking Usage",value:5,delta:"-8.0%",deltaLabel:"Compared to last month",positive:!1,Icon:iD,iconColor:"text-[#36AB6C]"}];return w.jsx("div",{className:"px-5 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[24px]",children:e.map((t,n)=>w.jsx(Tte,{...t},n))})}const kte=[{title:"Maintenance",total:25,pending:8},{title:"Security",total:15,pending:3},{title:"Housekeeping",total:12,pending:4},{title:"Utilities",total:10,pending:2}];function Mte(){return w.jsx(st,{title:"Complaints",period:w.jsx(qt,{className:"text-[20px] text-[#884EA7]"}),className:"h-[362px]",children:w.jsx("div",{className:"flex flex-col gap-[12px]",children:kte.map((e,t)=>w.jsxs("div",{className:"flex items-center justify-between bg-[#F9FAFB] rounded-lg p-3 h-[62px]",children:[w.jsxs("div",{className:"flex flex-col",children:[w.jsx("div",{className:"text-[14px] leading-[18px] font-medium text-[#121212]",children:e.title}),w.jsxs("div",{className:"!text-[12px] leading-[16px] text-[#64748B]",children:["Total: ",e.total]})]}),w.jsxs("div",{className:"flex flex-col items-end",children:[w.jsx("div",{className:"text-[14px] leading-[18px] font-medium text-red-700",children:String(e.pending).padStart(2,"0")}),w.jsx("div",{className:"!text-[12px] leading-[16px] text-[#64748B]",children:"Pending"})]})]},t))})})}Tn.register(Ki,Yi,Zl,gr,mr);const jte=({blocks:e=[{name:"Level 1",owner:110,rented:24,vacant:8},{name:"Level 2",owner:95,rented:18,vacant:6},{name:"Level 3",owner:65,rented:12,vacant:18},{name:"Level 4",owner:78,rented:16,vacant:30}]})=>{const t=e.map(s=>s.name),n=e.map(s=>s.owner),r=e.map(s=>s.rented),i=e.map(s=>s.vacant),o={labels:t,datasets:[{label:"Closed",data:n,backgroundColor:"#12B981",barThickness:44},{label:"",data:n.map(()=>2),backgroundColor:"transparent",barThickness:44},{label:"In Progress",data:r,backgroundColor:"#F59D0D",barThickness:44},{label:"",data:n.map(()=>2),backgroundColor:"transparent",barThickness:44},{label:"Open",data:i,backgroundColor:"#EF4444",barThickness:44}]},a={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom",labels:{usePointStyle:!0,boxWidth:10,boxHeight:10,pointStyle:"rectRot",padding:20}},tooltip:{callbacks:{label:s=>`${s.dataset.label}: ${s.parsed.y}`}}},scales:{x:{stacked:!0,grid:{display:!1},ticks:{color:"#64748B"}},y:{stacked:!0,beginAtZero:!0,suggestedMax:180,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",stepSize:20}}}};return w.jsx(st,{title:"Complaints by Level",className:"w-full h-[362px]",period:w.jsx(qt,{className:"text-[20px] text-[#884EA7]"}),children:w.jsx(Jl,{data:o,options:a})})},Nte=[{title:"Access Card",total:45,pending:11},{title:"NOC Request",total:12,pending:7},{title:"Parking Allocation",total:8,pending:6},{title:"Document Request",total:25,pending:2}];function Rte(){return w.jsx(st,{title:"Request Box",period:w.jsx(qt,{className:"text-[20px] text-[#884EA7]"}),className:"h-[362px]",children:w.jsx("div",{className:"flex flex-col gap-[12px]",children:Nte.map((e,t)=>w.jsxs("div",{className:"flex items-center justify-between bg-[#F9FAFB] rounded-lg p-3 h-[62px]",children:[w.jsxs("div",{className:"flex flex-col",children:[w.jsx("div",{className:"text-[14px] leading-[18px] font-medium text-[#121212]",children:e.title}),w.jsxs("div",{className:"!text-[12px] leading-[16px] text-[#64748B]",children:["Total: ",e.total]})]}),w.jsxs("div",{className:"flex flex-col items-end",children:[w.jsx("div",{className:"text-[14px] leading-[18px] font-medium text-red-700",children:String(e.pending).padStart(2,"0")}),w.jsx("div",{className:"!text-[12px] leading-[16px] text-[#64748B]",children:"Pending"})]})]},t))})})}function Dte(e){return Xe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"32",d:"M416 221.25V416a48 48 0 0 1-48 48H144a48 48 0 0 1-48-48V96a48 48 0 0 1 48-48h98.75a32 32 0 0 1 22.62 9.37l141.26 141.26a32 32 0 0 1 9.37 22.62z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 56v120a32 32 0 0 0 32 32h120m-232 80h160m-160 80h160"},child:[]}]})(e)}function Ite({title:e,value:t,delta:n,deltaLabel:r,positive:i=!0,Icon:o=El,iconColor:a="text-emerald-600",iconBg:s="bg-emerald-50"}){return w.jsxs(st,{title:e,icon:w.jsx("div",{className:"h-6 w-6 grid place-items-center",children:w.jsx(o,{className:`h-6 w-6 ${a}`})}),children:[w.jsx("div",{className:"text-4xl font-semibold tracking-tight text-[#121212]",children:t}),w.jsxs("div",{className:"flex items-center gap-[8px] text-[14px]",children:[w.jsx("div",{className:i?"text-emerald-600 font-medium":"text-rose-600 font-medium",children:n}),w.jsx("div",{className:"text-slate-500",children:r})]})]})}function $te(){const e=[{title:"Open Complaints",value:145,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:l_,iconColor:"text-[#AB0000]"},{title:"Pending Requests",value:83,delta:"+2.0%",deltaLabel:"Compared to last month",positive:!0,Icon:Dte,iconColor:"text-[#E7A015]"},{title:"Avg Response Time",value:"3h",delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:tD,iconColor:"text-[#1FA05B]"},{title:"Resolution Rate",value:"93%",delta:"-8.0%",deltaLabel:"Compared to last month",positive:!1,Icon:ZR,iconColor:"text-[#329DFF]"}];return w.jsx("div",{className:"px-5 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[24px]",children:e.map((t,n)=>w.jsx(Ite,{...t},n))})}function yE({title:e,date:t,rsvp:n,utilisation:r,status:i}){return w.jsxs("div",{className:" bg-[#F8FAFC] h-[106px] px-3 mt-3",children:[w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsx("div",{className:"text-[16px] leading-[20px] font-semibold text-[#121212]",children:e}),w.jsx("div",{className:`!text-[12px] font-medium leading-[16px] px-2 py-1 ${i==="Completed"?"text-[#36AB6C] bg-[#E6F7EE]":i==="Upcoming"?"text-[#329DFF] bg-[#E6F2FF]":"text-slate-500 bg-slate-100"}`,children:i})]}),w.jsx("div",{className:"text-[14px] leading-[18px] text-[#64748B]",children:t}),w.jsxs("div",{className:"flex justify-between items-center mt-2",children:[w.jsxs("div",{className:"text-[14px] leading-[18px] text-[#64748B]",children:[n," RSVP"]}),w.jsxs("div",{className:"text-[#3C82F6] text-[14px] leading-[18px] font-medium",children:[r,"% utilisation"]})]}),w.jsx("div",{className:"w-full bg-[#F8FAFC] h-[6px] rounded mt-2 mb-3",children:w.jsx("div",{className:"h-[6px] rounded bg-[#3C82F6]",style:{width:`${r}%`}})})]})}function Lte(){return w.jsx(st,{title:"Events Utilisation",period:w.jsx(qt,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),className:"w-full h-[360px]",children:w.jsxs("div",{children:[w.jsx(yE,{title:"Holi Celebration",date:"25 Jun 2025",rsvp:"78/100",utilisation:71,status:"Upcoming"}),w.jsx(yE,{title:"Maintenance Meeting",date:"25 Jun 2025",rsvp:"45/60",utilisation:75,status:"Completed"})]})})}function Kc({label:e,value:t,subLabel:n,bgColor:r,textColor:i}){return w.jsxs("div",{className:`rounded-lg p-4 ${r} h-[124px]`,children:[w.jsx("div",{className:`text-[16px] font-medium ${i} leading-[20px]`,children:e}),w.jsx("div",{className:"mt-4 text-[28px] leading-[32px] font-semibold text-[#121212]",children:t}),w.jsx("div",{className:"!text-[12px] leading-[16px] text-[#64748B] mt-2",children:n})]})}function Fte(){return w.jsx(st,{title:"Notice Board Status",period:w.jsx(qt,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),className:"w-full h-[360px]",children:w.jsxs("div",{className:"grid grid-cols-2 gap-[16px]",children:[w.jsx(Kc,{label:"Active",value:138,subLabel:"3 expiring soon",bgColor:"bg-[#F0FFF7]",textColor:"text-[#1FA05B]"}),w.jsx(Kc,{label:"Scheduled",value:13,subLabel:"4 this week",bgColor:"bg-[#FFFBF2]",textColor:"text-[#E7A015]"}),w.jsx(Kc,{label:"Recurring",value:3,subLabel:"All active",bgColor:"bg-[#EDF6FF]",textColor:"text-[#329DFF]"}),w.jsx(Kc,{label:"Expired",value:7,subLabel:"4 recent",bgColor:"bg-[#F6F6F6]",textColor:"text-[#64748B]"})]})})}function nM(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 9H16V11H8V9ZM8 13H16V15H8V13Z"},child:[]}]})(e)}function Bte({title:e,value:t,delta:n,deltaLabel:r,positive:i=!0,Icon:o=El,iconColor:a="text-emerald-600",iconBg:s="bg-emerald-50"}){return w.jsx(st,{title:e,icon:w.jsx("div",{className:`h-6 w-6 grid place-items-center rounded-md ${s}`,children:w.jsx(o,{className:`h-4 w-4 ${a}`})}),className:"h-[132px]",children:w.jsxs("div",{children:[w.jsx("div",{className:"text-[28px] leading-[32px] font-medium text-[#121212]",children:t}),w.jsxs("div",{className:"flex items-center gap-[8px] pt-[8px] !text-[12px] leading-[16px]",children:[w.jsx("div",{className:i?"text-[#1FA05B] font-medium":"text-rose-600 font-medium",children:n}),w.jsx("div",{className:"text-[#64748B]",children:r})]})]})})}function zte({data:e}){const t=[{title:e?.title||"Total Bookings",value:145,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:nM,iconColor:"text-emerald-600",iconBg:"bg-emerald-50"}];return w.jsx("div",{className:"h-full",children:t.map((n,r)=>w.jsx(Bte,{...n},r))})}function Vte(e){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"},child:[]}]})(e)}function Wte({title:e,value:t,delta:n,deltaLabel:r,positive:i=!0,Icon:o=El,iconColor:a="text-emerald-600",iconBg:s="bg-emerald-50"}){return w.jsx(st,{title:e,icon:w.jsx("div",{className:`h-6 w-6 grid place-items-center rounded-md ${s}`,children:w.jsx(o,{className:`h-4 w-4 ${a}`})}),className:"h-[132px]",children:w.jsxs("div",{children:[w.jsx("div",{className:"text-[28px] leading-[32px] font-medium text-[#121212]",children:t}),w.jsxs("div",{className:"flex items-center gap-[8px] pt-[8px] !text-[12px] leading-[16px]",children:[w.jsx("div",{className:i?"text-[#1FA05B] font-medium":"text-rose-600 font-medium",children:n}),w.jsx("div",{className:"text-[#64748B]",children:r})]})]})})}function Ute(){const e=[{title:"Notice",value:160,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:nM,iconColor:"text-emerald-600",iconBg:"bg-emerald-50"},{title:"Post",value:83,delta:"+2.0%",deltaLabel:"Compared to last month",positive:!0,Icon:oD,iconColor:"text-[#329DFF]",iconBg:"bg-emerald-50"},{title:"Poll",value:3,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:zG,iconColor:"text-[#FA7E28]",iconBg:"bg-orange-100"},{title:"Poll",value:5,delta:"-8.0%",deltaLabel:"Compared to last month",positive:!1,Icon:Vte,iconColor:"text-[#DBB467]",iconBg:"bg-yellow-100"}];return w.jsx("div",{className:"px-5 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[24px]",children:e.map((t,n)=>w.jsx(Wte,{...t},n))})}exports.Accounting=fte;exports.AssetValueBreakdown=vte;exports.BlockWiseOccupancy=lte;exports.Budgets=pte;exports.Card=st;exports.CashBankBalance=hte;exports.Community=HG;exports.Complaints=Mte;exports.ComplaintsByLevel=jte;exports.DuesAgeing=mte;exports.Engagement=qG;exports.EngagementStatsGrid=Ute;exports.EventsUtilisation=Lte;exports.ExpenseCategories=gte;exports.Facilities=KG;exports.FinanceSummary=YG;exports.GateAndSecurityStatsGrid=Ate;exports.GateUpdates=RX;exports.GuardPatrols=Ste;exports.Header=nD;exports.Helpdesk=DX;exports.HelpdeskStatsGrid=$te;exports.HourlyTrafficFlow=Ete;exports.IncidentReports=_te;exports.IncomeExpenditure=tM;exports.MainHeader=lD;exports.MoveInOutTrends=ute;exports.NoticeBoardStatus=Fte;exports.OccupancyOverview=ote;exports.RequestBox=Rte;exports.ResidentOverview=ste;exports.RevenuebyCategory=yte;exports.SingleStats=zte;exports.StaffAttendance=Pte;exports.StatsGrid=Ote;exports.UnitStatus=ite;
|