harperdb 4.7.10 → 4.7.11

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.
@@ -1 +1 @@
1
- import{Y as k,Z as C,_ as F,$ as n,a0 as v,a1 as U,a2 as S,a3 as z,a4 as E,a5 as I,a6 as L,a7 as O,a8 as f,a9 as M,aa as e,ab as V,ac as p,ad as x,ae as o,af as i,ag as l,ah as w,ai as q,aj as A}from"./index-C3UEOQVn.js";async function R(a){const{id:d,newPassword:r,confirmNewPassword:c,...t}=a,m={...t};r&&r===c&&(m.password=r);const{data:u}=await C.patch(`/User/${d}`,m);return u}function $(){return k({mutationFn:a=>R(a)})}const B=F({id:n(),firstname:n({error:"Please enter your first name."}).min(2,{error:"First name is required."}).max(50,{error:"First name must be less than 50 characters."}),lastname:n({error:"Please enter your last name."}).min(2,{error:"Last name is required."}).max(50,{error:"Last name must be less than 50 characters."}),newPassword:n({error:"Please enter your new password."}).min(8,{error:"Password must be 8 characters or more."}).or(n().max(0)),confirmNewPassword:n().optional()}).refine(a=>a.newPassword===a.confirmNewPassword,{error:"Passwords do not match",path:["confirmNewPassword"]});function K(){const a=v(),d=U(),{user:r}=S(),c=z({resolver:E(B),defaultValues:{confirmNewPassword:"",firstname:r?.firstname||"",id:r?.id||"",lastname:r?.lastname||"",newPassword:""}}),{control:t,handleSubmit:m,reset:u,formState:{defaultValues:b,isDirty:P,isValid:N}}=c,{mutate:h,isPending:g}=$(),y=I.useCallback(async s=>{s&&h(s,{onSuccess:j=>{u({...b,...j}),L.updateUserForEntity(O,j),s.newPassword?(f.success("Profile updated successfully!",{description:"Please sign in with your new password."}),M(),d({to:"/sign-in"}),a.invalidate()):f.success("Profile updated successfully!")}})},[b,d,u,a,h]);return e.jsxs("div",{className:"mt-20 px-4 pt-4 md:px-12",children:[e.jsx("h2",{className:"text-2xl font-light",children:"Profile"}),e.jsx(V,{...c,children:e.jsxs("form",{onSubmit:m(y),className:"grid gap-4 my-4",children:[e.jsx(p,{control:t,name:"firstname",render:({field:s})=>e.jsxs(x,{children:[e.jsx(o,{className:"pb-1",children:"First Name"}),e.jsx(i,{children:e.jsx(l,{type:"text",className:"bg-purple-400 border-purple-400 dark:bg-black dark:border-black",autoCapitalize:"words",...s})}),e.jsx(w,{})]})}),e.jsx(p,{control:t,name:"lastname",render:({field:s})=>e.jsxs(x,{children:[e.jsx(o,{className:"pb-1",children:"Last Name"}),e.jsx(i,{children:e.jsx(l,{type:"text",className:"bg-purple-400 border-purple-400 dark:bg-black dark:border-black",autoCapitalize:"words",...s})}),e.jsx(w,{})]})}),e.jsx(o,{className:"pb-1",children:"Email"}),e.jsx(i,{children:e.jsx(l,{type:"email",enterKeyHint:"next",autoComplete:"email",autoCapitalize:"none",value:r?.email||"",disabled:!0,readOnly:!0})}),e.jsx(p,{control:t,name:"newPassword",render:({field:s})=>e.jsxs(x,{children:[e.jsx(o,{className:"pb-1",children:"New Password"}),e.jsx(i,{children:e.jsx(l,{type:"password",placeholder:"Optional",className:"bg-purple-400 border-purple-400 dark:bg-black dark:border-black",autoComplete:"new-password",autoCapitalize:"none",...s})}),e.jsx(w,{})]})}),e.jsx(p,{control:t,name:"confirmNewPassword",render:({field:s})=>e.jsxs(x,{children:[e.jsx(o,{className:"pb-1",children:"Confirm New Password"}),e.jsx(i,{children:e.jsx(l,{type:"password",className:"bg-purple-400 border-purple-400 dark:bg-black dark:border-black",autoComplete:"new-password",autoCapitalize:"none",...s})}),e.jsx(w,{})]})}),e.jsx("div",{className:"flex justify-between w-full",children:e.jsxs(q,{type:"submit",variant:"submit",className:"rounded-full",disabled:g||!P||!N,children:[e.jsx(A,{})," Update Profile"]})})]})})]})}export{K as ProfileIndex};
1
+ import{Y as k,Z as C,_ as F,$ as n,a0 as v,a1 as U,a2 as S,a3 as z,a4 as E,a5 as I,a6 as L,a7 as O,a8 as f,a9 as M,aa as e,ab as V,ac as p,ad as x,ae as o,af as i,ag as l,ah as w,ai as q,aj as A}from"./index-CDUlUkrk.js";async function R(a){const{id:d,newPassword:r,confirmNewPassword:c,...t}=a,m={...t};r&&r===c&&(m.password=r);const{data:u}=await C.patch(`/User/${d}`,m);return u}function $(){return k({mutationFn:a=>R(a)})}const B=F({id:n(),firstname:n({error:"Please enter your first name."}).min(2,{error:"First name is required."}).max(50,{error:"First name must be less than 50 characters."}),lastname:n({error:"Please enter your last name."}).min(2,{error:"Last name is required."}).max(50,{error:"Last name must be less than 50 characters."}),newPassword:n({error:"Please enter your new password."}).min(8,{error:"Password must be 8 characters or more."}).or(n().max(0)),confirmNewPassword:n().optional()}).refine(a=>a.newPassword===a.confirmNewPassword,{error:"Passwords do not match",path:["confirmNewPassword"]});function K(){const a=v(),d=U(),{user:r}=S(),c=z({resolver:E(B),defaultValues:{confirmNewPassword:"",firstname:r?.firstname||"",id:r?.id||"",lastname:r?.lastname||"",newPassword:""}}),{control:t,handleSubmit:m,reset:u,formState:{defaultValues:b,isDirty:P,isValid:N}}=c,{mutate:h,isPending:g}=$(),y=I.useCallback(async s=>{s&&h(s,{onSuccess:j=>{u({...b,...j}),L.updateUserForEntity(O,j),s.newPassword?(f.success("Profile updated successfully!",{description:"Please sign in with your new password."}),M(),d({to:"/sign-in"}),a.invalidate()):f.success("Profile updated successfully!")}})},[b,d,u,a,h]);return e.jsxs("div",{className:"mt-20 px-4 pt-4 md:px-12",children:[e.jsx("h2",{className:"text-2xl font-light",children:"Profile"}),e.jsx(V,{...c,children:e.jsxs("form",{onSubmit:m(y),className:"grid gap-4 my-4",children:[e.jsx(p,{control:t,name:"firstname",render:({field:s})=>e.jsxs(x,{children:[e.jsx(o,{className:"pb-1",children:"First Name"}),e.jsx(i,{children:e.jsx(l,{type:"text",className:"bg-purple-400 border-purple-400 dark:bg-black dark:border-black",autoCapitalize:"words",...s})}),e.jsx(w,{})]})}),e.jsx(p,{control:t,name:"lastname",render:({field:s})=>e.jsxs(x,{children:[e.jsx(o,{className:"pb-1",children:"Last Name"}),e.jsx(i,{children:e.jsx(l,{type:"text",className:"bg-purple-400 border-purple-400 dark:bg-black dark:border-black",autoCapitalize:"words",...s})}),e.jsx(w,{})]})}),e.jsx(o,{className:"pb-1",children:"Email"}),e.jsx(i,{children:e.jsx(l,{type:"email",enterKeyHint:"next",autoComplete:"email",autoCapitalize:"none",value:r?.email||"",disabled:!0,readOnly:!0})}),e.jsx(p,{control:t,name:"newPassword",render:({field:s})=>e.jsxs(x,{children:[e.jsx(o,{className:"pb-1",children:"New Password"}),e.jsx(i,{children:e.jsx(l,{type:"password",placeholder:"Optional",className:"bg-purple-400 border-purple-400 dark:bg-black dark:border-black",autoComplete:"new-password",autoCapitalize:"none",...s})}),e.jsx(w,{})]})}),e.jsx(p,{control:t,name:"confirmNewPassword",render:({field:s})=>e.jsxs(x,{children:[e.jsx(o,{className:"pb-1",children:"Confirm New Password"}),e.jsx(i,{children:e.jsx(l,{type:"password",className:"bg-purple-400 border-purple-400 dark:bg-black dark:border-black",autoComplete:"new-password",autoCapitalize:"none",...s})}),e.jsx(w,{})]})}),e.jsx("div",{className:"flex justify-between w-full",children:e.jsxs(q,{type:"submit",variant:"submit",className:"rounded-full",disabled:g||!P||!N,children:[e.jsx(A,{})," Update Profile"]})})]})})]})}export{K as ProfileIndex};
@@ -1,4 +1,4 @@
1
- import{aG as Nm,aZ as Lm,a_ as $m,a5 as y,aa as N,a$ as Rm,aH as cd,aI as Vt,b0 as V,aK as ld,b1 as sd,b2 as Bm,aR as qm,b3 as Fm,b4 as Km,b5 as Ii,b6 as Ni,b7 as Li,b8 as $i,b9 as Ri,ba as Bi,bb as qi,bc as Um,bd as zm,aw as Wm}from"./index-C3UEOQVn.js";import{e as O,i as fd,g as Hm,h as dd,d as Ym,a as po,c as Vm,P as Gm}from"./react-redux-CajzJORs.js";const Xm=new Date(2025,0).getTime(),Zm=1440*60*1e3;function Qm(e){const t=[];for(const r in e){const n=e[r];t.push(...mo(r,n,0))}return t}function Jm(e){return!!e.title}function mo(e,t,r,n){if(t&&Array.isArray(t)){const i=t;return[i.length>1&&{title:e,depth:r},...t.map((a,o)=>mo(i.length>1?String(o+1):e,a,r+1,e)).flat(1)].filter(Nm)}if(ey(t)){const i=t;return[{title:e,depth:r},...Object.keys(t).map(a=>mo(String(a),i[a],r+1,e)).flat(1)]}if((e==="__updatedtime__"||e==="__createdtime__")&&(e=e.replace(/_/g,"").replace("time","")),typeof t=="number")if(t>Xm&&t<Date.now()+Zm){const i=Date.now()-t;t=Lm(i,t)}else n==="memory"?t=$m(t):!e.startsWith("raw")&&e.toLowerCase().includes("load")&&(t=Math.round(t*10)/10+"%");else typeof t=="boolean"&&(t=t?"Yes":"No");return[{name:e,value:String(t),depth:r}]}function ey(e){return!!e&&typeof e=="object"}function ty({data:e}){const t=y.useMemo(()=>Qm(e),[e]);return N.jsx("div",{className:"max-w-96 grid mb-12",children:t.map((r,n)=>Jm(r)?N.jsx("div",{className:Rm("font-semibold text-xl",n!==0&&"mt-4"),style:{paddingLeft:r.depth*12+"px"},children:r.title},n):N.jsx(N.Fragment,{children:N.jsxs("div",{style:{paddingLeft:r.depth*12+"px"},children:[N.jsxs("span",{className:"text-muted-foreground",children:[r.name,": "]}),r.value]},n)}))})}function ry({metricConfig:e,startTime:t,endTime:r,instanceParams:n}){return cd({queryKey:["get_analytics",e.name,e.path,t,r],queryFn:async()=>{const i={operation:"get_analytics",metric:e.name,start_time:t,end_time:r};e.path&&(i.conditions=[{attribute:"path",value:e.path}]);const{data:a}=await n.instanceClient.post("/",i);return a}})}const ny={"persistence-purple":"#403B8A","b-tree-green":"#55C58F","cyber-grape":"#7A3A87","quantum-purple":"#312556","cloud-white":"#F5F5F5","acid-magenta":"#C63368","edge-gray":"#383D40"};var Fi={},Ki={},Ic;function iy(){return Ic||(Ic=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t})(Ki)),Ki}var Ui={},Nc;function hd(){return Nc||(Nc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){switch(typeof r){case"number":case"symbol":return!1;case"string":return r.includes(".")||r.includes("[")||r.includes("]")}}e.isDeepKey=t})(Ui)),Ui}var zi={},Lc;function vd(){return Lc||(Lc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="string"||typeof r=="symbol"?r:Object.is(r?.valueOf?.(),-0)?"-0":String(r)}e.toKey=t})(zi)),zi}var Wi={},$c;function cu(){return $c||($c=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){const n=[],i=r.length;if(i===0)return n;let a=0,o="",u="",l=!1;for(r.charCodeAt(0)===46&&(n.push(""),a++);a<i;){const s=r[a];u?s==="\\"&&a+1<i?(a++,o+=r[a]):s===u?u="":o+=s:l?s==='"'||s==="'"?u=s:s==="]"?(l=!1,n.push(o),o=""):o+=s:s==="["?(l=!0,o&&(n.push(o),o="")):s==="."?o&&(n.push(o),o=""):o+=s,a++}return o&&n.push(o),n}e.toPath=t})(Wi)),Wi}var Rc;function lu(){return Rc||(Rc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=iy(),r=hd(),n=vd(),i=cu();function a(u,l,s){if(u==null)return s;switch(typeof l){case"string":{if(t.isUnsafeProperty(l))return s;const c=u[l];return c===void 0?r.isDeepKey(l)?a(u,i.toPath(l),s):s:c}case"number":case"symbol":{typeof l=="number"&&(l=n.toKey(l));const c=u[l];return c===void 0?s:c}default:{if(Array.isArray(l))return o(u,l,s);if(Object.is(l?.valueOf(),-0)?l="-0":l=String(l),t.isUnsafeProperty(l))return s;const c=u[l];return c===void 0?s:c}}}function o(u,l,s){if(l.length===0)return s;let c=u;for(let f=0;f<l.length;f++){if(c==null||t.isUnsafeProperty(l[f]))return s;c=c[l[f]]}return c===void 0?s:c}e.get=a})(Fi)),Fi}var Hi,Bc;function ay(){return Bc||(Bc=1,Hi=lu().get),Hi}var oy=ay();const ti=Vt(oy);var Yi={exports:{}},W={};var qc;function uy(){if(qc)return W;qc=1;var e=60103,t=60106,r=60107,n=60108,i=60114,a=60109,o=60110,u=60112,l=60113,s=60120,c=60115,f=60116,d=60121,h=60122,v=60117,p=60129,m=60131;if(typeof Symbol=="function"&&Symbol.for){var g=Symbol.for;e=g("react.element"),t=g("react.portal"),r=g("react.fragment"),n=g("react.strict_mode"),i=g("react.profiler"),a=g("react.provider"),o=g("react.context"),u=g("react.forward_ref"),l=g("react.suspense"),s=g("react.suspense_list"),c=g("react.memo"),f=g("react.lazy"),d=g("react.block"),h=g("react.server.block"),v=g("react.fundamental"),p=g("react.debug_trace_mode"),m=g("react.legacy_hidden")}function w(_){if(typeof _=="object"&&_!==null){var $=_.$$typeof;switch($){case e:switch(_=_.type,_){case r:case i:case n:case l:case s:return _;default:switch(_=_&&_.$$typeof,_){case o:case u:case f:case c:case a:return _;default:return $}}case t:return $}}}var b=a,A=e,x=u,P=r,S=f,j=c,D=t,L=i,M=n,T=l;return W.ContextConsumer=o,W.ContextProvider=b,W.Element=A,W.ForwardRef=x,W.Fragment=P,W.Lazy=S,W.Memo=j,W.Portal=D,W.Profiler=L,W.StrictMode=M,W.Suspense=T,W.isAsyncMode=function(){return!1},W.isConcurrentMode=function(){return!1},W.isContextConsumer=function(_){return w(_)===o},W.isContextProvider=function(_){return w(_)===a},W.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===e},W.isForwardRef=function(_){return w(_)===u},W.isFragment=function(_){return w(_)===r},W.isLazy=function(_){return w(_)===f},W.isMemo=function(_){return w(_)===c},W.isPortal=function(_){return w(_)===t},W.isProfiler=function(_){return w(_)===i},W.isStrictMode=function(_){return w(_)===n},W.isSuspense=function(_){return w(_)===l},W.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===r||_===i||_===p||_===n||_===l||_===s||_===m||typeof _=="object"&&_!==null&&(_.$$typeof===f||_.$$typeof===c||_.$$typeof===a||_.$$typeof===o||_.$$typeof===u||_.$$typeof===v||_.$$typeof===d||_[0]===h)},W.typeOf=w,W}var Fc;function cy(){return Fc||(Fc=1,Yi.exports=uy()),Yi.exports}cy();var Ye=e=>e===0?0:e>0?1:-1,Ve=e=>typeof e=="number"&&e!=+e,Lt=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,B=e=>(typeof e=="number"||e instanceof Number)&&!Ve(e),tt=e=>B(e)||typeof e=="string",ly=0,Dr=e=>{var t=++ly;return"".concat(e||"").concat(t)},_t=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!B(t)&&typeof t!="string")return n;var a;if(Lt(t)){if(r==null)return n;var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Ve(a)&&(a=n),i&&r!=null&&a>r&&(a=r),a},pd=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[e[n]])r[e[n]]=!0;else return!0;return!1};function it(e,t,r){return B(e)&&B(t)?e+r*(t-e):t}function md(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):ti(n,t))===r)}var le=e=>e===null||typeof e>"u",zr=e=>le(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)),sy=["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 su(e){if(typeof e!="string")return!1;var t=sy;return t.includes(e)}var fy=["viewBox","children"],Kc=["points","pathLength"],Vi={svg:fy,polygon:Kc,polyline:Kc},fu=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(y.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(i=>{su(i)&&(n[i]=(a=>r[i](r,a)))}),n},dy=(e,t,r)=>n=>(e(t,r,n),null),yd=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(i=>{var a=e[i];su(i)&&typeof a=="function"&&(n||(n={}),n[i]=dy(a,t,r))}),n},hy=["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 gd(e){if(typeof e!="string")return!1;var t=hy;return t.includes(e)}function fr(e){var t=Object.entries(e).filter(r=>{var[n]=r;return gd(n)});return Object.fromEntries(t)}var bd=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,vy=(e,t,r,n)=>{var i;if(typeof t=="symbol"||typeof t=="number")return!0;var a=(i=n&&Vi?.[n])!==null&&i!==void 0?i:[],o=t.startsWith("data-"),u=typeof e!="function"&&(!!n&&a.includes(t)||gd(t)),l=!!r&&su(t);return o||u||l},se=(e,t,r)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(y.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var i={};return Object.keys(n).forEach(a=>{var o;vy((o=n)===null||o===void 0?void 0:o[a],a,t,r)&&(i[a]=n[a])}),i},py=["children","width","height","viewBox","className","style","title","desc"];function yo(){return yo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yo.apply(null,arguments)}function my(e,t){if(e==null)return{};var r,n,i=yy(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function yy(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var du=y.forwardRef((e,t)=>{var{children:r,width:n,height:i,viewBox:a,className:o,style:u,title:l,desc:s}=e,c=my(e,py),f=a||{width:n,height:i,x:0,y:0},d=V("recharts-surface",o);return y.createElement("svg",yo({},se(c,!0,"svg"),{className:d,width:n,height:i,style:u,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),y.createElement("title",null,l),y.createElement("desc",null,s),r)}),gy=["children","className"];function go(){return go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},go.apply(null,arguments)}function by(e,t){if(e==null)return{};var r,n,i=wy(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function wy(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var dr=y.forwardRef((e,t)=>{var{children:r,className:n}=e,i=by(e,gy),a=V("recharts-layer",n);return y.createElement("g",go({className:a},se(i,!0),{ref:t}),r)}),wd=y.createContext(null),xy=()=>y.useContext(wd);function X(e){return function(){return e}}const xd=Math.cos,Pn=Math.sin,Xe=Math.sqrt,On=Math.PI,ri=2*On,bo=Math.PI,wo=2*bo,Dt=1e-6,Py=wo-Dt;function Pd(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function Oy(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Pd;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class Ay{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Pd:Oy(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,l=n-t,s=i-r,c=o-t,f=u-r,d=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Dt)if(!(Math.abs(f*l-s*c)>Dt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,v=i-u,p=l*l+s*s,m=h*h+v*v,g=Math.sqrt(p),w=Math.sqrt(d),b=a*Math.tan((bo-Math.acos((p+d-m)/(2*g*w)))/2),A=b/w,x=b/g;Math.abs(A-1)>Dt&&this._append`L${t+A*c},${r+A*f}`,this._append`A${a},${a},0,0,${+(f*h>c*v)},${this._x1=t+x*l},${this._y1=r+x*s}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),l=n*Math.sin(i),s=t+u,c=r+l,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${s},${c}`:(Math.abs(this._x1-s)>Dt||Math.abs(this._y1-c)>Dt)&&this._append`L${s},${c}`,n&&(d<0&&(d=d%wo+wo),d>Py?this._append`A${n},${n},0,1,${f},${t-u},${r-l}A${n},${n},0,1,${f},${this._x1=s},${this._y1=c}`:d>Dt&&this._append`A${n},${n},0,${+(d>=bo)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function hu(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Ay(t)}function vu(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Od(e){this._context=e}Od.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 ni(e){return new Od(e)}function Ad(e){return e[0]}function Sd(e){return e[1]}function _d(e,t){var r=X(!0),n=null,i=ni,a=null,o=hu(u);e=typeof e=="function"?e:e===void 0?Ad:X(e),t=typeof t=="function"?t:t===void 0?Sd:X(t);function u(l){var s,c=(l=vu(l)).length,f,d=!1,h;for(n==null&&(a=i(h=o())),s=0;s<=c;++s)!(s<c&&r(f=l[s],s,l))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,s,l),+t(f,s,l));if(h)return a=null,h+""||null}return u.x=function(l){return arguments.length?(e=typeof l=="function"?l:X(+l),u):e},u.y=function(l){return arguments.length?(t=typeof l=="function"?l:X(+l),u):t},u.defined=function(l){return arguments.length?(r=typeof l=="function"?l:X(!!l),u):r},u.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),u):i},u.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),u):n},u}function an(e,t,r){var n=null,i=X(!0),a=null,o=ni,u=null,l=hu(s);e=typeof e=="function"?e:e===void 0?Ad:X(+e),t=typeof t=="function"?t:X(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?Sd:X(+r);function s(f){var d,h,v,p=(f=vu(f)).length,m,g=!1,w,b=new Array(p),A=new Array(p);for(a==null&&(u=o(w=l())),d=0;d<=p;++d){if(!(d<p&&i(m=f[d],d,f))===g)if(g=!g)h=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),v=d-1;v>=h;--v)u.point(b[v],A[v]);u.lineEnd(),u.areaEnd()}g&&(b[d]=+e(m,d,f),A[d]=+t(m,d,f),u.point(n?+n(m,d,f):b[d],r?+r(m,d,f):A[d]))}if(w)return u=null,w+""||null}function c(){return _d().defined(i).curve(o).context(a)}return s.x=function(f){return arguments.length?(e=typeof f=="function"?f:X(+f),n=null,s):e},s.x0=function(f){return arguments.length?(e=typeof f=="function"?f:X(+f),s):e},s.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:X(+f),s):n},s.y=function(f){return arguments.length?(t=typeof f=="function"?f:X(+f),r=null,s):t},s.y0=function(f){return arguments.length?(t=typeof f=="function"?f:X(+f),s):t},s.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:X(+f),s):r},s.lineX0=s.lineY0=function(){return c().x(e).y(t)},s.lineY1=function(){return c().x(e).y(r)},s.lineX1=function(){return c().x(n).y(t)},s.defined=function(f){return arguments.length?(i=typeof f=="function"?f:X(!!f),s):i},s.curve=function(f){return arguments.length?(o=f,a!=null&&(u=o(a)),s):o},s.context=function(f){return arguments.length?(f==null?a=u=null:u=o(a=f),s):a},s}class Ed{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function Sy(e){return new Ed(e,!0)}function _y(e){return new Ed(e,!1)}const pu={draw(e,t){const r=Xe(t/On);e.moveTo(r,0),e.arc(0,0,r,0,ri)}},Ey={draw(e,t){const r=Xe(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},jd=Xe(1/3),jy=jd*2,My={draw(e,t){const r=Xe(t/jy),n=r*jd;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Ty={draw(e,t){const r=Xe(t),n=-r/2;e.rect(n,n,r,r)}},Cy=.8908130915292852,Md=Pn(On/10)/Pn(7*On/10),ky=Pn(ri/10)*Md,Dy=-xd(ri/10)*Md,Iy={draw(e,t){const r=Xe(t*Cy),n=ky*r,i=Dy*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=ri*a/5,u=xd(o),l=Pn(o);e.lineTo(l*r,-u*r),e.lineTo(u*n-l*i,l*n+u*i)}e.closePath()}},Gi=Xe(3),Ny={draw(e,t){const r=-Xe(t/(Gi*3));e.moveTo(0,r*2),e.lineTo(-Gi*r,-r),e.lineTo(Gi*r,-r),e.closePath()}},Le=-.5,$e=Xe(3)/2,xo=1/Xe(12),Ly=(xo/2+1)*3,$y={draw(e,t){const r=Xe(t/Ly),n=r/2,i=r*xo,a=n,o=r*xo+r,u=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,l),e.lineTo(Le*n-$e*i,$e*n+Le*i),e.lineTo(Le*a-$e*o,$e*a+Le*o),e.lineTo(Le*u-$e*l,$e*u+Le*l),e.lineTo(Le*n+$e*i,Le*i-$e*n),e.lineTo(Le*a+$e*o,Le*o-$e*a),e.lineTo(Le*u+$e*l,Le*l-$e*u),e.closePath()}};function Ry(e,t){let r=null,n=hu(i);e=typeof e=="function"?e:X(e||pu),t=typeof t=="function"?t:X(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:X(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:X(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function An(){}function Sn(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Td(e){this._context=e}Td.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:Sn(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:Sn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function By(e){return new Td(e)}function Cd(e){this._context=e}Cd.prototype={areaStart:An,areaEnd:An,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:Sn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function qy(e){return new Cd(e)}function kd(e){this._context=e}kd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Sn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Fy(e){return new kd(e)}function Dd(e){this._context=e}Dd.prototype={areaStart:An,areaEnd:An,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 Ky(e){return new Dd(e)}function Uc(e){return e<0?-1:1}function zc(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(Uc(a)+Uc(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function Wc(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Xi(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function _n(e){this._context=e}_n.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:Xi(this,this._t0,Wc(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Xi(this,Wc(this,r=zc(this,e,t)),r);break;default:Xi(this,this._t0,r=zc(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Id(e){this._context=new Nd(e)}(Id.prototype=Object.create(_n.prototype)).point=function(e,t){_n.prototype.point.call(this,t,e)};function Nd(e){this._context=e}Nd.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function Uy(e){return new _n(e)}function zy(e){return new Id(e)}function Ld(e){this._context=e}Ld.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Hc(e),i=Hc(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Hc(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Wy(e){return new Ld(e)}function ii(e,t){this._context=e,this._t=t}ii.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Hy(e){return new ii(e,.5)}function Yy(e){return new ii(e,0)}function Vy(e){return new ii(e,1)}function nr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Po(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function Gy(e,t){return e[t]}function Xy(e){const t=[];return t.key=e,t}function Zy(){var e=X([]),t=Po,r=nr,n=Gy;function i(a){var o=Array.from(e.apply(this,arguments),Xy),u,l=o.length,s=-1,c;for(const f of a)for(u=0,++s;u<l;++u)(o[u][s]=[0,+n(f,o[u].key,s,a)]).data=f;for(u=0,c=vu(t(o));u<l;++u)o[c[u]].index=u;return r(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:X(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:X(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Po:typeof a=="function"?a:X(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??nr,i):r},i}function Qy(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}nr(e,t)}}function Jy(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}nr(e,t)}}function eg(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,l=0,s=0;u<o;++u){for(var c=e[t[u]],f=c[n][1]||0,d=c[n-1][1]||0,h=(f-d)/2,v=0;v<u;++v){var p=e[t[v]],m=p[n][1]||0,g=p[n-1][1]||0;h+=m-g}l+=f,s+=h*f}i[n-1][1]+=i[n-1][0]=r,l&&(r-=s/l)}i[n-1][1]+=i[n-1][0]=r,nr(e,t)}}var tg=["type","size","sizeType"];function Oo(){return Oo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Oo.apply(null,arguments)}function Yc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Vc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yc(Object(r),!0).forEach(function(n){rg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rg(e,t,r){return(t=ng(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ng(e){var t=ig(e,"string");return typeof t=="symbol"?t:t+""}function ig(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ag(e,t){if(e==null)return{};var r,n,i=og(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function og(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var $d={symbolCircle:pu,symbolCross:Ey,symbolDiamond:My,symbolSquare:Ty,symbolStar:Iy,symbolTriangle:Ny,symbolWye:$y},ug=Math.PI/180,cg=e=>{var t="symbol".concat(zr(e));return $d[t]||pu},lg=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*ug;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},sg=(e,t)=>{$d["symbol".concat(zr(e))]=t},Rd=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,i=ag(e,tg),a=Vc(Vc({},i),{},{type:t,size:r,sizeType:n}),o="circle";typeof t=="string"&&(o=t);var u=()=>{var d=cg(o),h=Ry().type(d).size(lg(r,n,o));return h()},{className:l,cx:s,cy:c}=a,f=se(a,!0);return s===+s&&c===+c&&r===+r?y.createElement("path",Oo({},f,{className:V("recharts-symbols",l),transform:"translate(".concat(s,", ").concat(c,")"),d:u()})):null};Rd.registerSymbol=sg;function Ao(){return Ao=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ao.apply(null,arguments)}function Gc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gc(Object(r),!0).forEach(function(n){mu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mu(e,t,r){return(t=dg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dg(e){var t=hg(e,"string");return typeof t=="symbol"?t:t+""}function hg(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Re=32;class yu extends y.PureComponent{renderIcon(t,r){var{inactiveColor:n}=this.props,i=Re/2,a=Re/6,o=Re/3,u=t.inactive?n:t.color,l=r??t.type;if(l==="none")return null;if(l==="plainline")return y.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:i,x2:Re,y2:i,className:"recharts-legend-icon"});if(l==="line")return y.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(i,"h").concat(o,`
1
+ import{aG as Nm,aZ as Lm,a_ as $m,a5 as y,aa as N,a$ as Rm,aH as cd,aI as Vt,b0 as V,aK as ld,b1 as sd,b2 as Bm,aR as qm,b3 as Fm,b4 as Km,b5 as Ii,b6 as Ni,b7 as Li,b8 as $i,b9 as Ri,ba as Bi,bb as qi,bc as Um,bd as zm,aw as Wm}from"./index-CDUlUkrk.js";import{e as O,i as fd,g as Hm,h as dd,d as Ym,a as po,c as Vm,P as Gm}from"./react-redux-bY1TVOy8.js";const Xm=new Date(2025,0).getTime(),Zm=1440*60*1e3;function Qm(e){const t=[];for(const r in e){const n=e[r];t.push(...mo(r,n,0))}return t}function Jm(e){return!!e.title}function mo(e,t,r,n){if(t&&Array.isArray(t)){const i=t;return[i.length>1&&{title:e,depth:r},...t.map((a,o)=>mo(i.length>1?String(o+1):e,a,r+1,e)).flat(1)].filter(Nm)}if(ey(t)){const i=t;return[{title:e,depth:r},...Object.keys(t).map(a=>mo(String(a),i[a],r+1,e)).flat(1)]}if((e==="__updatedtime__"||e==="__createdtime__")&&(e=e.replace(/_/g,"").replace("time","")),typeof t=="number")if(t>Xm&&t<Date.now()+Zm){const i=Date.now()-t;t=Lm(i,t)}else n==="memory"?t=$m(t):!e.startsWith("raw")&&e.toLowerCase().includes("load")&&(t=Math.round(t*10)/10+"%");else typeof t=="boolean"&&(t=t?"Yes":"No");return[{name:e,value:String(t),depth:r}]}function ey(e){return!!e&&typeof e=="object"}function ty({data:e}){const t=y.useMemo(()=>Qm(e),[e]);return N.jsx("div",{className:"max-w-96 grid mb-12",children:t.map((r,n)=>Jm(r)?N.jsx("div",{className:Rm("font-semibold text-xl",n!==0&&"mt-4"),style:{paddingLeft:r.depth*12+"px"},children:r.title},n):N.jsx(N.Fragment,{children:N.jsxs("div",{style:{paddingLeft:r.depth*12+"px"},children:[N.jsxs("span",{className:"text-muted-foreground",children:[r.name,": "]}),r.value]},n)}))})}function ry({metricConfig:e,startTime:t,endTime:r,instanceParams:n}){return cd({queryKey:["get_analytics",e.name,e.path,t,r],queryFn:async()=>{const i={operation:"get_analytics",metric:e.name,start_time:t,end_time:r};e.path&&(i.conditions=[{attribute:"path",value:e.path}]);const{data:a}=await n.instanceClient.post("/",i);return a}})}const ny={"persistence-purple":"#403B8A","b-tree-green":"#55C58F","cyber-grape":"#7A3A87","quantum-purple":"#312556","cloud-white":"#F5F5F5","acid-magenta":"#C63368","edge-gray":"#383D40"};var Fi={},Ki={},Ic;function iy(){return Ic||(Ic=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t})(Ki)),Ki}var Ui={},Nc;function hd(){return Nc||(Nc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){switch(typeof r){case"number":case"symbol":return!1;case"string":return r.includes(".")||r.includes("[")||r.includes("]")}}e.isDeepKey=t})(Ui)),Ui}var zi={},Lc;function vd(){return Lc||(Lc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="string"||typeof r=="symbol"?r:Object.is(r?.valueOf?.(),-0)?"-0":String(r)}e.toKey=t})(zi)),zi}var Wi={},$c;function cu(){return $c||($c=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){const n=[],i=r.length;if(i===0)return n;let a=0,o="",u="",l=!1;for(r.charCodeAt(0)===46&&(n.push(""),a++);a<i;){const s=r[a];u?s==="\\"&&a+1<i?(a++,o+=r[a]):s===u?u="":o+=s:l?s==='"'||s==="'"?u=s:s==="]"?(l=!1,n.push(o),o=""):o+=s:s==="["?(l=!0,o&&(n.push(o),o="")):s==="."?o&&(n.push(o),o=""):o+=s,a++}return o&&n.push(o),n}e.toPath=t})(Wi)),Wi}var Rc;function lu(){return Rc||(Rc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=iy(),r=hd(),n=vd(),i=cu();function a(u,l,s){if(u==null)return s;switch(typeof l){case"string":{if(t.isUnsafeProperty(l))return s;const c=u[l];return c===void 0?r.isDeepKey(l)?a(u,i.toPath(l),s):s:c}case"number":case"symbol":{typeof l=="number"&&(l=n.toKey(l));const c=u[l];return c===void 0?s:c}default:{if(Array.isArray(l))return o(u,l,s);if(Object.is(l?.valueOf(),-0)?l="-0":l=String(l),t.isUnsafeProperty(l))return s;const c=u[l];return c===void 0?s:c}}}function o(u,l,s){if(l.length===0)return s;let c=u;for(let f=0;f<l.length;f++){if(c==null||t.isUnsafeProperty(l[f]))return s;c=c[l[f]]}return c===void 0?s:c}e.get=a})(Fi)),Fi}var Hi,Bc;function ay(){return Bc||(Bc=1,Hi=lu().get),Hi}var oy=ay();const ti=Vt(oy);var Yi={exports:{}},W={};var qc;function uy(){if(qc)return W;qc=1;var e=60103,t=60106,r=60107,n=60108,i=60114,a=60109,o=60110,u=60112,l=60113,s=60120,c=60115,f=60116,d=60121,h=60122,v=60117,p=60129,m=60131;if(typeof Symbol=="function"&&Symbol.for){var g=Symbol.for;e=g("react.element"),t=g("react.portal"),r=g("react.fragment"),n=g("react.strict_mode"),i=g("react.profiler"),a=g("react.provider"),o=g("react.context"),u=g("react.forward_ref"),l=g("react.suspense"),s=g("react.suspense_list"),c=g("react.memo"),f=g("react.lazy"),d=g("react.block"),h=g("react.server.block"),v=g("react.fundamental"),p=g("react.debug_trace_mode"),m=g("react.legacy_hidden")}function w(_){if(typeof _=="object"&&_!==null){var $=_.$$typeof;switch($){case e:switch(_=_.type,_){case r:case i:case n:case l:case s:return _;default:switch(_=_&&_.$$typeof,_){case o:case u:case f:case c:case a:return _;default:return $}}case t:return $}}}var b=a,A=e,x=u,P=r,S=f,j=c,D=t,L=i,M=n,T=l;return W.ContextConsumer=o,W.ContextProvider=b,W.Element=A,W.ForwardRef=x,W.Fragment=P,W.Lazy=S,W.Memo=j,W.Portal=D,W.Profiler=L,W.StrictMode=M,W.Suspense=T,W.isAsyncMode=function(){return!1},W.isConcurrentMode=function(){return!1},W.isContextConsumer=function(_){return w(_)===o},W.isContextProvider=function(_){return w(_)===a},W.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===e},W.isForwardRef=function(_){return w(_)===u},W.isFragment=function(_){return w(_)===r},W.isLazy=function(_){return w(_)===f},W.isMemo=function(_){return w(_)===c},W.isPortal=function(_){return w(_)===t},W.isProfiler=function(_){return w(_)===i},W.isStrictMode=function(_){return w(_)===n},W.isSuspense=function(_){return w(_)===l},W.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===r||_===i||_===p||_===n||_===l||_===s||_===m||typeof _=="object"&&_!==null&&(_.$$typeof===f||_.$$typeof===c||_.$$typeof===a||_.$$typeof===o||_.$$typeof===u||_.$$typeof===v||_.$$typeof===d||_[0]===h)},W.typeOf=w,W}var Fc;function cy(){return Fc||(Fc=1,Yi.exports=uy()),Yi.exports}cy();var Ye=e=>e===0?0:e>0?1:-1,Ve=e=>typeof e=="number"&&e!=+e,Lt=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,B=e=>(typeof e=="number"||e instanceof Number)&&!Ve(e),tt=e=>B(e)||typeof e=="string",ly=0,Dr=e=>{var t=++ly;return"".concat(e||"").concat(t)},_t=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!B(t)&&typeof t!="string")return n;var a;if(Lt(t)){if(r==null)return n;var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Ve(a)&&(a=n),i&&r!=null&&a>r&&(a=r),a},pd=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[e[n]])r[e[n]]=!0;else return!0;return!1};function it(e,t,r){return B(e)&&B(t)?e+r*(t-e):t}function md(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):ti(n,t))===r)}var le=e=>e===null||typeof e>"u",zr=e=>le(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)),sy=["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 su(e){if(typeof e!="string")return!1;var t=sy;return t.includes(e)}var fy=["viewBox","children"],Kc=["points","pathLength"],Vi={svg:fy,polygon:Kc,polyline:Kc},fu=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(y.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(i=>{su(i)&&(n[i]=(a=>r[i](r,a)))}),n},dy=(e,t,r)=>n=>(e(t,r,n),null),yd=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(i=>{var a=e[i];su(i)&&typeof a=="function"&&(n||(n={}),n[i]=dy(a,t,r))}),n},hy=["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 gd(e){if(typeof e!="string")return!1;var t=hy;return t.includes(e)}function fr(e){var t=Object.entries(e).filter(r=>{var[n]=r;return gd(n)});return Object.fromEntries(t)}var bd=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,vy=(e,t,r,n)=>{var i;if(typeof t=="symbol"||typeof t=="number")return!0;var a=(i=n&&Vi?.[n])!==null&&i!==void 0?i:[],o=t.startsWith("data-"),u=typeof e!="function"&&(!!n&&a.includes(t)||gd(t)),l=!!r&&su(t);return o||u||l},se=(e,t,r)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(y.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var i={};return Object.keys(n).forEach(a=>{var o;vy((o=n)===null||o===void 0?void 0:o[a],a,t,r)&&(i[a]=n[a])}),i},py=["children","width","height","viewBox","className","style","title","desc"];function yo(){return yo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yo.apply(null,arguments)}function my(e,t){if(e==null)return{};var r,n,i=yy(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function yy(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var du=y.forwardRef((e,t)=>{var{children:r,width:n,height:i,viewBox:a,className:o,style:u,title:l,desc:s}=e,c=my(e,py),f=a||{width:n,height:i,x:0,y:0},d=V("recharts-surface",o);return y.createElement("svg",yo({},se(c,!0,"svg"),{className:d,width:n,height:i,style:u,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),y.createElement("title",null,l),y.createElement("desc",null,s),r)}),gy=["children","className"];function go(){return go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},go.apply(null,arguments)}function by(e,t){if(e==null)return{};var r,n,i=wy(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function wy(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var dr=y.forwardRef((e,t)=>{var{children:r,className:n}=e,i=by(e,gy),a=V("recharts-layer",n);return y.createElement("g",go({className:a},se(i,!0),{ref:t}),r)}),wd=y.createContext(null),xy=()=>y.useContext(wd);function X(e){return function(){return e}}const xd=Math.cos,Pn=Math.sin,Xe=Math.sqrt,On=Math.PI,ri=2*On,bo=Math.PI,wo=2*bo,Dt=1e-6,Py=wo-Dt;function Pd(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function Oy(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Pd;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class Ay{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Pd:Oy(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,l=n-t,s=i-r,c=o-t,f=u-r,d=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Dt)if(!(Math.abs(f*l-s*c)>Dt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,v=i-u,p=l*l+s*s,m=h*h+v*v,g=Math.sqrt(p),w=Math.sqrt(d),b=a*Math.tan((bo-Math.acos((p+d-m)/(2*g*w)))/2),A=b/w,x=b/g;Math.abs(A-1)>Dt&&this._append`L${t+A*c},${r+A*f}`,this._append`A${a},${a},0,0,${+(f*h>c*v)},${this._x1=t+x*l},${this._y1=r+x*s}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),l=n*Math.sin(i),s=t+u,c=r+l,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${s},${c}`:(Math.abs(this._x1-s)>Dt||Math.abs(this._y1-c)>Dt)&&this._append`L${s},${c}`,n&&(d<0&&(d=d%wo+wo),d>Py?this._append`A${n},${n},0,1,${f},${t-u},${r-l}A${n},${n},0,1,${f},${this._x1=s},${this._y1=c}`:d>Dt&&this._append`A${n},${n},0,${+(d>=bo)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function hu(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Ay(t)}function vu(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Od(e){this._context=e}Od.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 ni(e){return new Od(e)}function Ad(e){return e[0]}function Sd(e){return e[1]}function _d(e,t){var r=X(!0),n=null,i=ni,a=null,o=hu(u);e=typeof e=="function"?e:e===void 0?Ad:X(e),t=typeof t=="function"?t:t===void 0?Sd:X(t);function u(l){var s,c=(l=vu(l)).length,f,d=!1,h;for(n==null&&(a=i(h=o())),s=0;s<=c;++s)!(s<c&&r(f=l[s],s,l))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,s,l),+t(f,s,l));if(h)return a=null,h+""||null}return u.x=function(l){return arguments.length?(e=typeof l=="function"?l:X(+l),u):e},u.y=function(l){return arguments.length?(t=typeof l=="function"?l:X(+l),u):t},u.defined=function(l){return arguments.length?(r=typeof l=="function"?l:X(!!l),u):r},u.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),u):i},u.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),u):n},u}function an(e,t,r){var n=null,i=X(!0),a=null,o=ni,u=null,l=hu(s);e=typeof e=="function"?e:e===void 0?Ad:X(+e),t=typeof t=="function"?t:X(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?Sd:X(+r);function s(f){var d,h,v,p=(f=vu(f)).length,m,g=!1,w,b=new Array(p),A=new Array(p);for(a==null&&(u=o(w=l())),d=0;d<=p;++d){if(!(d<p&&i(m=f[d],d,f))===g)if(g=!g)h=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),v=d-1;v>=h;--v)u.point(b[v],A[v]);u.lineEnd(),u.areaEnd()}g&&(b[d]=+e(m,d,f),A[d]=+t(m,d,f),u.point(n?+n(m,d,f):b[d],r?+r(m,d,f):A[d]))}if(w)return u=null,w+""||null}function c(){return _d().defined(i).curve(o).context(a)}return s.x=function(f){return arguments.length?(e=typeof f=="function"?f:X(+f),n=null,s):e},s.x0=function(f){return arguments.length?(e=typeof f=="function"?f:X(+f),s):e},s.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:X(+f),s):n},s.y=function(f){return arguments.length?(t=typeof f=="function"?f:X(+f),r=null,s):t},s.y0=function(f){return arguments.length?(t=typeof f=="function"?f:X(+f),s):t},s.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:X(+f),s):r},s.lineX0=s.lineY0=function(){return c().x(e).y(t)},s.lineY1=function(){return c().x(e).y(r)},s.lineX1=function(){return c().x(n).y(t)},s.defined=function(f){return arguments.length?(i=typeof f=="function"?f:X(!!f),s):i},s.curve=function(f){return arguments.length?(o=f,a!=null&&(u=o(a)),s):o},s.context=function(f){return arguments.length?(f==null?a=u=null:u=o(a=f),s):a},s}class Ed{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function Sy(e){return new Ed(e,!0)}function _y(e){return new Ed(e,!1)}const pu={draw(e,t){const r=Xe(t/On);e.moveTo(r,0),e.arc(0,0,r,0,ri)}},Ey={draw(e,t){const r=Xe(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},jd=Xe(1/3),jy=jd*2,My={draw(e,t){const r=Xe(t/jy),n=r*jd;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Ty={draw(e,t){const r=Xe(t),n=-r/2;e.rect(n,n,r,r)}},Cy=.8908130915292852,Md=Pn(On/10)/Pn(7*On/10),ky=Pn(ri/10)*Md,Dy=-xd(ri/10)*Md,Iy={draw(e,t){const r=Xe(t*Cy),n=ky*r,i=Dy*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=ri*a/5,u=xd(o),l=Pn(o);e.lineTo(l*r,-u*r),e.lineTo(u*n-l*i,l*n+u*i)}e.closePath()}},Gi=Xe(3),Ny={draw(e,t){const r=-Xe(t/(Gi*3));e.moveTo(0,r*2),e.lineTo(-Gi*r,-r),e.lineTo(Gi*r,-r),e.closePath()}},Le=-.5,$e=Xe(3)/2,xo=1/Xe(12),Ly=(xo/2+1)*3,$y={draw(e,t){const r=Xe(t/Ly),n=r/2,i=r*xo,a=n,o=r*xo+r,u=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,l),e.lineTo(Le*n-$e*i,$e*n+Le*i),e.lineTo(Le*a-$e*o,$e*a+Le*o),e.lineTo(Le*u-$e*l,$e*u+Le*l),e.lineTo(Le*n+$e*i,Le*i-$e*n),e.lineTo(Le*a+$e*o,Le*o-$e*a),e.lineTo(Le*u+$e*l,Le*l-$e*u),e.closePath()}};function Ry(e,t){let r=null,n=hu(i);e=typeof e=="function"?e:X(e||pu),t=typeof t=="function"?t:X(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:X(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:X(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function An(){}function Sn(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Td(e){this._context=e}Td.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:Sn(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:Sn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function By(e){return new Td(e)}function Cd(e){this._context=e}Cd.prototype={areaStart:An,areaEnd:An,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:Sn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function qy(e){return new Cd(e)}function kd(e){this._context=e}kd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Sn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Fy(e){return new kd(e)}function Dd(e){this._context=e}Dd.prototype={areaStart:An,areaEnd:An,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 Ky(e){return new Dd(e)}function Uc(e){return e<0?-1:1}function zc(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(Uc(a)+Uc(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function Wc(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Xi(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function _n(e){this._context=e}_n.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:Xi(this,this._t0,Wc(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Xi(this,Wc(this,r=zc(this,e,t)),r);break;default:Xi(this,this._t0,r=zc(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Id(e){this._context=new Nd(e)}(Id.prototype=Object.create(_n.prototype)).point=function(e,t){_n.prototype.point.call(this,t,e)};function Nd(e){this._context=e}Nd.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function Uy(e){return new _n(e)}function zy(e){return new Id(e)}function Ld(e){this._context=e}Ld.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Hc(e),i=Hc(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Hc(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Wy(e){return new Ld(e)}function ii(e,t){this._context=e,this._t=t}ii.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Hy(e){return new ii(e,.5)}function Yy(e){return new ii(e,0)}function Vy(e){return new ii(e,1)}function nr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Po(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function Gy(e,t){return e[t]}function Xy(e){const t=[];return t.key=e,t}function Zy(){var e=X([]),t=Po,r=nr,n=Gy;function i(a){var o=Array.from(e.apply(this,arguments),Xy),u,l=o.length,s=-1,c;for(const f of a)for(u=0,++s;u<l;++u)(o[u][s]=[0,+n(f,o[u].key,s,a)]).data=f;for(u=0,c=vu(t(o));u<l;++u)o[c[u]].index=u;return r(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:X(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:X(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Po:typeof a=="function"?a:X(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??nr,i):r},i}function Qy(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}nr(e,t)}}function Jy(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}nr(e,t)}}function eg(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,l=0,s=0;u<o;++u){for(var c=e[t[u]],f=c[n][1]||0,d=c[n-1][1]||0,h=(f-d)/2,v=0;v<u;++v){var p=e[t[v]],m=p[n][1]||0,g=p[n-1][1]||0;h+=m-g}l+=f,s+=h*f}i[n-1][1]+=i[n-1][0]=r,l&&(r-=s/l)}i[n-1][1]+=i[n-1][0]=r,nr(e,t)}}var tg=["type","size","sizeType"];function Oo(){return Oo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Oo.apply(null,arguments)}function Yc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Vc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yc(Object(r),!0).forEach(function(n){rg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rg(e,t,r){return(t=ng(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ng(e){var t=ig(e,"string");return typeof t=="symbol"?t:t+""}function ig(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ag(e,t){if(e==null)return{};var r,n,i=og(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function og(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var $d={symbolCircle:pu,symbolCross:Ey,symbolDiamond:My,symbolSquare:Ty,symbolStar:Iy,symbolTriangle:Ny,symbolWye:$y},ug=Math.PI/180,cg=e=>{var t="symbol".concat(zr(e));return $d[t]||pu},lg=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*ug;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},sg=(e,t)=>{$d["symbol".concat(zr(e))]=t},Rd=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,i=ag(e,tg),a=Vc(Vc({},i),{},{type:t,size:r,sizeType:n}),o="circle";typeof t=="string"&&(o=t);var u=()=>{var d=cg(o),h=Ry().type(d).size(lg(r,n,o));return h()},{className:l,cx:s,cy:c}=a,f=se(a,!0);return s===+s&&c===+c&&r===+r?y.createElement("path",Oo({},f,{className:V("recharts-symbols",l),transform:"translate(".concat(s,", ").concat(c,")"),d:u()})):null};Rd.registerSymbol=sg;function Ao(){return Ao=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ao.apply(null,arguments)}function Gc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gc(Object(r),!0).forEach(function(n){mu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mu(e,t,r){return(t=dg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dg(e){var t=hg(e,"string");return typeof t=="symbol"?t:t+""}function hg(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Re=32;class yu extends y.PureComponent{renderIcon(t,r){var{inactiveColor:n}=this.props,i=Re/2,a=Re/6,o=Re/3,u=t.inactive?n:t.color,l=r??t.type;if(l==="none")return null;if(l==="plainline")return y.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:i,x2:Re,y2:i,className:"recharts-legend-icon"});if(l==="line")return y.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(i,"h").concat(o,`
2
2
  A`).concat(a,",").concat(a,",0,1,1,").concat(2*o,",").concat(i,`
3
3
  H`).concat(Re,"M").concat(2*o,",").concat(i,`
4
4
  A`).concat(a,",").concat(a,",0,1,1,").concat(o,",").concat(i),className:"recharts-legend-icon"});if(l==="rect")return y.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(Re/8,"h").concat(Re,"v").concat(Re*3/4,"h").concat(-Re,"z"),className:"recharts-legend-icon"});if(y.isValidElement(t.legendIcon)){var s=fg({},t);return delete s.legendIcon,y.cloneElement(t.legendIcon,s)}return y.createElement(Rd,{fill:u,cx:i,cy:i,size:Re,sizeType:"diameter",type:l})}renderItems(){var{payload:t,iconSize:r,layout:n,formatter:i,inactiveColor:a,iconType:o}=this.props,u={x:0,y:0,width:Re,height:Re},l={display:n==="horizontal"?"inline-block":"block",marginRight:10},s={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((c,f)=>{var d=c.formatter||i,h=V({"recharts-legend-item":!0,["legend-item-".concat(f)]:!0,inactive:c.inactive});if(c.type==="none")return null;var v=c.inactive?a:c.color,p=d?d(c.value,c,f):c.value;return y.createElement("li",Ao({className:h,style:l,key:"legend-item-".concat(f)},yd(this.props,c,f)),y.createElement(du,{width:r,height:r,viewBox:u,style:s,"aria-label":"".concat(p," legend icon")},this.renderIcon(c,o)),y.createElement("span",{className:"recharts-legend-item-text",style:{color:v}},p))})}render(){var{payload:t,layout:r,align:n}=this.props;if(!t||!t.length)return null;var i={padding:0,margin:0,textAlign:r==="horizontal"?n:"left"};return y.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}mu(yu,"displayName","Legend");mu(yu,"defaultProps",{align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"});var Zi={},Qi={},Xc;function vg(){return Xc||(Xc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){const i=new Map;for(let a=0;a<r.length;a++){const o=r[a],u=n(o);i.has(u)||i.set(u,o)}return Array.from(i.values())}e.uniqBy=t})(Qi)),Qi}var Ji={},Zc;function Bd(){return Zc||(Zc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r}e.identity=t})(Ji)),Ji}var ea={},ta={},ra={},Qc;function pg(){return Qc||(Qc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t})(ra)),ra}var Jc;function gu(){return Jc||(Jc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=pg();function r(n){return n!=null&&typeof n!="function"&&t.isLength(n.length)}e.isArrayLike=r})(ta)),ta}var na={},el;function mg(){return el||(el=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t})(na)),na}var tl;function yg(){return tl||(tl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gu(),r=mg();function n(i){return r.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=n})(ea)),ea}var ia={},aa={},rl;function gg(){return rl||(rl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=lu();function r(n){return function(i){return t.get(i,n)}}e.property=r})(aa)),aa}var oa={},ua={},ca={},la={},nl;function qd(){return nl||(nl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r!==null&&(typeof r=="object"||typeof r=="function")}e.isObject=t})(la)),la}var sa={},il;function Fd(){return il||(il=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null||typeof r!="object"&&typeof r!="function"}e.isPrimitive=t})(sa)),sa}var fa={},al;function Kd(){return al||(al=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return r===n||Number.isNaN(r)&&Number.isNaN(n)}e.eq=t})(fa)),fa}var ol;function bg(){return ol||(ol=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bu(),r=qd(),n=Fd(),i=Kd();function a(f,d,h){return typeof h!="function"?t.isMatch(f,d):o(f,d,function v(p,m,g,w,b,A){const x=h(p,m,g,w,b,A);return x!==void 0?!!x:o(p,m,v,A)},new Map)}function o(f,d,h,v){if(d===f)return!0;switch(typeof d){case"object":return u(f,d,h,v);case"function":return Object.keys(d).length>0?o(f,{...d},h,v):i.eq(f,d);default:return r.isObject(f)?typeof d=="string"?d==="":!0:i.eq(f,d)}}function u(f,d,h,v){if(d==null)return!0;if(Array.isArray(d))return s(f,d,h,v);if(d instanceof Map)return l(f,d,h,v);if(d instanceof Set)return c(f,d,h,v);const p=Object.keys(d);if(f==null)return p.length===0;if(p.length===0)return!0;if(v&&v.has(d))return v.get(d)===f;v&&v.set(d,f);try{for(let m=0;m<p.length;m++){const g=p[m];if(!n.isPrimitive(f)&&!(g in f)||d[g]===void 0&&f[g]!==void 0||d[g]===null&&f[g]!==null||!h(f[g],d[g],g,f,d,v))return!1}return!0}finally{v&&v.delete(d)}}function l(f,d,h,v){if(d.size===0)return!0;if(!(f instanceof Map))return!1;for(const[p,m]of d.entries()){const g=f.get(p);if(h(g,m,p,f,d,v)===!1)return!1}return!0}function s(f,d,h,v){if(d.length===0)return!0;if(!Array.isArray(f))return!1;const p=new Set;for(let m=0;m<d.length;m++){const g=d[m];let w=!1;for(let b=0;b<f.length;b++){if(p.has(b))continue;const A=f[b];let x=!1;if(h(A,g,m,f,d,v)&&(x=!0),x){p.add(b),w=!0;break}}if(!w)return!1}return!0}function c(f,d,h,v){return d.size===0?!0:f instanceof Set?s([...f],[...d],h,v):!1}e.isMatchWith=a,e.isSetMatch=c})(ca)),ca}var ul;function bu(){return ul||(ul=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bg();function r(n,i){return t.isMatchWith(n,i,()=>{})}e.isMatch=r})(ua)),ua}var da={},ha={},va={},cl;function wg(){return cl||(cl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Object.getOwnPropertySymbols(r).filter(n=>Object.prototype.propertyIsEnumerable.call(r,n))}e.getSymbols=t})(va)),va}var pa={},ll;function Ud(){return ll||(ll=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}e.getTag=t})(pa)),pa}var ma={},sl;function zd(){return sl||(sl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",r="[object String]",n="[object Number]",i="[object Boolean]",a="[object Arguments]",o="[object Symbol]",u="[object Date]",l="[object Map]",s="[object Set]",c="[object Array]",f="[object Function]",d="[object ArrayBuffer]",h="[object Object]",v="[object Error]",p="[object DataView]",m="[object Uint8Array]",g="[object Uint8ClampedArray]",w="[object Uint16Array]",b="[object Uint32Array]",A="[object BigUint64Array]",x="[object Int8Array]",P="[object Int16Array]",S="[object Int32Array]",j="[object BigInt64Array]",D="[object Float32Array]",L="[object Float64Array]";e.argumentsTag=a,e.arrayBufferTag=d,e.arrayTag=c,e.bigInt64ArrayTag=j,e.bigUint64ArrayTag=A,e.booleanTag=i,e.dataViewTag=p,e.dateTag=u,e.errorTag=v,e.float32ArrayTag=D,e.float64ArrayTag=L,e.functionTag=f,e.int16ArrayTag=P,e.int32ArrayTag=S,e.int8ArrayTag=x,e.mapTag=l,e.numberTag=n,e.objectTag=h,e.regexpTag=t,e.setTag=s,e.stringTag=r,e.symbolTag=o,e.uint16ArrayTag=w,e.uint32ArrayTag=b,e.uint8ArrayTag=m,e.uint8ClampedArrayTag=g})(ma)),ma}var ya={},fl;function xg(){return fl||(fl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t})(ya)),ya}var dl;function Wd(){return dl||(dl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=wg(),r=Ud(),n=zd(),i=Fd(),a=xg();function o(c,f){return u(c,void 0,c,new Map,f)}function u(c,f,d,h=new Map,v=void 0){const p=v?.(c,f,d,h);if(p!==void 0)return p;if(i.isPrimitive(c))return c;if(h.has(c))return h.get(c);if(Array.isArray(c)){const m=new Array(c.length);h.set(c,m);for(let g=0;g<c.length;g++)m[g]=u(c[g],g,d,h,v);return Object.hasOwn(c,"index")&&(m.index=c.index),Object.hasOwn(c,"input")&&(m.input=c.input),m}if(c instanceof Date)return new Date(c.getTime());if(c instanceof RegExp){const m=new RegExp(c.source,c.flags);return m.lastIndex=c.lastIndex,m}if(c instanceof Map){const m=new Map;h.set(c,m);for(const[g,w]of c)m.set(g,u(w,g,d,h,v));return m}if(c instanceof Set){const m=new Set;h.set(c,m);for(const g of c)m.add(u(g,void 0,d,h,v));return m}if(typeof Buffer<"u"&&Buffer.isBuffer(c))return c.subarray();if(a.isTypedArray(c)){const m=new(Object.getPrototypeOf(c)).constructor(c.length);h.set(c,m);for(let g=0;g<c.length;g++)m[g]=u(c[g],g,d,h,v);return m}if(c instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&c instanceof SharedArrayBuffer)return c.slice(0);if(c instanceof DataView){const m=new DataView(c.buffer.slice(0),c.byteOffset,c.byteLength);return h.set(c,m),l(m,c,d,h,v),m}if(typeof File<"u"&&c instanceof File){const m=new File([c],c.name,{type:c.type});return h.set(c,m),l(m,c,d,h,v),m}if(c instanceof Blob){const m=new Blob([c],{type:c.type});return h.set(c,m),l(m,c,d,h,v),m}if(c instanceof Error){const m=new c.constructor;return h.set(c,m),m.message=c.message,m.name=c.name,m.stack=c.stack,m.cause=c.cause,l(m,c,d,h,v),m}if(typeof c=="object"&&s(c)){const m=Object.create(Object.getPrototypeOf(c));return h.set(c,m),l(m,c,d,h,v),m}return c}function l(c,f,d=c,h,v){const p=[...Object.keys(f),...t.getSymbols(f)];for(let m=0;m<p.length;m++){const g=p[m],w=Object.getOwnPropertyDescriptor(c,g);(w==null||w.writable)&&(c[g]=u(f[g],g,d,h,v))}}function s(c){switch(r.getTag(c)){case n.argumentsTag:case n.arrayTag:case n.arrayBufferTag:case n.dataViewTag:case n.booleanTag:case n.dateTag:case n.float32ArrayTag:case n.float64ArrayTag:case n.int8ArrayTag:case n.int16ArrayTag:case n.int32ArrayTag:case n.mapTag:case n.numberTag:case n.objectTag:case n.regexpTag:case n.setTag:case n.stringTag:case n.symbolTag:case n.uint8ArrayTag:case n.uint8ClampedArrayTag:case n.uint16ArrayTag:case n.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=o,e.cloneDeepWithImpl=u,e.copyProperties=l})(ha)),ha}var hl;function Pg(){return hl||(hl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Wd();function r(n){return t.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}e.cloneDeep=r})(da)),da}var vl;function Og(){return vl||(vl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bu(),r=Pg();function n(i){return i=r.cloneDeep(i),a=>t.isMatch(a,i)}e.matches=n})(oa)),oa}var ga={},ba={},wa={},pl;function Ag(){return pl||(pl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Wd(),r=zd();function n(i,a){return t.cloneDeepWith(i,(o,u,l,s)=>{const c=a?.(o,u,l,s);if(c!==void 0)return c;if(typeof i=="object")switch(Object.prototype.toString.call(i)){case r.numberTag:case r.stringTag:case r.booleanTag:{const f=new i.constructor(i?.valueOf());return t.copyProperties(f,i),f}case r.argumentsTag:{const f={};return t.copyProperties(f,i),f.length=i.length,f[Symbol.iterator]=i[Symbol.iterator],f}default:return}})}e.cloneDeepWith=n})(wa)),wa}var ml;function Sg(){return ml||(ml=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ag();function r(n){return t.cloneDeepWith(n)}e.cloneDeep=r})(ba)),ba}var xa={},Pa={},yl;function Hd(){return yl||(yl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function r(n,i=Number.MAX_SAFE_INTEGER){switch(typeof n){case"number":return Number.isInteger(n)&&n>=0&&n<i;case"symbol":return!1;case"string":return t.test(n)}}e.isIndex=r})(Pa)),Pa}var Oa={},gl;function _g(){return gl||(gl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ud();function r(n){return n!==null&&typeof n=="object"&&t.getTag(n)==="[object Arguments]"}e.isArguments=r})(Oa)),Oa}var bl;function Eg(){return bl||(bl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hd(),r=Hd(),n=_g(),i=cu();function a(o,u){let l;if(Array.isArray(u)?l=u:typeof u=="string"&&t.isDeepKey(u)&&o?.[u]==null?l=i.toPath(u):l=[u],l.length===0)return!1;let s=o;for(let c=0;c<l.length;c++){const f=l[c];if((s==null||!Object.hasOwn(s,f))&&!((Array.isArray(s)||n.isArguments(s))&&r.isIndex(f)&&f<s.length))return!1;s=s[f]}return!0}e.has=a})(xa)),xa}var wl;function jg(){return wl||(wl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bu(),r=vd(),n=Sg(),i=lu(),a=Eg();function o(u,l){switch(typeof u){case"object":{Object.is(u?.valueOf(),-0)&&(u="-0");break}case"number":{u=r.toKey(u);break}}return l=n.cloneDeep(l),function(s){const c=i.get(s,u);return c===void 0?a.has(s,u):l===void 0?c===void 0:t.isMatch(c,l)}}e.matchesProperty=o})(ga)),ga}var xl;function Mg(){return xl||(xl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Bd(),r=gg(),n=Og(),i=jg();function a(o){if(o==null)return t.identity;switch(typeof o){case"function":return o;case"object":return Array.isArray(o)&&o.length===2?i.matchesProperty(o[0],o[1]):n.matches(o);case"string":case"symbol":case"number":return r.property(o)}}e.iteratee=a})(ia)),ia}var Pl;function Tg(){return Pl||(Pl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vg(),r=Bd(),n=yg(),i=Mg();function a(o,u=r.identity){return n.isArrayLikeObject(o)?t.uniqBy(Array.from(o),i.iteratee(u)):[]}e.uniqBy=a})(Zi)),Zi}var Aa,Ol;function Cg(){return Ol||(Ol=1,Aa=Tg().uniqBy),Aa}var kg=Cg();const Al=Vt(kg);function Yd(e,t,r){return t===!0?Al(e,r):typeof t=="function"?Al(e,t):e}var Sa={exports:{}},_a={},Ea={exports:{}},ja={};var Sl;function Dg(){if(Sl)return ja;Sl=1;var e=ld();function t(f,d){return f===d&&(f!==0||1/f===1/d)||f!==f&&d!==d}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,a=e.useLayoutEffect,o=e.useDebugValue;function u(f,d){var h=d(),v=n({inst:{value:h,getSnapshot:d}}),p=v[0].inst,m=v[1];return a(function(){p.value=h,p.getSnapshot=d,l(p)&&m({inst:p})},[f,h,d]),i(function(){return l(p)&&m({inst:p}),f(function(){l(p)&&m({inst:p})})},[f]),o(h),h}function l(f){var d=f.getSnapshot;f=f.value;try{var h=d();return!r(f,h)}catch{return!0}}function s(f,d){return d()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?s:u;return ja.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,ja}var _l;function Ig(){return _l||(_l=1,Ea.exports=Dg()),Ea.exports}var El;function Ng(){if(El)return _a;El=1;var e=ld(),t=Ig();function r(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}var n=typeof Object.is=="function"?Object.is:r,i=t.useSyncExternalStore,a=e.useRef,o=e.useEffect,u=e.useMemo,l=e.useDebugValue;return _a.useSyncExternalStoreWithSelector=function(s,c,f,d,h){var v=a(null);if(v.current===null){var p={hasValue:!1,value:null};v.current=p}else p=v.current;v=u(function(){function g(P){if(!w){if(w=!0,b=P,P=d(P),h!==void 0&&p.hasValue){var S=p.value;if(h(S,P))return A=S}return A=P}if(S=A,n(b,P))return S;var j=d(P);return h!==void 0&&h(S,j)?(b=P,S):(b=P,A=j)}var w=!1,b,A,x=f===void 0?null:f;return[function(){return g(c())},x===null?void 0:function(){return g(x())}]},[c,f,d,h]);var m=i(s,v[0],v[1]);return o(function(){p.hasValue=!0,p.value=m},[m]),l(m),m},_a}var jl;function Lg(){return jl||(jl=1,Sa.exports=Ng()),Sa.exports}var $g=Lg(),wu=y.createContext(null),Rg=e=>e,pe=()=>{var e=y.useContext(wu);return e?e.store.dispatch:Rg},wn=()=>{},Bg=()=>wn,qg=(e,t)=>e===t;function I(e){var t=y.useContext(wu);return $g.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:Bg,t?t.store.getState:wn,t?t.store.getState:wn,t?e:wn,qg)}var Ma={},Ta={},Ca={},Ml;function Fg(){return Ml||(Ml=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"?1:n===null?2:n===void 0?3:n!==n?4:0}const r=(n,i,a)=>{if(n!==i){const o=t(n),u=t(i);if(o===u&&o===0){if(n<i)return a==="desc"?1:-1;if(n>i)return a==="desc"?-1:1}return a==="desc"?u-o:o-u}return 0};e.compareValues=r})(Ca)),Ca}var ka={},Da={},Tl;function Vd(){return Tl||(Tl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t})(Da)),Da}var Cl;function Kg(){return Cl||(Cl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Vd(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){return Array.isArray(a)?!1:typeof a=="number"||typeof a=="boolean"||a==null||t.isSymbol(a)?!0:typeof a=="string"&&(n.test(a)||!r.test(a))||o!=null&&Object.hasOwn(o,a)}e.isKey=i})(ka)),ka}var kl;function Ug(){return kl||(kl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Fg(),r=Kg(),n=cu();function i(a,o,u,l){if(a==null)return[];u=l?void 0:u,Array.isArray(a)||(a=Object.values(a)),Array.isArray(o)||(o=o==null?[null]:[o]),o.length===0&&(o=[null]),Array.isArray(u)||(u=u==null?[]:[u]),u=u.map(h=>String(h));const s=(h,v)=>{let p=h;for(let m=0;m<v.length&&p!=null;++m)p=p[v[m]];return p},c=(h,v)=>v==null||h==null?v:typeof h=="object"&&"key"in h?Object.hasOwn(v,h.key)?v[h.key]:s(v,h.path):typeof h=="function"?h(v):Array.isArray(h)?s(v,h):typeof v=="object"?v[h]:v,f=o.map(h=>(Array.isArray(h)&&h.length===1&&(h=h[0]),h==null||typeof h=="function"||Array.isArray(h)||r.isKey(h)?h:{key:h,path:n.toPath(h)}));return a.map(h=>({original:h,criteria:f.map(v=>c(v,h))})).slice().sort((h,v)=>{for(let p=0;p<f.length;p++){const m=t.compareValues(h.criteria[p],v.criteria[p],u[p]);if(m!==0)return m}return 0}).map(h=>h.original)}e.orderBy=i})(Ta)),Ta}var Ia={},Dl;function zg(){return Dl||(Dl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n=1){const i=[],a=Math.floor(n),o=(u,l)=>{for(let s=0;s<u.length;s++){const c=u[s];Array.isArray(c)&&l<a?o(c,l+1):i.push(c)}};return o(r,0),i}e.flatten=t})(Ia)),Ia}var Na={},Il;function Gd(){return Il||(Il=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Hd(),r=gu(),n=qd(),i=Kd();function a(o,u,l){return n.isObject(l)&&(typeof u=="number"&&r.isArrayLike(l)&&t.isIndex(u)&&u<l.length||typeof u=="string"&&u in l)?i.eq(l[u],o):!1}e.isIterateeCall=a})(Na)),Na}var Nl;function Wg(){return Nl||(Nl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ug(),r=zg(),n=Gd();function i(a,...o){const u=o.length;return u>1&&n.isIterateeCall(a,o[0],o[1])?o=[]:u>2&&n.isIterateeCall(o[0],o[1],o[2])&&(o=[o[0]]),t.orderBy(a,r.flatten(o),["asc"])}e.sortBy=i})(Ma)),Ma}var La,Ll;function Hg(){return Ll||(Ll=1,La=Wg().sortBy),La}var Yg=Hg();const ai=Vt(Yg);var Xd=e=>e.legend.settings,Vg=e=>e.legend.size,Gg=e=>e.legend.payload,Xg=O([Gg,Xd],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?ai(n,r):n});function Zg(){return I(Xg)}var on=1;function Zd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=y.useState({height:0,left:0,top:0,width:0}),n=y.useCallback(i=>{if(i!=null){var a=i.getBoundingClientRect(),o={height:a.height,left:a.left,top:a.top,width:a.width};(Math.abs(o.height-t.height)>on||Math.abs(o.left-t.left)>on||Math.abs(o.top-t.top)>on||Math.abs(o.width-t.width)>on)&&r({height:o.height,left:o.left,top:o.top,width:o.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}var Qd=Symbol.for("immer-nothing"),$l=Symbol.for("immer-draftable"),De=Symbol.for("immer-state");function We(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ir=Object.getPrototypeOf;function Ut(e){return!!e&&!!e[De]}function ft(e){return e?Jd(e)||Array.isArray(e)||!!e[$l]||!!e.constructor?.[$l]||Wr(e)||ui(e):!1}var Qg=Object.prototype.constructor.toString();function Jd(e){if(!e||typeof e!="object")return!1;const t=ir(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===Qg}function En(e,t){oi(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function oi(e){const t=e[De];return t?t.type_:Array.isArray(e)?1:Wr(e)?2:ui(e)?3:0}function So(e,t){return oi(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function eh(e,t,r){const n=oi(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Jg(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Wr(e){return e instanceof Map}function ui(e){return e instanceof Set}function It(e){return e.copy_||e.base_}function _o(e,t){if(Wr(e))return new Map(e);if(ui(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=Jd(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[De];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],u=n[o];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(n[o]={configurable:!0,writable:!0,enumerable:u.enumerable,value:e[o]})}return Object.create(ir(e),n)}else{const n=ir(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function xu(e,t=!1){return ci(e)||Ut(e)||!ft(e)||(oi(e)>1&&Object.defineProperties(e,{set:{value:un},add:{value:un},clear:{value:un},delete:{value:un}}),Object.freeze(e),t&&Object.values(e).forEach(r=>xu(r,!0))),e}function un(){We(2)}function ci(e){return Object.isFrozen(e)}var e0={};function zt(e){const t=e0[e];return t||We(0,e),t}var Ir;function th(){return Ir}function t0(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Rl(e,t){t&&(zt("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Eo(e){jo(e),e.drafts_.forEach(r0),e.drafts_=null}function jo(e){e===Ir&&(Ir=e.parent_)}function Bl(e){return Ir=t0(Ir,e)}function r0(e){const t=e[De];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ql(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[De].modified_&&(Eo(t),We(4)),ft(e)&&(e=jn(t,e),t.parent_||Mn(t,e)),t.patches_&&zt("Patches").generateReplacementPatches_(r[De].base_,e,t.patches_,t.inversePatches_)):e=jn(t,r,[]),Eo(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Qd?e:void 0}function jn(e,t,r){if(ci(t))return t;const n=t[De];if(!n)return En(t,(i,a)=>Fl(e,n,t,i,a,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return Mn(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const i=n.copy_;let a=i,o=!1;n.type_===3&&(a=new Set(i),i.clear(),o=!0),En(a,(u,l)=>Fl(e,n,i,u,l,r,o)),Mn(e,i,!1),r&&e.patches_&&zt("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function Fl(e,t,r,n,i,a,o){if(Ut(i)){const u=a&&t&&t.type_!==3&&!So(t.assigned_,n)?a.concat(n):void 0,l=jn(e,i,u);if(eh(r,n,l),Ut(l))e.canAutoFreeze_=!1;else return}else o&&r.add(i);if(ft(i)&&!ci(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;jn(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(Wr(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&Mn(e,i)}}function Mn(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&xu(t,r)}function n0(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:th(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=Pu;r&&(i=[n],a=Nr);const{revoke:o,proxy:u}=Proxy.revocable(i,a);return n.draft_=u,n.revoke_=o,u}var Pu={get(e,t){if(t===De)return e;const r=It(e);if(!So(r,t))return i0(e,r,t);const n=r[t];return e.finalized_||!ft(n)?n:n===$a(e.base_,t)?(Ra(e),e.copy_[t]=To(n,e)):n},has(e,t){return t in It(e)},ownKeys(e){return Reflect.ownKeys(It(e))},set(e,t,r){const n=rh(It(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=$a(It(e),t),a=i?.[De];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(Jg(r,i)&&(r!==void 0||So(e.base_,t)))return!0;Ra(e),Mo(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return $a(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ra(e),Mo(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=It(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){We(11)},getPrototypeOf(e){return ir(e.base_)},setPrototypeOf(){We(12)}},Nr={};En(Pu,(e,t)=>{Nr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Nr.deleteProperty=function(e,t){return Nr.set.call(this,e,t,void 0)};Nr.set=function(e,t,r){return Pu.set.call(this,e[0],t,r,e[0])};function $a(e,t){const r=e[De];return(r?It(r):e)[t]}function i0(e,t,r){const n=rh(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function rh(e,t){if(!(t in e))return;let r=ir(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=ir(r)}}function Mo(e){e.modified_||(e.modified_=!0,e.parent_&&Mo(e.parent_))}function Ra(e){e.copy_||(e.copy_=_o(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var a0=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const a=r;r=t;const o=this;return function(l=a,...s){return o.produce(l,c=>r.call(this,c,...s))}}typeof r!="function"&&We(6),n!==void 0&&typeof n!="function"&&We(7);let i;if(ft(t)){const a=Bl(this),o=To(t,void 0);let u=!0;try{i=r(o),u=!1}finally{u?Eo(a):jo(a)}return Rl(a,n),ql(i,a)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===Qd&&(i=void 0),this.autoFreeze_&&xu(i,!0),n){const a=[],o=[];zt("Patches").generateReplacementPatches_(t,i,a,o),n(a,o)}return i}else We(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(o,...u)=>this.produceWithPatches(o,l=>t(l,...u));let n,i;return[this.produce(t,r,(o,u)=>{n=o,i=u}),n,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){ft(e)||We(8),Ut(e)&&(e=lt(e));const t=Bl(this),r=To(e,void 0);return r[De].isManual_=!0,jo(t),r}finishDraft(e,t){const r=e&&e[De];(!r||!r.isManual_)&&We(9);const{scope_:n}=r;return Rl(n,t),ql(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=zt("Patches").applyPatches_;return Ut(e)?n(e,t):this.produce(e,i=>n(i,t))}};function To(e,t){const r=Wr(e)?zt("MapSet").proxyMap_(e,t):ui(e)?zt("MapSet").proxySet_(e,t):n0(e,t);return(t?t.scope_:th()).drafts_.push(r),r}function lt(e){return Ut(e)||We(10,e),nh(e)}function nh(e){if(!ft(e)||ci(e))return e;const t=e[De];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=_o(e,t.scope_.immer_.useStrictShallowCopy_)}else r=_o(e,!0);return En(r,(n,i)=>{eh(r,n,nh(i))}),t&&(t.finalized_=!1),r}var o0=new a0,ih=o0.produce;function ah(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var u0=ah(),c0=ah,l0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?po:po.apply(null,arguments)};function Ke(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(ke(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>fd(n)&&n.type===e,r}var oh=class Tr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Tr.prototype)}static get[Symbol.species](){return Tr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Tr(...t[0].concat(this)):new Tr(...t.concat(this))}};function Kl(e){return ft(e)?ih(e,()=>{}):e}function cn(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function s0(e){return typeof e=="boolean"}var f0=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new oh;return r&&(s0(r)?o.push(u0):o.push(c0(r.extraArgument))),o},d0="RTK_autoBatch",Ul=e=>t=>{setTimeout(t,e)},h0=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,o=!1;const u=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ul(10):e.type==="callback"?e.queueNotification:Ul(e.timeout),s=()=>{o=!1,a&&(a=!1,u.forEach(c=>c()))};return Object.assign({},n,{subscribe(c){const f=()=>i&&c(),d=n.subscribe(f);return u.add(c),()=>{d(),u.delete(c)}},dispatch(c){try{return i=!c?.meta?.[d0],a=!i,a&&(o||(o=!0,l(s))),n.dispatch(c)}finally{i=!0}}})},v0=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new oh(e);return n&&i.push(h0(typeof n=="object"?n:void 0)),i};function p0(e){const t=f0(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:a=void 0,enhancers:o=void 0}=e||{};let u;if(typeof r=="function")u=r;else if(Hm(r))u=dd(r);else throw new Error(ke(1));let l;typeof n=="function"?l=n(t):l=t();let s=po;i&&(s=l0({trace:!1,...typeof i=="object"&&i}));const c=Ym(...l),f=v0(c);let d=typeof o=="function"?o(f):f();const h=s(...d);return Vm(u,a,h)}function uh(e){const t={},r=[];let n;const i={addCase(a,o){const u=typeof a=="string"?a:a.type;if(!u)throw new Error(ke(28));if(u in t)throw new Error(ke(29));return t[u]=o,i},addAsyncThunk(a,o){return o.pending&&(t[a.pending.type]=o.pending),o.rejected&&(t[a.rejected.type]=o.rejected),o.fulfilled&&(t[a.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:a.settled,reducer:o.settled}),i},addMatcher(a,o){return r.push({matcher:a,reducer:o}),i},addDefaultCase(a){return n=a,i}};return e(i),[t,r,n]}function m0(e){return typeof e=="function"}function y0(e,t){let[r,n,i]=uh(t),a;if(m0(e))a=()=>Kl(e());else{const u=Kl(e);a=()=>u}function o(u=a(),l){let s=[r[l.type],...n.filter(({matcher:c})=>c(l)).map(({reducer:c})=>c)];return s.filter(c=>!!c).length===0&&(s=[i]),s.reduce((c,f)=>{if(f)if(Ut(c)){const h=f(c,l);return h===void 0?c:h}else{if(ft(c))return ih(c,d=>f(d,l));{const d=f(c,l);if(d===void 0){if(c===null)return c;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return c},u)}return o.getInitialState=a,o}var g0="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",b0=(e=21)=>{let t="",r=e;for(;r--;)t+=g0[Math.random()*64|0];return t},w0=Symbol.for("rtk-slice-createasyncthunk");function x0(e,t){return`${e}/${t}`}function P0({creators:e}={}){const t=e?.asyncThunk?.[w0];return function(n){const{name:i,reducerPath:a=i}=n;if(!i)throw new Error(ke(11));const o=(typeof n.reducers=="function"?n.reducers(A0()):n.reducers)||{},u=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(b,A){const x=typeof b=="string"?b:b.type;if(!x)throw new Error(ke(12));if(x in l.sliceCaseReducersByType)throw new Error(ke(13));return l.sliceCaseReducersByType[x]=A,s},addMatcher(b,A){return l.sliceMatchers.push({matcher:b,reducer:A}),s},exposeAction(b,A){return l.actionCreators[b]=A,s},exposeCaseReducer(b,A){return l.sliceCaseReducersByName[b]=A,s}};u.forEach(b=>{const A=o[b],x={reducerName:b,type:x0(i,b),createNotation:typeof n.reducers=="function"};_0(A)?j0(x,A,s,t):S0(x,A,s)});function c(){const[b={},A=[],x=void 0]=typeof n.extraReducers=="function"?uh(n.extraReducers):[n.extraReducers],P={...b,...l.sliceCaseReducersByType};return y0(n.initialState,S=>{for(let j in P)S.addCase(j,P[j]);for(let j of l.sliceMatchers)S.addMatcher(j.matcher,j.reducer);for(let j of A)S.addMatcher(j.matcher,j.reducer);x&&S.addDefaultCase(x)})}const f=b=>b,d=new Map,h=new WeakMap;let v;function p(b,A){return v||(v=c()),v(b,A)}function m(){return v||(v=c()),v.getInitialState()}function g(b,A=!1){function x(S){let j=S[b];return typeof j>"u"&&A&&(j=cn(h,x,m)),j}function P(S=f){const j=cn(d,A,()=>new WeakMap);return cn(j,S,()=>{const D={};for(const[L,M]of Object.entries(n.selectors??{}))D[L]=O0(M,S,()=>cn(h,S,m),A);return D})}return{reducerPath:b,getSelectors:P,get selectors(){return P(x)},selectSlice:x}}const w={name:i,reducer:p,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:m,...g(a),injectInto(b,{reducerPath:A,...x}={}){const P=A??a;return b.inject({reducerPath:P,reducer:p},x),{...w,...g(P,!0)}}};return w}}function O0(e,t,r,n){function i(a,...o){let u=t(a);return typeof u>"u"&&n&&(u=r()),e(u,...o)}return i.unwrapped=e,i}var Ie=P0();function A0(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function S0({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&!E0(n))throw new Error(ke(17));a=n.reducer,o=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Ke(e,o):Ke(e))}function _0(e){return e._reducerDefinitionType==="asyncThunk"}function E0(e){return e._reducerDefinitionType==="reducerWithPrepare"}function j0({type:e,reducerName:t},r,n,i){if(!i)throw new Error(ke(18));const{payloadCreator:a,fulfilled:o,pending:u,rejected:l,settled:s,options:c}=r,f=i(e,a,c);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),u&&n.addCase(f.pending,u),l&&n.addCase(f.rejected,l),s&&n.addMatcher(f.settled,s),n.exposeCaseReducer(t,{fulfilled:o||ln,pending:u||ln,rejected:l||ln,settled:s||ln})}function ln(){}var M0="task",ch="listener",lh="completed",Ou="cancelled",T0=`task-${Ou}`,C0=`task-${lh}`,Co=`${ch}-${Ou}`,k0=`${ch}-${lh}`,li=class{constructor(e){this.code=e,this.message=`${M0} ${Ou} (reason: ${e})`}name="TaskAbortError";message},Au=(e,t)=>{if(typeof e!="function")throw new TypeError(ke(32))},Tn=()=>{},sh=(e,t=Tn)=>(e.catch(t),e),fh=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Bt=(e,t)=>{const r=e.signal;r.aborted||("reason"in r||Object.defineProperty(r,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},qt=e=>{if(e.aborted){const{reason:t}=e;throw new li(t)}};function dh(e,t){let r=Tn;return new Promise((n,i)=>{const a=()=>i(new li(e.reason));if(e.aborted){a();return}r=fh(e,a),t.finally(()=>r()).then(n,i)}).finally(()=>{r=Tn})}var D0=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof li?"cancelled":"rejected",error:r}}finally{t?.()}},Cn=e=>t=>sh(dh(e,t).then(r=>(qt(e),r))),hh=e=>{const t=Cn(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:tr}=Object,zl={},si="listenerMiddleware",I0=(e,t)=>{const r=n=>fh(e,()=>Bt(n,e.reason));return(n,i)=>{Au(n);const a=new AbortController;r(a);const o=D0(async()=>{qt(e),qt(a.signal);const u=await n({pause:Cn(a.signal),delay:hh(a.signal),signal:a.signal});return qt(a.signal),u},()=>Bt(a,C0));return i?.autoJoin&&t.push(o.catch(Tn)),{result:Cn(e)(o),cancel(){Bt(a,T0)}}}},N0=(e,t)=>{const r=async(n,i)=>{qt(t);let a=()=>{};const u=[new Promise((l,s)=>{let c=e({predicate:n,effect:(f,d)=>{d.unsubscribe(),l([f,d.getState(),d.getOriginalState()])}});a=()=>{c(),s()}})];i!=null&&u.push(new Promise(l=>setTimeout(l,i,null)));try{const l=await dh(t,Promise.race(u));return qt(t),l}finally{a()}};return(n,i)=>sh(r(n,i))},vh=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=Ke(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(ke(21));return Au(a),{predicate:i,type:t,effect:a}},ph=tr(e=>{const{type:t,predicate:r,effect:n}=vh(e);return{id:b0(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(ke(22))}}},{withTypes:()=>ph}),Wl=(e,t)=>{const{type:r,effect:n,predicate:i}=vh(t);return Array.from(e.values()).find(a=>(typeof r=="string"?a.type===r:a.predicate===i)&&a.effect===n)},ko=e=>{e.pending.forEach(t=>{Bt(t,Co)})},L0=e=>()=>{e.forEach(ko),e.clear()},Hl=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},mh=tr(Ke(`${si}/add`),{withTypes:()=>mh}),$0=Ke(`${si}/removeAll`),yh=tr(Ke(`${si}/remove`),{withTypes:()=>yh}),R0=(...e)=>{console.error(`${si}/error`,...e)},Hr=(e={})=>{const t=new Map,{extra:r,onError:n=R0}=e;Au(n);const i=c=>(c.unsubscribe=()=>t.delete(c.id),t.set(c.id,c),f=>{c.unsubscribe(),f?.cancelActive&&ko(c)}),a=c=>{const f=Wl(t,c)??ph(c);return i(f)};tr(a,{withTypes:()=>a});const o=c=>{const f=Wl(t,c);return f&&(f.unsubscribe(),c.cancelActive&&ko(f)),!!f};tr(o,{withTypes:()=>o});const u=async(c,f,d,h)=>{const v=new AbortController,p=N0(a,v.signal),m=[];try{c.pending.add(v),await Promise.resolve(c.effect(f,tr({},d,{getOriginalState:h,condition:(g,w)=>p(g,w).then(Boolean),take:p,delay:hh(v.signal),pause:Cn(v.signal),extra:r,signal:v.signal,fork:I0(v.signal,m),unsubscribe:c.unsubscribe,subscribe:()=>{t.set(c.id,c)},cancelActiveListeners:()=>{c.pending.forEach((g,w,b)=>{g!==v&&(Bt(g,Co),b.delete(g))})},cancel:()=>{Bt(v,Co),c.pending.delete(v)},throwIfCancelled:()=>{qt(v.signal)}})))}catch(g){g instanceof li||Hl(n,g,{raisedBy:"effect"})}finally{await Promise.all(m),Bt(v,k0),c.pending.delete(v)}},l=L0(t);return{middleware:c=>f=>d=>{if(!fd(d))return f(d);if(mh.match(d))return a(d.payload);if($0.match(d)){l();return}if(yh.match(d))return o(d.payload);let h=c.getState();const v=()=>{if(h===zl)throw new Error(ke(23));return h};let p;try{if(p=f(d),t.size>0){const m=c.getState(),g=Array.from(t.values());for(const w of g){let b=!1;try{b=w.predicate(d,m,h)}catch(A){b=!1,Hl(n,A,{raisedBy:"predicate"})}b&&u(w,d,c,v)}}}finally{h=zl}return p},startListening:a,stopListening:o,clearListeners:l}};function ke(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 B0={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},gh=Ie({name:"chartLayout",initialState:B0,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 r,n,i,a;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left=(a=t.payload.left)!==null&&a!==void 0?a:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:q0,setLayout:F0,setChartSize:K0,setScale:U0}=gh.actions,z0=gh.reducer;function Yl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Vl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yl(Object(r),!0).forEach(function(n){W0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function W0(e,t,r){return(t=H0(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H0(e){var t=Y0(e,"string");return typeof t=="symbol"?t:t+""}function Y0(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kn=Math.PI/180,V0=e=>e*180/Math.PI,ve=(e,t,r,n)=>({x:e+Math.cos(-kn*n)*r,y:t+Math.sin(-kn*n)*r}),G0=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},X0=(e,t)=>{var{x:r,y:n}=e,{x:i,y:a}=t;return Math.sqrt((r-i)**2+(n-a)**2)},Z0=(e,t)=>{var{x:r,y:n}=e,{cx:i,cy:a}=t,o=X0({x:r,y:n},{x:i,y:a});if(o<=0)return{radius:o,angle:0};var u=(r-i)/o,l=Math.acos(u);return n>a&&(l=2*Math.PI-l),{radius:o,angle:V0(l),angleInRadian:l}},Q0=e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),i=Math.floor(r/360),a=Math.min(n,i);return{startAngle:t-a*360,endAngle:r-a*360}},J0=(e,t)=>{var{startAngle:r,endAngle:n}=t,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return e+o*360},eb=(e,t)=>{var{x:r,y:n}=e,{radius:i,angle:a}=Z0({x:r,y:n},t),{innerRadius:o,outerRadius:u}=t;if(i<o||i>u||i===0)return null;var{startAngle:l,endAngle:s}=Q0(t),c=a,f;if(l<=s){for(;c>s;)c-=360;for(;c<l;)c+=360;f=c>=l&&c<=s}else{for(;c>l;)c-=360;for(;c<s;)c+=360;f=c>=s&&c<=l}return f?Vl(Vl({},t),{},{radius:i,angle:J0(c,t)}):null};function bh(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function Gl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gl(Object(r),!0).forEach(function(n){tb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tb(e,t,r){return(t=rb(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rb(e){var t=nb(e,"string");return typeof t=="symbol"?t:t+""}function nb(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function we(e,t,r){return le(e)||le(t)?r:tt(t)?ti(e,t,r):typeof t=="function"?t(e):r}var ib=(e,t,r,n,i)=>{var a,o=-1,u=(a=t?.length)!==null&&a!==void 0?a:0;if(u<=1||e==null)return 0;if(n==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var l=0;l<u;l++){var s=l>0?r[l-1].coordinate:r[u-1].coordinate,c=r[l].coordinate,f=l>=u-1?r[0].coordinate:r[l+1].coordinate,d=void 0;if(Ye(c-s)!==Ye(f-c)){var h=[];if(Ye(f-c)===Ye(i[1]-i[0])){d=f;var v=c+i[1]-i[0];h[0]=Math.min(v,(v+s)/2),h[1]=Math.max(v,(v+s)/2)}else{d=s;var p=f+i[1]-i[0];h[0]=Math.min(c,(p+c)/2),h[1]=Math.max(c,(p+c)/2)}var m=[Math.min(c,(d+c)/2),Math.max(c,(d+c)/2)];if(e>m[0]&&e<=m[1]||e>=h[0]&&e<=h[1]){({index:o}=r[l]);break}}else{var g=Math.min(s,f),w=Math.max(s,f);if(e>(g+c)/2&&e<=(w+c)/2){({index:o}=r[l]);break}}}else if(t){for(var b=0;b<u;b++)if(b===0&&e<=(t[b].coordinate+t[b+1].coordinate)/2||b>0&&b<u-1&&e>(t[b].coordinate+t[b-1].coordinate)/2&&e<=(t[b].coordinate+t[b+1].coordinate)/2||b===u-1&&e>(t[b].coordinate+t[b-1].coordinate)/2){({index:o}=t[b]);break}}return o},ab=(e,t,r)=>{if(t&&r){var{width:n,height:i}=r,{align:a,verticalAlign:o,layout:u}=t;if((u==="vertical"||u==="horizontal"&&o==="middle")&&a!=="center"&&B(e[a]))return qe(qe({},e),{},{[a]:e[a]+(n||0)});if((u==="horizontal"||u==="vertical"&&a==="center")&&o!=="middle"&&B(e[o]))return qe(qe({},e),{},{[o]:e[o]+(i||0)})}return e},Et=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",Xl=1e-4,ob=e=>{var t=e.domain();if(!(!t||t.length<=2)){var r=t.length,n=e.range(),i=Math.min(n[0],n[1])-Xl,a=Math.max(n[0],n[1])+Xl,o=e(t[0]),u=e(t[r-1]);(o<i||o>a||u<i||u>a)&&e.domain([t[0],t[r-1]])}},ub=e=>{var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var i=0,a=0,o=0;o<t;++o){var u=Ve(e[o][r][1])?e[o][r][0]:e[o][r][1];u>=0?(e[o][r][0]=i,e[o][r][1]=i+u,i=e[o][r][1]):(e[o][r][0]=a,e[o][r][1]=a+u,a=e[o][r][1])}},cb=e=>{var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var i=0,a=0;a<t;++a){var o=Ve(e[a][r][1])?e[a][r][0]:e[a][r][1];o>=0?(e[a][r][0]=i,e[a][r][1]=i+o,i=e[a][r][1]):(e[a][r][0]=0,e[a][r][1]=0)}},lb={sign:ub,expand:Qy,none:nr,silhouette:Jy,wiggle:eg,positive:cb},sb=(e,t,r)=>{var n=lb[r],i=Zy().keys(t).value((a,o)=>+we(a,o,0)).order(Po).offset(n);return i(e)};function Zl(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:a,dataKey:o}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!le(i[t.dataKey])){var u=md(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var l=we(i,le(o)?t.dataKey:o);return le(l)?null:t.scale(l)}var fb=e=>{var t=e.flat(2).filter(B);return[Math.min(...t),Math.max(...t)]},db=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],hb=(e,t,r)=>{if(e!=null)return db(Object.keys(e).reduce((n,i)=>{var a=e[i],{stackedData:o}=a,u=o.reduce((l,s)=>{var c=bh(s,t,r),f=fb(c);return[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(u[0],n[0]),Math.max(u[1],n[1])]},[1/0,-1/0]))},Ql=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Jl=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Do=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=ai(t,c=>c.coordinate),a=1/0,o=1,u=i.length;o<u;o++){var l=i[o],s=i[o-1];a=Math.min((l.coordinate||0)-(s.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0};function es(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:a}=e;return qe(qe({},t),{},{dataKey:r,payload:n,value:i,name:a})}function wh(e,t){if(e)return String(e);if(typeof t=="string")return t}function vb(e,t,r,n,i){if(r==="horizontal"||r==="vertical"){var a=e>=i.left&&e<=i.left+i.width&&t>=i.top&&t<=i.top+i.height;return a?{x:e,y:t}:null}return n?eb({x:e,y:t},n):null}var pb=(e,t,r,n)=>{var i=t.find(s=>s&&s.index===r);if(i){if(e==="horizontal")return{x:i.coordinate,y:n.y};if(e==="vertical")return{x:n.x,y:i.coordinate};if(e==="centric"){var a=i.coordinate,{radius:o}=n;return qe(qe(qe({},n),ve(n.cx,n.cy,o,a)),{},{angle:a,radius:o})}var u=i.coordinate,{angle:l}=n;return qe(qe(qe({},n),ve(n.cx,n.cy,u,l)),{},{angle:l,radius:u})}return{x:0,y:0}},mb=(e,t)=>t==="horizontal"?e.x:t==="vertical"?e.y:t==="centric"?e.angle:e.radius,pt=e=>e.layout.width,mt=e=>e.layout.height,yb=e=>e.layout.scale,xh=e=>e.layout.margin,fi=O(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),di=O(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),gb="data-recharts-item-index",bb="data-recharts-item-data-key",Yr=60;function ts(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function sn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ts(Object(r),!0).forEach(function(n){wb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ts(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wb(e,t,r){return(t=xb(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xb(e){var t=Pb(e,"string");return typeof t=="symbol"?t:t+""}function Pb(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ob=e=>e.brush.height;function Ab(e){var t=di(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:Yr;return r+i}return r},0)}function Sb(e){var t=di(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:Yr;return r+i}return r},0)}function _b(e){var t=fi(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function Eb(e){var t=fi(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var me=O([pt,mt,xh,Ob,Ab,Sb,_b,Eb,Xd,Vg],(e,t,r,n,i,a,o,u,l,s)=>{var c={left:(r.left||0)+i,right:(r.right||0)+a},f={top:(r.top||0)+o,bottom:(r.bottom||0)+u},d=sn(sn({},f),c),h=d.bottom;d.bottom+=n,d=ab(d,l,s);var v=e-d.left-d.right,p=t-d.top-d.bottom;return sn(sn({brushBottom:h},d),{},{width:Math.max(v,0),height:Math.max(p,0)})}),jb=O(me,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Ph=O(pt,mt,(e,t)=>({x:0,y:0,width:e,height:t})),Mb=y.createContext(null),Ze=()=>y.useContext(Mb)!=null,hi=e=>e.brush,vi=O([hi,me,xh],(e,t,r)=>({height:e.height,x:B(e.x)?e.x:t.left,y:B(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:B(e.width)?e.width:t.width})),Su=()=>{var e,t=Ze(),r=I(jb),n=I(vi),i=(e=I(hi))===null||e===void 0?void 0:e.padding;return!t||!n||!i?r:{width:n.width-i.left-i.right,height:n.height-i.top-i.bottom,x:i.left,y:i.top}},Tb={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},Cb=()=>{var e;return(e=I(me))!==null&&e!==void 0?e:Tb},Oh=()=>I(pt),Ah=()=>I(mt),kb=()=>I(e=>e.layout.margin),Q=e=>e.layout.layoutType,_u=()=>I(Q),Db={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},Sh=Ie({name:"legend",initialState:Db,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 r=lt(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)}}}),{setLegendSize:rs,setLegendSettings:Ib,addLegendPayload:Nb,removeLegendPayload:Lb}=Sh.actions,$b=Sh.reducer,Rb=["contextPayload"];function Io(){return Io=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Io.apply(null,arguments)}function ns(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ar(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ns(Object(r),!0).forEach(function(n){Eu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ns(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Eu(e,t,r){return(t=Bb(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bb(e){var t=qb(e,"string");return typeof t=="symbol"?t:t+""}function qb(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fb(e,t){if(e==null)return{};var r,n,i=Kb(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Kb(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Ub(e){return e.value}function zb(e){var{contextPayload:t}=e,r=Fb(e,Rb),n=Yd(t,e.payloadUniqBy,Ub),i=ar(ar({},r),{},{payload:n});return y.isValidElement(e.content)?y.cloneElement(e.content,i):typeof e.content=="function"?y.createElement(e.content,i):y.createElement(yu,i)}function Wb(e,t,r,n,i,a){var{layout:o,align:u,verticalAlign:l}=t,s,c;return(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))&&(u==="center"&&o==="vertical"?s={left:((n||0)-a.width)/2}:s=u==="right"?{right:r&&r.right||0}:{left:r&&r.left||0}),(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))&&(l==="middle"?c={top:((i||0)-a.height)/2}:c=l==="bottom"?{bottom:r&&r.bottom||0}:{top:r&&r.top||0}),ar(ar({},s),c)}function Hb(e){var t=pe();return y.useEffect(()=>{t(Ib(e))},[t,e]),null}function Yb(e){var t=pe();return y.useEffect(()=>(t(rs(e)),()=>{t(rs({width:0,height:0}))}),[t,e]),null}function Vb(e){var t=Zg(),r=xy(),n=kb(),{width:i,height:a,wrapperStyle:o,portal:u}=e,[l,s]=Zd([t]),c=Oh(),f=Ah();if(c==null||f==null)return null;var d=c-(n.left||0)-(n.right||0),h=pi.getWidthOrHeight(e.layout,a,i,d),v=u?o:ar(ar({position:"absolute",width:h?.width||i||"auto",height:h?.height||a||"auto"},Wb(o,e,n,c,f,l)),o),p=u??r;if(p==null)return null;var m=y.createElement("div",{className:"recharts-legend-wrapper",style:v,ref:s},y.createElement(Hb,{layout:e.layout,align:e.align,verticalAlign:e.verticalAlign,itemSorter:e.itemSorter}),y.createElement(Yb,{width:l.width,height:l.height}),y.createElement(zb,Io({},e,h,{margin:n,chartWidth:c,chartHeight:f,contextPayload:t})));return sd.createPortal(m,p)}class pi extends y.PureComponent{static getWidthOrHeight(t,r,n,i){return t==="vertical"&&B(r)?{height:r}:t==="horizontal"?{width:n||i}:null}render(){return y.createElement(Vb,this.props)}}Eu(pi,"displayName","Legend");Eu(pi,"defaultProps",{align:"center",iconSize:14,itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"});function No(){return No=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},No.apply(null,arguments)}function is(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ba(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?is(Object(r),!0).forEach(function(n){Gb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):is(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gb(e,t,r){return(t=Xb(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xb(e){var t=Zb(e,"string");return typeof t=="symbol"?t:t+""}function Zb(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qb(e){return Array.isArray(e)&&tt(e[0])&&tt(e[1])?e.join(" ~ "):e}var Jb=e=>{var{separator:t=" : ",contentStyle:r={},itemStyle:n={},labelStyle:i={},payload:a,formatter:o,itemSorter:u,wrapperClassName:l,labelClassName:s,label:c,labelFormatter:f,accessibilityLayer:d=!1}=e,h=()=>{if(a&&a.length){var x={padding:0,margin:0},P=(u?ai(a,u):a).map((S,j)=>{if(S.type==="none")return null;var D=S.formatter||o||Qb,{value:L,name:M}=S,T=L,_=M;if(D){var $=D(L,M,S,j,a);if(Array.isArray($))[T,_]=$;else if($!=null)T=$;else return null}var H=Ba({display:"block",paddingTop:4,paddingBottom:4,color:S.color||"#000"},n);return y.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(j),style:H},tt(_)?y.createElement("span",{className:"recharts-tooltip-item-name"},_):null,tt(_)?y.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,y.createElement("span",{className:"recharts-tooltip-item-value"},T),y.createElement("span",{className:"recharts-tooltip-item-unit"},S.unit||""))});return y.createElement("ul",{className:"recharts-tooltip-item-list",style:x},P)}return null},v=Ba({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},r),p=Ba({margin:0},i),m=!le(c),g=m?c:"",w=V("recharts-default-tooltip",l),b=V("recharts-tooltip-label",s);m&&f&&a!==void 0&&a!==null&&(g=f(c,a));var A=d?{role:"status","aria-live":"assertive"}:{};return y.createElement("div",No({className:w,style:v},A),y.createElement("p",{className:b,style:p},y.isValidElement(g)?g:"".concat(g)),h())},Pr="recharts-tooltip-wrapper",ew={visibility:"hidden"};function tw(e){var{coordinate:t,translateX:r,translateY:n}=e;return V(Pr,{["".concat(Pr,"-right")]:B(r)&&t&&B(t.x)&&r>=t.x,["".concat(Pr,"-left")]:B(r)&&t&&B(t.x)&&r<t.x,["".concat(Pr,"-bottom")]:B(n)&&t&&B(t.y)&&n>=t.y,["".concat(Pr,"-top")]:B(n)&&t&&B(t.y)&&n<t.y})}function as(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offsetTopLeft:i,position:a,reverseDirection:o,tooltipDimension:u,viewBox:l,viewBoxDimension:s}=e;if(a&&B(a[n]))return a[n];var c=r[n]-u-(i>0?i:0),f=r[n]+i;if(t[n])return o[n]?c:f;var d=l[n];if(d==null)return 0;if(o[n]){var h=c,v=d;return h<v?Math.max(f,d):Math.max(c,d)}if(s==null)return 0;var p=f+u,m=d+s;return p>m?Math.max(c,d):Math.max(f,d)}function rw(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function nw(e){var{allowEscapeViewBox:t,coordinate:r,offsetTopLeft:n,position:i,reverseDirection:a,tooltipBox:o,useTranslate3d:u,viewBox:l}=e,s,c,f;return o.height>0&&o.width>0&&r?(c=as({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),f=as({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),s=rw({translateX:c,translateY:f,useTranslate3d:u})):s=ew,{cssProperties:s,cssClasses:tw({translateX:c,translateY:f,coordinate:r})}}function os(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?os(Object(r),!0).forEach(function(n){Lo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):os(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lo(e,t,r){return(t=iw(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iw(e){var t=aw(e,"string");return typeof t=="symbol"?t:t+""}function aw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class ow extends y.PureComponent{constructor(){super(...arguments),Lo(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Lo(this,"handleKeyDown",t=>{if(t.key==="Escape"){var r,n,i,a;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(r=(n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==null&&r!==void 0?r:0,y:(i=(a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,r;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((r=this.props.coordinate)===null||r===void 0?void 0:r.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:r,animationDuration:n,animationEasing:i,children:a,coordinate:o,hasPayload:u,isAnimationActive:l,offset:s,position:c,reverseDirection:f,useTranslate3d:d,viewBox:h,wrapperStyle:v,lastBoundingBox:p,innerRef:m,hasPortalFromProps:g}=this.props,{cssClasses:w,cssProperties:b}=nw({allowEscapeViewBox:r,coordinate:o,offsetTopLeft:s,position:c,reverseDirection:f,tooltipBox:{height:p.height,width:p.width},useTranslate3d:d,viewBox:h}),A=g?{}:fn(fn({transition:l&&t?"transform ".concat(n,"ms ").concat(i):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&u?"visible":"hidden",position:"absolute",top:0,left:0}),x=fn(fn({},A),{},{visibility:!this.state.dismissed&&t&&u?"visible":"hidden"},v);return y.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:w,style:x,ref:m},a)}}var uw=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),hr={devToolsEnabled:!1,isSsr:uw()},_h=()=>I(e=>e.rootProps.accessibilityLayer);function Ge(e){return Number.isFinite(e)}function Dn(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function $o(){return $o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$o.apply(null,arguments)}function us(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?us(Object(r),!0).forEach(function(n){cw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):us(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cw(e,t,r){return(t=lw(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lw(e){var t=sw(e,"string");return typeof t=="symbol"?t:t+""}function sw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ls={curveBasisClosed:qy,curveBasisOpen:Fy,curveBasis:By,curveBumpX:Sy,curveBumpY:_y,curveLinearClosed:Ky,curveLinear:ni,curveMonotoneX:Uy,curveMonotoneY:zy,curveNatural:Wy,curveStep:Hy,curveStepAfter:Vy,curveStepBefore:Yy},dn=e=>Ge(e.x)&&Ge(e.y),Or=e=>e.x,Ar=e=>e.y,fw=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(zr(e));return(r==="curveMonotone"||r==="curveBump")&&t?ls["".concat(r).concat(t==="vertical"?"Y":"X")]:ls[r]||ni},dw=e=>{var{type:t="linear",points:r=[],baseLine:n,layout:i,connectNulls:a=!1}=e,o=fw(t,i),u=a?r.filter(dn):r,l;if(Array.isArray(n)){var s=a?n.filter(f=>dn(f)):n,c=u.map((f,d)=>cs(cs({},f),{},{base:s[d]}));return i==="vertical"?l=an().y(Ar).x1(Or).x0(f=>f.base.x):l=an().x(Or).y1(Ar).y0(f=>f.base.y),l.defined(dn).curve(o),l(c)}return i==="vertical"&&B(n)?l=an().y(Ar).x1(Or).x0(n):B(n)?l=an().x(Or).y1(Ar).y0(n):l=_d().x(Or).y(Ar),l.defined(dn).curve(o),l(u)},Eh=e=>{var{className:t,points:r,path:n,pathRef:i}=e;if((!r||!r.length)&&!n)return null;var a=r&&r.length?dw(e):n;return y.createElement("path",$o({},fr(e),fu(e),{className:V("recharts-curve",t),d:a===null?void 0:a,ref:i}))},hw=["x","y","top","left","width","height","className"];function Ro(){return Ro=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ro.apply(null,arguments)}function ss(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ss(Object(r),!0).forEach(function(n){pw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ss(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pw(e,t,r){return(t=mw(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mw(e){var t=yw(e,"string");return typeof t=="symbol"?t:t+""}function yw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gw(e,t){if(e==null)return{};var r,n,i=bw(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function bw(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var ww=(e,t,r,n,i,a)=>"M".concat(e,",").concat(i,"v").concat(n,"M").concat(a,",").concat(t,"h").concat(r),xw=e=>{var{x:t=0,y:r=0,top:n=0,left:i=0,width:a=0,height:o=0,className:u}=e,l=gw(e,hw),s=vw({x:t,y:r,top:n,left:i,width:a,height:o},l);return!B(t)||!B(r)||!B(a)||!B(o)||!B(n)||!B(i)?null:y.createElement("path",Ro({},se(s,!0),{className:V("recharts-cross",u),d:ww(t,r,a,o,n,i)}))};function Pw(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function fs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ow(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fs(Object(r),!0).forEach(function(n){Aw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Aw(e,t,r){return(t=Sw(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sw(e){var t=_w(e,"string");return typeof t=="symbol"?t:t+""}function _w(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qe(e,t){var r=Ow({},e),n=t,i=Object.keys(t),a=i.reduce((o,u)=>(o[u]===void 0&&n[u]!==void 0&&(o[u]=n[u]),o),r);return a}function Ew(){}function ds(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ds(Object(r),!0).forEach(function(n){jw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ds(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jw(e,t,r){return(t=Mw(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mw(e){var t=Tw(e,"string");return typeof t=="symbol"?t:t+""}function Tw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cw=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),kw=(e,t,r)=>e.map(n=>"".concat(Cw(n)," ").concat(t,"ms ").concat(r)).join(","),Dw=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(i=>n.includes(i))),Lr=(e,t)=>Object.keys(t).reduce((r,n)=>hs(hs({},r),{},{[n]:e(n,t[n])}),{});function vs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function he(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vs(Object(r),!0).forEach(function(n){Iw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Iw(e,t,r){return(t=Nw(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nw(e){var t=Lw(e,"string");return typeof t=="symbol"?t:t+""}function Lw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var In=(e,t,r)=>e+(t-e)*r,Bo=e=>{var{from:t,to:r}=e;return t!==r},jh=(e,t,r)=>{var n=Lr((i,a)=>{if(Bo(a)){var[o,u]=e(a.from,a.to,a.velocity);return he(he({},a),{},{from:o,velocity:u})}return a},t);return r<1?Lr((i,a)=>Bo(a)?he(he({},a),{},{velocity:In(a.velocity,n[i].velocity,r),from:In(a.from,n[i].from,r)}):a,t):jh(e,n,r-1)};function $w(e,t,r,n,i,a){var o,u=n.reduce((d,h)=>he(he({},d),{},{[h]:{from:e[h],velocity:0,to:t[h]}}),{}),l=()=>Lr((d,h)=>h.from,u),s=()=>!Object.values(u).filter(Bo).length,c=null,f=d=>{o||(o=d);var h=d-o,v=h/r.dt;u=jh(r,u,v),i(he(he(he({},e),t),l())),o=d,s()||(c=a.setTimeout(f))};return()=>(c=a.setTimeout(f),()=>{c()})}function Rw(e,t,r,n,i,a,o){var u=null,l=i.reduce((f,d)=>he(he({},f),{},{[d]:[e[d],t[d]]}),{}),s,c=f=>{s||(s=f);var d=(f-s)/n,h=Lr((p,m)=>In(...m,r(d)),l);if(a(he(he(he({},e),t),h)),d<1)u=o.setTimeout(c);else{var v=Lr((p,m)=>In(...m,r(1)),l);a(he(he(he({},e),t),v))}};return()=>(u=o.setTimeout(c),()=>{u()})}const Bw=(e,t,r,n,i,a)=>{var o=Dw(e,t);return r.isStepper===!0?$w(e,t,r,o,i,a):Rw(e,t,r,n,o,i,a)};var Nn=1e-4,Mh=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],Th=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),ps=(e,t)=>r=>{var n=Mh(e,t);return Th(n,r)},qw=(e,t)=>r=>{var n=Mh(e,t),i=[...n.map((a,o)=>a*o).slice(1),0];return Th(i,r)},ms=function(){for(var t,r,n,i,a=arguments.length,o=new Array(a),u=0;u<a;u++)o[u]=arguments[u];if(o.length===1)switch(o[0]){case"linear":[t,n,r,i]=[0,0,1,1];break;case"ease":[t,n,r,i]=[.25,.1,.25,1];break;case"ease-in":[t,n,r,i]=[.42,0,1,1];break;case"ease-out":[t,n,r,i]=[.42,0,.58,1];break;case"ease-in-out":[t,n,r,i]=[0,0,.58,1];break;default:{var l=o[0].split("(");l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4&&([t,n,r,i]=l[1].split(")")[0].split(",").map(v=>parseFloat(v)))}}else o.length===4&&([t,n,r,i]=o);var s=ps(t,r),c=ps(n,i),f=qw(t,r),d=v=>v>1?1:v<0?0:v,h=v=>{for(var p=v>1?1:v,m=p,g=0;g<8;++g){var w=s(m)-p,b=f(m);if(Math.abs(w-p)<Nn||b<Nn)return c(m);m=d(m-w/b)}return c(m)};return h.isStepper=!1,h},Fw=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:i=17}=t,a=(o,u,l)=>{var s=-(o-u)*r,c=l*n,f=l+(s-c)*i/1e3,d=l*i/1e3+o;return Math.abs(d-u)<Nn&&Math.abs(f)<Nn?[u,0]:[d,f]};return a.isStepper=!0,a.dt=i,a},Kw=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return ms(e);case"spring":return Fw();default:if(e.split("(")[0]==="cubic-bezier")return ms(e)}return typeof e=="function"?e:null};function Uw(e){var t,r=()=>null,n=!1,i=null,a=o=>{if(!n){if(Array.isArray(o)){if(!o.length)return;var u=o,[l,...s]=u;if(typeof l=="number"){i=e.setTimeout(a.bind(null,s),l);return}a(l),i=e.setTimeout(a.bind(null,s));return}typeof o=="string"&&(t=o,r(t)),typeof o=="object"&&(t=o,r(t)),typeof o=="function"&&o()}};return{stop:()=>{n=!0},start:o=>{n=!1,i&&(i(),i=null),a(o)},subscribe:o=>(r=o,()=>{r=()=>null}),getTimeoutController:()=>e}}class zw{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),i=null,a=o=>{o-n>=r?t(o):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(a))};return i=requestAnimationFrame(a),()=>{cancelAnimationFrame(i)}}}function Ww(){return Uw(new zw)}var Hw=y.createContext(Ww);function Yw(e,t){var r=y.useContext(Hw);return y.useMemo(()=>t??r(e),[e,t,r])}var Vw={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},ys={t:0},qa={t:1};function Ch(e){var t=Qe(e,Vw),{isActive:r,canBegin:n,duration:i,easing:a,begin:o,onAnimationEnd:u,onAnimationStart:l,children:s}=t,c=Yw(t.animationId,t.animationManager),[f,d]=y.useState(r?ys:qa),h=y.useRef(null);return y.useEffect(()=>{r||d(qa)},[r]),y.useEffect(()=>{if(!r||!n)return Ew;var v=Bw(ys,qa,Kw(a),i,d,c.getTimeoutController()),p=()=>{h.current=v()};return c.start([l,o,p,i,u]),()=>{c.stop(),h.current&&h.current(),u()}},[r,n,i,a,o,l,u,c]),s(f.t)}function kh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=y.useRef(Dr(t)),n=y.useRef(e);return n.current!==e&&(r.current=Dr(t),n.current=e),r.current}function gs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gs(Object(r),!0).forEach(function(n){Gw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gw(e,t,r){return(t=Xw(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xw(e){var t=Zw(e,"string");return typeof t=="symbol"?t:t+""}function Zw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ln(){return Ln=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ln.apply(null,arguments)}var ws=(e,t,r,n,i)=>{var a=Math.min(Math.abs(r)/2,Math.abs(n)/2),o=n>=0?1:-1,u=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<0?1:0,s;if(a>0&&i instanceof Array){for(var c=[0,0,0,0],f=0,d=4;f<d;f++)c[f]=i[f]>a?a:i[f];s="M".concat(e,",").concat(t+o*c[0]),c[0]>0&&(s+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(l,",").concat(e+u*c[0],",").concat(t)),s+="L ".concat(e+r-u*c[1],",").concat(t),c[1]>0&&(s+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(l,`,
@@ -1,4 +1,4 @@
1
- import{aw as rF,ax as f9,a5 as mr,a8 as Bi,aa as bi,ay as D2,az as p9,a6 as d9,aA as h9,aB as m9,aC as g9,aD as y9,aE as v9,aF as F2,aG as b9,aH as E9,aI as ot,aJ as Lr,aK as nF,aL as Xn,aM as Ri,aN as hr,aO as S9,aP as _9,aQ as w9,aR as id,aS as x9,aT as A9,aU as O9,aV as C9,aW as q2,ai as R9,aX as I9,aY as T9}from"./index-C3UEOQVn.js";import{c as P9,a as k9,b as j9,d as N9,e as M9,f as D9,P as F9}from"./react-redux-CajzJORs.js";function C_(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in t)){const s=Object.getOwnPropertyDescriptor(n,i);s&&Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const q9={fn:{requestSnippetGenerator_fetch:t=>{const e=new URL(t.get("url"));let r=!1;const n=t.get("headers");n&&n.size&&n.map((o,u)=>{r=r||/^content-type$/i.test(u)&&/^multipart\/form-data$/i.test(o)});let i=t.get("body");const s=t.get("method");if(i){if(r&&["POST","PUT","PATCH"].includes(s))return'throw new Error("Currently unsupported content-type: /^multipart\\/form-data$/i");';typeof i!="string"&&(i=JSON.stringify(i,null," "))}else!i&&s==="POST"&&(i="");const a="`"+(i||"").replace(/\\n/g,`
1
+ import{aw as rF,ax as f9,a5 as mr,a8 as Bi,aa as bi,ay as D2,az as p9,a6 as d9,aA as h9,aB as m9,aC as g9,aD as y9,aE as v9,aF as F2,aG as b9,aH as E9,aI as ot,aJ as Lr,aK as nF,aL as Xn,aM as Ri,aN as hr,aO as S9,aP as _9,aQ as w9,aR as id,aS as x9,aT as A9,aU as O9,aV as C9,aW as q2,ai as R9,aX as I9,aY as T9}from"./index-CDUlUkrk.js";import{c as P9,a as k9,b as j9,d as N9,e as M9,f as D9,P as F9}from"./react-redux-bY1TVOy8.js";function C_(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in t)){const s=Object.getOwnPropertyDescriptor(n,i);s&&Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const q9={fn:{requestSnippetGenerator_fetch:t=>{const e=new URL(t.get("url"));let r=!1;const n=t.get("headers");n&&n.size&&n.map((o,u)=>{r=r||/^content-type$/i.test(u)&&/^multipart\/form-data$/i.test(o)});let i=t.get("body");const s=t.get("method");if(i){if(r&&["POST","PUT","PATCH"].includes(s))return'throw new Error("Currently unsupported content-type: /^multipart\\/form-data$/i");';typeof i!="string"&&(i=JSON.stringify(i,null," "))}else!i&&s==="POST"&&(i="");const a="`"+(i||"").replace(/\\n/g,`
2
2
  `).replace(/`/g,"\\`")+"`";return`const response = await fetch("${e.toString()}", {
3
3
  method: "${t.get("method")}",${n&&n.size?`
4
4
  headers: {
@@ -1 +1 @@
1
- import{V as K,ak as D,al as J,X as Q,R as W,am as Y,an as Z,ao as $,ap as ee,aq as T,c as M,ar as te,as as I,at as ne,O as se,M as re,x as oe,au as ae,av as ie}from"./index-C3UEOQVn.js";function le(e,t,o,a){const m=d=>{t.notify(14,{error:d}),Q("Error reported to customer",{"error.message":d.message})},l=K([e.profilingEndpointBuilder],e.batchBytesLimit,m),p=o(a);return{async send({event:d,...h}){const v=new FormData,s=D(d);if(!s)throw new Error("Failed to serialize event");v.append("event",new Blob([s],{type:"application/json"}),"event.json");let w=s.length;for(const[k,E]of J(h)){const f=D(E);if(!f)throw new Error("Failed to serialize attachment");const g=await ce(p,f);w+=g.outputBytesCount,v.append(k,new Blob([g.output]),k)}l.send({data:v,bytesCount:w})}}}function ce(e,t){return new Promise(o=>{e.write(t),e.finish(a=>{o(a)})})}function ue(e){let t=0;for(const o of e)o.stackId!==void 0&&t++;return t}const y=new Map;function de(e,t){y.set(t,e)}function me(e){return y.get(e)}function R(e){for(const t of y.keys())t<e&&y.delete(t)}function fe({rawRumEvent:e,startTime:t}){if(e.type!==W.LONG_TASK)return;const o=e.long_task.id;de(o,t)}const pe=/\/(?![vV]\d{1,2}\/)([^/\d?]*\d+[^/?]*)/g;function ve(e){return e?e.replace(pe,"/?"):"/"}const A=(e,t)=>e||ve(t);function be(e,t,o){const a={application:{id:t}};o&&(a.session={id:o});const{ids:m,names:l}=he(e.views);m.length&&(a.view={id:m,name:l});const p=e.longTasks.map(d=>d.id).filter(d=>d!==void 0);return p.length&&(a.long_task={id:p}),a}function he(e){const t={ids:[],names:[]};for(const o of e)t.ids.push(o.viewId),o.viewName&&t.names.push(o.viewName);return t.names=Array.from(new Set(t.names)),t}function ge(e,t,o){return{event:we(e,t,o),"wall-time.json":e}}function we(e,t,o){const a=Y(t),m=be(e,t.applicationId,o),l=ke(a);return{...m,attachments:["wall-time.json"],start:new Date(e.startClocks.timeStamp).toISOString(),end:new Date(e.endClocks.timeStamp).toISOString(),family:"chrome",runtime:"chrome",format:"json",version:4,tags_profiler:l.join(","),_dd:{clock_drift:Z()}}}function ke(e){return e.concat(["language:javascript","runtime:chrome","family:chrome","host:browser"])}const Te={sampleIntervalMs:10,collectIntervalMs:6e4,minProfileDurationMs:5e3,minNumberOfSamples:50};function Ee(e,t,o,a,m,l=Te){const p=le(e,t,m,6),d=$(ee.LONG_ANIMATION_FRAME);let h;const v=[];let s={state:"stopped"};function w(n){s.state!=="running"&&(h=n?{startClocks:n.startClocks,viewId:n.id,viewName:A(n.name,document.location.pathname)}:void 0,v.push(M(e,window,"visibilitychange",B).stop,M(e,window,"beforeunload",C).stop),f())}async function k(){await P("stopped"),v.forEach(n=>n()),R(T().relative),a.set({status:"stopped",error_reason:void 0})}function E(n){if(n.state==="running")return{cleanupTasks:n.cleanupTasks,observer:n.observer};const r=[];let i;if(e.trackLongTasks){i=new PerformanceObserver(F),i.observe({entryTypes:[V()]});const u=t.subscribe(12,b=>{fe(b)});r.push(()=>i?.disconnect()),r.push(u.unsubscribe)}const c=t.subscribe(2,u=>{const b={viewId:u.id,viewName:A(u.name,document.location.pathname),startClocks:u.startClocks};S(b),h=b});return r.push(c.unsubscribe),{cleanupTasks:r,observer:i}}function f(){const n=te().Profiler;if(!n)throw a.set({status:"error",error_reason:"not-supported-by-browser"}),new Error("RUM Profiler is not supported in this browser.");g(s).catch(I);const{cleanupTasks:r,observer:i}=E(s);let c;try{c=new n({sampleInterval:l.sampleIntervalMs,maxBufferSize:Math.round(l.collectIntervalMs*1.5/l.sampleIntervalMs)})}catch(u){u instanceof Error&&u.message.includes("disabled by Document Policy")?(ne.warn("[DD_RUM] Profiler startup failed. Ensure your server includes the `Document-Policy: js-profiling` response header when serving HTML pages.",u),a.set({status:"error",error_reason:"missing-document-policy-header"})):a.set({status:"error",error_reason:"unexpected-exception"});return}a.set({status:"running",error_reason:void 0}),s={state:"running",startClocks:T(),profiler:c,timeoutId:se(f,l.collectIntervalMs),longTasks:[],views:[],cleanupTasks:r,observer:i},S(h),c.addEventListener("samplebufferfull",_)}async function g(n){var r,i;if(n.state!=="running")return;L((i=(r=n.observer)===null||r===void 0?void 0:r.takeRecords())!==null&&i!==void 0?i:[]),re(n.timeoutId),n.profiler.removeEventListener("samplebufferfull",_);const{startClocks:c,longTasks:u,views:b}=n,H=T();await n.profiler.stop().then(N=>{const O=T(),q=u.length>0,X=oe(c.timeStamp,O.timeStamp)<l.minProfileDurationMs,x=ue(N.samples)<l.minNumberOfSamples;!q&&(X||x)||(j(Object.assign(N,{startClocks:c,endClocks:O,clocksOrigin:ae(),longTasks:u,views:b,sampleInterval:l.sampleIntervalMs})),R(H.relative))}).catch(I)}async function P(n){s.state==="running"&&(s.cleanupTasks.forEach(r=>r()),await g(s),s={state:n})}function S(n){s.state!=="running"||!n||s.views.push(n)}function j(n){var r;const i=(r=o.findTrackedSession())===null||r===void 0?void 0:r.id,c=ge(n,e,i);p.send(c)}function _(){f()}function F(n){L(n.getEntries())}function L(n){if(s.state==="running")for(const r of n){if(r.duration<l.sampleIntervalMs)continue;const i=ie(r.startTime),c=me(i.relative);s.longTasks.push({id:c,duration:r.duration,entryType:r.entryType,startClocks:i})}}function B(){document.visibilityState==="hidden"&&s.state==="running"?P("paused").catch(I):document.visibilityState==="visible"&&s.state==="paused"&&f()}function C(){f()}function V(){return d?"long-animation-frame":"longtask"}function U(){return s.state==="stopped"}function z(){return s.state==="running"}function G(){return s.state==="paused"}return{start:w,stop:k,isStopped:U,isRunning:z,isPaused:G}}export{Te as DEFAULT_RUM_PROFILER_CONFIGURATION,Ee as createRumProfiler};
1
+ import{V as K,ak as D,al as J,X as Q,R as W,am as Y,an as Z,ao as $,ap as ee,aq as T,c as M,ar as te,as as I,at as ne,O as se,M as re,x as oe,au as ae,av as ie}from"./index-CDUlUkrk.js";function le(e,t,o,a){const m=d=>{t.notify(14,{error:d}),Q("Error reported to customer",{"error.message":d.message})},l=K([e.profilingEndpointBuilder],e.batchBytesLimit,m),p=o(a);return{async send({event:d,...h}){const v=new FormData,s=D(d);if(!s)throw new Error("Failed to serialize event");v.append("event",new Blob([s],{type:"application/json"}),"event.json");let w=s.length;for(const[k,E]of J(h)){const f=D(E);if(!f)throw new Error("Failed to serialize attachment");const g=await ce(p,f);w+=g.outputBytesCount,v.append(k,new Blob([g.output]),k)}l.send({data:v,bytesCount:w})}}}function ce(e,t){return new Promise(o=>{e.write(t),e.finish(a=>{o(a)})})}function ue(e){let t=0;for(const o of e)o.stackId!==void 0&&t++;return t}const y=new Map;function de(e,t){y.set(t,e)}function me(e){return y.get(e)}function R(e){for(const t of y.keys())t<e&&y.delete(t)}function fe({rawRumEvent:e,startTime:t}){if(e.type!==W.LONG_TASK)return;const o=e.long_task.id;de(o,t)}const pe=/\/(?![vV]\d{1,2}\/)([^/\d?]*\d+[^/?]*)/g;function ve(e){return e?e.replace(pe,"/?"):"/"}const A=(e,t)=>e||ve(t);function be(e,t,o){const a={application:{id:t}};o&&(a.session={id:o});const{ids:m,names:l}=he(e.views);m.length&&(a.view={id:m,name:l});const p=e.longTasks.map(d=>d.id).filter(d=>d!==void 0);return p.length&&(a.long_task={id:p}),a}function he(e){const t={ids:[],names:[]};for(const o of e)t.ids.push(o.viewId),o.viewName&&t.names.push(o.viewName);return t.names=Array.from(new Set(t.names)),t}function ge(e,t,o){return{event:we(e,t,o),"wall-time.json":e}}function we(e,t,o){const a=Y(t),m=be(e,t.applicationId,o),l=ke(a);return{...m,attachments:["wall-time.json"],start:new Date(e.startClocks.timeStamp).toISOString(),end:new Date(e.endClocks.timeStamp).toISOString(),family:"chrome",runtime:"chrome",format:"json",version:4,tags_profiler:l.join(","),_dd:{clock_drift:Z()}}}function ke(e){return e.concat(["language:javascript","runtime:chrome","family:chrome","host:browser"])}const Te={sampleIntervalMs:10,collectIntervalMs:6e4,minProfileDurationMs:5e3,minNumberOfSamples:50};function Ee(e,t,o,a,m,l=Te){const p=le(e,t,m,6),d=$(ee.LONG_ANIMATION_FRAME);let h;const v=[];let s={state:"stopped"};function w(n){s.state!=="running"&&(h=n?{startClocks:n.startClocks,viewId:n.id,viewName:A(n.name,document.location.pathname)}:void 0,v.push(M(e,window,"visibilitychange",B).stop,M(e,window,"beforeunload",C).stop),f())}async function k(){await P("stopped"),v.forEach(n=>n()),R(T().relative),a.set({status:"stopped",error_reason:void 0})}function E(n){if(n.state==="running")return{cleanupTasks:n.cleanupTasks,observer:n.observer};const r=[];let i;if(e.trackLongTasks){i=new PerformanceObserver(F),i.observe({entryTypes:[V()]});const u=t.subscribe(12,b=>{fe(b)});r.push(()=>i?.disconnect()),r.push(u.unsubscribe)}const c=t.subscribe(2,u=>{const b={viewId:u.id,viewName:A(u.name,document.location.pathname),startClocks:u.startClocks};S(b),h=b});return r.push(c.unsubscribe),{cleanupTasks:r,observer:i}}function f(){const n=te().Profiler;if(!n)throw a.set({status:"error",error_reason:"not-supported-by-browser"}),new Error("RUM Profiler is not supported in this browser.");g(s).catch(I);const{cleanupTasks:r,observer:i}=E(s);let c;try{c=new n({sampleInterval:l.sampleIntervalMs,maxBufferSize:Math.round(l.collectIntervalMs*1.5/l.sampleIntervalMs)})}catch(u){u instanceof Error&&u.message.includes("disabled by Document Policy")?(ne.warn("[DD_RUM] Profiler startup failed. Ensure your server includes the `Document-Policy: js-profiling` response header when serving HTML pages.",u),a.set({status:"error",error_reason:"missing-document-policy-header"})):a.set({status:"error",error_reason:"unexpected-exception"});return}a.set({status:"running",error_reason:void 0}),s={state:"running",startClocks:T(),profiler:c,timeoutId:se(f,l.collectIntervalMs),longTasks:[],views:[],cleanupTasks:r,observer:i},S(h),c.addEventListener("samplebufferfull",_)}async function g(n){var r,i;if(n.state!=="running")return;L((i=(r=n.observer)===null||r===void 0?void 0:r.takeRecords())!==null&&i!==void 0?i:[]),re(n.timeoutId),n.profiler.removeEventListener("samplebufferfull",_);const{startClocks:c,longTasks:u,views:b}=n,H=T();await n.profiler.stop().then(N=>{const O=T(),q=u.length>0,X=oe(c.timeStamp,O.timeStamp)<l.minProfileDurationMs,x=ue(N.samples)<l.minNumberOfSamples;!q&&(X||x)||(j(Object.assign(N,{startClocks:c,endClocks:O,clocksOrigin:ae(),longTasks:u,views:b,sampleInterval:l.sampleIntervalMs})),R(H.relative))}).catch(I)}async function P(n){s.state==="running"&&(s.cleanupTasks.forEach(r=>r()),await g(s),s={state:n})}function S(n){s.state!=="running"||!n||s.views.push(n)}function j(n){var r;const i=(r=o.findTrackedSession())===null||r===void 0?void 0:r.id,c=ge(n,e,i);p.send(c)}function _(){f()}function F(n){L(n.getEntries())}function L(n){if(s.state==="running")for(const r of n){if(r.duration<l.sampleIntervalMs)continue;const i=ie(r.startTime),c=me(i.relative);s.longTasks.push({id:c,duration:r.duration,entryType:r.entryType,startClocks:i})}}function B(){document.visibilityState==="hidden"&&s.state==="running"?P("paused").catch(I):document.visibilityState==="visible"&&s.state==="paused"&&f()}function C(){f()}function V(){return d?"long-animation-frame":"longtask"}function U(){return s.state==="stopped"}function z(){return s.state==="running"}function G(){return s.state==="paused"}return{start:w,stop:k,isStopped:U,isRunning:z,isPaused:G}}export{Te as DEFAULT_RUM_PROFILER_CONFIGURATION,Ee as createRumProfiler};
@@ -1,4 +1,4 @@
1
- import{aK as Te,a5 as b}from"./index-C3UEOQVn.js";function E(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 Ne=typeof Symbol=="function"&&Symbol.observable||"@@observable",ue=Ne,q=()=>Math.random().toString(36).substring(7).split("").join("."),xe={INIT:`@@redux/INIT${q()}`,REPLACE:`@@redux/REPLACE${q()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${q()}`},U=xe;function Se(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 _e(e,t,r){if(typeof e!="function")throw new Error(E(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(E(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(E(1));return r(_e)(e,t)}let s=e,n=t,o=new Map,c=o,a=0,u=!1;function i(){c===o&&(c=new Map,o.forEach((d,S)=>{c.set(S,d)}))}function f(){if(u)throw new Error(E(3));return n}function l(d){if(typeof d!="function")throw new Error(E(4));if(u)throw new Error(E(5));let S=!0;i();const h=a++;return c.set(h,d),function(){if(S){if(u)throw new Error(E(6));S=!1,i(),c.delete(h),o=null}}}function y(d){if(!Se(d))throw new Error(E(7));if(typeof d.type>"u")throw new Error(E(8));if(typeof d.type!="string")throw new Error(E(17));if(u)throw new Error(E(9));try{u=!0,n=s(n,d)}finally{u=!1}return(o=c).forEach(h=>{h()}),d}function v(d){if(typeof d!="function")throw new Error(E(10));s=d,y({type:U.REPLACE})}function p(){const d=l;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(E(11));function h(){const g=S;g.next&&g.next(f())}return h(),{unsubscribe:d(h)}},[ue](){return this}}}return y({type:U.INIT}),{dispatch:y,subscribe:l,getState:f,replaceReducer:v,[ue]:p}}function Me(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:U.INIT})>"u")throw new Error(E(12));if(typeof r(void 0,{type:U.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(E(13))})}function zt(e){const t=Object.keys(e),r={};for(let o=0;o<t.length;o++){const c=t[o];typeof e[c]=="function"&&(r[c]=e[c])}const s=Object.keys(r);let n;try{Me(r)}catch(o){n=o}return function(c={},a){if(n)throw n;let u=!1;const i={};for(let f=0;f<s.length;f++){const l=s[f],y=r[l],v=c[l],p=y(v,a);if(typeof p>"u")throw a&&a.type,new Error(E(14));i[l]=p,u=u||p!==v}return u=u||s.length!==Object.keys(c).length,u?i:c}}function ce(e,t){return function(...r){return t(e.apply(this,r))}}function Vt(e,t){if(typeof e=="function")return ce(e,t);if(typeof e!="object"||e===null)throw new Error(E(16));const r={};for(const s in e){const n=e[s];typeof n=="function"&&(r[s]=ce(n,t))}return r}function Ae(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...s)=>t(r(...s)))}function Kt(...e){return t=>(r,s)=>{const n=t(r,s);let o=()=>{throw new Error(E(15))};const c={getState:n.getState,dispatch:(u,...i)=>o(u,...i)},a=e.map(u=>u(c));return o=Ae(...a)(n.dispatch),{...n,dispatch:o}}}function Dt(e){return Se(e)&&"type"in e&&typeof e.type=="string"}function Ie(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Fe(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function $e(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(s=>typeof s=="function"?`function ${s.name||"unnamed"}()`:typeof s).join(", ");throw new TypeError(`${t}[${r}]`)}}var ie=e=>Array.isArray(e)?e:[e];function ke(e){const t=Array.isArray(e[0])?e[0]:e;return $e(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function We(e,t){const r=[],{length:s}=e;for(let n=0;n<s;n++)r.push(e[n].apply(null,t));return r}var Ue=class{constructor(e){this.value=e}deref(){return this.value}},Le=typeof WeakRef<"u"?WeakRef:Ue,je=0,ae=1;function W(){return{s:je,v:void 0,o:null,p:null}}function me(e,t={}){let r=W();const{resultEqualityCheck:s}=t;let n,o=0;function c(){let a=r;const{length:u}=arguments;for(let l=0,y=u;l<y;l++){const v=arguments[l];if(typeof v=="function"||typeof v=="object"&&v!==null){let p=a.o;p===null&&(a.o=p=new WeakMap);const w=p.get(v);w===void 0?(a=W(),p.set(v,a)):a=w}else{let p=a.p;p===null&&(a.p=p=new Map);const w=p.get(v);w===void 0?(a=W(),p.set(v,a)):a=w}}const i=a;let f;if(a.s===ae)f=a.v;else if(f=e.apply(null,arguments),o++,s){const l=n?.deref?.()??n;l!=null&&s(l,f)&&(f=l,o!==0&&o--),n=typeof f=="object"&&f!==null||typeof f=="function"?new Le(f):f}return i.s=ae,i.v=f,f}return c.clearCache=()=>{r=W(),c.resetResultsCount()},c.resultsCount=()=>o,c.resetResultsCount=()=>{o=0},c}function Ye(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,s=(...n)=>{let o=0,c=0,a,u={},i=n.pop();typeof i=="object"&&(u=i,i=n.pop()),Ie(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const f={...r,...u},{memoize:l,memoizeOptions:y=[],argsMemoize:v=me,argsMemoizeOptions:p=[]}=f,w=ie(y),d=ie(p),S=ke(n),h=l(function(){return o++,i.apply(null,arguments)},...w),m=v(function(){c++;const R=We(S,arguments);return a=h.apply(null,R),a},...d);return Object.assign(m,{resultFunc:i,memoizedResultFunc:h,dependencies:S,dependencyRecomputations:()=>c,resetDependencyRecomputations:()=>{c=0},lastResult:()=>a,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:l,argsMemoize:v})};return Object.assign(s,{withTypes:()=>s}),s}var ze=Ye(me),Ve=Object.assign((e,t=ze)=>{Fe(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),s=r.map(o=>e[o]);return t(s,(...o)=>o.reduce((c,a,u)=>(c[r[u]]=a,c),{}))},{withTypes:()=>Ve}),G={exports:{}},H={};var fe;function Ke(){if(fe)return H;fe=1;var e=Te();function t(u,i){return u===i&&(u!==0||1/u===1/i)||u!==u&&i!==i}var r=typeof Object.is=="function"?Object.is:t,s=e.useSyncExternalStore,n=e.useRef,o=e.useEffect,c=e.useMemo,a=e.useDebugValue;return H.useSyncExternalStoreWithSelector=function(u,i,f,l,y){var v=n(null);if(v.current===null){var p={hasValue:!1,value:null};v.current=p}else p=v.current;v=c(function(){function d(R){if(!S){if(S=!0,h=R,R=l(R),y!==void 0&&p.hasValue){var O=p.value;if(y(O,R))return m=O}return m=R}if(O=m,r(h,R))return O;var P=l(R);return y!==void 0&&y(O,P)?(h=R,O):(h=R,m=P)}var S=!1,h,m,g=f===void 0?null:f;return[function(){return d(i())},g===null?void 0:function(){return d(g())}]},[i,f,l,y]);var w=s(u,v[0],v[1]);return o(function(){p.hasValue=!0,p.value=w},[w]),a(w),w},H}var le;function De(){return le||(le=1,G.exports=Ke()),G.exports}De();var Be=b.version.startsWith("19"),qe=Symbol.for(Be?"react.transitional.element":"react.element"),Ge=Symbol.for("react.portal"),He=Symbol.for("react.fragment"),Xe=Symbol.for("react.strict_mode"),Ze=Symbol.for("react.profiler"),Je=Symbol.for("react.consumer"),Qe=Symbol.for("react.context"),we=Symbol.for("react.forward_ref"),et=Symbol.for("react.suspense"),tt=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),rt=Symbol.for("react.lazy"),nt=we,ot=Q;function st(e){if(typeof e=="object"&&e!==null){const{$$typeof:t}=e;switch(t){case qe:switch(e=e.type,e){case He:case Ze:case Xe:case et:case tt:return e;default:switch(e=e&&e.$$typeof,e){case Qe:case we:case rt:case Q:return e;case Je:return e;default:return t}}case Ge:return t}}}function ut(e){return st(e)===Q}function ct(e,t,r,s,{areStatesEqual:n,areOwnPropsEqual:o,areStatePropsEqual:c}){let a=!1,u,i,f,l,y;function v(h,m){return u=h,i=m,f=e(u,i),l=t(s,i),y=r(f,l,i),a=!0,y}function p(){return f=e(u,i),t.dependsOnOwnProps&&(l=t(s,i)),y=r(f,l,i),y}function w(){return e.dependsOnOwnProps&&(f=e(u,i)),t.dependsOnOwnProps&&(l=t(s,i)),y=r(f,l,i),y}function d(){const h=e(u,i),m=!c(h,f);return f=h,m&&(y=r(f,l,i)),y}function S(h,m){const g=!o(m,i),R=!n(h,u,m,i);return u=h,i=m,g&&R?p():g?w():R?d():y}return function(m,g){return a?S(m,g):v(m,g)}}function it(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:s,...n}){const o=t(e,n),c=r(e,n),a=s(e,n);return ct(o,c,a,e,n)}function at(e,t){const r={};for(const s in e){const n=e[s];typeof n=="function"&&(r[s]=(...o)=>t(n(...o)))}return r}function Z(e){return function(r){const s=e(r);function n(){return s}return n.dependsOnOwnProps=!1,n}}function de(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function Ee(e,t){return function(s,{displayName:n}){const o=function(a,u){return o.dependsOnOwnProps?o.mapToProps(a,u):o.mapToProps(a,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(a,u){o.mapToProps=e,o.dependsOnOwnProps=de(e);let i=o(a,u);return typeof i=="function"&&(o.mapToProps=i,o.dependsOnOwnProps=de(i),i=o(a,u)),i},o}}function ee(e,t){return(r,s)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${s.wrappedComponentName}.`)}}function ft(e){return e&&typeof e=="object"?Z(t=>at(e,t)):e?typeof e=="function"?Ee(e):ee(e,"mapDispatchToProps"):Z(t=>({dispatch:t}))}function lt(e){return e?typeof e=="function"?Ee(e):ee(e,"mapStateToProps"):Z(()=>({}))}function dt(e,t,r){return{...r,...e,...t}}function pt(e){return function(r,{displayName:s,areMergedPropsEqual:n}){let o=!1,c;return function(u,i,f){const l=e(u,i,f);return o?n(l,c)||(c=l):(o=!0,c=l),c}}}function yt(e){return e?typeof e=="function"?pt(e):ee(e,"mergeProps"):()=>dt}function bt(e){e()}function vt(){let e=null,t=null;return{clear(){e=null,t=null},notify(){bt(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let s=e;for(;s;)r.push(s),s=s.next;return r},subscribe(r){let s=!0;const n=t={callback:r,next:null,prev:t};return n.prev?n.prev.next=n:e=n,function(){!s||e===null||(s=!1,n.next?n.next.prev=n.prev:t=n.prev,n.prev?n.prev.next=n.next:e=n.next)}}}}var pe={notify(){},get:()=>[]};function ge(e,t){let r,s=pe,n=0,o=!1;function c(w){f();const d=s.subscribe(w);let S=!1;return()=>{S||(S=!0,d(),l())}}function a(){s.notify()}function u(){p.onStateChange&&p.onStateChange()}function i(){return o}function f(){n++,r||(r=t?t.addNestedSub(u):e.subscribe(u),s=vt())}function l(){n--,r&&n===0&&(r(),r=void 0,s.clear(),s=pe)}function y(){o||(o=!0,f())}function v(){o&&(o=!1,l())}const p={addNestedSub:c,notifyNestedSubs:a,handleChangeWrapper:u,isSubscribed:i,trySubscribe:y,tryUnsubscribe:v,getListeners:()=>s};return p}var ht=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",St=ht(),mt=()=>typeof navigator<"u"&&navigator.product==="ReactNative",wt=mt(),Et=()=>St||wt?b.useLayoutEffect:b.useEffect,L=Et();function ye(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function X(e,t){if(ye(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!ye(e[r[n]],t[r[n]]))return!1;return!0}var gt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Rt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ct={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Re={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ot={[nt]:Ct,[ot]:Re};function be(e){return ut(e)?Re:Ot[e.$$typeof]||gt}var Pt=Object.defineProperty,Tt=Object.getOwnPropertyNames,ve=Object.getOwnPropertySymbols,Nt=Object.getOwnPropertyDescriptor,xt=Object.getPrototypeOf,he=Object.prototype;function J(e,t){if(typeof t!="string"){if(he){const o=xt(t);o&&o!==he&&J(e,o)}let r=Tt(t);ve&&(r=r.concat(ve(t)));const s=be(e),n=be(t);for(let o=0;o<r.length;++o){const c=r[o];if(!Rt[c]&&!(n&&n[c])&&!(s&&s[c])){const a=Nt(t,c);try{Pt(e,c,a)}catch{}}}}return e}var _t=Symbol.for("react-redux-context"),Mt=typeof globalThis<"u"?globalThis:{};function At(){if(!b.createContext)return{};const e=Mt[_t]??=new Map;let t=e.get(b.createContext);return t||(t=b.createContext(null),e.set(b.createContext,t)),t}var Ce=At(),It=[null,null];function Ft(e,t,r){L(()=>e(...t),r)}function $t(e,t,r,s,n,o){e.current=s,r.current=!1,n.current&&(n.current=null,o())}function kt(e,t,r,s,n,o,c,a,u,i,f){if(!e)return()=>{};let l=!1,y=null;const v=()=>{if(l||!a.current)return;const w=t.getState();let d,S;try{d=s(w,n.current)}catch(h){S=h,y=h}S||(y=null),d===o.current?c.current||i():(o.current=d,u.current=d,c.current=!0,f())};return r.onStateChange=v,r.trySubscribe(),v(),()=>{if(l=!0,r.tryUnsubscribe(),r.onStateChange=null,y)throw y}}function Wt(e,t){return e===t}function Ut(e,t,r,{pure:s,areStatesEqual:n=Wt,areOwnPropsEqual:o=X,areStatePropsEqual:c=X,areMergedPropsEqual:a=X,forwardRef:u=!1,context:i=Ce}={}){const f=i,l=lt(e),y=ft(t),v=yt(r),p=!!e;return d=>{const S=d.displayName||d.name||"Component",h=`Connect(${S})`,m={shouldHandleStateChanges:p,displayName:h,wrappedComponentName:S,WrappedComponent:d,initMapStateToProps:l,initMapDispatchToProps:y,initMergeProps:v,areStatesEqual:n,areStatePropsEqual:c,areOwnPropsEqual:o,areMergedPropsEqual:a};function g(P){const[_,j,N]=b.useMemo(()=>{const{reactReduxForwardedRef:C,...$}=P;return[P.context,C,$]},[P]),M=b.useMemo(()=>{let C=f;return _?.Consumer,C},[_,f]),T=b.useContext(M),A=!!P.store&&!!P.store.getState&&!!P.store.dispatch,Oe=!!T&&!!T.store,x=A?P.store:T.store,te=Oe?T.getServerState:x.getState,Y=b.useMemo(()=>it(x.dispatch,m),[x]),[I,re]=b.useMemo(()=>{if(!p)return It;const C=ge(x,A?void 0:T.subscription),$=C.notifyNestedSubs.bind(C);return[C,$]},[x,A,T]),ne=b.useMemo(()=>A?T:{...T,subscription:I},[A,T,I]),z=b.useRef(void 0),V=b.useRef(N),F=b.useRef(void 0),oe=b.useRef(!1),K=b.useRef(!1),D=b.useRef(void 0);L(()=>(K.current=!0,()=>{K.current=!1}),[]);const se=b.useMemo(()=>()=>F.current&&N===V.current?F.current:Y(x.getState(),N),[x,N]),Pe=b.useMemo(()=>$=>I?kt(p,x,I,Y,V,z,oe,K,F,re,$):()=>{},[I]);Ft($t,[V,z,oe,N,F,re]);let k;try{k=b.useSyncExternalStore(Pe,se,te?()=>Y(te(),N):se)}catch(C){throw D.current&&(C.message+=`
1
+ import{aK as Te,a5 as b}from"./index-CDUlUkrk.js";function E(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 Ne=typeof Symbol=="function"&&Symbol.observable||"@@observable",ue=Ne,q=()=>Math.random().toString(36).substring(7).split("").join("."),xe={INIT:`@@redux/INIT${q()}`,REPLACE:`@@redux/REPLACE${q()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${q()}`},U=xe;function Se(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 _e(e,t,r){if(typeof e!="function")throw new Error(E(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(E(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(E(1));return r(_e)(e,t)}let s=e,n=t,o=new Map,c=o,a=0,u=!1;function i(){c===o&&(c=new Map,o.forEach((d,S)=>{c.set(S,d)}))}function f(){if(u)throw new Error(E(3));return n}function l(d){if(typeof d!="function")throw new Error(E(4));if(u)throw new Error(E(5));let S=!0;i();const h=a++;return c.set(h,d),function(){if(S){if(u)throw new Error(E(6));S=!1,i(),c.delete(h),o=null}}}function y(d){if(!Se(d))throw new Error(E(7));if(typeof d.type>"u")throw new Error(E(8));if(typeof d.type!="string")throw new Error(E(17));if(u)throw new Error(E(9));try{u=!0,n=s(n,d)}finally{u=!1}return(o=c).forEach(h=>{h()}),d}function v(d){if(typeof d!="function")throw new Error(E(10));s=d,y({type:U.REPLACE})}function p(){const d=l;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(E(11));function h(){const g=S;g.next&&g.next(f())}return h(),{unsubscribe:d(h)}},[ue](){return this}}}return y({type:U.INIT}),{dispatch:y,subscribe:l,getState:f,replaceReducer:v,[ue]:p}}function Me(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:U.INIT})>"u")throw new Error(E(12));if(typeof r(void 0,{type:U.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(E(13))})}function zt(e){const t=Object.keys(e),r={};for(let o=0;o<t.length;o++){const c=t[o];typeof e[c]=="function"&&(r[c]=e[c])}const s=Object.keys(r);let n;try{Me(r)}catch(o){n=o}return function(c={},a){if(n)throw n;let u=!1;const i={};for(let f=0;f<s.length;f++){const l=s[f],y=r[l],v=c[l],p=y(v,a);if(typeof p>"u")throw a&&a.type,new Error(E(14));i[l]=p,u=u||p!==v}return u=u||s.length!==Object.keys(c).length,u?i:c}}function ce(e,t){return function(...r){return t(e.apply(this,r))}}function Vt(e,t){if(typeof e=="function")return ce(e,t);if(typeof e!="object"||e===null)throw new Error(E(16));const r={};for(const s in e){const n=e[s];typeof n=="function"&&(r[s]=ce(n,t))}return r}function Ae(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...s)=>t(r(...s)))}function Kt(...e){return t=>(r,s)=>{const n=t(r,s);let o=()=>{throw new Error(E(15))};const c={getState:n.getState,dispatch:(u,...i)=>o(u,...i)},a=e.map(u=>u(c));return o=Ae(...a)(n.dispatch),{...n,dispatch:o}}}function Dt(e){return Se(e)&&"type"in e&&typeof e.type=="string"}function Ie(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Fe(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function $e(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(s=>typeof s=="function"?`function ${s.name||"unnamed"}()`:typeof s).join(", ");throw new TypeError(`${t}[${r}]`)}}var ie=e=>Array.isArray(e)?e:[e];function ke(e){const t=Array.isArray(e[0])?e[0]:e;return $e(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function We(e,t){const r=[],{length:s}=e;for(let n=0;n<s;n++)r.push(e[n].apply(null,t));return r}var Ue=class{constructor(e){this.value=e}deref(){return this.value}},Le=typeof WeakRef<"u"?WeakRef:Ue,je=0,ae=1;function W(){return{s:je,v:void 0,o:null,p:null}}function me(e,t={}){let r=W();const{resultEqualityCheck:s}=t;let n,o=0;function c(){let a=r;const{length:u}=arguments;for(let l=0,y=u;l<y;l++){const v=arguments[l];if(typeof v=="function"||typeof v=="object"&&v!==null){let p=a.o;p===null&&(a.o=p=new WeakMap);const w=p.get(v);w===void 0?(a=W(),p.set(v,a)):a=w}else{let p=a.p;p===null&&(a.p=p=new Map);const w=p.get(v);w===void 0?(a=W(),p.set(v,a)):a=w}}const i=a;let f;if(a.s===ae)f=a.v;else if(f=e.apply(null,arguments),o++,s){const l=n?.deref?.()??n;l!=null&&s(l,f)&&(f=l,o!==0&&o--),n=typeof f=="object"&&f!==null||typeof f=="function"?new Le(f):f}return i.s=ae,i.v=f,f}return c.clearCache=()=>{r=W(),c.resetResultsCount()},c.resultsCount=()=>o,c.resetResultsCount=()=>{o=0},c}function Ye(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,s=(...n)=>{let o=0,c=0,a,u={},i=n.pop();typeof i=="object"&&(u=i,i=n.pop()),Ie(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const f={...r,...u},{memoize:l,memoizeOptions:y=[],argsMemoize:v=me,argsMemoizeOptions:p=[]}=f,w=ie(y),d=ie(p),S=ke(n),h=l(function(){return o++,i.apply(null,arguments)},...w),m=v(function(){c++;const R=We(S,arguments);return a=h.apply(null,R),a},...d);return Object.assign(m,{resultFunc:i,memoizedResultFunc:h,dependencies:S,dependencyRecomputations:()=>c,resetDependencyRecomputations:()=>{c=0},lastResult:()=>a,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:l,argsMemoize:v})};return Object.assign(s,{withTypes:()=>s}),s}var ze=Ye(me),Ve=Object.assign((e,t=ze)=>{Fe(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),s=r.map(o=>e[o]);return t(s,(...o)=>o.reduce((c,a,u)=>(c[r[u]]=a,c),{}))},{withTypes:()=>Ve}),G={exports:{}},H={};var fe;function Ke(){if(fe)return H;fe=1;var e=Te();function t(u,i){return u===i&&(u!==0||1/u===1/i)||u!==u&&i!==i}var r=typeof Object.is=="function"?Object.is:t,s=e.useSyncExternalStore,n=e.useRef,o=e.useEffect,c=e.useMemo,a=e.useDebugValue;return H.useSyncExternalStoreWithSelector=function(u,i,f,l,y){var v=n(null);if(v.current===null){var p={hasValue:!1,value:null};v.current=p}else p=v.current;v=c(function(){function d(R){if(!S){if(S=!0,h=R,R=l(R),y!==void 0&&p.hasValue){var O=p.value;if(y(O,R))return m=O}return m=R}if(O=m,r(h,R))return O;var P=l(R);return y!==void 0&&y(O,P)?(h=R,O):(h=R,m=P)}var S=!1,h,m,g=f===void 0?null:f;return[function(){return d(i())},g===null?void 0:function(){return d(g())}]},[i,f,l,y]);var w=s(u,v[0],v[1]);return o(function(){p.hasValue=!0,p.value=w},[w]),a(w),w},H}var le;function De(){return le||(le=1,G.exports=Ke()),G.exports}De();var Be=b.version.startsWith("19"),qe=Symbol.for(Be?"react.transitional.element":"react.element"),Ge=Symbol.for("react.portal"),He=Symbol.for("react.fragment"),Xe=Symbol.for("react.strict_mode"),Ze=Symbol.for("react.profiler"),Je=Symbol.for("react.consumer"),Qe=Symbol.for("react.context"),we=Symbol.for("react.forward_ref"),et=Symbol.for("react.suspense"),tt=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),rt=Symbol.for("react.lazy"),nt=we,ot=Q;function st(e){if(typeof e=="object"&&e!==null){const{$$typeof:t}=e;switch(t){case qe:switch(e=e.type,e){case He:case Ze:case Xe:case et:case tt:return e;default:switch(e=e&&e.$$typeof,e){case Qe:case we:case rt:case Q:return e;case Je:return e;default:return t}}case Ge:return t}}}function ut(e){return st(e)===Q}function ct(e,t,r,s,{areStatesEqual:n,areOwnPropsEqual:o,areStatePropsEqual:c}){let a=!1,u,i,f,l,y;function v(h,m){return u=h,i=m,f=e(u,i),l=t(s,i),y=r(f,l,i),a=!0,y}function p(){return f=e(u,i),t.dependsOnOwnProps&&(l=t(s,i)),y=r(f,l,i),y}function w(){return e.dependsOnOwnProps&&(f=e(u,i)),t.dependsOnOwnProps&&(l=t(s,i)),y=r(f,l,i),y}function d(){const h=e(u,i),m=!c(h,f);return f=h,m&&(y=r(f,l,i)),y}function S(h,m){const g=!o(m,i),R=!n(h,u,m,i);return u=h,i=m,g&&R?p():g?w():R?d():y}return function(m,g){return a?S(m,g):v(m,g)}}function it(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:s,...n}){const o=t(e,n),c=r(e,n),a=s(e,n);return ct(o,c,a,e,n)}function at(e,t){const r={};for(const s in e){const n=e[s];typeof n=="function"&&(r[s]=(...o)=>t(n(...o)))}return r}function Z(e){return function(r){const s=e(r);function n(){return s}return n.dependsOnOwnProps=!1,n}}function de(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function Ee(e,t){return function(s,{displayName:n}){const o=function(a,u){return o.dependsOnOwnProps?o.mapToProps(a,u):o.mapToProps(a,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(a,u){o.mapToProps=e,o.dependsOnOwnProps=de(e);let i=o(a,u);return typeof i=="function"&&(o.mapToProps=i,o.dependsOnOwnProps=de(i),i=o(a,u)),i},o}}function ee(e,t){return(r,s)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${s.wrappedComponentName}.`)}}function ft(e){return e&&typeof e=="object"?Z(t=>at(e,t)):e?typeof e=="function"?Ee(e):ee(e,"mapDispatchToProps"):Z(t=>({dispatch:t}))}function lt(e){return e?typeof e=="function"?Ee(e):ee(e,"mapStateToProps"):Z(()=>({}))}function dt(e,t,r){return{...r,...e,...t}}function pt(e){return function(r,{displayName:s,areMergedPropsEqual:n}){let o=!1,c;return function(u,i,f){const l=e(u,i,f);return o?n(l,c)||(c=l):(o=!0,c=l),c}}}function yt(e){return e?typeof e=="function"?pt(e):ee(e,"mergeProps"):()=>dt}function bt(e){e()}function vt(){let e=null,t=null;return{clear(){e=null,t=null},notify(){bt(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let s=e;for(;s;)r.push(s),s=s.next;return r},subscribe(r){let s=!0;const n=t={callback:r,next:null,prev:t};return n.prev?n.prev.next=n:e=n,function(){!s||e===null||(s=!1,n.next?n.next.prev=n.prev:t=n.prev,n.prev?n.prev.next=n.next:e=n.next)}}}}var pe={notify(){},get:()=>[]};function ge(e,t){let r,s=pe,n=0,o=!1;function c(w){f();const d=s.subscribe(w);let S=!1;return()=>{S||(S=!0,d(),l())}}function a(){s.notify()}function u(){p.onStateChange&&p.onStateChange()}function i(){return o}function f(){n++,r||(r=t?t.addNestedSub(u):e.subscribe(u),s=vt())}function l(){n--,r&&n===0&&(r(),r=void 0,s.clear(),s=pe)}function y(){o||(o=!0,f())}function v(){o&&(o=!1,l())}const p={addNestedSub:c,notifyNestedSubs:a,handleChangeWrapper:u,isSubscribed:i,trySubscribe:y,tryUnsubscribe:v,getListeners:()=>s};return p}var ht=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",St=ht(),mt=()=>typeof navigator<"u"&&navigator.product==="ReactNative",wt=mt(),Et=()=>St||wt?b.useLayoutEffect:b.useEffect,L=Et();function ye(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function X(e,t){if(ye(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!ye(e[r[n]],t[r[n]]))return!1;return!0}var gt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Rt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ct={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Re={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ot={[nt]:Ct,[ot]:Re};function be(e){return ut(e)?Re:Ot[e.$$typeof]||gt}var Pt=Object.defineProperty,Tt=Object.getOwnPropertyNames,ve=Object.getOwnPropertySymbols,Nt=Object.getOwnPropertyDescriptor,xt=Object.getPrototypeOf,he=Object.prototype;function J(e,t){if(typeof t!="string"){if(he){const o=xt(t);o&&o!==he&&J(e,o)}let r=Tt(t);ve&&(r=r.concat(ve(t)));const s=be(e),n=be(t);for(let o=0;o<r.length;++o){const c=r[o];if(!Rt[c]&&!(n&&n[c])&&!(s&&s[c])){const a=Nt(t,c);try{Pt(e,c,a)}catch{}}}}return e}var _t=Symbol.for("react-redux-context"),Mt=typeof globalThis<"u"?globalThis:{};function At(){if(!b.createContext)return{};const e=Mt[_t]??=new Map;let t=e.get(b.createContext);return t||(t=b.createContext(null),e.set(b.createContext,t)),t}var Ce=At(),It=[null,null];function Ft(e,t,r){L(()=>e(...t),r)}function $t(e,t,r,s,n,o){e.current=s,r.current=!1,n.current&&(n.current=null,o())}function kt(e,t,r,s,n,o,c,a,u,i,f){if(!e)return()=>{};let l=!1,y=null;const v=()=>{if(l||!a.current)return;const w=t.getState();let d,S;try{d=s(w,n.current)}catch(h){S=h,y=h}S||(y=null),d===o.current?c.current||i():(o.current=d,u.current=d,c.current=!0,f())};return r.onStateChange=v,r.trySubscribe(),v(),()=>{if(l=!0,r.tryUnsubscribe(),r.onStateChange=null,y)throw y}}function Wt(e,t){return e===t}function Ut(e,t,r,{pure:s,areStatesEqual:n=Wt,areOwnPropsEqual:o=X,areStatePropsEqual:c=X,areMergedPropsEqual:a=X,forwardRef:u=!1,context:i=Ce}={}){const f=i,l=lt(e),y=ft(t),v=yt(r),p=!!e;return d=>{const S=d.displayName||d.name||"Component",h=`Connect(${S})`,m={shouldHandleStateChanges:p,displayName:h,wrappedComponentName:S,WrappedComponent:d,initMapStateToProps:l,initMapDispatchToProps:y,initMergeProps:v,areStatesEqual:n,areStatePropsEqual:c,areOwnPropsEqual:o,areMergedPropsEqual:a};function g(P){const[_,j,N]=b.useMemo(()=>{const{reactReduxForwardedRef:C,...$}=P;return[P.context,C,$]},[P]),M=b.useMemo(()=>{let C=f;return _?.Consumer,C},[_,f]),T=b.useContext(M),A=!!P.store&&!!P.store.getState&&!!P.store.dispatch,Oe=!!T&&!!T.store,x=A?P.store:T.store,te=Oe?T.getServerState:x.getState,Y=b.useMemo(()=>it(x.dispatch,m),[x]),[I,re]=b.useMemo(()=>{if(!p)return It;const C=ge(x,A?void 0:T.subscription),$=C.notifyNestedSubs.bind(C);return[C,$]},[x,A,T]),ne=b.useMemo(()=>A?T:{...T,subscription:I},[A,T,I]),z=b.useRef(void 0),V=b.useRef(N),F=b.useRef(void 0),oe=b.useRef(!1),K=b.useRef(!1),D=b.useRef(void 0);L(()=>(K.current=!0,()=>{K.current=!1}),[]);const se=b.useMemo(()=>()=>F.current&&N===V.current?F.current:Y(x.getState(),N),[x,N]),Pe=b.useMemo(()=>$=>I?kt(p,x,I,Y,V,z,oe,K,F,re,$):()=>{},[I]);Ft($t,[V,z,oe,N,F,re]);let k;try{k=b.useSyncExternalStore(Pe,se,te?()=>Y(te(),N):se)}catch(C){throw D.current&&(C.message+=`
2
2
  The error may be correlated with this previous error:
3
3
  ${D.current.stack}
4
4