From 30b27995e042a0b3462a068197507b1c9d678897 Mon Sep 17 00:00:00 2001 From: lmangani Date: Sat, 15 Jun 2024 19:46:08 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20metrico/?= =?UTF-8?q?qryn-view@03644c94eb9405da5d2d7526839244fbcab19f50=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/{AddOutlined-395174d1.js => AddOutlined-4fd97119.js} | 2 +- assets/{App-9d4e9242.js => App-5b773dfd.js} | 2 +- assets/{DataSources-47751bf7.js => DataSources-19590ba7.js} | 2 +- ...tlined-90e52d8e.js => DeleteOutlineOutlined-c50f292a.js} | 2 +- assets/{Main-062780d6.js => Main-b913847d.js} | 2 +- ...Factory-cd31b81c.js => PluginManagerFactory-a67ca61d.js} | 2 +- assets/{Plugins-ba4b5aef.js => Plugins-57230a98.js} | 2 +- assets/{UserRoles-ce4abc0a.js => UserRoles-654b75ab.js} | 2 +- assets/consts-a4ab3ea8.js | 6 ++++++ assets/consts-b1f58b04.js | 6 ------ ...{createSvgIcon-b33a10f9.js => createSvgIcon-453c5eac.js} | 2 +- assets/{index-a817164a.js => index-284a6932.js} | 4 ++-- index.html | 2 +- 13 files changed, 18 insertions(+), 18 deletions(-) rename assets/{AddOutlined-395174d1.js => AddOutlined-4fd97119.js} (96%) rename assets/{App-9d4e9242.js => App-5b773dfd.js} (96%) rename assets/{DataSources-47751bf7.js => DataSources-19590ba7.js} (98%) rename assets/{DeleteOutlineOutlined-90e52d8e.js => DeleteOutlineOutlined-c50f292a.js} (81%) rename assets/{Main-062780d6.js => Main-b913847d.js} (99%) rename assets/{PluginManagerFactory-cd31b81c.js => PluginManagerFactory-a67ca61d.js} (96%) rename assets/{Plugins-ba4b5aef.js => Plugins-57230a98.js} (94%) rename assets/{UserRoles-ce4abc0a.js => UserRoles-654b75ab.js} (98%) create mode 100644 assets/consts-a4ab3ea8.js delete mode 100644 assets/consts-b1f58b04.js rename assets/{createSvgIcon-b33a10f9.js => createSvgIcon-453c5eac.js} (99%) rename assets/{index-a817164a.js => index-284a6932.js} (75%) diff --git a/assets/AddOutlined-395174d1.js b/assets/AddOutlined-4fd97119.js similarity index 96% rename from assets/AddOutlined-395174d1.js rename to assets/AddOutlined-4fd97119.js index a013bd51..edd249e3 100644 --- a/assets/AddOutlined-395174d1.js +++ b/assets/AddOutlined-4fd97119.js @@ -1 +1 @@ -import{k as t,d as r,j as g,D as m,i as u}from"./index-a817164a.js";import{B as f}from"./DeleteOutlineOutlined-90e52d8e.js";import{r as h}from"./createSvgIcon-b33a10f9.js";import{j as b}from"./reactDnd-707fca38.js";const A=t("div",{target:"e1m1j6jk11"})("overflow-x:hidden;border-radius:3px;background:",({theme:e})=>e.background,";color:",({theme:e})=>e.contrast,";width:100%;height:100%;overflow-y:auto;display:flex;flex:1;flex-direction:column;height:100%;align-items:center;.cont{max-width:1440px;padding:10px;margin:10px;width:100%;background:",({theme:e})=>e.shadow,";display:flex;flex-direction:column;flex:1;overflow-x:hidden;}.ds-header{padding:10px;padding-bottom:20px;font-size:24px;display:flex;margin:10px;justify-content:space-between;align-items:center;padding-left:0px;.logo{margin-right:10px;}}.ds-cont{margin-bottom:10px;border:1px solid ",({theme:e})=>e.accentNeutral,";border-radius:3px;color:",({theme:e})=>e.contrast,";}.ds-item{padding:10px;border-radius:3px 3px 0px 0px;padding-bottom:14px;display:flex;color:",({theme:e})=>e.contrast,";.logo{padding:10px;padding-right:20px;padding-left:0px;}.ds-text{display:flex;flex-direction:column;flex:1;}.ds-type{font-size:18px;padding:10px;padding-left:0px;color:",({theme:e})=>e.contrast,";}small{font-size:12px;}.setting-icon{justify-self:flex-end;cursor:pointer;}.ds-settings{background:",({theme:e})=>e.background,";}}.plugins-cont{display:flex;flex:1;margin:0px 10px;flex-direction:column;padding:10px 20px;border:1px solid ",({theme:e})=>e.accentNeutral,";border-radius:3px;height:fit-content;.title{font-size:14px;padding:10px 0px;}}"),y=t("div",{target:"e1m1j6jk10"})("color:",({theme:e})=>e.contrast,";display:flex;align-items:center;font-size:12px;padding:0px 10px;white-space:nowrap;",e=>e.width!==null?`width:${e.width}px;`:""," border-radius:3px 0px 0px 3px;display:flex;align-items:center;height:26px;"),w=t("input",{target:"e1m1j6jk9"})("display:flex;flex:1;background:",({theme:e})=>e.deep,";color:",({theme:e})=>e.contrast,";border:1px solid ",e=>e.error?"#b62c14":e.theme.accentNeutral,";border-radius:3px;justify-self:flex-end;height:26px;padding-left:8px;"),O=t("textarea",{target:"e1m1j6jk8"})("display:flex;flex:1;background:",({theme:e})=>e.deep,";color:",({theme:e})=>e.contrast,";border:1px solid ",({theme:e})=>e.accentNeutral,";border-radius:3px;justify-self:flex-end;padding-left:8px;"),j=t("div",{target:"e1m1j6jk7"})("display:flex;flex-direction:row;margin-top:5px;align-items:center;",e=>e!=null&&e.width&&(e==null?void 0:e.width)==="normal"?"":"flex:1;","select{background:",({theme:e})=>e.deep,";color:",({theme:e})=>e.contrast,";border:1px solid ",({theme:e})=>e.accentNeutral,";border-radius:3px;font-size:12px;height:30px;display:flex;align-items:center;padding:1px 2px 1px 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;option{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}"),T=t("div",{target:"e1m1j6jk6"})({name:"1uek1ww",styles:"display:flex;margin:15px 0px;margin-left:14px;flex-wrap:wrap;align-items:center;flex:1;&.internal{max-width:400px;}"}),E=t("div",{target:"e1m1j6jk4"})({name:"e23o9g",styles:"padding:10px"}),P=t("div",{target:"e1m1j6jk3"})("margin:10px 0px;padding-bottom:10px;border-bottom:1px solid ",({theme:e})=>e.background,";"),U=t("div",{target:"e1m1j6jk2"})("padding:10px;border-bottom:1px solid ",({theme:e})=>e.shadow,";border-radius:3px;display:flex;flex:1;align-items:center;justify-content:space-between;.edit-buttons{display:flex;align-items:center;&:disabled{display:none;}}"),q=t("div",{target:"e1m1j6jk1"})("background:",({theme:e})=>e.deep,";padding:10px;border-radius:0px 0px 3px 3px;border-top:1px solid ",({theme:e})=>e.accentNeutral,";"),B=t(f,{target:"e1m1j6jk0"})("background:",e=>e.primary?e.theme.primary:e.theme.neutral,";border:1px solid ",({theme:e})=>e.accentNeutral,";color:",e=>e.primary?e.theme.maxContrast:e.theme.contrast,";margin-left:5px;transition:0.25s all;justify-content:center;padding:3px 12px;height:26px;display:flex;&:hover{background:",({theme:e})=>e.primaryLight,";color:",e=>e.primary?e.theme.contrast:e.theme.maxContrast,";}&:disabled{background:",({theme:e})=>e.neutral,";border:1px solid ",({theme:e})=>e.accentNeutral,";cursor:not-allowed;color:",({theme:e})=>e.contrast,";}@media screen and (max-width: 1070px){display:flex;margin:0;}"),v=""+new URL("metrics_icon-9cba0731.png",import.meta.url).href,n=""+new URL("logs_icon-972f9506.png",import.meta.url).href,k=""+new URL("traces_icon-a9ed0318.png",import.meta.url).href,_={metrics_icon:v,logs_icon:n,traces_icon:k},F=({icon:e,style:a})=>r("img",{height:"20px",className:"logo",style:a,src:_[e]||n,alt:e}),M=e=>{const{value:a,label:o,onChange:d,locked:l,type:s,placeholder:p,error:x,labelWidth:c}=e;return g(j,{children:[r(y,{width:c||null,children:o}),r(w,{className:"ds-input",disabled:l,error:x||!1,onChange:d,type:s,value:m.sanitize(a),placeholder:p})]})},G=e=>a=>{a({type:"SET_DATA_SOURCES",dataSources:e})};var i={},S=u;Object.defineProperty(i,"__esModule",{value:!0});var N=i.default=void 0,C=S(h()),D=b;N=i.default=(0,C.default)((0,D.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"AddOutlined");export{B as D,M as F,j as I,y as L,A as P,U as S,O as T,T as a,P as b,E as c,N as d,F as e,q as f,G as s}; +import{k as t,d as r,j as g,D as m,i as u}from"./index-284a6932.js";import{B as f}from"./DeleteOutlineOutlined-c50f292a.js";import{r as h}from"./createSvgIcon-453c5eac.js";import{j as b}from"./reactDnd-707fca38.js";const A=t("div",{target:"e1m1j6jk11"})("overflow-x:hidden;border-radius:3px;background:",({theme:e})=>e.background,";color:",({theme:e})=>e.contrast,";width:100%;height:100%;overflow-y:auto;display:flex;flex:1;flex-direction:column;height:100%;align-items:center;.cont{max-width:1440px;padding:10px;margin:10px;width:100%;background:",({theme:e})=>e.shadow,";display:flex;flex-direction:column;flex:1;overflow-x:hidden;}.ds-header{padding:10px;padding-bottom:20px;font-size:24px;display:flex;margin:10px;justify-content:space-between;align-items:center;padding-left:0px;.logo{margin-right:10px;}}.ds-cont{margin-bottom:10px;border:1px solid ",({theme:e})=>e.accentNeutral,";border-radius:3px;color:",({theme:e})=>e.contrast,";}.ds-item{padding:10px;border-radius:3px 3px 0px 0px;padding-bottom:14px;display:flex;color:",({theme:e})=>e.contrast,";.logo{padding:10px;padding-right:20px;padding-left:0px;}.ds-text{display:flex;flex-direction:column;flex:1;}.ds-type{font-size:18px;padding:10px;padding-left:0px;color:",({theme:e})=>e.contrast,";}small{font-size:12px;}.setting-icon{justify-self:flex-end;cursor:pointer;}.ds-settings{background:",({theme:e})=>e.background,";}}.plugins-cont{display:flex;flex:1;margin:0px 10px;flex-direction:column;padding:10px 20px;border:1px solid ",({theme:e})=>e.accentNeutral,";border-radius:3px;height:fit-content;.title{font-size:14px;padding:10px 0px;}}"),y=t("div",{target:"e1m1j6jk10"})("color:",({theme:e})=>e.contrast,";display:flex;align-items:center;font-size:12px;padding:0px 10px;white-space:nowrap;",e=>e.width!==null?`width:${e.width}px;`:""," border-radius:3px 0px 0px 3px;display:flex;align-items:center;height:26px;"),w=t("input",{target:"e1m1j6jk9"})("display:flex;flex:1;background:",({theme:e})=>e.deep,";color:",({theme:e})=>e.contrast,";border:1px solid ",e=>e.error?"#b62c14":e.theme.accentNeutral,";border-radius:3px;justify-self:flex-end;height:26px;padding-left:8px;"),O=t("textarea",{target:"e1m1j6jk8"})("display:flex;flex:1;background:",({theme:e})=>e.deep,";color:",({theme:e})=>e.contrast,";border:1px solid ",({theme:e})=>e.accentNeutral,";border-radius:3px;justify-self:flex-end;padding-left:8px;"),j=t("div",{target:"e1m1j6jk7"})("display:flex;flex-direction:row;margin-top:5px;align-items:center;",e=>e!=null&&e.width&&(e==null?void 0:e.width)==="normal"?"":"flex:1;","select{background:",({theme:e})=>e.deep,";color:",({theme:e})=>e.contrast,";border:1px solid ",({theme:e})=>e.accentNeutral,";border-radius:3px;font-size:12px;height:30px;display:flex;align-items:center;padding:1px 2px 1px 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;option{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}"),T=t("div",{target:"e1m1j6jk6"})({name:"1uek1ww",styles:"display:flex;margin:15px 0px;margin-left:14px;flex-wrap:wrap;align-items:center;flex:1;&.internal{max-width:400px;}"}),E=t("div",{target:"e1m1j6jk4"})({name:"e23o9g",styles:"padding:10px"}),P=t("div",{target:"e1m1j6jk3"})("margin:10px 0px;padding-bottom:10px;border-bottom:1px solid ",({theme:e})=>e.background,";"),U=t("div",{target:"e1m1j6jk2"})("padding:10px;border-bottom:1px solid ",({theme:e})=>e.shadow,";border-radius:3px;display:flex;flex:1;align-items:center;justify-content:space-between;.edit-buttons{display:flex;align-items:center;&:disabled{display:none;}}"),q=t("div",{target:"e1m1j6jk1"})("background:",({theme:e})=>e.deep,";padding:10px;border-radius:0px 0px 3px 3px;border-top:1px solid ",({theme:e})=>e.accentNeutral,";"),B=t(f,{target:"e1m1j6jk0"})("background:",e=>e.primary?e.theme.primary:e.theme.neutral,";border:1px solid ",({theme:e})=>e.accentNeutral,";color:",e=>e.primary?e.theme.maxContrast:e.theme.contrast,";margin-left:5px;transition:0.25s all;justify-content:center;padding:3px 12px;height:26px;display:flex;&:hover{background:",({theme:e})=>e.primaryLight,";color:",e=>e.primary?e.theme.contrast:e.theme.maxContrast,";}&:disabled{background:",({theme:e})=>e.neutral,";border:1px solid ",({theme:e})=>e.accentNeutral,";cursor:not-allowed;color:",({theme:e})=>e.contrast,";}@media screen and (max-width: 1070px){display:flex;margin:0;}"),v=""+new URL("metrics_icon-9cba0731.png",import.meta.url).href,n=""+new URL("logs_icon-972f9506.png",import.meta.url).href,k=""+new URL("traces_icon-a9ed0318.png",import.meta.url).href,_={metrics_icon:v,logs_icon:n,traces_icon:k},F=({icon:e,style:a})=>r("img",{height:"20px",className:"logo",style:a,src:_[e]||n,alt:e}),M=e=>{const{value:a,label:o,onChange:d,locked:l,type:s,placeholder:p,error:x,labelWidth:c}=e;return g(j,{children:[r(y,{width:c||null,children:o}),r(w,{className:"ds-input",disabled:l,error:x||!1,onChange:d,type:s,value:m.sanitize(a),placeholder:p})]})},G=e=>a=>{a({type:"SET_DATA_SOURCES",dataSources:e})};var i={},S=u;Object.defineProperty(i,"__esModule",{value:!0});var N=i.default=void 0,C=S(h()),D=b;N=i.default=(0,C.default)((0,D.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"AddOutlined");export{B as D,M as F,j as I,y as L,A as P,U as S,O as T,T as a,P as b,E as c,N as d,F as e,q as f,G as s}; diff --git a/assets/App-9d4e9242.js b/assets/App-5b773dfd.js similarity index 96% rename from assets/App-9d4e9242.js rename to assets/App-5b773dfd.js index fd531ffc..da49a6dd 100644 --- a/assets/App-9d4e9242.js +++ b/assets/App-5b773dfd.js @@ -1 +1 @@ -import{s as O,a as Q,u as Y,c as J,b as X,i as b,l as Z,j as p,d as i,e as z,f as C,F as T,g as H,h as E,N as ee}from"./index-a817164a.js";import{g as te,d as re,M as v,s as ie,a as A,n as I,T as ae,B as oe,b as ne,F as se,c as le,e as ce,P as de,S as pe}from"./consts-b1f58b04.js";import{r as x,R as ue}from"./react-432945ee.js";import{r as S}from"./createSvgIcon-b33a10f9.js";import{j as f}from"./reactDnd-707fca38.js";import{a as h,d as he,m as V,q as R,u as y,L as $,O as fe}from"./vendor-c662a477.js";import"./reactSelect-ab0ea613.js";import"./memoize-acaceb73.js";import"./PluginManagerFactory-cd31b81c.js";import"./DeleteOutlineOutlined-90e52d8e.js";const ge=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],me=e=>{const{absolute:t,children:r,classes:o,flexItem:l,light:s,orientation:d,textAlign:c,variant:a}=e;return X({root:["root",t&&"absolute",a,s&&"light",d==="vertical"&&"vertical",l&&"flexItem",r&&"withChildren",r&&d==="vertical"&&"withChildrenVertical",c==="right"&&d!=="vertical"&&"textAlignRight",c==="left"&&d!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",d==="vertical"&&"wrapperVertical"]},te,o)},ve=O("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>h({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Q(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>h({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>h({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>h({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>h({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),xe=O("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>h({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),B=x.forwardRef(function(t,r){const o=Y({props:t,name:"MuiDivider"}),{absolute:l=!1,children:s,className:d,component:c=s?"div":"hr",flexItem:a=!1,light:g=!1,orientation:m="horizontal",role:u=c!=="hr"?"separator":void 0,textAlign:_="center",variant:n="fullWidth"}=o,K=he(o,ge),w=h({},o,{absolute:l,component:c,flexItem:a,light:g,orientation:m,role:u,textAlign:_,variant:n}),L=me(w);return f.jsx(ve,h({as:c,className:J(L.root,d),role:u,ref:r,ownerState:w},K,{children:s?f.jsx(xe,{className:L.wrapper,ownerState:w,children:s}):null}))});B.muiSkipListHighlight=!0;const P=B;var N={},be=b;Object.defineProperty(N,"__esModule",{value:!0});var U=N.default=void 0,Se=be(S()),$e=f;U=N.default=(0,Se.default)((0,$e.jsx)("path",{d:"M19.3 16.9c.4-.7.7-1.5.7-2.4 0-2.5-2-4.5-4.5-4.5S11 12 11 14.5s2 4.5 4.5 4.5c.9 0 1.7-.3 2.4-.7l3.2 3.2 1.4-1.4zm-3.8.1c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5M12 20v2C6.48 22 2 17.52 2 12S6.48 2 12 2c4.84 0 8.87 3.44 9.8 8h-2.07c-.64-2.46-2.4-4.47-4.73-5.41V5c0 1.1-.9 2-2 2h-2v2c0 .55-.45 1-1 1H8v2h2v3H9l-4.79-4.79C4.08 10.79 4 11.38 4 12c0 4.41 3.59 8 8 8"}),"TravelExplore");var M={},_e=b;Object.defineProperty(M,"__esModule",{value:!0});var q=M.default=void 0,we=_e(S()),ye=f;q=M.default=(0,we.default)((0,ye.jsx)("path",{d:"M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11"}),"Extension");var D={},Ce=b;Object.defineProperty(D,"__esModule",{value:!0});var W=D.default=void 0,Re=Ce(S()),Ne=f;W=D.default=(0,Re.default)((0,Ne.jsx)("path",{d:"M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4"}),"PersonOutlineOutlined");var k={},Me=b;Object.defineProperty(k,"__esModule",{value:!0});var F=k.default=void 0,De=Me(S()),ke=f;F=k.default=(0,De.default)((0,ke.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"Storage");function je(e){const{c:t}=e,r=V(),o=Z(),{hash:l}=R(),s="Link Copied To Clipboard";function d(){r(ie(!0)),setTimeout(()=>{var c;if(navigator!=null&&navigator.clipboard&&window.isSecureContext)(c=navigator==null?void 0:navigator.clipboard)==null||c.writeText(window.location.href).then(function(){const a=o.add(l,{data:{href:window.location.href},description:"From Shared URL"},10);r(A(a)),r(z({type:I.success,message:s}))},function(a){console.log("error on copy",a)});else{let a=document.createElement("textarea");return a.value=window.location.href,a.style.position="fixed",a.style.left="-999999px",a.style.top="-999999px",document.body.appendChild(a),a.focus(),a.select(),new Promise((g,m)=>{const u=o.add(l,{data:window.location.href,description:"From Shared URL"},10);r(A(u)),document.execCommand("copy")?g():m(),a.remove(),r(z({type:I.success,message:s}))})}},200)}return p(v,{onClick:d,disabled:!1,style:{fontSize:"12px"},children:[" ",i(re,{fontSize:"small",className:t}),i("span",{children:"Copy Link"})]})}var j={},Le=b;Object.defineProperty(j,"__esModule",{value:!0});var G=j.default=void 0,ze=Le(S()),Ae=f;G=j.default=(0,ze.default)((0,Ae.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");const Ie=e=>({color:`${e.contrast}`,overflow:"visible",fontSize:"12px",background:`${e.shadow}`,border:`1px solid ${e.accentNeutral}`,mt:1.5,"& .MuiAvatar-root":{width:32,height:32,ml:-.5,mr:1},"&:before":{content:'""',display:"block",position:"absolute",top:0,right:14,width:10,height:10,borderLeft:`1px solid ${e.accentNeutral}`,borderTop:`1px solid ${e.accentNeutral}`,bgcolor:`${e.shadow}`,transform:"translateY(-50%) rotate(45deg)",zIndex:0},"& .icon":{fontSize:"16px",marginRight:"4px",color:`${e.contrast}`},"& .item":{fontSize:"12px",color:`${e.contrast}`}}),Pe=e=>({display:"flex",justifyContent:"center",alignItems:"center",marginLeft:2,paddingLeft:0,cursor:"pointer",paddingRight:0,width:"30px",height:"30px",background:"none",borderRadius:"3px",color:`${e.accentNeutral}`,border:`1px solid ${e.accentNeutral}`});function Oe(){const{key:e}=R(),t=y(n=>n.showDataSourceSetting),r=y(n=>n.currentUser.role),o=V(),l=C(),[s,d]=ue.useState(null),c=x.useMemo(()=>!!s,[s]),[a,g]=x.useState(r||"superAdmin");x.useEffect(()=>{g(r)},[r]),x.useEffect(()=>{u()},[e]);const m=n=>{n.stopPropagation(),n.preventDefault(),d(()=>n.currentTarget)},u=n=>{n==null||n.stopPropagation(),n==null||n.preventDefault(),d(()=>{})},_=()=>{u(),o(ce(!0))};return p(T,{children:[i(oe,{sx:{display:"flex",alignItems:"center",textAlign:"center"},children:i(ae,{title:"Settings",children:i("button",{onClick:m,style:Pe(l),"aria-controls":c?"account-menu":void 0,"aria-haspopup":"true","aria-expanded":c?"true":void 0,children:i(G,{style:{width:"14px",height:"14px"}})})})}),p(ne,{id:"account-menu",anchorEl:s,open:c,onClose:u,onClick:m,PaperProps:{elevation:0,sx:Ie(l)},TransitionComponent:se,transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},children:[i(je,{c:"icon"}),i(P,{}),p(v,{onClick:_,className:"item",children:[i(le,{className:"icon"})," General Settings"]}),i(P,{}),i($,{to:"",children:p(v,{className:"item",children:[i(U,{className:"icon"}),"Search"]})}),i($,{to:"/plugins",children:p(v,{className:"item",children:[i(q,{className:"icon"}),"Plugins"]})}),i($,{to:"/users",children:p(v,{className:"item",children:[i(W,{className:"icon"}),"Users"]})}),t&&(a==="admin"||a==="superAdmin")&&i($,{to:"datasources",children:p(v,{className:"item",children:[i(F,{className:"icon"}),"Datasources"]})})]})]})}const Te=""+new URL("qryn-logo-cd0b42d9.png",import.meta.url).href,He=()=>{const r=R().pathname.split("/").map((o,l)=>o===""&&l===0?{name:"home",link:""}:{name:`/${o}`,link:o});return i(T,{children:r.map(({name:o,link:l},s)=>i("a",{href:l,className:"bread-link",children:o},s))})},Ee=e=>E("background:",e.shadow,";height:30px;padding:4px;display:flex;align-items:center;border-bottom:1px solid ",e.accentNeutral,";.logo-section{padding-top:4px;margin:0;.version{color:",e.contrast,";font-size:10px;margin-left:5px;margin-top:4px;}.path{color:",e.contrast,";margin-top:4px;margin-left:20px;flex:1;font-weight:bold;text-transform:uppercase;font-size:10px;letter-spacing:1px;.bread-link{cursor:pointer;&:hover{color:",e.primary,";}}}}",""),Ve=()=>{const e=C();return p("div",{className:H(Ee(e)),children:[p("div",{className:"logo-section",children:[i("img",{src:Te,style:{height:"20px"},alt:"Qryn View",height:"20px",className:"logo"}),i("p",{className:"version",children:"0.28.8"}),i("p",{className:"path",children:i(He,{})})]}),i(de,{section:"Status Bar",localProps:e}),i(Oe,{})]})},Be=e=>E("background:",e.background,";display:flex;flex-direction:column;height:100vh;flex:1;","");function Ze(){const e=C(),t=y(r=>r.settingsDialogOpen);return p("div",{className:H(Be(e)),children:[i(Ve,{}),i(fe,{}),i(ee,{}),i(pe,{open:t})]})}export{Be as MainAppStyles,Ze as default}; +import{s as O,a as Q,u as Y,c as J,b as X,i as b,l as Z,j as p,d as i,e as z,f as C,F as T,g as H,h as E,N as ee}from"./index-284a6932.js";import{g as te,d as re,M as v,s as ie,a as A,n as I,T as ae,B as oe,b as ne,F as se,c as le,e as ce,P as de,S as pe}from"./consts-a4ab3ea8.js";import{r as x,R as ue}from"./react-432945ee.js";import{r as S}from"./createSvgIcon-453c5eac.js";import{j as f}from"./reactDnd-707fca38.js";import{a as h,d as he,m as V,q as R,u as y,L as $,O as fe}from"./vendor-c662a477.js";import"./reactSelect-ab0ea613.js";import"./memoize-acaceb73.js";import"./PluginManagerFactory-a67ca61d.js";import"./DeleteOutlineOutlined-c50f292a.js";const ge=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],me=e=>{const{absolute:t,children:r,classes:o,flexItem:l,light:s,orientation:d,textAlign:c,variant:a}=e;return X({root:["root",t&&"absolute",a,s&&"light",d==="vertical"&&"vertical",l&&"flexItem",r&&"withChildren",r&&d==="vertical"&&"withChildrenVertical",c==="right"&&d!=="vertical"&&"textAlignRight",c==="left"&&d!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",d==="vertical"&&"wrapperVertical"]},te,o)},ve=O("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>h({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Q(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>h({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>h({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>h({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>h({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),xe=O("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>h({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),B=x.forwardRef(function(t,r){const o=Y({props:t,name:"MuiDivider"}),{absolute:l=!1,children:s,className:d,component:c=s?"div":"hr",flexItem:a=!1,light:g=!1,orientation:m="horizontal",role:u=c!=="hr"?"separator":void 0,textAlign:_="center",variant:n="fullWidth"}=o,K=he(o,ge),w=h({},o,{absolute:l,component:c,flexItem:a,light:g,orientation:m,role:u,textAlign:_,variant:n}),L=me(w);return f.jsx(ve,h({as:c,className:J(L.root,d),role:u,ref:r,ownerState:w},K,{children:s?f.jsx(xe,{className:L.wrapper,ownerState:w,children:s}):null}))});B.muiSkipListHighlight=!0;const P=B;var N={},be=b;Object.defineProperty(N,"__esModule",{value:!0});var U=N.default=void 0,Se=be(S()),$e=f;U=N.default=(0,Se.default)((0,$e.jsx)("path",{d:"M19.3 16.9c.4-.7.7-1.5.7-2.4 0-2.5-2-4.5-4.5-4.5S11 12 11 14.5s2 4.5 4.5 4.5c.9 0 1.7-.3 2.4-.7l3.2 3.2 1.4-1.4zm-3.8.1c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5M12 20v2C6.48 22 2 17.52 2 12S6.48 2 12 2c4.84 0 8.87 3.44 9.8 8h-2.07c-.64-2.46-2.4-4.47-4.73-5.41V5c0 1.1-.9 2-2 2h-2v2c0 .55-.45 1-1 1H8v2h2v3H9l-4.79-4.79C4.08 10.79 4 11.38 4 12c0 4.41 3.59 8 8 8"}),"TravelExplore");var M={},_e=b;Object.defineProperty(M,"__esModule",{value:!0});var q=M.default=void 0,we=_e(S()),ye=f;q=M.default=(0,we.default)((0,ye.jsx)("path",{d:"M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11"}),"Extension");var D={},Ce=b;Object.defineProperty(D,"__esModule",{value:!0});var W=D.default=void 0,Re=Ce(S()),Ne=f;W=D.default=(0,Re.default)((0,Ne.jsx)("path",{d:"M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4"}),"PersonOutlineOutlined");var k={},Me=b;Object.defineProperty(k,"__esModule",{value:!0});var F=k.default=void 0,De=Me(S()),ke=f;F=k.default=(0,De.default)((0,ke.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"Storage");function je(e){const{c:t}=e,r=V(),o=Z(),{hash:l}=R(),s="Link Copied To Clipboard";function d(){r(ie(!0)),setTimeout(()=>{var c;if(navigator!=null&&navigator.clipboard&&window.isSecureContext)(c=navigator==null?void 0:navigator.clipboard)==null||c.writeText(window.location.href).then(function(){const a=o.add(l,{data:{href:window.location.href},description:"From Shared URL"},10);r(A(a)),r(z({type:I.success,message:s}))},function(a){console.log("error on copy",a)});else{let a=document.createElement("textarea");return a.value=window.location.href,a.style.position="fixed",a.style.left="-999999px",a.style.top="-999999px",document.body.appendChild(a),a.focus(),a.select(),new Promise((g,m)=>{const u=o.add(l,{data:window.location.href,description:"From Shared URL"},10);r(A(u)),document.execCommand("copy")?g():m(),a.remove(),r(z({type:I.success,message:s}))})}},200)}return p(v,{onClick:d,disabled:!1,style:{fontSize:"12px"},children:[" ",i(re,{fontSize:"small",className:t}),i("span",{children:"Copy Link"})]})}var j={},Le=b;Object.defineProperty(j,"__esModule",{value:!0});var G=j.default=void 0,ze=Le(S()),Ae=f;G=j.default=(0,ze.default)((0,Ae.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");const Ie=e=>({color:`${e.contrast}`,overflow:"visible",fontSize:"12px",background:`${e.shadow}`,border:`1px solid ${e.accentNeutral}`,mt:1.5,"& .MuiAvatar-root":{width:32,height:32,ml:-.5,mr:1},"&:before":{content:'""',display:"block",position:"absolute",top:0,right:14,width:10,height:10,borderLeft:`1px solid ${e.accentNeutral}`,borderTop:`1px solid ${e.accentNeutral}`,bgcolor:`${e.shadow}`,transform:"translateY(-50%) rotate(45deg)",zIndex:0},"& .icon":{fontSize:"16px",marginRight:"4px",color:`${e.contrast}`},"& .item":{fontSize:"12px",color:`${e.contrast}`}}),Pe=e=>({display:"flex",justifyContent:"center",alignItems:"center",marginLeft:2,paddingLeft:0,cursor:"pointer",paddingRight:0,width:"30px",height:"30px",background:"none",borderRadius:"3px",color:`${e.accentNeutral}`,border:`1px solid ${e.accentNeutral}`});function Oe(){const{key:e}=R(),t=y(n=>n.showDataSourceSetting),r=y(n=>n.currentUser.role),o=V(),l=C(),[s,d]=ue.useState(null),c=x.useMemo(()=>!!s,[s]),[a,g]=x.useState(r||"superAdmin");x.useEffect(()=>{g(r)},[r]),x.useEffect(()=>{u()},[e]);const m=n=>{n.stopPropagation(),n.preventDefault(),d(()=>n.currentTarget)},u=n=>{n==null||n.stopPropagation(),n==null||n.preventDefault(),d(()=>{})},_=()=>{u(),o(ce(!0))};return p(T,{children:[i(oe,{sx:{display:"flex",alignItems:"center",textAlign:"center"},children:i(ae,{title:"Settings",children:i("button",{onClick:m,style:Pe(l),"aria-controls":c?"account-menu":void 0,"aria-haspopup":"true","aria-expanded":c?"true":void 0,children:i(G,{style:{width:"14px",height:"14px"}})})})}),p(ne,{id:"account-menu",anchorEl:s,open:c,onClose:u,onClick:m,PaperProps:{elevation:0,sx:Ie(l)},TransitionComponent:se,transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},children:[i(je,{c:"icon"}),i(P,{}),p(v,{onClick:_,className:"item",children:[i(le,{className:"icon"})," General Settings"]}),i(P,{}),i($,{to:"",children:p(v,{className:"item",children:[i(U,{className:"icon"}),"Search"]})}),i($,{to:"/plugins",children:p(v,{className:"item",children:[i(q,{className:"icon"}),"Plugins"]})}),i($,{to:"/users",children:p(v,{className:"item",children:[i(W,{className:"icon"}),"Users"]})}),t&&(a==="admin"||a==="superAdmin")&&i($,{to:"datasources",children:p(v,{className:"item",children:[i(F,{className:"icon"}),"Datasources"]})})]})]})}const Te=""+new URL("qryn-logo-cd0b42d9.png",import.meta.url).href,He=()=>{const r=R().pathname.split("/").map((o,l)=>o===""&&l===0?{name:"home",link:""}:{name:`/${o}`,link:o});return i(T,{children:r.map(({name:o,link:l},s)=>i("a",{href:l,className:"bread-link",children:o},s))})},Ee=e=>E("background:",e.shadow,";height:30px;padding:4px;display:flex;align-items:center;border-bottom:1px solid ",e.accentNeutral,";.logo-section{padding-top:4px;margin:0;.version{color:",e.contrast,";font-size:10px;margin-left:5px;margin-top:4px;}.path{color:",e.contrast,";margin-top:4px;margin-left:20px;flex:1;font-weight:bold;text-transform:uppercase;font-size:10px;letter-spacing:1px;.bread-link{cursor:pointer;&:hover{color:",e.primary,";}}}}",""),Ve=()=>{const e=C();return p("div",{className:H(Ee(e)),children:[p("div",{className:"logo-section",children:[i("img",{src:Te,style:{height:"20px"},alt:"Qryn View",height:"20px",className:"logo"}),i("p",{className:"version",children:"0.28.8"}),i("p",{className:"path",children:i(He,{})})]}),i(de,{section:"Status Bar",localProps:e}),i(Oe,{})]})},Be=e=>E("background:",e.background,";display:flex;flex-direction:column;height:100vh;flex:1;","");function Ze(){const e=C(),t=y(r=>r.settingsDialogOpen);return p("div",{className:H(Be(e)),children:[i(Ve,{}),i(fe,{}),i(ee,{}),i(pe,{open:t})]})}export{Be as MainAppStyles,Ze as default}; diff --git a/assets/DataSources-47751bf7.js b/assets/DataSources-19590ba7.js similarity index 98% rename from assets/DataSources-47751bf7.js rename to assets/DataSources-19590ba7.js index 6325c947..687944e8 100644 --- a/assets/DataSources-47751bf7.js +++ b/assets/DataSources-19590ba7.js @@ -1 +1 @@ -var de=Object.defineProperty;var ue=(t,n,s)=>n in t?de(t,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[n]=s;var I=(t,n,s)=>(ue(t,typeof n!="symbol"?n+"":n,s),s);import{d as e,j as h,g as J,D as w,h as T,i as V,F as P,f as M,Q as he,k as pe,e as fe}from"./index-a817164a.js";import{r as O}from"./react-432945ee.js";import{m as E,u as A,n as Z,s as ge,L as me,v as Se,w as ve,x as ye,p as xe,R as Ce}from"./vendor-c662a477.js";import{D as ke,L as $,I as H,d as we,S as Ne,a as R,F,s as z,b as be,c as B,T as Oe,e as ee,f as De,P as Le}from"./AddOutlined-395174d1.js";import{d as te,s as ze}from"./DeleteOutlineOutlined-90e52d8e.js";import{S as U,r as Q}from"./createSvgIcon-b33a10f9.js";import{j as G}from"./reactDnd-707fca38.js";import{d as ne}from"./reactSelect-ab0ea613.js";import"./memoize-acaceb73.js";const j=t=>{const{value:n,onClick:s,primary:c,title:l}=t;return e(ke,{title:l,onClick:s,primary:c,children:n})},Ae=t=>T("display:flex;flex:",t?1:0,";",""),ae=({value:t,locked:n,onChange:s,opts:c,label:l,labelWidth:f,name:S,fullWidth:C,width:v})=>{const[y,x]=O.useState(""),N=O.useRef(null),k=O.useMemo(()=>typeof c[0]=="string"?c.map(u=>({value:u,name:u})):c,[c]);return O.useEffect(()=>{var m,a;const u=(m=k==null?void 0:k.find(r=>r.name===t))==null?void 0:m.value;u&&((a=N==null?void 0:N.current)==null?void 0:a.value)!==u&&(x(u),N.current.value=u)},[t]),h(H,{width:v,children:[(l==null?void 0:l.length)>0&&e($,{width:f||null,children:l}),e("select",{ref:N,className:J(Ae(C)),disabled:n,defaultValue:w.sanitize(y),onChange:u=>s(u,S),children:k==null?void 0:k.map((u,m)=>e("option",{value:w.sanitize(u.value),children:u.name},m))})]})},se=t=>{const{value:n,onChange:s,locked:c,label:l}=t;return h(H,{children:[e($,{children:l}),e(U,{disabled:c,size:"small",checked:n,onChange:s})]})};var W={},Ie=V;Object.defineProperty(W,"__esModule",{value:!0});var ie=W.default=void 0,Je=Ie(Q()),Fe=G;ie=W.default=(0,Je.default)((0,Fe.jsx)("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4z"}),"CachedOutlined");var K={},Te=V;Object.defineProperty(K,"__esModule",{value:!0});var re=K.default=void 0,Ee=Te(Q()),Re=G;re=K.default=(0,Ee.default)((0,Re.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");const le=t=>n=>{n({type:"SET_IS_DATASOURCE_SAVED",isDsSaved:t})};var X={},_e=V;Object.defineProperty(X,"__esModule",{value:!0});var oe=X.default=void 0,je=_e(Q()),Pe=G;oe=X.default=(0,je.default)((0,Pe.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");const ce=T({name:"vtwnvy",styles:"height:12px!important;width:12px!important;color:white;margin:0px 4px"}),Me=t=>T("display:flex;align-items:center;background:",t.primary,";color:white;font-size:11px;padding:4px;border-radius:3px;margin-right:10px;cursor:pointer;span{margin-right:4px;font-weight:bold;}",""),Ue=T({name:"1t9g6tg",styles:"display:flex;align-items:center;background:#b62c14;color:white;font-size:12px;padding:4px;border-radius:3px;margin-right:10px;cursor:pointer;span{margin-right:4px;font-weight:bold;}"}),$e=T({name:"9hkg7e",styles:"display:flex;align-items:center;font-size:12px;&.loading-icon{height:14px;width:14px;}"}),He=({setIsSaved:t})=>{const n=M();return h("div",{className:J(Me(n)),onClick:s=>t(!1),children:[e(re,{className:J(ce)})," ",e("span",{children:"Saved"})]})},Y=({errorText:t})=>h("div",{className:J(Ue),children:[e(oe,{className:J(ce)})," ",e("span",{children:t})]});function q(t){const{onClickAdd:n,isAdd:s,title:c,isEditing:l,fieldErrors:f}=t,S=E(),[C,v]=O.useState(!1);return O.useEffect(()=>(l&&(setTimeout(()=>{v(!0),S(le(!0))},800),v(!1)),v(!1),()=>{v(!1)}),[l]),h(Ne,{children:[c,h("div",{className:"edit-buttons",children:[l&&h("div",{className:$e,children:[e(ie,{style:{height:"13px",width:"13px"}})," ","Saving ..."]}),(f==null?void 0:f.protocol)&&e(Y,{errorText:"Insecure Mixed Content. Mixing HTTP and HTTPS is insecure and is not supported."}),(f==null?void 0:f.url)&&e(Y,{errorText:"Please complete API URL"}),C&&e(He,{setIsSaved:v}),s&&e(P,{children:e(we,{fontSize:"small",style:{cursor:"pointer",display:"flex"},onClick:n})})]})]})}const qe=t=>{const n=E(),s=A(u=>u.dataSources),[c,l]=O.useState(!1),{headers:f,id:S}=t,[C,v]=O.useState((t==null?void 0:t.cors)||!1),y=u=>{const m=u.target.checked,a=s.map(r=>(r.id===S&&(r.cors=m),r));v(()=>m),localStorage.setItem("dataSources",JSON.stringify(a)),n(z(a))},x=(u,m,a)=>{l(()=>!0);const r=u.target.value,g=(s.find(p=>p.id===S).headers||[]).map(p=>(p.id===m&&(p[a]=r),p)),o=s.map(p=>(p.id===S&&(p.headers=[...g]),p));localStorage.setItem("dataSources",JSON.stringify(o)),n(z(o)),setTimeout(()=>{l(()=>!1)},800)},N=u=>{u.preventDefault();const m=s==null?void 0:s.find(i=>i.id===S),a=m.headers,r=JSON.parse(JSON.stringify([...s]));if(f.length>0){const i={...a[a.length-1],id:Z()},d={...m,headers:[...m.headers,i]},g=r==null?void 0:r.map(o=>o.id===S?{...d}:o);localStorage.setItem("dataSources",JSON.stringify(g)),n(z(g))}},k=(u,m)=>{const a=s==null?void 0:s.find(o=>o.id===S),i=[...f].filter(o=>o.id!==m),d={...a,headers:[...i]},g=s==null?void 0:s.map(o=>o.id===S?{...d}:o);localStorage.setItem("dataSources",JSON.stringify(g)),n(z(g))};return e("div",{className:"",children:f&&h(P,{children:[e(q,{title:"Custom HTTP Headers",isEdit:!1,isAdd:!0,isEditing:c,onClickAdd:N}),h(R,{children:[e($,{children:"Use CORS"})," ",e(U,{size:"small",checked:C,onChange:y})]}),f==null?void 0:f.map((u,m)=>e(R,{children:h(H,{children:[e(F,{label:"header",value:w.sanitize(u.header),onChange:a=>x(a,u.id,"header")}),e(F,{label:"value",value:w.sanitize(u.value),onChange:a=>x(a,u.id,"value")}),e(te,{onClick:a=>k(a,u.id),style:{cursor:"pointer",marginLeft:"10px"},fontSize:"small"})]})},m))]})})};function Ve(t){const n=ge(),s=M(),c=A(y=>y.urlLocation),l=E(),{title:f}=t,S=A(y=>y.isDsSaved),C=O.useMemo(()=>S?"Save":"Back",[S]),v=()=>{let y=(c==null?void 0:c.length)>0;l(le(!1)),n((y||C==="Back")&&f!=="DataSources"?-1:"")};return h("div",{className:"ds-header",children:[e("div",{style:{display:"flex",alignItems:"center"},children:h("div",{style:{display:"flex",flexDirection:"column"},children:[h("div",{style:{display:"flex"},children:[e(he,{}),e("h1",{children:f})]}),h("p",{style:{color:s.contrast,fontSize:"10px",marginTop:"5px",marginLeft:"10px",opacity:".5"},children:["v","0.28.8"]})]})}),e(j,{value:w.sanitize(C),onClick:v,editing:!0,primary:S})]})}const Be=t=>{const{id:n,name:s,regex:c,urlLabel:l,internalLink:f,linkType:S,locked:C,dataSourceId:v,fieldEditing:y}=t,x=E(),N=A(i=>i.dataSources),k=O.useMemo(()=>N.map(i=>({name:i.name,value:i.id})),[N]),u=(i,d)=>{y();const g=JSON.parse(JSON.stringify(N)),L=g.find(b=>b.id===v).linkedFields.map(b=>b.id===n?{...b,[i]:d}:b);return g.map(b=>b.id===v?{...b,linkedFields:L}:b)},m=i=>{y();const d=JSON.parse(JSON.stringify(N)),p=d.find(b=>b.id===v).linkedFields.filter(b=>b.id!==n),L=d.map(b=>b.id===v?{...b,linkedFields:[...p]}:b);localStorage.setItem("dataSources",JSON.stringify(L)),x(z(L))},a=(i,d)=>{y();const g=i.target.value,o=u(d,g);localStorage.setItem("dataSources",JSON.stringify(o)),x(z(o))},r=(i,d)=>{y();const g=!!i.target.checked,o=u(d,g);localStorage.setItem("dataSources",JSON.stringify(o)),x(z(o))};return h(be,{children:[h(R,{children:[e(F,{value:w.sanitize(s),label:"Name",onChange:i=>a(i,"name")}),e(F,{value:w.sanitize(c),label:"Regex",onChange:i=>a(i,"regex")}),e(F,{value:w.sanitize(l),label:"URL Label",onChange:i=>a(i,"urlLabel")}),e(te,{onClick:m,fontSize:"small",style:{marginLeft:"10px",cursor:"pointer",display:C?"none":"inline-block"}})]}),h(R,{className:"internal",children:[e(se,{value:f,label:"Internal Link",onChange:i=>r(i,"internalLink")}),e(ae,{label:"",value:w.sanitize(S),opts:k,selectType:"linkedField",onChange:i=>a(i,"linkID")})]})]})};class Qe{constructor(){I(this,"id");I(this,"dataSource");I(this,"ds_id");I(this,"name");I(this,"regex");I(this,"query");I(this,"urlLabel");I(this,"url");I(this,"internalLink");I(this,"linkType");this.id=Z(),this.dataSource="Logs",this.ds_id="logs",this.name="traceID",this.regex='^.*?"traceID" ="(w+)".*$/',this.query="${__value.raw}",this.urlLabel="",this.url="",this.internalLink=!0,this.linkType="Traces"}create(){const{id:n,dataSource:s,ds_id:c,name:l,regex:f,query:S,urlLabel:C,url:v,internalLink:y,linkType:x}=this;return{id:n,dataSource:s,ds_id:c,name:l,regex:f,query:S,urlLabel:C,url:v,internalLink:y,linkType:x}}}const Ge=t=>{const{linkedFields:n,name:s,id:c}=t,l=A(x=>x.dataSources),f=E(),[S,C]=O.useState(!1),v=()=>{const x=new Qe;x.dataSource=s,x.create();const k=[...JSON.parse(JSON.stringify(n)),{...x}],u=JSON.parse(JSON.stringify(l)),m=u==null?void 0:u.map(a=>a.id===c?{...a,linkedFields:k}:a);localStorage.setItem("dataSources",JSON.stringify(m)),f(z(m))},y=()=>{C(()=>!0),setTimeout(()=>{C(()=>!1)},800)};return(n==null?void 0:n.length)>0?h(P,{children:[e(q,{title:"Linked Fields",isEdit:!0,isAdd:!0,onClickAdd:v,isEditing:S}),e(B,{children:n==null?void 0:n.map((x,N)=>e(Be,{...x,dataSourceId:c,locked:!1,fieldEditing:y},N))})]}):null};function We(t){const{value:n,label:s,onChange:c,placeholder:l}=t;return h(H,{children:[e($,{children:s}),e(Oe,{className:"ds-input",onChange:c,placeholder:l,value:w.sanitize(n)})]})}function Ke(t){const{auth:n,id:s}=t,c=E(),l=A(a=>a.dataSources),[f,S]=O.useState([]),[C,v]=O.useState(!1),y=O.useMemo(()=>{var a;return(a=Object.entries(n))==null?void 0:a.map(([r,i])=>({name:r,...i})).filter(r=>r.name!=="fields")},[n]),x=O.useMemo(()=>{var a;return(a=Object.entries(n))==null?void 0:a.map(([r,i])=>({name:r,...i})).find(r=>r.name==="fields")},[n]),N=(a,r)=>{const i=JSON.parse(JSON.stringify(n));i[r].value=a;const g=JSON.parse(JSON.stringify(l)).map(o=>o.id===s?{...o,auth:{...i}}:o);return localStorage.setItem("dataSources",JSON.stringify(g)),c(z(g)),g};O.useEffect(()=>{var r,i;const a=(i=(r=y.filter(d=>d.form_type==="switch"&&!!(d!=null&&d.value)))==null?void 0:r.filter(d=>!!d.withFields))==null?void 0:i.map(d=>d.name);S(a)},[y,S]);const k=(a,r)=>{v(()=>!0);const i=a.target.value;N(i,r),setTimeout(()=>{v(()=>!1)},800)},u=(a,r)=>{v(()=>!0);const i=a.target.checked;N(i,r),setTimeout(()=>{v(()=>!1)},800)},m=(a,r,i)=>{var b;v(()=>!0);const d=a.target.value,g=JSON.parse(JSON.stringify(n)),o={...g,fields:{...g.fields,[i]:(b=g==null?void 0:g.fields[i])==null?void 0:b.map(D=>D.name===r?(D.value=d,{...D}):D)}},p=JSON.parse(JSON.stringify([...l])),L=p==null?void 0:p.map(D=>(D.id===s&&(D.auth=o),D));localStorage.setItem("dataSources",JSON.stringify(L)),c(z(L)),setTimeout(()=>{v(()=>!1)},600)};return h(P,{children:[e(q,{title:"HTTP Auth Fields",isEditing:C,isEdit:!1,isAdd:!1}),h(B,{children:[y&&y.map((a,r)=>a.form_type==="select"?e(ae,{value:w.sanitize(a.value),name:w.sanitize(a.name),onChange:i=>k(i,a.name),locked:!1,opts:a.options,label:a.label},r):a.form_type==="switch"?e(se,{label:a.label,value:a.value,onChange:i=>u(i,a.name)},r):null),e(R,{children:f&&f.map((a,r)=>{var i;return e(R,{children:x[a]&&((i=x[a])==null?void 0:i.map((d,g)=>d.form_type==="input"||d.form_type==="password"?e(F,{onChange:o=>m(o,d.name,a),type:d.form_type,value:w.sanitize(d.value),label:d.label,placeholder:d.placeholder},g):d.form_type==="textarea"?e(We,{onChange:o=>m(o,d.name,a),value:w.sanitize(d.value),label:d.label,placeholder:d.placeholder},g):null))},r)})})]})]})}const Xe=pe("div",{target:"emiacor0"})("position:absolute;left:0;top:0;background:",({theme:t})=>t.background,";display:flex;flex-direction:culumn;justify-content:center;color:",({theme:t})=>t.contrast,";flex:1;height:100%;width:100%;.body-cont{max-width:1440px;padding:10px;margin:10px;border-radius:3px;flex:1;background:",({theme:t})=>t.shadow,";overflow-y:auto;overflow-x:hidden;}.ds-header{padding:10px;padding-bottom:20px;font-size:24px;flex:1;display:flex;width:100%;justify-content:space-between;align-items:center;padding-left:0px;.logo{margin-right:10px;}}.ds-cont{margin-bottom:10px;border:1px solid ",({theme:t})=>t.accentNeutral,";border-radius:3px;overflow-y:auto;}.ds-item{padding:10px;border-radius:3px 3px 0px 0px;padding-bottom:14px;display:flex;.logo{padding:10px;padding-right:20px;padding-left:0px;}.ds-text{display:flex;flex-direction:column;flex:1;}.ds-type{font-size:18px;padding:10px;padding-left:0px;color:",({theme:t})=>t.contrast,";}small{font-size:12px;}.setting-icon{justify-self:flex-end;cursor:pointer;}.ds-settings{background:",({theme:t})=>t.background,";}}");function Ye(){const t=A(({dataSources:n})=>n);return(t==null?void 0:t.length)>0?e("div",{style:{margin:"10px"},children:t.map((n,s)=>{const{icon:c,id:l,name:f,type:S,url:C}=n;return e("div",{className:"ds-cont",children:e(me,{to:l,children:h("div",{className:"ds-item",children:[e(ee,{icon:c}),h("div",{className:"ds-text",children:[e("div",{className:"ds-type",children:f}),h("span",{children:[h("small",{children:[S," | "," "]}),e("small",{style:{userSelect:"all"},children:C})]})]})]})})},s)})}):e("div",{children:e("h1",{children:"No Data Sources Found."})})}const Ze=t=>{const{headers:n,id:s,linkedFields:c,name:l,url:f,cors:S}=t,C=E(),v=A(({dataSources:r})=>r),[y,x]=O.useState({url:!1,protocol:!1}),N=(r,i)=>{let d=i;r==="url"&&(d=i.replace(/\/$/,""));const g=JSON.parse(JSON.stringify(v));return g.forEach(o=>{o.id===s&&(o[r]=d)}),g},[k,u]=O.useState(!1),m=r=>{try{const i=window.location.protocol,d=new URL(r).protocol;return{value:i===d,error:""}}catch{return{value:!1,error:"url"}}},a=(r,i)=>{u(()=>!0);const d=r.target.value;if(i==="url"){const o=m(d);if((o==null?void 0:o.error)==="url"&&x(p=>({...p,url:!0})),!(o!=null&&o.value)&&(o==null?void 0:o.error)===""&&x(p=>({...p,protocol:!0})),(o==null?void 0:o.error)===""&&(o!=null&&o.value)){x(L=>({...L,protocol:!1,url:!1}));const p=N(i,d);localStorage.setItem("dataSources",JSON.stringify(p)),C(z(p)),setTimeout(()=>{u(()=>!1)},800)}}const g=N(i,d);localStorage.setItem("dataSources",JSON.stringify(g)),C(z(g)),setTimeout(()=>{u(()=>!1)},800)};return h(De,{children:[e(q,{isEditing:k,isEdit:!0,isAdd:!1,title:"DataSource Settings",fieldErrors:y}),e(B,{children:h(R,{children:[e(F,{value:w.sanitize(l),label:"Name",onChange:r=>a(r,"name")}),e(F,{value:w.sanitize(f),label:"URL",error:y.url||y.protocol,onChange:r=>a(r,"url")})]})}),e(Ke,{...t}),e(qe,{cors:S,headers:n,id:s}),e(Ge,{...t,linkedFields:c})]})},et=T({name:"9rq8lq",styles:"display:flex;align-items:center;justify-content:space-between;margin-right:20px"});function tt(t,n,s){let c={},l=s&&s!==""&&n&&n!=="",f=l?`${btoa(n)}:${btoa(s)}`:"",S=JSON.parse(JSON.stringify(t));return l&&f&&(c.auth=f),c.url=S,JSON.stringify(c)}function nt(t){const{url:n,auth:{basicAuth:s,fields:{basicAuth:[c,l]}}}=t,[f,S]=ve(["qryn-dev-cookie","qryn-settings"]),C=E(),v=A(k=>k.dataSources),y=()=>{const k=[...v],u=JSON.parse(JSON.stringify(k)),m=u==null?void 0:u.map(a=>({...a,url:w.sanitize(n),auth:{...a.auth,basicAuth:{...a.auth.basicAuth,value:s.value},fields:{...a.auth.fields,basicAuth:[...a.auth.fields.basicAuth].map(r=>r.name==="user"?{...r,value:w.sanitize(c.value)}:r.name==="password"?{...r,value:w.sanitize(l.value)}:r)}}}));localStorage.setItem("dataSources",JSON.stringify(m)),C(z(m)),C(fe({type:"success",message:"Set same URL and Basic Auth for All Data Sources"}))};function x(){const k=new Date;new Date().setDate(k.getDate()+1);try{S("qryn-settings",tt(n,c.value,l.value),{path:""})}catch(m){console.log(m)}}function N(){const{headers:k,id:u,name:m,linkedFields:a}=t,r=k==null?void 0:k.map(({header:o,value:p})=>({[o]:p})),d=`data:text/json;chatset=utf-8,${encodeURIComponent(JSON.stringify({id:u,name:m,headers:r,linkedFields:a}))}`,g=document.createElement("a");g.href=d,g.download=`${m}_${u}.json`,g.click()}return h("div",{className:"ds-cont",children:[h("div",{className:J(et),children:[e(at,{...t}),h("div",{style:{display:"flex",alignItems:"center"},children:[e(j,{title:"Download Datasource settings as JSON",value:w.sanitize("Download JSON"),onClick:N,primary:!0}),e(j,{title:"Set Cookie with name: qryn-settings",value:w.sanitize("Save Cookie"),onClick:x,primary:!0}),e(j,{title:"Use same URL and Basic Auth for all Data Sources",value:w.sanitize("Use For All"),onClick:y,primary:!0})]})]}),e("div",{className:"ds-settings",children:e(Ze,{...t})})]})}const at=t=>{const{icon:n,name:s,type:c,url:l}=t;return h("div",{className:"ds-item",children:[e(ee,{icon:n}),h("div",{className:"ds-text",children:[e("div",{className:"ds-type",children:s}),h("small",{children:[w.sanitize(c)," | ",w.sanitize(l)]})]})]})};function st(){let{id:t}=Se();const n=M(),s=A(l=>l.dataSources),c=O.useMemo(()=>!s||s.length===0?{}:s.find(l=>l.id===t)||{},[t,s]);return e(ne,{theme:n,children:e(Xe,{children:h("div",{className:"body-cont",children:[e(Ve,{title:"DataSource Settings",datasource:c}),e("div",{className:"datasource-body",children:e(nt,{...c})})]})})})}const it=t=>T("display:flex;flex-direction:column;flex:1;flex-wrap:wrap;width:400px;border:1px solid ",t.accentNeutral,";padding:5px;border-radius:3px;margin-left:10px;",""),rt=T({name:"1reekiy",styles:"display:flex;padding:4px 12px;font-size:14px;border-radius:4px;white-space:nowrap;align-items:center;justify-content:space-between"}),lt=T({name:"t10jb8",styles:"margin:5px"}),ot=T({name:"1wnuhlc",styles:"margin-left:20px;display:flex;align-items:center;span{font-size:12px;}"}),ct=T({name:"17moij0",styles:"align-items:center;width:100%;display:flex;margin-top:10px;justify-content:space-between;flex:1"}),dt=t=>{const[n,s]=O.useState(""),[c,l]=O.useState(""),[f,S]=O.useState(""),[C,v]=O.useState(!1),[y,x]=O.useState(!1),N=A(p=>p.dataSources),k=E(),u="Save",m=M(),a=p=>{var D;const b=(((D=p==null?void 0:p.target)==null?void 0:D.value)||"").replace(/\/$/,"");s(()=>b)},r=p=>{l(()=>p.target.value)},i=p=>{S(()=>p.target.value)},d=p=>{v(()=>p.target.checked)},g=p=>{x(()=>p.target.checked)},o=p=>{const L=JSON.parse(JSON.stringify(N)),b=L==null?void 0:L.map(D=>({...D,url:n,auth:{...D.auth,basicAuth:{...D.auth.basicAuth,value:y},fields:{...D.auth.fields,basicAuth:[...D.auth.fields.basicAuth].map(_=>_.name==="user"?{..._,value:c}:_.name==="password"?{..._,value:f}:_)}}}));localStorage.setItem("dataSources",JSON.stringify(b)),k(z(b))};return h("div",{className:J(it(m)),children:[h("div",{className:J(rt),children:["Use one setting for all Data Sources",e(U,{checked:C,size:"small",onChange:d})]}),C&&h("div",{className:J(lt),children:[e(F,{value:w.sanitize(n),label:"url",onChange:a,placeholder:"http://qryn.dev"}),y&&h(P,{children:[e(F,{value:w.sanitize(c),label:"user",onChange:r,placeholder:"default"}),e(F,{value:w.sanitize(f),label:"password",onChange:i,type:"password",placeholder:""})]}),h("div",{className:J(ct),children:[h("div",{className:J(ot),children:[e("span",{children:"Use Basic Auth"})," ",e(U,{checked:y,size:"small",onChange:g})," "]}),e(j,{value:w.sanitize(u),onClick:o,editing:!1,primary:!0})]})]})]})};function Ct(t){const n=t.replace(/#/,""),s=decodeURIComponent(n),c=new URLSearchParams(s);for(let[l,f]of c)(l==="left"||l==="right")&&JSON.parse(f)}function kt(){const t=ye.useMediaQuery({query:"(prefers-color-scheme: dark)"}),n=E(),s=M(),c=A(l=>l.autoTheme);return O.useEffect(()=>{if(c){const l=t?"dark":"light";n(ze(l)),localStorage.setItem("theme",JSON.stringify({theme:l,auto:c}))}},[t,c,n]),h(ne,{theme:s,children:[e(Le,{children:h("div",{className:"cont",children:[e(Ye,{}),e("div",{style:{display:"flex",flex:1},children:e("div",{style:{height:"40px"},children:e(dt,{})})})]})}),e(Ce,{children:e(xe,{path:":id",element:e(st,{})})})]})}export{kt as default,Ct as getURlParams}; +var de=Object.defineProperty;var ue=(t,n,s)=>n in t?de(t,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[n]=s;var I=(t,n,s)=>(ue(t,typeof n!="symbol"?n+"":n,s),s);import{d as e,j as h,g as J,D as w,h as T,i as V,F as P,f as M,Q as he,k as pe,e as fe}from"./index-284a6932.js";import{r as O}from"./react-432945ee.js";import{m as E,u as A,n as Z,s as ge,L as me,v as Se,w as ve,x as ye,p as xe,R as Ce}from"./vendor-c662a477.js";import{D as ke,L as $,I as H,d as we,S as Ne,a as R,F,s as z,b as be,c as B,T as Oe,e as ee,f as De,P as Le}from"./AddOutlined-4fd97119.js";import{d as te,s as ze}from"./DeleteOutlineOutlined-c50f292a.js";import{S as U,r as Q}from"./createSvgIcon-453c5eac.js";import{j as G}from"./reactDnd-707fca38.js";import{d as ne}from"./reactSelect-ab0ea613.js";import"./memoize-acaceb73.js";const j=t=>{const{value:n,onClick:s,primary:c,title:l}=t;return e(ke,{title:l,onClick:s,primary:c,children:n})},Ae=t=>T("display:flex;flex:",t?1:0,";",""),ae=({value:t,locked:n,onChange:s,opts:c,label:l,labelWidth:f,name:S,fullWidth:C,width:v})=>{const[y,x]=O.useState(""),N=O.useRef(null),k=O.useMemo(()=>typeof c[0]=="string"?c.map(u=>({value:u,name:u})):c,[c]);return O.useEffect(()=>{var m,a;const u=(m=k==null?void 0:k.find(r=>r.name===t))==null?void 0:m.value;u&&((a=N==null?void 0:N.current)==null?void 0:a.value)!==u&&(x(u),N.current.value=u)},[t]),h(H,{width:v,children:[(l==null?void 0:l.length)>0&&e($,{width:f||null,children:l}),e("select",{ref:N,className:J(Ae(C)),disabled:n,defaultValue:w.sanitize(y),onChange:u=>s(u,S),children:k==null?void 0:k.map((u,m)=>e("option",{value:w.sanitize(u.value),children:u.name},m))})]})},se=t=>{const{value:n,onChange:s,locked:c,label:l}=t;return h(H,{children:[e($,{children:l}),e(U,{disabled:c,size:"small",checked:n,onChange:s})]})};var W={},Ie=V;Object.defineProperty(W,"__esModule",{value:!0});var ie=W.default=void 0,Je=Ie(Q()),Fe=G;ie=W.default=(0,Je.default)((0,Fe.jsx)("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4z"}),"CachedOutlined");var K={},Te=V;Object.defineProperty(K,"__esModule",{value:!0});var re=K.default=void 0,Ee=Te(Q()),Re=G;re=K.default=(0,Ee.default)((0,Re.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");const le=t=>n=>{n({type:"SET_IS_DATASOURCE_SAVED",isDsSaved:t})};var X={},_e=V;Object.defineProperty(X,"__esModule",{value:!0});var oe=X.default=void 0,je=_e(Q()),Pe=G;oe=X.default=(0,je.default)((0,Pe.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");const ce=T({name:"vtwnvy",styles:"height:12px!important;width:12px!important;color:white;margin:0px 4px"}),Me=t=>T("display:flex;align-items:center;background:",t.primary,";color:white;font-size:11px;padding:4px;border-radius:3px;margin-right:10px;cursor:pointer;span{margin-right:4px;font-weight:bold;}",""),Ue=T({name:"1t9g6tg",styles:"display:flex;align-items:center;background:#b62c14;color:white;font-size:12px;padding:4px;border-radius:3px;margin-right:10px;cursor:pointer;span{margin-right:4px;font-weight:bold;}"}),$e=T({name:"9hkg7e",styles:"display:flex;align-items:center;font-size:12px;&.loading-icon{height:14px;width:14px;}"}),He=({setIsSaved:t})=>{const n=M();return h("div",{className:J(Me(n)),onClick:s=>t(!1),children:[e(re,{className:J(ce)})," ",e("span",{children:"Saved"})]})},Y=({errorText:t})=>h("div",{className:J(Ue),children:[e(oe,{className:J(ce)})," ",e("span",{children:t})]});function q(t){const{onClickAdd:n,isAdd:s,title:c,isEditing:l,fieldErrors:f}=t,S=E(),[C,v]=O.useState(!1);return O.useEffect(()=>(l&&(setTimeout(()=>{v(!0),S(le(!0))},800),v(!1)),v(!1),()=>{v(!1)}),[l]),h(Ne,{children:[c,h("div",{className:"edit-buttons",children:[l&&h("div",{className:$e,children:[e(ie,{style:{height:"13px",width:"13px"}})," ","Saving ..."]}),(f==null?void 0:f.protocol)&&e(Y,{errorText:"Insecure Mixed Content. Mixing HTTP and HTTPS is insecure and is not supported."}),(f==null?void 0:f.url)&&e(Y,{errorText:"Please complete API URL"}),C&&e(He,{setIsSaved:v}),s&&e(P,{children:e(we,{fontSize:"small",style:{cursor:"pointer",display:"flex"},onClick:n})})]})]})}const qe=t=>{const n=E(),s=A(u=>u.dataSources),[c,l]=O.useState(!1),{headers:f,id:S}=t,[C,v]=O.useState((t==null?void 0:t.cors)||!1),y=u=>{const m=u.target.checked,a=s.map(r=>(r.id===S&&(r.cors=m),r));v(()=>m),localStorage.setItem("dataSources",JSON.stringify(a)),n(z(a))},x=(u,m,a)=>{l(()=>!0);const r=u.target.value,g=(s.find(p=>p.id===S).headers||[]).map(p=>(p.id===m&&(p[a]=r),p)),o=s.map(p=>(p.id===S&&(p.headers=[...g]),p));localStorage.setItem("dataSources",JSON.stringify(o)),n(z(o)),setTimeout(()=>{l(()=>!1)},800)},N=u=>{u.preventDefault();const m=s==null?void 0:s.find(i=>i.id===S),a=m.headers,r=JSON.parse(JSON.stringify([...s]));if(f.length>0){const i={...a[a.length-1],id:Z()},d={...m,headers:[...m.headers,i]},g=r==null?void 0:r.map(o=>o.id===S?{...d}:o);localStorage.setItem("dataSources",JSON.stringify(g)),n(z(g))}},k=(u,m)=>{const a=s==null?void 0:s.find(o=>o.id===S),i=[...f].filter(o=>o.id!==m),d={...a,headers:[...i]},g=s==null?void 0:s.map(o=>o.id===S?{...d}:o);localStorage.setItem("dataSources",JSON.stringify(g)),n(z(g))};return e("div",{className:"",children:f&&h(P,{children:[e(q,{title:"Custom HTTP Headers",isEdit:!1,isAdd:!0,isEditing:c,onClickAdd:N}),h(R,{children:[e($,{children:"Use CORS"})," ",e(U,{size:"small",checked:C,onChange:y})]}),f==null?void 0:f.map((u,m)=>e(R,{children:h(H,{children:[e(F,{label:"header",value:w.sanitize(u.header),onChange:a=>x(a,u.id,"header")}),e(F,{label:"value",value:w.sanitize(u.value),onChange:a=>x(a,u.id,"value")}),e(te,{onClick:a=>k(a,u.id),style:{cursor:"pointer",marginLeft:"10px"},fontSize:"small"})]})},m))]})})};function Ve(t){const n=ge(),s=M(),c=A(y=>y.urlLocation),l=E(),{title:f}=t,S=A(y=>y.isDsSaved),C=O.useMemo(()=>S?"Save":"Back",[S]),v=()=>{let y=(c==null?void 0:c.length)>0;l(le(!1)),n((y||C==="Back")&&f!=="DataSources"?-1:"")};return h("div",{className:"ds-header",children:[e("div",{style:{display:"flex",alignItems:"center"},children:h("div",{style:{display:"flex",flexDirection:"column"},children:[h("div",{style:{display:"flex"},children:[e(he,{}),e("h1",{children:f})]}),h("p",{style:{color:s.contrast,fontSize:"10px",marginTop:"5px",marginLeft:"10px",opacity:".5"},children:["v","0.28.8"]})]})}),e(j,{value:w.sanitize(C),onClick:v,editing:!0,primary:S})]})}const Be=t=>{const{id:n,name:s,regex:c,urlLabel:l,internalLink:f,linkType:S,locked:C,dataSourceId:v,fieldEditing:y}=t,x=E(),N=A(i=>i.dataSources),k=O.useMemo(()=>N.map(i=>({name:i.name,value:i.id})),[N]),u=(i,d)=>{y();const g=JSON.parse(JSON.stringify(N)),L=g.find(b=>b.id===v).linkedFields.map(b=>b.id===n?{...b,[i]:d}:b);return g.map(b=>b.id===v?{...b,linkedFields:L}:b)},m=i=>{y();const d=JSON.parse(JSON.stringify(N)),p=d.find(b=>b.id===v).linkedFields.filter(b=>b.id!==n),L=d.map(b=>b.id===v?{...b,linkedFields:[...p]}:b);localStorage.setItem("dataSources",JSON.stringify(L)),x(z(L))},a=(i,d)=>{y();const g=i.target.value,o=u(d,g);localStorage.setItem("dataSources",JSON.stringify(o)),x(z(o))},r=(i,d)=>{y();const g=!!i.target.checked,o=u(d,g);localStorage.setItem("dataSources",JSON.stringify(o)),x(z(o))};return h(be,{children:[h(R,{children:[e(F,{value:w.sanitize(s),label:"Name",onChange:i=>a(i,"name")}),e(F,{value:w.sanitize(c),label:"Regex",onChange:i=>a(i,"regex")}),e(F,{value:w.sanitize(l),label:"URL Label",onChange:i=>a(i,"urlLabel")}),e(te,{onClick:m,fontSize:"small",style:{marginLeft:"10px",cursor:"pointer",display:C?"none":"inline-block"}})]}),h(R,{className:"internal",children:[e(se,{value:f,label:"Internal Link",onChange:i=>r(i,"internalLink")}),e(ae,{label:"",value:w.sanitize(S),opts:k,selectType:"linkedField",onChange:i=>a(i,"linkID")})]})]})};class Qe{constructor(){I(this,"id");I(this,"dataSource");I(this,"ds_id");I(this,"name");I(this,"regex");I(this,"query");I(this,"urlLabel");I(this,"url");I(this,"internalLink");I(this,"linkType");this.id=Z(),this.dataSource="Logs",this.ds_id="logs",this.name="traceID",this.regex='^.*?"traceID" ="(w+)".*$/',this.query="${__value.raw}",this.urlLabel="",this.url="",this.internalLink=!0,this.linkType="Traces"}create(){const{id:n,dataSource:s,ds_id:c,name:l,regex:f,query:S,urlLabel:C,url:v,internalLink:y,linkType:x}=this;return{id:n,dataSource:s,ds_id:c,name:l,regex:f,query:S,urlLabel:C,url:v,internalLink:y,linkType:x}}}const Ge=t=>{const{linkedFields:n,name:s,id:c}=t,l=A(x=>x.dataSources),f=E(),[S,C]=O.useState(!1),v=()=>{const x=new Qe;x.dataSource=s,x.create();const k=[...JSON.parse(JSON.stringify(n)),{...x}],u=JSON.parse(JSON.stringify(l)),m=u==null?void 0:u.map(a=>a.id===c?{...a,linkedFields:k}:a);localStorage.setItem("dataSources",JSON.stringify(m)),f(z(m))},y=()=>{C(()=>!0),setTimeout(()=>{C(()=>!1)},800)};return(n==null?void 0:n.length)>0?h(P,{children:[e(q,{title:"Linked Fields",isEdit:!0,isAdd:!0,onClickAdd:v,isEditing:S}),e(B,{children:n==null?void 0:n.map((x,N)=>e(Be,{...x,dataSourceId:c,locked:!1,fieldEditing:y},N))})]}):null};function We(t){const{value:n,label:s,onChange:c,placeholder:l}=t;return h(H,{children:[e($,{children:s}),e(Oe,{className:"ds-input",onChange:c,placeholder:l,value:w.sanitize(n)})]})}function Ke(t){const{auth:n,id:s}=t,c=E(),l=A(a=>a.dataSources),[f,S]=O.useState([]),[C,v]=O.useState(!1),y=O.useMemo(()=>{var a;return(a=Object.entries(n))==null?void 0:a.map(([r,i])=>({name:r,...i})).filter(r=>r.name!=="fields")},[n]),x=O.useMemo(()=>{var a;return(a=Object.entries(n))==null?void 0:a.map(([r,i])=>({name:r,...i})).find(r=>r.name==="fields")},[n]),N=(a,r)=>{const i=JSON.parse(JSON.stringify(n));i[r].value=a;const g=JSON.parse(JSON.stringify(l)).map(o=>o.id===s?{...o,auth:{...i}}:o);return localStorage.setItem("dataSources",JSON.stringify(g)),c(z(g)),g};O.useEffect(()=>{var r,i;const a=(i=(r=y.filter(d=>d.form_type==="switch"&&!!(d!=null&&d.value)))==null?void 0:r.filter(d=>!!d.withFields))==null?void 0:i.map(d=>d.name);S(a)},[y,S]);const k=(a,r)=>{v(()=>!0);const i=a.target.value;N(i,r),setTimeout(()=>{v(()=>!1)},800)},u=(a,r)=>{v(()=>!0);const i=a.target.checked;N(i,r),setTimeout(()=>{v(()=>!1)},800)},m=(a,r,i)=>{var b;v(()=>!0);const d=a.target.value,g=JSON.parse(JSON.stringify(n)),o={...g,fields:{...g.fields,[i]:(b=g==null?void 0:g.fields[i])==null?void 0:b.map(D=>D.name===r?(D.value=d,{...D}):D)}},p=JSON.parse(JSON.stringify([...l])),L=p==null?void 0:p.map(D=>(D.id===s&&(D.auth=o),D));localStorage.setItem("dataSources",JSON.stringify(L)),c(z(L)),setTimeout(()=>{v(()=>!1)},600)};return h(P,{children:[e(q,{title:"HTTP Auth Fields",isEditing:C,isEdit:!1,isAdd:!1}),h(B,{children:[y&&y.map((a,r)=>a.form_type==="select"?e(ae,{value:w.sanitize(a.value),name:w.sanitize(a.name),onChange:i=>k(i,a.name),locked:!1,opts:a.options,label:a.label},r):a.form_type==="switch"?e(se,{label:a.label,value:a.value,onChange:i=>u(i,a.name)},r):null),e(R,{children:f&&f.map((a,r)=>{var i;return e(R,{children:x[a]&&((i=x[a])==null?void 0:i.map((d,g)=>d.form_type==="input"||d.form_type==="password"?e(F,{onChange:o=>m(o,d.name,a),type:d.form_type,value:w.sanitize(d.value),label:d.label,placeholder:d.placeholder},g):d.form_type==="textarea"?e(We,{onChange:o=>m(o,d.name,a),value:w.sanitize(d.value),label:d.label,placeholder:d.placeholder},g):null))},r)})})]})]})}const Xe=pe("div",{target:"emiacor0"})("position:absolute;left:0;top:0;background:",({theme:t})=>t.background,";display:flex;flex-direction:culumn;justify-content:center;color:",({theme:t})=>t.contrast,";flex:1;height:100%;width:100%;.body-cont{max-width:1440px;padding:10px;margin:10px;border-radius:3px;flex:1;background:",({theme:t})=>t.shadow,";overflow-y:auto;overflow-x:hidden;}.ds-header{padding:10px;padding-bottom:20px;font-size:24px;flex:1;display:flex;width:100%;justify-content:space-between;align-items:center;padding-left:0px;.logo{margin-right:10px;}}.ds-cont{margin-bottom:10px;border:1px solid ",({theme:t})=>t.accentNeutral,";border-radius:3px;overflow-y:auto;}.ds-item{padding:10px;border-radius:3px 3px 0px 0px;padding-bottom:14px;display:flex;.logo{padding:10px;padding-right:20px;padding-left:0px;}.ds-text{display:flex;flex-direction:column;flex:1;}.ds-type{font-size:18px;padding:10px;padding-left:0px;color:",({theme:t})=>t.contrast,";}small{font-size:12px;}.setting-icon{justify-self:flex-end;cursor:pointer;}.ds-settings{background:",({theme:t})=>t.background,";}}");function Ye(){const t=A(({dataSources:n})=>n);return(t==null?void 0:t.length)>0?e("div",{style:{margin:"10px"},children:t.map((n,s)=>{const{icon:c,id:l,name:f,type:S,url:C}=n;return e("div",{className:"ds-cont",children:e(me,{to:l,children:h("div",{className:"ds-item",children:[e(ee,{icon:c}),h("div",{className:"ds-text",children:[e("div",{className:"ds-type",children:f}),h("span",{children:[h("small",{children:[S," | "," "]}),e("small",{style:{userSelect:"all"},children:C})]})]})]})})},s)})}):e("div",{children:e("h1",{children:"No Data Sources Found."})})}const Ze=t=>{const{headers:n,id:s,linkedFields:c,name:l,url:f,cors:S}=t,C=E(),v=A(({dataSources:r})=>r),[y,x]=O.useState({url:!1,protocol:!1}),N=(r,i)=>{let d=i;r==="url"&&(d=i.replace(/\/$/,""));const g=JSON.parse(JSON.stringify(v));return g.forEach(o=>{o.id===s&&(o[r]=d)}),g},[k,u]=O.useState(!1),m=r=>{try{const i=window.location.protocol,d=new URL(r).protocol;return{value:i===d,error:""}}catch{return{value:!1,error:"url"}}},a=(r,i)=>{u(()=>!0);const d=r.target.value;if(i==="url"){const o=m(d);if((o==null?void 0:o.error)==="url"&&x(p=>({...p,url:!0})),!(o!=null&&o.value)&&(o==null?void 0:o.error)===""&&x(p=>({...p,protocol:!0})),(o==null?void 0:o.error)===""&&(o!=null&&o.value)){x(L=>({...L,protocol:!1,url:!1}));const p=N(i,d);localStorage.setItem("dataSources",JSON.stringify(p)),C(z(p)),setTimeout(()=>{u(()=>!1)},800)}}const g=N(i,d);localStorage.setItem("dataSources",JSON.stringify(g)),C(z(g)),setTimeout(()=>{u(()=>!1)},800)};return h(De,{children:[e(q,{isEditing:k,isEdit:!0,isAdd:!1,title:"DataSource Settings",fieldErrors:y}),e(B,{children:h(R,{children:[e(F,{value:w.sanitize(l),label:"Name",onChange:r=>a(r,"name")}),e(F,{value:w.sanitize(f),label:"URL",error:y.url||y.protocol,onChange:r=>a(r,"url")})]})}),e(Ke,{...t}),e(qe,{cors:S,headers:n,id:s}),e(Ge,{...t,linkedFields:c})]})},et=T({name:"9rq8lq",styles:"display:flex;align-items:center;justify-content:space-between;margin-right:20px"});function tt(t,n,s){let c={},l=s&&s!==""&&n&&n!=="",f=l?`${btoa(n)}:${btoa(s)}`:"",S=JSON.parse(JSON.stringify(t));return l&&f&&(c.auth=f),c.url=S,JSON.stringify(c)}function nt(t){const{url:n,auth:{basicAuth:s,fields:{basicAuth:[c,l]}}}=t,[f,S]=ve(["qryn-dev-cookie","qryn-settings"]),C=E(),v=A(k=>k.dataSources),y=()=>{const k=[...v],u=JSON.parse(JSON.stringify(k)),m=u==null?void 0:u.map(a=>({...a,url:w.sanitize(n),auth:{...a.auth,basicAuth:{...a.auth.basicAuth,value:s.value},fields:{...a.auth.fields,basicAuth:[...a.auth.fields.basicAuth].map(r=>r.name==="user"?{...r,value:w.sanitize(c.value)}:r.name==="password"?{...r,value:w.sanitize(l.value)}:r)}}}));localStorage.setItem("dataSources",JSON.stringify(m)),C(z(m)),C(fe({type:"success",message:"Set same URL and Basic Auth for All Data Sources"}))};function x(){const k=new Date;new Date().setDate(k.getDate()+1);try{S("qryn-settings",tt(n,c.value,l.value),{path:""})}catch(m){console.log(m)}}function N(){const{headers:k,id:u,name:m,linkedFields:a}=t,r=k==null?void 0:k.map(({header:o,value:p})=>({[o]:p})),d=`data:text/json;chatset=utf-8,${encodeURIComponent(JSON.stringify({id:u,name:m,headers:r,linkedFields:a}))}`,g=document.createElement("a");g.href=d,g.download=`${m}_${u}.json`,g.click()}return h("div",{className:"ds-cont",children:[h("div",{className:J(et),children:[e(at,{...t}),h("div",{style:{display:"flex",alignItems:"center"},children:[e(j,{title:"Download Datasource settings as JSON",value:w.sanitize("Download JSON"),onClick:N,primary:!0}),e(j,{title:"Set Cookie with name: qryn-settings",value:w.sanitize("Save Cookie"),onClick:x,primary:!0}),e(j,{title:"Use same URL and Basic Auth for all Data Sources",value:w.sanitize("Use For All"),onClick:y,primary:!0})]})]}),e("div",{className:"ds-settings",children:e(Ze,{...t})})]})}const at=t=>{const{icon:n,name:s,type:c,url:l}=t;return h("div",{className:"ds-item",children:[e(ee,{icon:n}),h("div",{className:"ds-text",children:[e("div",{className:"ds-type",children:s}),h("small",{children:[w.sanitize(c)," | ",w.sanitize(l)]})]})]})};function st(){let{id:t}=Se();const n=M(),s=A(l=>l.dataSources),c=O.useMemo(()=>!s||s.length===0?{}:s.find(l=>l.id===t)||{},[t,s]);return e(ne,{theme:n,children:e(Xe,{children:h("div",{className:"body-cont",children:[e(Ve,{title:"DataSource Settings",datasource:c}),e("div",{className:"datasource-body",children:e(nt,{...c})})]})})})}const it=t=>T("display:flex;flex-direction:column;flex:1;flex-wrap:wrap;width:400px;border:1px solid ",t.accentNeutral,";padding:5px;border-radius:3px;margin-left:10px;",""),rt=T({name:"1reekiy",styles:"display:flex;padding:4px 12px;font-size:14px;border-radius:4px;white-space:nowrap;align-items:center;justify-content:space-between"}),lt=T({name:"t10jb8",styles:"margin:5px"}),ot=T({name:"1wnuhlc",styles:"margin-left:20px;display:flex;align-items:center;span{font-size:12px;}"}),ct=T({name:"17moij0",styles:"align-items:center;width:100%;display:flex;margin-top:10px;justify-content:space-between;flex:1"}),dt=t=>{const[n,s]=O.useState(""),[c,l]=O.useState(""),[f,S]=O.useState(""),[C,v]=O.useState(!1),[y,x]=O.useState(!1),N=A(p=>p.dataSources),k=E(),u="Save",m=M(),a=p=>{var D;const b=(((D=p==null?void 0:p.target)==null?void 0:D.value)||"").replace(/\/$/,"");s(()=>b)},r=p=>{l(()=>p.target.value)},i=p=>{S(()=>p.target.value)},d=p=>{v(()=>p.target.checked)},g=p=>{x(()=>p.target.checked)},o=p=>{const L=JSON.parse(JSON.stringify(N)),b=L==null?void 0:L.map(D=>({...D,url:n,auth:{...D.auth,basicAuth:{...D.auth.basicAuth,value:y},fields:{...D.auth.fields,basicAuth:[...D.auth.fields.basicAuth].map(_=>_.name==="user"?{..._,value:c}:_.name==="password"?{..._,value:f}:_)}}}));localStorage.setItem("dataSources",JSON.stringify(b)),k(z(b))};return h("div",{className:J(it(m)),children:[h("div",{className:J(rt),children:["Use one setting for all Data Sources",e(U,{checked:C,size:"small",onChange:d})]}),C&&h("div",{className:J(lt),children:[e(F,{value:w.sanitize(n),label:"url",onChange:a,placeholder:"http://qryn.dev"}),y&&h(P,{children:[e(F,{value:w.sanitize(c),label:"user",onChange:r,placeholder:"default"}),e(F,{value:w.sanitize(f),label:"password",onChange:i,type:"password",placeholder:""})]}),h("div",{className:J(ct),children:[h("div",{className:J(ot),children:[e("span",{children:"Use Basic Auth"})," ",e(U,{checked:y,size:"small",onChange:g})," "]}),e(j,{value:w.sanitize(u),onClick:o,editing:!1,primary:!0})]})]})]})};function Ct(t){const n=t.replace(/#/,""),s=decodeURIComponent(n),c=new URLSearchParams(s);for(let[l,f]of c)(l==="left"||l==="right")&&JSON.parse(f)}function kt(){const t=ye.useMediaQuery({query:"(prefers-color-scheme: dark)"}),n=E(),s=M(),c=A(l=>l.autoTheme);return O.useEffect(()=>{if(c){const l=t?"dark":"light";n(ze(l)),localStorage.setItem("theme",JSON.stringify({theme:l,auto:c}))}},[t,c,n]),h(ne,{theme:s,children:[e(Le,{children:h("div",{className:"cont",children:[e(Ye,{}),e("div",{style:{display:"flex",flex:1},children:e("div",{style:{height:"40px"},children:e(dt,{})})})]})}),e(Ce,{children:e(xe,{path:":id",element:e(st,{})})})]})}export{kt as default,Ct as getURlParams}; diff --git a/assets/DeleteOutlineOutlined-90e52d8e.js b/assets/DeleteOutlineOutlined-c50f292a.js similarity index 81% rename from assets/DeleteOutlineOutlined-90e52d8e.js rename to assets/DeleteOutlineOutlined-c50f292a.js index 755d78e0..dc262251 100644 --- a/assets/DeleteOutlineOutlined-90e52d8e.js +++ b/assets/DeleteOutlineOutlined-c50f292a.js @@ -1 +1 @@ -import{k as a,i}from"./index-a817164a.js";import{r as n}from"./createSvgIcon-b33a10f9.js";import{j as o}from"./reactDnd-707fca38.js";const c=t=>r=>{r({type:"SET_THEME",theme:t})},h=a("button",{target:"e18y13m91"})({name:"hfqfih",styles:"padding:0px 8px;font-size:12px;line-height:20px;cursor:pointer;user-select:none;border:none;border-radius:3px;font-weight:500;white-space:nowrap;display:flex;align-items:center"});var e={},s=i;Object.defineProperty(e,"__esModule",{value:!0});var l=e.default=void 0,u=s(n()),p=o;l=e.default=(0,u.default)((0,p.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutlineOutlined");export{h as B,l as d,c as s}; +import{k as a,i}from"./index-284a6932.js";import{r as n}from"./createSvgIcon-453c5eac.js";import{j as o}from"./reactDnd-707fca38.js";const c=t=>r=>{r({type:"SET_THEME",theme:t})},h=a("button",{target:"e18y13m91"})({name:"hfqfih",styles:"padding:0px 8px;font-size:12px;line-height:20px;cursor:pointer;user-select:none;border:none;border-radius:3px;font-weight:500;white-space:nowrap;display:flex;align-items:center"});var e={},s=i;Object.defineProperty(e,"__esModule",{value:!0});var l=e.default=void 0,u=s(n()),p=o;l=e.default=(0,u.default)((0,p.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutlineOutlined");export{h as B,l as d,c as s}; diff --git a/assets/Main-062780d6.js b/assets/Main-b913847d.js similarity index 99% rename from assets/Main-062780d6.js rename to assets/Main-b913847d.js index 2d60dca0..1083263b 100644 --- a/assets/Main-062780d6.js +++ b/assets/Main-b913847d.js @@ -1,4 +1,4 @@ -import{m as Yb,n as Zb,s as ue,B as kO,r as _O,o as p2,a as Et,p as IO,u as eo,c as eM,b as to,q as DO,t as AM,v as Mo,D as Z1,w as t2,x as y1,d as O,g as P0,y as ic,z as Oc,h as O0,i as m1,f as G0,j as P,k as h0,A as PO,I as Bb,P as ac,F as q1,C as sc,l as Ac,e as _2,E as HO,G as bo,H as jO,J as FO}from"./index-a817164a.js";import{a as D1,d as oo,m as _1,u as H0,q as $e,y as JM,z as bt,A as ez,B as tz,D as yb,E as Tb,F as Sb,G as YM,I as VO,J as $O,K as Se,M as Ie,Q as po,S as UO,T as q2,U as GO,V as lc,W as dc,X as zo,Y as it,Z as Mz,$ as uc,a0 as D2,n as F2,o as f2,a1 as KO,a2 as QO,a3 as JO,a4 as YO,a5 as ZO,a6 as ea,j as X2,a7 as ta,x as W2,a8 as kt,a9 as bz,aa as oz,ab as Ma,ac as ba,ad as oa,ae as no,af as pa,ag as pz,w as zz,s as za}from"./vendor-c662a477.js";import{r as q,c as co,g as Ue,R as n2,e as na,b as At}from"./react-432945ee.js";import{u as ro,s as ca,f as ra,T as x1,C as ia,D as io,h as Oo,i as Oa,j as aa,k as sa,l as Aa,m as la,o as da,p as ua,E as qa,q as ao,r as fa,t as qc,v as fc,w as o1,b as Wa,x as ot,M as xb,y as ha,z as Wc,A as xe,G as ga,H as Ra,I as ma,J as La,K as Xe,L as Na,R as hc,N as ce,d as va,O as gc,Q as Rc,U as mc,V as so,W as gt,X as Ba,Y as ya,Z as Lc,_ as nz,n as J2,a as Ut,$ as Nc,a0 as Ta,a1 as Sa,a2 as xa,a3 as Xa,a4 as wa,a5 as Ca,a6 as vc,a7 as Bc,a8 as yc,a9 as Xb,aa as Tc,P as Rt,ab as Ea,ac as ka,ad as cz,S as _a,ae as Ia,af as rz}from"./consts-b1f58b04.js";import{s as Sc,B as Ao}from"./DeleteOutlineOutlined-90e52d8e.js";import{l as P1}from"./lodash-fd695a79.js";import{r as L1,S as lt}from"./createSvgIcon-b33a10f9.js";import{j as t1,u as Da,b as Pa,H as Ha,D as ja}from"./reactDnd-707fca38.js";import{k as xc,b as Xc,s as Fa,i as Va,g as $a,_ as Ua,d as f1,S as lo,e as wc,j as mt,f as Cc}from"./reactSelect-ab0ea613.js";import{r as Ga,f as iz,u as Ka,g as Qa,a as Ja,b as Ya,c as Za,d as e3,e as t3,h as M3,i as b3}from"./reactTable-6ad149f1.js";import{m as Ge,d as o3,a as p3,u as Oz}from"./memoize-acaceb73.js";import{w as z3,a as n3,T as c3,S as r3,E as i3,c as O3}from"./slate-25e47886.js";import{F as _t,d as Lt,s as tM,e as uo}from"./AddOutlined-395174d1.js";import{P as a3,u as s3,L as ZM}from"./PluginManagerFactory-cd31b81c.js";import{s as A3}from"./actions-2742fbfc.js";const qo=e=>t=>{t({type:"SET_START_TIME",start:e})},fo=e=>t=>{t({type:"SET_STOP_TIME",stop:e})},l3=e=>t=>{t({type:"SET_QUERY_STEP",step:e})},az=e=>t=>{t({type:"SET_RANGE_OPEN",rangeOpen:e})},Wo=e=>t=>{t({type:"SET_TIME_RANGE_LABEL",label:e})},Ec=e=>t=>{t({type:"SET_QUERY_TIME",time:e})},Gt=e=>t=>{t({type:"SET_QUERY_HISTORY",queryHistory:e})},kc=e=>t=>{t({type:"SET_HISTORY_OPEN",historyOpen:e})};function d3(e){return function(t){t({type:"SET_FROM_TIME",toTime:e})}}function u3(e){return function(t){t({type:"SET_TO_TIME"})}}const ae=e=>t=>{t({type:"SET_IS_EMPTY_VIEW",isEmptyView:e})};function q3(e){return function(t){t({type:"SET_RESPONSE_TYPE",responseType:e})}}const Q1=e=>t=>{t({type:"SET_RIGHT_PANEL",right:e})},c2=e=>t=>{t({type:"SET_LEFT_PANEL",left:e})},qe=e=>t=>{t({type:"SET_RIGHT_DATAVIEW",rightDataView:e})},fe=e=>t=>{t({type:"SET_LEFT_DATAVIEW",leftDataView:e})},f3=e=>t=>{t({type:"SET_SPLIT_VIEW",isSplit:e})};function W3(e){return Zb("MuiButton",e)}const h3=Yb("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),It=h3,g3=q.createContext({}),R3=g3,m3=q.createContext(void 0),L3=m3,N3=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],v3=e=>{const{color:t,disableElevation:M,fullWidth:b,size:o,variant:p,classes:n}=e,c={root:["root",p,`${p}${p2(t)}`,`size${p2(o)}`,`${p}Size${p2(o)}`,`color${p2(t)}`,M&&"disableElevation",b&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${p2(o)}`],endIcon:["icon","endIcon",`iconSize${p2(o)}`]},r=to(c,W3,n);return D1({},n,r)},_c=e=>D1({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),B3=ue(kO,{shouldForwardProp:e=>_O(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:M}=e;return[t.root,t[M.variant],t[`${M.variant}${p2(M.color)}`],t[`size${p2(M.size)}`],t[`${M.variant}Size${p2(M.size)}`],M.color==="inherit"&&t.colorInherit,M.disableElevation&&t.disableElevation,M.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var M,b;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],p=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return D1({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":D1({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Et(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Et(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Et(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:p,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":D1({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${It.focusVisible}`]:D1({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${It.disabled}`]:D1({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Et(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(M=(b=e.palette).getContrastText)==null?void 0:M.call(b,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${It.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${It.disabled}`]:{boxShadow:"none"}}),y3=ue("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:M}=e;return[t.startIcon,t[`iconSize${p2(M.size)}`]]}})(({ownerState:e})=>D1({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},_c(e))),T3=ue("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:M}=e;return[t.endIcon,t[`iconSize${p2(M.size)}`]]}})(({ownerState:e})=>D1({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},_c(e))),S3=q.forwardRef(function(t,M){const b=q.useContext(R3),o=q.useContext(L3),p=IO(b,t),n=eo({props:p,name:"MuiButton"}),{children:c,color:r="primary",component:A="button",className:a,disabled:d=!1,disableElevation:W=!1,disableFocusRipple:g=!1,endIcon:l,focusVisibleClassName:R,fullWidth:v=!1,size:m="medium",startIcon:h,type:T,variant:S="text"}=n,C=oo(n,N3),w=D1({},n,{color:r,component:A,disabled:d,disableElevation:W,disableFocusRipple:g,fullWidth:v,size:m,type:T,variant:S}),s=v3(w),L=h&&t1.jsx(y3,{className:s.startIcon,ownerState:w,children:h}),y=l&&t1.jsx(T3,{className:s.endIcon,ownerState:w,children:l}),E=o||"";return t1.jsxs(B3,D1({ownerState:w,className:eM(b.className,s.root,a,E),component:A,disabled:d,focusRipple:!g,focusVisibleClassName:eM(s.focusVisible,R),ref:M,type:T},C,{classes:s,children:[L,c,y]}))}),Ic=S3;function x3(e){return Zb("MuiCircularProgress",e)}Yb("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const X3=["className","color","disableShrink","size","style","thickness","value","variant"];let lM=e=>e,sz,Az,lz,dz;const K2=44,w3=xc(sz||(sz=lM` +import{m as Yb,n as Zb,s as ue,B as kO,r as _O,o as p2,a as Et,p as IO,u as eo,c as eM,b as to,q as DO,t as AM,v as Mo,D as Z1,w as t2,x as y1,d as O,g as P0,y as ic,z as Oc,h as O0,i as m1,f as G0,j as P,k as h0,A as PO,I as Bb,P as ac,F as q1,C as sc,l as Ac,e as _2,E as HO,G as bo,H as jO,J as FO}from"./index-284a6932.js";import{a as D1,d as oo,m as _1,u as H0,q as $e,y as JM,z as bt,A as ez,B as tz,D as yb,E as Tb,F as Sb,G as YM,I as VO,J as $O,K as Se,M as Ie,Q as po,S as UO,T as q2,U as GO,V as lc,W as dc,X as zo,Y as it,Z as Mz,$ as uc,a0 as D2,n as F2,o as f2,a1 as KO,a2 as QO,a3 as JO,a4 as YO,a5 as ZO,a6 as ea,j as X2,a7 as ta,x as W2,a8 as kt,a9 as bz,aa as oz,ab as Ma,ac as ba,ad as oa,ae as no,af as pa,ag as pz,w as zz,s as za}from"./vendor-c662a477.js";import{r as q,c as co,g as Ue,R as n2,e as na,b as At}from"./react-432945ee.js";import{u as ro,s as ca,f as ra,T as x1,C as ia,D as io,h as Oo,i as Oa,j as aa,k as sa,l as Aa,m as la,o as da,p as ua,E as qa,q as ao,r as fa,t as qc,v as fc,w as o1,b as Wa,x as ot,M as xb,y as ha,z as Wc,A as xe,G as ga,H as Ra,I as ma,J as La,K as Xe,L as Na,R as hc,N as ce,d as va,O as gc,Q as Rc,U as mc,V as so,W as gt,X as Ba,Y as ya,Z as Lc,_ as nz,n as J2,a as Ut,$ as Nc,a0 as Ta,a1 as Sa,a2 as xa,a3 as Xa,a4 as wa,a5 as Ca,a6 as vc,a7 as Bc,a8 as yc,a9 as Xb,aa as Tc,P as Rt,ab as Ea,ac as ka,ad as cz,S as _a,ae as Ia,af as rz}from"./consts-a4ab3ea8.js";import{s as Sc,B as Ao}from"./DeleteOutlineOutlined-c50f292a.js";import{l as P1}from"./lodash-fd695a79.js";import{r as L1,S as lt}from"./createSvgIcon-453c5eac.js";import{j as t1,u as Da,b as Pa,H as Ha,D as ja}from"./reactDnd-707fca38.js";import{k as xc,b as Xc,s as Fa,i as Va,g as $a,_ as Ua,d as f1,S as lo,e as wc,j as mt,f as Cc}from"./reactSelect-ab0ea613.js";import{r as Ga,f as iz,u as Ka,g as Qa,a as Ja,b as Ya,c as Za,d as e3,e as t3,h as M3,i as b3}from"./reactTable-6ad149f1.js";import{m as Ge,d as o3,a as p3,u as Oz}from"./memoize-acaceb73.js";import{w as z3,a as n3,T as c3,S as r3,E as i3,c as O3}from"./slate-25e47886.js";import{F as _t,d as Lt,s as tM,e as uo}from"./AddOutlined-4fd97119.js";import{P as a3,u as s3,L as ZM}from"./PluginManagerFactory-a67ca61d.js";import{s as A3}from"./actions-2742fbfc.js";const qo=e=>t=>{t({type:"SET_START_TIME",start:e})},fo=e=>t=>{t({type:"SET_STOP_TIME",stop:e})},l3=e=>t=>{t({type:"SET_QUERY_STEP",step:e})},az=e=>t=>{t({type:"SET_RANGE_OPEN",rangeOpen:e})},Wo=e=>t=>{t({type:"SET_TIME_RANGE_LABEL",label:e})},Ec=e=>t=>{t({type:"SET_QUERY_TIME",time:e})},Gt=e=>t=>{t({type:"SET_QUERY_HISTORY",queryHistory:e})},kc=e=>t=>{t({type:"SET_HISTORY_OPEN",historyOpen:e})};function d3(e){return function(t){t({type:"SET_FROM_TIME",toTime:e})}}function u3(e){return function(t){t({type:"SET_TO_TIME"})}}const ae=e=>t=>{t({type:"SET_IS_EMPTY_VIEW",isEmptyView:e})};function q3(e){return function(t){t({type:"SET_RESPONSE_TYPE",responseType:e})}}const Q1=e=>t=>{t({type:"SET_RIGHT_PANEL",right:e})},c2=e=>t=>{t({type:"SET_LEFT_PANEL",left:e})},qe=e=>t=>{t({type:"SET_RIGHT_DATAVIEW",rightDataView:e})},fe=e=>t=>{t({type:"SET_LEFT_DATAVIEW",leftDataView:e})},f3=e=>t=>{t({type:"SET_SPLIT_VIEW",isSplit:e})};function W3(e){return Zb("MuiButton",e)}const h3=Yb("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),It=h3,g3=q.createContext({}),R3=g3,m3=q.createContext(void 0),L3=m3,N3=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],v3=e=>{const{color:t,disableElevation:M,fullWidth:b,size:o,variant:p,classes:n}=e,c={root:["root",p,`${p}${p2(t)}`,`size${p2(o)}`,`${p}Size${p2(o)}`,`color${p2(t)}`,M&&"disableElevation",b&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${p2(o)}`],endIcon:["icon","endIcon",`iconSize${p2(o)}`]},r=to(c,W3,n);return D1({},n,r)},_c=e=>D1({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),B3=ue(kO,{shouldForwardProp:e=>_O(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:M}=e;return[t.root,t[M.variant],t[`${M.variant}${p2(M.color)}`],t[`size${p2(M.size)}`],t[`${M.variant}Size${p2(M.size)}`],M.color==="inherit"&&t.colorInherit,M.disableElevation&&t.disableElevation,M.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var M,b;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],p=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return D1({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":D1({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Et(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Et(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Et(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:p,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":D1({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${It.focusVisible}`]:D1({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${It.disabled}`]:D1({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Et(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(M=(b=e.palette).getContrastText)==null?void 0:M.call(b,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${It.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${It.disabled}`]:{boxShadow:"none"}}),y3=ue("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:M}=e;return[t.startIcon,t[`iconSize${p2(M.size)}`]]}})(({ownerState:e})=>D1({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},_c(e))),T3=ue("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:M}=e;return[t.endIcon,t[`iconSize${p2(M.size)}`]]}})(({ownerState:e})=>D1({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},_c(e))),S3=q.forwardRef(function(t,M){const b=q.useContext(R3),o=q.useContext(L3),p=IO(b,t),n=eo({props:p,name:"MuiButton"}),{children:c,color:r="primary",component:A="button",className:a,disabled:d=!1,disableElevation:W=!1,disableFocusRipple:g=!1,endIcon:l,focusVisibleClassName:R,fullWidth:v=!1,size:m="medium",startIcon:h,type:T,variant:S="text"}=n,C=oo(n,N3),w=D1({},n,{color:r,component:A,disabled:d,disableElevation:W,disableFocusRipple:g,fullWidth:v,size:m,type:T,variant:S}),s=v3(w),L=h&&t1.jsx(y3,{className:s.startIcon,ownerState:w,children:h}),y=l&&t1.jsx(T3,{className:s.endIcon,ownerState:w,children:l}),E=o||"";return t1.jsxs(B3,D1({ownerState:w,className:eM(b.className,s.root,a,E),component:A,disabled:d,focusRipple:!g,focusVisibleClassName:eM(s.focusVisible,R),ref:M,type:T},C,{classes:s,children:[L,c,y]}))}),Ic=S3;function x3(e){return Zb("MuiCircularProgress",e)}Yb("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const X3=["className","color","disableShrink","size","style","thickness","value","variant"];let lM=e=>e,sz,Az,lz,dz;const K2=44,w3=xc(sz||(sz=lM` 0% { transform: rotate(0deg); } diff --git a/assets/PluginManagerFactory-cd31b81c.js b/assets/PluginManagerFactory-a67ca61d.js similarity index 96% rename from assets/PluginManagerFactory-cd31b81c.js rename to assets/PluginManagerFactory-a67ca61d.js index 6d7449e7..f2c4a1ad 100644 --- a/assets/PluginManagerFactory-cd31b81c.js +++ b/assets/PluginManagerFactory-a67ca61d.js @@ -1 +1 @@ -import{r as y}from"./react-432945ee.js";import{x}from"./index-a817164a.js";const v=s=>n=>{n({type:"SET_PLUGINS",plugins:s})},A={Main:{parent:"",children:["Status Bar","Panel"]},"Status Bar":{parent:"Main",children:[""]},Panel:{parent:"Main",children:["Queries","Data Views"]},Queries:{parent:"Panel",children:["Stats","Data Views"]},Stats:{parent:"Queries",children:[""]},"Data Views":{parent:"Panel",children:["Data View Header","View"]},"Query Item":{parent:"Queries",children:[]}};function M(){function s(){try{return JSON.parse(localStorage.getItem("plugins")||"{}")}catch{return{}}}function n(r,l){var o;let a=s();a[r]||(a[r]=[]),(o=a[r])!=null&&o.some(e=>e.name===l.name)||(a[r].push(l),localStorage.setItem("plugins",JSON.stringify(a)))}function c(r){let l=s();return l[r]?l[r]:[]}function P(r,l){var o,e;let a=s();if(a[r]&&Array.isArray(a[r])&&((o=a[r])!=null&&o.some(i=>i.name===l))){let i=(e=a[r])==null?void 0:e.filter(t=>t.name!==l);a[r]=i,localStorage.setItem("plugins",JSON.stringify(a))}}function h(r,l,a){var i;const o=s(),e=(i=o[r])==null?void 0:i.findIndex(t=>(t==null?void 0:t.name)===l);if(e>=0){const t={...o,[r]:o[r].map((g,f)=>f===e?{...g,active:a}:g)};localStorage.setItem("plugins",JSON.stringify(t))}}function S(r,l,a){var i;const o=s(),e=(i=o[r])==null?void 0:i.findIndex(t=>(t==null?void 0:t.name)===l);if(e>=0){const t={...o,[r]:o[r].map((g,f)=>f===e?{...g,visible:a}:g)};localStorage.setItem("plugins",JSON.stringify(t))}}return{getAll:s,getPluginsFromLocation:c,setPlugin:n,removePlugin:P,togglePlugin:h,togglePluginVisibility:S}}function b(){const s=M(),[n]=y.useState(s.getAll());return y.useMemo(()=>{var P;return((P=Object.keys(n))==null?void 0:P.length)>0?Object.entries(n):[]},[n])}function w(s){const n=b(),c=y.useMemo(()=>{if(n!=null&&n.some(h=>h[0]===s)){let h=n==null?void 0:n.filter(([S])=>S===s)[0][1];return h==null?void 0:h.filter(S=>S.active&&S.visible)}return[]},[n]),P=y.useMemo(()=>(c==null?void 0:c.length)>0,c);return{activeTabs:c,isActiveTabs:P}}function O(s){const n={},c=M();let P=c.getAll();function h(e,i){var t,g;if((i==null?void 0:i.length)>0)for(const f of i){const m=f.section;if(P[m]){const p=i.filter(u=>u.section===m).map(({name:u})=>u),d=(t=P[m])==null?void 0:t.filter(u=>!p.includes(u.name));(d==null?void 0:d.length)>0&&d.forEach(({section:u,name:I})=>{c.removePlugin(u,I)})}}n[e.section]||(n[e.section]=[]),n[e.section].push(e),x.dispatch(v(n)),(g=P[e.section])!=null&&g.some(f=>f.name===e.name)||c.setPlugin(e.section,e)}function S(e){for(let i in s)i!=="Main"&&h(e,n)}function r(e){var f,m;let i=c.getPluginsFromLocation(e);const t=(f=n==null?void 0:n[e])==null?void 0:f.filter((p,d)=>{var u;return((u=n[e])==null?void 0:u.findIndex(I=>I.name===p.name))===d});let g=[];if((t==null?void 0:t.length)>0)for(let p of i){let d=(m=t==null?void 0:t.find)==null?void 0:m.call(t,u=>u.name===p.name);p.active&&g.push(d)}return g||[]}function l(e,i){var f;const t=(f=n==null?void 0:n[e])==null?void 0:f.filter((m,p)=>{var d;return((d=n[e])==null?void 0:d.findIndex(u=>u.name===m.name))===p});return(t==null?void 0:t.find(m=>(m==null?void 0:m.name)===i))||{}}function a(e,i,t){c.togglePlugin(e,i,t)}function o(){const e=[];for(let i in s)i!=="Main"&&e.push(...r(i));return e}return{registerPlugin:h,registerPluginGlobally:S,getAllPlugins:o,getPlugins:r,getPlugin:l,togglePlugin:a}}const L=O(A);function J(s){s.forEach(n=>{n.visible&&L.registerPlugin(n,s)})}export{M as L,L as P,J as i,w as u}; +import{r as y}from"./react-432945ee.js";import{x}from"./index-284a6932.js";const v=s=>n=>{n({type:"SET_PLUGINS",plugins:s})},A={Main:{parent:"",children:["Status Bar","Panel"]},"Status Bar":{parent:"Main",children:[""]},Panel:{parent:"Main",children:["Queries","Data Views"]},Queries:{parent:"Panel",children:["Stats","Data Views"]},Stats:{parent:"Queries",children:[""]},"Data Views":{parent:"Panel",children:["Data View Header","View"]},"Query Item":{parent:"Queries",children:[]}};function M(){function s(){try{return JSON.parse(localStorage.getItem("plugins")||"{}")}catch{return{}}}function n(r,l){var o;let a=s();a[r]||(a[r]=[]),(o=a[r])!=null&&o.some(e=>e.name===l.name)||(a[r].push(l),localStorage.setItem("plugins",JSON.stringify(a)))}function c(r){let l=s();return l[r]?l[r]:[]}function P(r,l){var o,e;let a=s();if(a[r]&&Array.isArray(a[r])&&((o=a[r])!=null&&o.some(i=>i.name===l))){let i=(e=a[r])==null?void 0:e.filter(t=>t.name!==l);a[r]=i,localStorage.setItem("plugins",JSON.stringify(a))}}function h(r,l,a){var i;const o=s(),e=(i=o[r])==null?void 0:i.findIndex(t=>(t==null?void 0:t.name)===l);if(e>=0){const t={...o,[r]:o[r].map((g,f)=>f===e?{...g,active:a}:g)};localStorage.setItem("plugins",JSON.stringify(t))}}function S(r,l,a){var i;const o=s(),e=(i=o[r])==null?void 0:i.findIndex(t=>(t==null?void 0:t.name)===l);if(e>=0){const t={...o,[r]:o[r].map((g,f)=>f===e?{...g,visible:a}:g)};localStorage.setItem("plugins",JSON.stringify(t))}}return{getAll:s,getPluginsFromLocation:c,setPlugin:n,removePlugin:P,togglePlugin:h,togglePluginVisibility:S}}function b(){const s=M(),[n]=y.useState(s.getAll());return y.useMemo(()=>{var P;return((P=Object.keys(n))==null?void 0:P.length)>0?Object.entries(n):[]},[n])}function w(s){const n=b(),c=y.useMemo(()=>{if(n!=null&&n.some(h=>h[0]===s)){let h=n==null?void 0:n.filter(([S])=>S===s)[0][1];return h==null?void 0:h.filter(S=>S.active&&S.visible)}return[]},[n]),P=y.useMemo(()=>(c==null?void 0:c.length)>0,c);return{activeTabs:c,isActiveTabs:P}}function O(s){const n={},c=M();let P=c.getAll();function h(e,i){var t,g;if((i==null?void 0:i.length)>0)for(const f of i){const m=f.section;if(P[m]){const p=i.filter(u=>u.section===m).map(({name:u})=>u),d=(t=P[m])==null?void 0:t.filter(u=>!p.includes(u.name));(d==null?void 0:d.length)>0&&d.forEach(({section:u,name:I})=>{c.removePlugin(u,I)})}}n[e.section]||(n[e.section]=[]),n[e.section].push(e),x.dispatch(v(n)),(g=P[e.section])!=null&&g.some(f=>f.name===e.name)||c.setPlugin(e.section,e)}function S(e){for(let i in s)i!=="Main"&&h(e,n)}function r(e){var f,m;let i=c.getPluginsFromLocation(e);const t=(f=n==null?void 0:n[e])==null?void 0:f.filter((p,d)=>{var u;return((u=n[e])==null?void 0:u.findIndex(I=>I.name===p.name))===d});let g=[];if((t==null?void 0:t.length)>0)for(let p of i){let d=(m=t==null?void 0:t.find)==null?void 0:m.call(t,u=>u.name===p.name);p.active&&g.push(d)}return g||[]}function l(e,i){var f;const t=(f=n==null?void 0:n[e])==null?void 0:f.filter((m,p)=>{var d;return((d=n[e])==null?void 0:d.findIndex(u=>u.name===m.name))===p});return(t==null?void 0:t.find(m=>(m==null?void 0:m.name)===i))||{}}function a(e,i,t){c.togglePlugin(e,i,t)}function o(){const e=[];for(let i in s)i!=="Main"&&e.push(...r(i));return e}return{registerPlugin:h,registerPluginGlobally:S,getAllPlugins:o,getPlugins:r,getPlugin:l,togglePlugin:a}}const L=O(A);function J(s){s.forEach(n=>{n.visible&&L.registerPlugin(n,s)})}export{M as L,L as P,J as i,w as u}; diff --git a/assets/Plugins-ba4b5aef.js b/assets/Plugins-57230a98.js similarity index 94% rename from assets/Plugins-ba4b5aef.js rename to assets/Plugins-57230a98.js index 6ed3cc89..bb669dcd 100644 --- a/assets/Plugins-ba4b5aef.js +++ b/assets/Plugins-57230a98.js @@ -1 +1 @@ -import{h as p,i as b,d as s,F as x,f as g,j as u,g as m}from"./index-a817164a.js";import{r as d}from"./react-432945ee.js";import{L as v}from"./PluginManagerFactory-cd31b81c.js";import{r as S,S as P}from"./createSvgIcon-b33a10f9.js";import{j}from"./reactDnd-707fca38.js";import{u as N}from"./vendor-c662a477.js";import"./reactSelect-ab0ea613.js";import"./memoize-acaceb73.js";const k=e=>p("max-width:1440px;padding:10px;margin:10px;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:1;-ms-flex:1;flex:1;overflow-x:hidden;display:flex;flex:1;height:100%;overflow:hidden;max-width:1440px;align-self:center;.plugin-section{padding:4px;font-size:14px;color:",e.contrast,";}",""),E=e=>p("padding:10px;margin:4px;background:",e.shadow,";border:1px solid ",e.accentNeutral,";color:",e.contrast,";display:flex;align-items:flex-start;flex-direction:column;width:350px;border-radius:3px;height:fit-content;.image{display:flex;align-items:center;}.title{font-size:16px;padding:4px;align-self:flex-start;display:flex;align-items:center;width:100%;.plugin-name{flex:1;margin-left:10px;}.switch{display:flex;align-items:center;justify-self:end;}}.text{font-size:12px;padding:4px;line-height:1.5;}.icon{font-size:60px;opacity:0.25;}","");var h={},_=b;Object.defineProperty(h,"__esModule",{value:!0});var w=h.default=void 0,z=_(S()),C=j;w=h.default=(0,z.default)((0,C.jsx)("path",{d:"M10.5 4.5c.28 0 .5.22.5.5v2h6v6h2c.28 0 .5.22.5.5s-.22.5-.5.5h-2v6h-2.12c-.68-1.75-2.39-3-4.38-3s-3.7 1.25-4.38 3H4v-2.12c1.75-.68 3-2.39 3-4.38 0-1.99-1.24-3.7-2.99-4.38L4 7h6V5c0-.28.22-.5.5-.5m0-2C9.12 2.5 8 3.62 8 5H4c-1.1 0-1.99.9-1.99 2v3.8h.29c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-.3c0-1.49 1.21-2.7 2.7-2.7s2.7 1.21 2.7 2.7v.3H17c1.1 0 2-.9 2-2v-4c1.38 0 2.5-1.12 2.5-2.5S20.38 11 19 11V7c0-1.1-.9-2-2-2h-4c0-1.38-1.12-2.5-2.5-2.5"}),"ExtensionOutlined");const M=e=>{const{name:n,active:t,section:l}=e,i=v(),[r,c]=d.useState(t),a=(o,y,f)=>{c(()=>!f),i.togglePlugin(o,y,!f)};return s(x,{children:s(P,{size:"small",checked:r,onChange:()=>a(l,n,r),inputProps:{"aria-label":"controlled"}})})},O=e=>{const{theme:n,name:t,description:l,section:i,active:r,visible:c}=e;return c?s(x,{children:u("div",{className:m(E(n)),children:[u("div",{className:"title",children:[s("div",{className:"image",children:s(w,{className:"icon"})}),u("div",{className:"plugin-name",children:[" ",t]}),s("div",{className:"switch",children:s(M,{active:r,name:t,section:i})})]}),s("div",{className:"text",children:l})]})}):s(x,{})},H=({components:e,section:n})=>{const t=N(a=>a.currentUser.role),l=d.useMemo(()=>e==null?void 0:e.filter(a=>a.roles.includes(t)),[t,e]),[i,r]=d.useState(l);d.useEffect(()=>{if(t&&e){let a=e==null?void 0:e.filter(o=>o.roles.includes(t));r(a)}},[t,e]);const c=g();return s("div",{children:(i==null?void 0:i.length)>0&&(i==null?void 0:i.map((a,o)=>s(O,{theme:c,name:a.name,active:a.active,visible:a.visible,section:n,description:a.description},o)))})};function L(){const e=g(),n=v(),[t]=d.useState(n.getAll()),l=d.useMemo(()=>{var i;return((i=Object.keys(t))==null?void 0:i.length)>0?Object.entries(t):[]},[t]);return s("div",{className:m(k(e)),children:(l==null?void 0:l.length)>0&&(l==null?void 0:l.map(([i,r],c)=>s("div",{style:{marginTop:"4px"},children:s(H,{components:r,section:i})},c)))})}export{L as default}; +import{h as p,i as b,d as s,F as x,f as g,j as u,g as m}from"./index-284a6932.js";import{r as d}from"./react-432945ee.js";import{L as v}from"./PluginManagerFactory-a67ca61d.js";import{r as S,S as P}from"./createSvgIcon-453c5eac.js";import{j}from"./reactDnd-707fca38.js";import{u as N}from"./vendor-c662a477.js";import"./reactSelect-ab0ea613.js";import"./memoize-acaceb73.js";const k=e=>p("max-width:1440px;padding:10px;margin:10px;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:1;-ms-flex:1;flex:1;overflow-x:hidden;display:flex;flex:1;height:100%;overflow:hidden;max-width:1440px;align-self:center;.plugin-section{padding:4px;font-size:14px;color:",e.contrast,";}",""),E=e=>p("padding:10px;margin:4px;background:",e.shadow,";border:1px solid ",e.accentNeutral,";color:",e.contrast,";display:flex;align-items:flex-start;flex-direction:column;width:350px;border-radius:3px;height:fit-content;.image{display:flex;align-items:center;}.title{font-size:16px;padding:4px;align-self:flex-start;display:flex;align-items:center;width:100%;.plugin-name{flex:1;margin-left:10px;}.switch{display:flex;align-items:center;justify-self:end;}}.text{font-size:12px;padding:4px;line-height:1.5;}.icon{font-size:60px;opacity:0.25;}","");var h={},_=b;Object.defineProperty(h,"__esModule",{value:!0});var w=h.default=void 0,z=_(S()),C=j;w=h.default=(0,z.default)((0,C.jsx)("path",{d:"M10.5 4.5c.28 0 .5.22.5.5v2h6v6h2c.28 0 .5.22.5.5s-.22.5-.5.5h-2v6h-2.12c-.68-1.75-2.39-3-4.38-3s-3.7 1.25-4.38 3H4v-2.12c1.75-.68 3-2.39 3-4.38 0-1.99-1.24-3.7-2.99-4.38L4 7h6V5c0-.28.22-.5.5-.5m0-2C9.12 2.5 8 3.62 8 5H4c-1.1 0-1.99.9-1.99 2v3.8h.29c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-.3c0-1.49 1.21-2.7 2.7-2.7s2.7 1.21 2.7 2.7v.3H17c1.1 0 2-.9 2-2v-4c1.38 0 2.5-1.12 2.5-2.5S20.38 11 19 11V7c0-1.1-.9-2-2-2h-4c0-1.38-1.12-2.5-2.5-2.5"}),"ExtensionOutlined");const M=e=>{const{name:n,active:t,section:l}=e,i=v(),[r,c]=d.useState(t),a=(o,y,f)=>{c(()=>!f),i.togglePlugin(o,y,!f)};return s(x,{children:s(P,{size:"small",checked:r,onChange:()=>a(l,n,r),inputProps:{"aria-label":"controlled"}})})},O=e=>{const{theme:n,name:t,description:l,section:i,active:r,visible:c}=e;return c?s(x,{children:u("div",{className:m(E(n)),children:[u("div",{className:"title",children:[s("div",{className:"image",children:s(w,{className:"icon"})}),u("div",{className:"plugin-name",children:[" ",t]}),s("div",{className:"switch",children:s(M,{active:r,name:t,section:i})})]}),s("div",{className:"text",children:l})]})}):s(x,{})},H=({components:e,section:n})=>{const t=N(a=>a.currentUser.role),l=d.useMemo(()=>e==null?void 0:e.filter(a=>a.roles.includes(t)),[t,e]),[i,r]=d.useState(l);d.useEffect(()=>{if(t&&e){let a=e==null?void 0:e.filter(o=>o.roles.includes(t));r(a)}},[t,e]);const c=g();return s("div",{children:(i==null?void 0:i.length)>0&&(i==null?void 0:i.map((a,o)=>s(O,{theme:c,name:a.name,active:a.active,visible:a.visible,section:n,description:a.description},o)))})};function L(){const e=g(),n=v(),[t]=d.useState(n.getAll()),l=d.useMemo(()=>{var i;return((i=Object.keys(t))==null?void 0:i.length)>0?Object.entries(t):[]},[t]);return s("div",{className:m(k(e)),children:(l==null?void 0:l.length)>0&&(l==null?void 0:l.map(([i,r],c)=>s("div",{style:{marginTop:"4px"},children:s(H,{components:r,section:i})},c)))})}export{L as default}; diff --git a/assets/UserRoles-ce4abc0a.js b/assets/UserRoles-654b75ab.js similarity index 98% rename from assets/UserRoles-ce4abc0a.js rename to assets/UserRoles-654b75ab.js index 7cdf69bd..04a7b512 100644 --- a/assets/UserRoles-ce4abc0a.js +++ b/assets/UserRoles-654b75ab.js @@ -1 +1 @@ -import{ac as F,n as T,m as q,s as D,ah as Q,c as J,ai as G,b as $,i as B,f as I,d as i,g as M,h as z,F as H,j as y,D as K}from"./index-a817164a.js";import{r as S}from"./react-432945ee.js";import{a as U,d as V,m as W,u as X,n as _,w as Y}from"./vendor-c662a477.js";import{r as Z,S as ee}from"./createSvgIcon-b33a10f9.js";import{j as A}from"./reactDnd-707fca38.js";import{s as j}from"./actions-2742fbfc.js";import"./reactSelect-ab0ea613.js";import"./memoize-acaceb73.js";const re=F(A.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function te(e){return T("MuiAvatar",e)}q("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const oe=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],se=G(),ae=e=>{const{classes:r,variant:o,colorDefault:a}=e;return $({root:["root",o,a&&"colorDefault"],img:["img"],fallback:["fallback"]},te,r)},ne=D("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:o}=e;return[r.root,r[o.variant],o.colorDefault&&r.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:U({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:U({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),ie=D("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,r)=>r.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),le=D(re,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,r)=>r.fallback})({width:"75%",height:"75%"});function ce({crossOrigin:e,referrerPolicy:r,src:o,srcSet:a}){const[d,g]=S.useState(!1);return S.useEffect(()=>{if(!o&&!a)return;g(!1);let v=!0;const l=new Image;return l.onload=()=>{v&&g("loaded")},l.onerror=()=>{v&&g("error")},l.crossOrigin=e,l.referrerPolicy=r,l.src=o,a&&(l.srcset=a),()=>{v=!1}},[e,r,o,a]),d}const de=S.forwardRef(function(r,o){const a=se({props:r,name:"MuiAvatar"}),{alt:d,children:g,className:v,component:l="div",slots:h={},slotProps:C={},imgProps:k,sizes:x,src:n,srcSet:s,variant:c="circular"}=a,p=V(a,oe);let u=null;const R=ce(U({},k,{src:n,srcSet:s})),N=n||s,E=N&&R!=="error",t=U({},a,{colorDefault:!E,component:l,variant:c}),f=ae(t),[b,m]=Q("img",{className:f.img,elementType:ie,externalForwardedProps:{slots:h,slotProps:{img:U({},k,C.img)}},additionalProps:{alt:d,src:n,srcSet:s,sizes:x},ownerState:t});return E?u=A.jsx(b,U({},m)):g||g===0?u=g:N&&d?u=d[0]:u=A.jsx(le,{ownerState:t,className:f.fallback}),A.jsx(ne,U({as:l,ownerState:t,className:J(f.root,v),ref:o},p,{children:u}))}),ue=de;var P={},pe=B;Object.defineProperty(P,"__esModule",{value:!0});var O=P.default=void 0,fe=pe(Z()),ge=A;O=P.default=(0,fe.default)((0,ge.jsx)("path",{d:"M21.95 10.99c-1.79-.03-3.7-1.95-2.68-4.22-2.98 1-5.77-1.59-5.19-4.56C6.95.71 2 6.58 2 12c0 5.52 4.48 10 10 10 5.89 0 10.54-5.08 9.95-11.01M8.5 15c-.83 0-1.5-.67-1.5-1.5S7.67 12 8.5 12s1.5.67 1.5 1.5S9.33 15 8.5 15m2-5C9.67 10 9 9.33 9 8.5S9.67 7 10.5 7s1.5.67 1.5 1.5-.67 1.5-1.5 1.5m4.5 6c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1"}),"Cookie");function me(e){return e.split(" ").map(r=>r[0].toUpperCase()).slice(0,3).join("")}const ve={SUPER_ADMIN_ROLE:"superAdmin",ADMIN_ROLE:"admin",USER_ROLE:"user",GUEST_ROLE:"guest"},L="store_user",xe=()=>{let e=[];try{let r=localStorage.getItem(L);if(r&&typeof r=="string"){let o=JSON.parse(r);if(o&&(o==null?void 0:o.length)>0)return e=o,e}return e}catch(r){return console.log("Error on retrieving users from localstorage: ",r),e}},w=e=>{try{localStorage.setItem(L,JSON.stringify(e))}catch(r){console.log("Error storing users data",r)}},he=e=>z("background:",e.background,";padding:10px;display:flex;flex:1;flex-direction:column;align-items:center;.cont{display:flex;width:100%;border-radius:3px;max-width:1280px;background:",e.shadow,";border:1px solid ",e.accentNeutral,";flex:1;flex-direction:column;}.user-row{display:flex;align-items:center;margin:5px;justify-content:space-between;border:1px solid ",e.accentNeutral,";padding:10px;border-radius:3px;height:30px;p{color:",e.contrast,";font-size:10px;letter-spacing:1px;text-transform:uppercase;display:flex;align-items:center;}.avatar{color:",e.contrast,";font-size:10px;letter-spacing:1px;display:flex;align-items:center;gap:4px;text-transform:uppercase;}select{margin-left:4px;font-size:12px;color:",e.contrast,";padding:4px;border-radius:3px;background:",e.deep,";}.user-role{display:flex;align-items:center;font-size:10px;text-transform:uppercase;color:",e.contrast,";p{margin-left:4px;}}.name-input{display:flex;align-items:center;padding:4px;border:1px solid ",e.accentNeutral,";border-radius:3px;background:",e.deep,";color:",e.contrast,";height:26px;font-size:12px;}.action-buttons{display:flex;align-items:center;gap:4px;width:80px;button{display:flex;align-items:center;flex:1;background:",e.shadow,";border:1px solid ",e.accentNeutral,";border-radius:3px;cursor:pointer;color:",e.contrast,";max-width:25px;&:hover{background:",e.background,";}.cookie-icon{font-size:15px;color:",e.contrast,";}}}}",""),be=(e,r)=>z("padding:4px;border-radius:3px;font-size:10px;text-transform:uppercase;color:",r?e.primary:e.contrast,"!important;color:",e.deep,";cursor:pointer;display:flex;align-items:center;border:1px solid transparent;&:hover{border:1px solid ",e.accentNeutral,';}&:after{content:"";margin-left:4px;display:flex;width:10px;height:10px;border-radius:3px;background:',r?e.primary:e.shadow,";border:1px solid ",e.primary,";}",""),ye=({name:e})=>i(ue,{children:me(e)}),Ue=e=>{const{user:r,onUserAdd:o,onUserChange:a,onUserRemove:d,onUserCookie:g,onUserSelect:v}=e,{name:l,role:h,active:C,id:k}=r,x=h===ve.SUPER_ADMIN_ROLE,n=I(),[s,c]=S.useState(!1);return y("div",{className:"user-row",children:[s?i("p",{children:i("input",{className:"name-input",value:l,onChange:t=>{var m;let f=(m=t==null?void 0:t.target)==null?void 0:m.value;f.trim()===""&&(f=`Qryn ${h}`);let b={...r,name:K.sanitize(f)};a(t,b)},onKeyDown:t=>{t.key==="Enter"&&c(()=>!1)}})}):y("div",{onClick:()=>{x||c(t=>!t)},className:"avatar",children:[i(ye,{name:l}),i("span",{children:l})]}),y("div",{className:"user-role",children:["Role:"," ",x?i("p",{children:"Super Admin"}):y("select",{onChange:t=>{var m;let f=(m=t==null?void 0:t.target)==null?void 0:m.value,b={...r,role:f};a(t,b)},defaultValue:h,children:[i("option",{value:"user",children:"User"}),i("option",{value:"admin",children:"Admin"}),i("option",{value:"guest",children:"Guest"})]})]}),y("p",{children:["Active"," ",!x&&i(ee,{checked:C,size:"small",inputProps:{"aria-label":"controlled"},onChange:t=>{var m;let f=(m=t==null?void 0:t.target)==null?void 0:m.checked,b={...r,active:f};a(t,b)}})]}),y("div",{onClick:t=>v(t,r),className:M(be(n,r.selected)),children:["Current User"," "]}),y("div",{className:"action-buttons",children:[i("button",{title:"generate cookie from user",onClick:t=>g(t,r),children:i(O,{className:"cookie-icon"})}),i("button",{title:"add user",onClick:o,children:"+"}),!x&&i("button",{title:"remove user",onClick:t=>d(t,k),children:"-"})]})]})},ke=()=>{const e=W(),r=X(n=>n.currentUser),o=S.useMemo(()=>xe(),[]),[a,d]=S.useState((o==null?void 0:o.length)>0?o:[{id:_(),name:"Qryn Admin",role:"superAdmin",active:!0,selected:!0}]),[g,v]=Y(["user-cookie"]),l=()=>{d(n=>{let s=[...n,{id:_(),name:"Qryn User",role:"user",active:!0,selected:!1}];return w(s),s})},h=(n,s)=>{n.preventDefault(),d(c=>{let p=[...c],u=p==null?void 0:p.map(R=>R.id===s.id?{...s,selected:!0}:{...R,selected:!1});return w(u),u}),e(j({...s,selected:!0}))},C=(n,s)=>{n.preventDefault();const c=[...a].filter(p=>p.id!==s);d(()=>(w(c),c))},k=(n,s)=>{n.preventDefault();let c=[...a],p=c==null?void 0:c.map(u=>u.id===s.id?s:u);s.id===r.id&&e(j(s)),d(()=>p),w(p)},x=(n,s)=>{n.preventDefault();try{v("user-cookie",btoa(JSON.stringify(s)))}catch(c){console.log(c,"Error on setting user cookie")}};return i(H,{children:(a==null?void 0:a.length)>0&&a.map((n,s)=>i(Ue,{user:n,onUserAdd:l,onUserChange:k,onUserRemove:C,onUserCookie:x,onUserSelect:h},s))})},Pe=()=>{const e=I();return i("div",{className:M(he(e)),children:i("div",{className:"cont",children:i(ke,{})})})};export{Pe as default,xe as getUsersFromLocal,w as setLocalUsers}; +import{ac as F,n as T,m as q,s as D,ah as Q,c as J,ai as G,b as $,i as B,f as I,d as i,g as M,h as z,F as H,j as y,D as K}from"./index-284a6932.js";import{r as S}from"./react-432945ee.js";import{a as U,d as V,m as W,u as X,n as _,w as Y}from"./vendor-c662a477.js";import{r as Z,S as ee}from"./createSvgIcon-453c5eac.js";import{j as A}from"./reactDnd-707fca38.js";import{s as j}from"./actions-2742fbfc.js";import"./reactSelect-ab0ea613.js";import"./memoize-acaceb73.js";const re=F(A.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function te(e){return T("MuiAvatar",e)}q("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const oe=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],se=G(),ae=e=>{const{classes:r,variant:o,colorDefault:a}=e;return $({root:["root",o,a&&"colorDefault"],img:["img"],fallback:["fallback"]},te,r)},ne=D("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:o}=e;return[r.root,r[o.variant],o.colorDefault&&r.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:U({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:U({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),ie=D("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,r)=>r.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),le=D(re,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,r)=>r.fallback})({width:"75%",height:"75%"});function ce({crossOrigin:e,referrerPolicy:r,src:o,srcSet:a}){const[d,g]=S.useState(!1);return S.useEffect(()=>{if(!o&&!a)return;g(!1);let v=!0;const l=new Image;return l.onload=()=>{v&&g("loaded")},l.onerror=()=>{v&&g("error")},l.crossOrigin=e,l.referrerPolicy=r,l.src=o,a&&(l.srcset=a),()=>{v=!1}},[e,r,o,a]),d}const de=S.forwardRef(function(r,o){const a=se({props:r,name:"MuiAvatar"}),{alt:d,children:g,className:v,component:l="div",slots:h={},slotProps:C={},imgProps:k,sizes:x,src:n,srcSet:s,variant:c="circular"}=a,p=V(a,oe);let u=null;const R=ce(U({},k,{src:n,srcSet:s})),N=n||s,E=N&&R!=="error",t=U({},a,{colorDefault:!E,component:l,variant:c}),f=ae(t),[b,m]=Q("img",{className:f.img,elementType:ie,externalForwardedProps:{slots:h,slotProps:{img:U({},k,C.img)}},additionalProps:{alt:d,src:n,srcSet:s,sizes:x},ownerState:t});return E?u=A.jsx(b,U({},m)):g||g===0?u=g:N&&d?u=d[0]:u=A.jsx(le,{ownerState:t,className:f.fallback}),A.jsx(ne,U({as:l,ownerState:t,className:J(f.root,v),ref:o},p,{children:u}))}),ue=de;var P={},pe=B;Object.defineProperty(P,"__esModule",{value:!0});var O=P.default=void 0,fe=pe(Z()),ge=A;O=P.default=(0,fe.default)((0,ge.jsx)("path",{d:"M21.95 10.99c-1.79-.03-3.7-1.95-2.68-4.22-2.98 1-5.77-1.59-5.19-4.56C6.95.71 2 6.58 2 12c0 5.52 4.48 10 10 10 5.89 0 10.54-5.08 9.95-11.01M8.5 15c-.83 0-1.5-.67-1.5-1.5S7.67 12 8.5 12s1.5.67 1.5 1.5S9.33 15 8.5 15m2-5C9.67 10 9 9.33 9 8.5S9.67 7 10.5 7s1.5.67 1.5 1.5-.67 1.5-1.5 1.5m4.5 6c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1"}),"Cookie");function me(e){return e.split(" ").map(r=>r[0].toUpperCase()).slice(0,3).join("")}const ve={SUPER_ADMIN_ROLE:"superAdmin",ADMIN_ROLE:"admin",USER_ROLE:"user",GUEST_ROLE:"guest"},L="store_user",xe=()=>{let e=[];try{let r=localStorage.getItem(L);if(r&&typeof r=="string"){let o=JSON.parse(r);if(o&&(o==null?void 0:o.length)>0)return e=o,e}return e}catch(r){return console.log("Error on retrieving users from localstorage: ",r),e}},w=e=>{try{localStorage.setItem(L,JSON.stringify(e))}catch(r){console.log("Error storing users data",r)}},he=e=>z("background:",e.background,";padding:10px;display:flex;flex:1;flex-direction:column;align-items:center;.cont{display:flex;width:100%;border-radius:3px;max-width:1280px;background:",e.shadow,";border:1px solid ",e.accentNeutral,";flex:1;flex-direction:column;}.user-row{display:flex;align-items:center;margin:5px;justify-content:space-between;border:1px solid ",e.accentNeutral,";padding:10px;border-radius:3px;height:30px;p{color:",e.contrast,";font-size:10px;letter-spacing:1px;text-transform:uppercase;display:flex;align-items:center;}.avatar{color:",e.contrast,";font-size:10px;letter-spacing:1px;display:flex;align-items:center;gap:4px;text-transform:uppercase;}select{margin-left:4px;font-size:12px;color:",e.contrast,";padding:4px;border-radius:3px;background:",e.deep,";}.user-role{display:flex;align-items:center;font-size:10px;text-transform:uppercase;color:",e.contrast,";p{margin-left:4px;}}.name-input{display:flex;align-items:center;padding:4px;border:1px solid ",e.accentNeutral,";border-radius:3px;background:",e.deep,";color:",e.contrast,";height:26px;font-size:12px;}.action-buttons{display:flex;align-items:center;gap:4px;width:80px;button{display:flex;align-items:center;flex:1;background:",e.shadow,";border:1px solid ",e.accentNeutral,";border-radius:3px;cursor:pointer;color:",e.contrast,";max-width:25px;&:hover{background:",e.background,";}.cookie-icon{font-size:15px;color:",e.contrast,";}}}}",""),be=(e,r)=>z("padding:4px;border-radius:3px;font-size:10px;text-transform:uppercase;color:",r?e.primary:e.contrast,"!important;color:",e.deep,";cursor:pointer;display:flex;align-items:center;border:1px solid transparent;&:hover{border:1px solid ",e.accentNeutral,';}&:after{content:"";margin-left:4px;display:flex;width:10px;height:10px;border-radius:3px;background:',r?e.primary:e.shadow,";border:1px solid ",e.primary,";}",""),ye=({name:e})=>i(ue,{children:me(e)}),Ue=e=>{const{user:r,onUserAdd:o,onUserChange:a,onUserRemove:d,onUserCookie:g,onUserSelect:v}=e,{name:l,role:h,active:C,id:k}=r,x=h===ve.SUPER_ADMIN_ROLE,n=I(),[s,c]=S.useState(!1);return y("div",{className:"user-row",children:[s?i("p",{children:i("input",{className:"name-input",value:l,onChange:t=>{var m;let f=(m=t==null?void 0:t.target)==null?void 0:m.value;f.trim()===""&&(f=`Qryn ${h}`);let b={...r,name:K.sanitize(f)};a(t,b)},onKeyDown:t=>{t.key==="Enter"&&c(()=>!1)}})}):y("div",{onClick:()=>{x||c(t=>!t)},className:"avatar",children:[i(ye,{name:l}),i("span",{children:l})]}),y("div",{className:"user-role",children:["Role:"," ",x?i("p",{children:"Super Admin"}):y("select",{onChange:t=>{var m;let f=(m=t==null?void 0:t.target)==null?void 0:m.value,b={...r,role:f};a(t,b)},defaultValue:h,children:[i("option",{value:"user",children:"User"}),i("option",{value:"admin",children:"Admin"}),i("option",{value:"guest",children:"Guest"})]})]}),y("p",{children:["Active"," ",!x&&i(ee,{checked:C,size:"small",inputProps:{"aria-label":"controlled"},onChange:t=>{var m;let f=(m=t==null?void 0:t.target)==null?void 0:m.checked,b={...r,active:f};a(t,b)}})]}),y("div",{onClick:t=>v(t,r),className:M(be(n,r.selected)),children:["Current User"," "]}),y("div",{className:"action-buttons",children:[i("button",{title:"generate cookie from user",onClick:t=>g(t,r),children:i(O,{className:"cookie-icon"})}),i("button",{title:"add user",onClick:o,children:"+"}),!x&&i("button",{title:"remove user",onClick:t=>d(t,k),children:"-"})]})]})},ke=()=>{const e=W(),r=X(n=>n.currentUser),o=S.useMemo(()=>xe(),[]),[a,d]=S.useState((o==null?void 0:o.length)>0?o:[{id:_(),name:"Qryn Admin",role:"superAdmin",active:!0,selected:!0}]),[g,v]=Y(["user-cookie"]),l=()=>{d(n=>{let s=[...n,{id:_(),name:"Qryn User",role:"user",active:!0,selected:!1}];return w(s),s})},h=(n,s)=>{n.preventDefault(),d(c=>{let p=[...c],u=p==null?void 0:p.map(R=>R.id===s.id?{...s,selected:!0}:{...R,selected:!1});return w(u),u}),e(j({...s,selected:!0}))},C=(n,s)=>{n.preventDefault();const c=[...a].filter(p=>p.id!==s);d(()=>(w(c),c))},k=(n,s)=>{n.preventDefault();let c=[...a],p=c==null?void 0:c.map(u=>u.id===s.id?s:u);s.id===r.id&&e(j(s)),d(()=>p),w(p)},x=(n,s)=>{n.preventDefault();try{v("user-cookie",btoa(JSON.stringify(s)))}catch(c){console.log(c,"Error on setting user cookie")}};return i(H,{children:(a==null?void 0:a.length)>0&&a.map((n,s)=>i(Ue,{user:n,onUserAdd:l,onUserChange:k,onUserRemove:C,onUserCookie:x,onUserSelect:h},s))})},Pe=()=>{const e=I();return i("div",{className:M(he(e)),children:i("div",{className:"cont",children:i(ke,{})})})};export{Pe as default,xe as getUsersFromLocal,w as setLocalUsers}; diff --git a/assets/consts-a4ab3ea8.js b/assets/consts-a4ab3ea8.js new file mode 100644 index 00000000..d82b3584 --- /dev/null +++ b/assets/consts-a4ab3ea8.js @@ -0,0 +1,6 @@ +var Ku=Object.defineProperty;var qu=(e,t,n)=>t in e?Ku(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Kt=(e,t,n)=>(qu(e,typeof t!="symbol"?t+"":t,n),n);import{K as Cl,L as wl,M as Sl,q as fa,c as ae,m as xe,O as Ml,R as Gu,S as kl,T as Xu,U as Qu,V as Zu,v as Ms,t as fo,W as Ju,X as ed,Y as td,Z as ks,b as we,n as Se,_ as Lr,$ as nd,a0 as rd,a1 as Tl,a2 as od,a3 as ad,a4 as Ue,a5 as Wn,s as X,o as Ce,u as be,a6 as sd,a7 as _t,a8 as Ts,a9 as en,aa as id,ab as ld,A as Pl,ac as rr,r as or,a as Xt,P as Gr,ad as zn,ae as cd,B as pa,af as ud,ag as dd,f as jt,d as B,g as Ve,h as Ie,i as st,j as oe,I as fd,F as Or,x as Pr,e as $r,w as po,k as le}from"./index-284a6932.js";import{i as pd,P as Ps}from"./PluginManagerFactory-a67ca61d.js";import{d as J,a as x,n as ha,M as Re,ah as ho,D as He,ai as gt,I as ze,J as ma,A as $s,Y as ft,a7 as Xn,X as ga,K as $l,aa as Yo,aj as hd,ak as md,G as Ko,al as gd,am as vd,a3 as mo,a4 as Es,an as xd,V as bd,W as yd,ao as El,F as Dl,ap as va,E as xa,aq as Cd,ar as wd,j as Ft,a0 as Rl,a9 as Sd,as as Md,u as gn,m as Nl}from"./vendor-c662a477.js";import{r as p,a as hr,R as Nt,b as kd,c as Td,g as Pd,d as $d}from"./react-432945ee.js";import{o as Le,a as bt,c as Ds,b as Ed,u as Ll,d as Xr,e as Ol,f as Dd,r as it,S as go}from"./createSvgIcon-453c5eac.js";import{j as v}from"./reactDnd-707fca38.js";import{B as Rd,s as Nd,d as Ld}from"./DeleteOutlineOutlined-c50f292a.js";import{T as Od,d as _d,f as Id,j as Ad}from"./reactSelect-ab0ea613.js";const qk=e=>t=>{t({type:"SET_IS_SUBMIT",isSubmit:e})},jd=e=>t=>{t({type:"SET_AUTO_THEME",autoTheme:e})},Fd=["className","component"];function _l(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=Cl("div",{shouldForwardProp:i=>i!=="theme"&&i!=="sx"&&i!=="as"})(wl);return p.forwardRef(function(l,c){const u=Sl(n),d=fa(l),{className:f,component:h="div"}=d,m=J(d,Fd);return v.jsx(a,x({as:h,ref:c,className:ae(f,o?o(r):r),theme:t&&u[t]||u},m))})}const Bd=xe("MuiBox",["root"]),Hd=Bd,Wd=_l({defaultClassName:Hd.root,generateClassName:Ml.generate}),zd=Wd,Ud=["ownerState"],Vd=["variants"],Yd=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Kd(e){return Object.keys(e).length===0}function qd(e){return typeof e=="string"&&e.charCodeAt(0)>96}function vo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Gd=kl(),Xd=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function mr({defaultTheme:e,theme:t,themeId:n}){return Kd(t)?e:t[n]||t}function Qd(e){return e?(t,n)=>n[e]:null}function Er(e,t){let{ownerState:n}=t,r=J(t,Ud);const o=typeof e=="function"?e(x({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(a=>Er(a,x({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let i=J(o,Vd);return a.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props(x({ownerState:n},r,n)):Object.keys(l.props).forEach(u=>{(n==null?void 0:n[u])!==l.props[u]&&r[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(i)||(i=[i]),i.push(typeof l.style=="function"?l.style(x({ownerState:n},r,n)):l.style))}),i}return o}function Zd(e={}){const{themeId:t,defaultTheme:n=Gd,rootShouldForwardProp:r=vo,slotShouldForwardProp:o=vo}=e,a=s=>wl(x({},s,{theme:mr(x({},s,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(s,i={})=>{Gu(s,k=>k.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:f=Qd(Xd(c))}=i,h=J(i,Yd),m=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,y=d||!1;let b,g=vo;c==="Root"||c==="root"?g=r:c?g=o:qd(s)&&(g=void 0);const M=Cl(s,x({shouldForwardProp:g,label:b},h)),w=k=>typeof k=="function"&&k.__emotion_real!==k||Xu(k)?T=>Er(k,x({},T,{theme:mr({theme:T.theme,defaultTheme:n,themeId:t})})):k,C=(k,...T)=>{let D=w(k);const O=T?T.map(w):[];l&&f&&O.push(R=>{const F=mr(x({},R,{defaultTheme:n,themeId:t}));if(!F.components||!F.components[l]||!F.components[l].styleOverrides)return null;const j=F.components[l].styleOverrides,L={};return Object.entries(j).forEach(([E,P])=>{L[E]=Er(P,x({},R,{theme:F}))}),f(R,L)}),l&&!m&&O.push(R=>{var F;const j=mr(x({},R,{defaultTheme:n,themeId:t})),L=j==null||(F=j.components)==null||(F=F[l])==null?void 0:F.variants;return Er({variants:L},x({},R,{theme:j}))}),y||O.push(a);const I=O.length-T.length;if(Array.isArray(k)&&I>0){const R=new Array(I).fill("");D=[...k,...R],D.raw=[...k.raw,...R]}const N=M(D,...O);return s.muiName&&(N.muiName=s.muiName),N};return M.withConfig&&(C.withConfig=M.withConfig),C}}const Jd=Zd(),ef=Jd;function Il(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let fn;function Al(){if(fn)return fn;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),fn="reverse",e.scrollLeft>0?fn="default":(e.scrollLeft=1,e.scrollLeft===0&&(fn="negative")),document.body.removeChild(e),fn}function tf(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(Al()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const nf=p.createContext(null),jl=nf;function Fl(){return p.useContext(jl)}const rf=typeof Symbol=="function"&&Symbol.for,of=rf?Symbol.for("mui.nested"):"__THEME_NESTED__";function af(e,t){return typeof t=="function"?t(e):x({},e,t)}function sf(e){const{children:t,theme:n}=e,r=Fl(),o=p.useMemo(()=>{const a=r===null?n:af(r,n);return a!=null&&(a[of]=r!==null),a},[n,r]);return v.jsx(jl.Provider,{value:o,children:t})}const lf=["value"],Bl=p.createContext();function cf(e){let{value:t}=e,n=J(e,lf);return v.jsx(Bl.Provider,x({value:t??!0},n))}const ar=()=>{const e=p.useContext(Bl);return e??!1},Rs={};function Ns(e,t,n,r=!1){return p.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const a=n(o),s=e?x({},t,{[e]:a}):a;return r?()=>s:s}return e?x({},t,{[e]:n}):x({},t,n)},[e,t,n,r])}function uf(e){const{children:t,theme:n,themeId:r}=e,o=Qu(Rs),a=Fl()||Rs,s=Ns(r,o,n),i=Ns(r,a,n,!0),l=s.direction==="rtl";return v.jsx(sf,{theme:i,children:v.jsx(Od.Provider,{value:s,children:v.jsx(cf,{value:l,children:t})})})}const df=["component","direction","spacing","divider","children","className","useFlexGap"],ff=kl(),pf=ef("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function hf(e){return Zu({props:e,name:"MuiStack",defaultTheme:ff})}function mf(e,t){const n=p.Children.toArray(e).filter(Boolean);return n.reduce((r,o,a)=>(r.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],vf=({ownerState:e,theme:t})=>{let n=x({display:"flex",flexDirection:"column"},Ms({theme:t},fo({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=Ju(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),a=fo({values:e.direction,base:o}),s=fo({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((l,c,u)=>{if(!a[l]){const f=c>0?a[u[c-1]]:"column";a[l]=f}}),n=ed(n,Ms({theme:t},s,(l,c)=>e.useFlexGap?{gap:ks(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${gf(c?a[c]:e.direction)}`]:ks(r,l)}}))}return n=td(t.breakpoints,n),n};function xf(e={}){const{createStyledComponent:t=pf,useThemeProps:n=hf,componentName:r="MuiStack"}=e,o=()=>we({root:["root"]},l=>Se(r,l),{}),a=t(vf);return p.forwardRef(function(l,c){const u=n(l),d=fa(u),{component:f="div",direction:h="column",spacing:m=0,divider:y,children:b,className:g,useFlexGap:M=!1}=d,w=J(d,df),C={direction:h,spacing:m,useFlexGap:M},k=o();return v.jsx(a,x({as:f,ownerState:C,ref:c,className:ae(k.root,g)},w,{children:y?mf(b,y):b}))})}function lt(){const e=Sl(nd);return e[Lr]||e}const bf=["theme"];function yf(e){let{theme:t}=e,n=J(e,bf);const r=t[Lr];return v.jsx(uf,x({},n,{themeId:r?Lr:void 0,theme:r||t}))}const Ls={disabled:!1};var Cf=function(t){return t.scrollTop},Un="unmounted",qt="exited",Gt="entering",mn="entered",qo="exiting",Mt=function(e){rd(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=o,i=s&&!s.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?i?(l=qt,a.appearStatus=Gt):l=mn:r.unmountOnExit||r.mountOnEnter?l=Un:l=qt,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var s=o.in;return s&&a.status===Un?{status:qt}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var a=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Gt&&s!==mn&&(a=Gt):(s===Gt||s===mn)&&(a=qo)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,s,i;return a=s=i=o,o!=null&&typeof o!="number"&&(a=o.exit,s=o.enter,i=o.appear!==void 0?o.appear:s),{exit:a,enter:s,appear:i}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===Gt){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:hr.findDOMNode(this);s&&Cf(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===qt&&this.setState({status:Un})},n.performEnter=function(o){var a=this,s=this.props.enter,i=this.context?this.context.isMounting:o,l=this.props.nodeRef?[i]:[hr.findDOMNode(this),i],c=l[0],u=l[1],d=this.getTimeouts(),f=i?d.appear:d.enter;if(!o&&!s||Ls.disabled){this.safeSetState({status:mn},function(){a.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Gt},function(){a.props.onEntering(c,u),a.onTransitionEnd(f,function(){a.safeSetState({status:mn},function(){a.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,a=this.props.exit,s=this.getTimeouts(),i=this.props.nodeRef?void 0:hr.findDOMNode(this);if(!a||Ls.disabled){this.safeSetState({status:qt},function(){o.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:qo},function(){o.props.onExiting(i),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:qt},function(){o.props.onExited(i)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},n.setNextCallback=function(o){var a=this,s=!0;return this.nextCallback=function(i){s&&(s=!1,a.nextCallback=null,o(i))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:hr.findDOMNode(this),i=o==null&&!this.props.addEndListener;if(!s||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Un)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var i=J(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Nt.createElement(Tl.Provider,{value:null},typeof s=="function"?s(o,i):Nt.cloneElement(Nt.Children.only(s),i))},t}(Nt.Component);Mt.contextType=Tl;Mt.propTypes={};function pn(){}Mt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:pn,onEntering:pn,onEntered:pn,onExit:pn,onExiting:pn,onExited:pn};Mt.UNMOUNTED=Un;Mt.EXITED=qt;Mt.ENTERING=Gt;Mt.ENTERED=mn;Mt.EXITING=qo;const ba=Mt,ya=e=>e.scrollTop;function xn(e,t){var n,r;const{timeout:o,easing:a,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof a=="object"?a[t.mode]:a,delay:s.transitionDelay}}const wf={disableDefaultClasses:!1},Sf=p.createContext(wf);function Mf(e){const{disableDefaultClasses:t}=p.useContext(Sf);return n=>t?"":e(n)}const kf=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ye(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,s=J(e,kf),i=a?{}:od(r,o),{props:l,internalRef:c}=ad(x({},s,{externalSlotProps:i})),u=Ue(c,i==null?void 0:i.ref,(t=e.additionalProps)==null?void 0:t.ref);return Wn(n,x({},l,{ref:u}),o)}function Tf(e){return Se("MuiTypography",e)}xe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Pf=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],$f=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:s}=e,i={root:["root",a,e.align!=="inherit"&&`align${Ce(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return we(i,Tf,s)},Ef=X("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Ce(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>x({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Os={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Df={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Rf=e=>Df[e]||e,Nf=p.forwardRef(function(t,n){const r=be({props:t,name:"MuiTypography"}),o=Rf(r.color),a=fa(x({},r,{color:o})),{align:s="inherit",className:i,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:d=!1,variant:f="body1",variantMapping:h=Os}=a,m=J(a,Pf),y=x({},a,{align:s,color:o,className:i,component:l,gutterBottom:c,noWrap:u,paragraph:d,variant:f,variantMapping:h}),b=l||(d?"p":h[f]||Os[f])||"span",g=$f(y);return v.jsx(Ef,x({as:b,ref:n,ownerState:y,className:ae(g.root,i)},m))}),Ot=Nf,Hl="base";function Lf(e){return`${Hl}--${e}`}function Of(e,t){return`${Hl}-${e}-${t}`}function Wl(e,t){const n=sd[t];return n?Lf(n):Of(e,t)}function _f(e,t){const n={};return t.forEach(r=>{n[r]=Wl(e,r)}),n}const If=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Af(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function jf(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Ff(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||jf(e))}function Bf(e){const t=[],n=[];return Array.from(e.querySelectorAll(If)).forEach((r,o)=>{const a=Af(r);a===-1||!Ff(r)||(a===0?t.push(r):n.push({documentOrder:o,tabIndex:a,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function Hf(){return!0}function Wf(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=Bf,isEnabled:s=Hf,open:i}=e,l=p.useRef(!1),c=p.useRef(null),u=p.useRef(null),d=p.useRef(null),f=p.useRef(null),h=p.useRef(!1),m=p.useRef(null),y=Ue(t.ref,m),b=p.useRef(null);p.useEffect(()=>{!i||!m.current||(h.current=!n)},[n,i]),p.useEffect(()=>{if(!i||!m.current)return;const w=Le(m.current);return m.current.contains(w.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[i]),p.useEffect(()=>{if(!i||!m.current)return;const w=Le(m.current),C=D=>{b.current=D,!(r||!s()||D.key!=="Tab")&&w.activeElement===m.current&&D.shiftKey&&(l.current=!0,u.current&&u.current.focus())},k=()=>{const D=m.current;if(D===null)return;if(!w.hasFocus()||!s()||l.current){l.current=!1;return}if(D.contains(w.activeElement)||r&&w.activeElement!==c.current&&w.activeElement!==u.current)return;if(w.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!h.current)return;let O=[];if((w.activeElement===c.current||w.activeElement===u.current)&&(O=a(m.current)),O.length>0){var I,N;const R=!!((I=b.current)!=null&&I.shiftKey&&((N=b.current)==null?void 0:N.key)==="Tab"),F=O[0],j=O[O.length-1];typeof F!="string"&&typeof j!="string"&&(R?j.focus():F.focus())}else D.focus()};w.addEventListener("focusin",k),w.addEventListener("keydown",C,!0);const T=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(T),w.removeEventListener("focusin",k),w.removeEventListener("keydown",C,!0)}},[n,r,o,s,i,a]);const g=w=>{d.current===null&&(d.current=w.relatedTarget),h.current=!0,f.current=w.target;const C=t.props.onFocus;C&&C(w)},M=w=>{d.current===null&&(d.current=w.relatedTarget),h.current=!0};return v.jsxs(p.Fragment,{children:[v.jsx("div",{tabIndex:i?0:-1,onFocus:M,ref:c,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:y,onFocus:g}),v.jsx("div",{tabIndex:i?0:-1,onFocus:M,ref:u,"data-testid":"sentinelEnd"})]})}function zf(e){return typeof e=="function"?e():e}const zl=p.forwardRef(function(t,n){const{children:r,container:o,disablePortal:a=!1}=t,[s,i]=p.useState(null),l=Ue(p.isValidElement(r)?r.ref:null,n);if(_t(()=>{a||i(zf(o)||document.body)},[o,a]),_t(()=>{if(s&&!a)return Ts(n,s),()=>{Ts(n,null)}},[n,s,a]),a){if(p.isValidElement(r)){const c={ref:l};return p.cloneElement(r,c)}return v.jsx(p.Fragment,{children:r})}return v.jsx(p.Fragment,{children:s&&kd.createPortal(r,s)})});function Uf(e){const t=Le(e);return t.body===e?bt(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Kn(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function _s(e){return parseInt(bt(e).getComputedStyle(e).paddingRight,10)||0}function Vf(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Is(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,s=>{const i=a.indexOf(s)===-1,l=!Vf(s);i&&l&&Kn(s,o)})}function xo(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function Yf(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Uf(r)){const s=Il(Le(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${_s(r)+s}px`;const i=Le(r).querySelectorAll(".mui-fixed");[].forEach.call(i,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${_s(l)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Le(r).body;else{const s=r.parentElement,i=bt(r);a=(s==null?void 0:s.nodeName)==="HTML"&&i.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:i})=>{a?s.style.setProperty(i,a):s.style.removeProperty(i)})}}function Kf(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class qf{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Kn(t.modalRef,!1);const o=Kf(n);Is(n,t.mount,t.modalRef,o,!0);const a=xo(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=xo(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=Yf(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=xo(this.containers,s=>s.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Kn(t.modalRef,n),Is(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&Kn(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Gf(e){return typeof e=="function"?e():e}function Xf(e){return e?e.props.hasOwnProperty("in"):!1}const Qf=new qf;function Zf(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Qf,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:i,children:l,onClose:c,open:u,rootRef:d}=e,f=p.useRef({}),h=p.useRef(null),m=p.useRef(null),y=Ue(m,d),[b,g]=p.useState(!u),M=Xf(l);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const C=()=>Le(h.current),k=()=>(f.current.modalRef=m.current,f.current.mount=h.current,f.current),T=()=>{o.mount(k(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},D=en(()=>{const P=Gf(t)||C().body;o.add(k(),P),m.current&&T()}),O=p.useCallback(()=>o.isTopModal(k()),[o]),I=en(P=>{h.current=P,P&&(u&&O()?T():m.current&&Kn(m.current,w))}),N=p.useCallback(()=>{o.remove(k(),w)},[w,o]);p.useEffect(()=>()=>{N()},[N]),p.useEffect(()=>{u?D():(!M||!a)&&N()},[u,N,M,a,D]);const R=P=>$=>{var S;(S=P.onKeyDown)==null||S.call(P,$),!($.key!=="Escape"||$.which===229||!O())&&(n||($.stopPropagation(),c&&c($,"escapeKeyDown")))},F=P=>$=>{var S;(S=P.onClick)==null||S.call(P,$),$.target===$.currentTarget&&c&&c($,"backdropClick")};return{getRootProps:(P={})=>{const $=id(e);delete $.onTransitionEnter,delete $.onTransitionExited;const S=x({},$,P);return x({role:"presentation"},S,{onKeyDown:R(S),ref:y})},getBackdropProps:(P={})=>{const $=P;return x({"aria-hidden":!0},$,{onClick:F($),open:u})},getTransitionProps:()=>{const P=()=>{g(!1),s&&s()},$=()=>{g(!0),i&&i(),a&&N()};return{onEnter:Ds(P,l==null?void 0:l.props.onEnter),onExited:Ds($,l==null?void 0:l.props.onExited)}},rootRef:y,portalRef:I,isTopModal:O,exited:b,hasTransition:M}}function Jf(e){const{children:t,defer:n=!1,fallback:r=null}=e,[o,a]=p.useState(!1);return _t(()=>{n||a(!0)},[n]),p.useEffect(()=>{n&&a(!0)},[n]),v.jsx(p.Fragment,{children:o?t:r})}var Oe="top",Je="bottom",et="right",_e="left",Ca="auto",sr=[Oe,Je,et,_e],bn="start",Qn="end",ep="clippingParents",Ul="viewport",_n="popper",tp="reference",As=sr.reduce(function(e,t){return e.concat([t+"-"+bn,t+"-"+Qn])},[]),Vl=[].concat(sr,[Ca]).reduce(function(e,t){return e.concat([t,t+"-"+bn,t+"-"+Qn])},[]),np="beforeRead",rp="read",op="afterRead",ap="beforeMain",sp="main",ip="afterMain",lp="beforeWrite",cp="write",up="afterWrite",dp=[np,rp,op,ap,sp,ip,lp,cp,up];function pt(e){return e?(e.nodeName||"").toLowerCase():null}function Ke(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function rn(e){var t=Ke(e).Element;return e instanceof t||e instanceof Element}function Ze(e){var t=Ke(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function wa(e){if(typeof ShadowRoot>"u")return!1;var t=Ke(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function fp(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!Ze(a)||!pt(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(s){var i=o[s];i===!1?a.removeAttribute(s):a.setAttribute(s,i===!0?"":i)}))})}function pp(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),i=s.reduce(function(l,c){return l[c]="",l},{});!Ze(o)||!pt(o)||(Object.assign(o.style,i),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const hp={name:"applyStyles",enabled:!0,phase:"write",fn:fp,effect:pp,requires:["computeStyles"]};function ut(e){return e.split("-")[0]}var tn=Math.max,_r=Math.min,yn=Math.round;function Go(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Yl(){return!/^((?!chrome|android).)*safari/i.test(Go())}function Cn(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&Ze(e)&&(o=e.offsetWidth>0&&yn(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&yn(r.height)/e.offsetHeight||1);var s=rn(e)?Ke(e):window,i=s.visualViewport,l=!Yl()&&n,c=(r.left+(l&&i?i.offsetLeft:0))/o,u=(r.top+(l&&i?i.offsetTop:0))/a,d=r.width/o,f=r.height/a;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function Sa(e){var t=Cn(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Kl(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&wa(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function yt(e){return Ke(e).getComputedStyle(e)}function mp(e){return["table","td","th"].indexOf(pt(e))>=0}function Bt(e){return((rn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Qr(e){return pt(e)==="html"?e:e.assignedSlot||e.parentNode||(wa(e)?e.host:null)||Bt(e)}function js(e){return!Ze(e)||yt(e).position==="fixed"?null:e.offsetParent}function gp(e){var t=/firefox/i.test(Go()),n=/Trident/i.test(Go());if(n&&Ze(e)){var r=yt(e);if(r.position==="fixed")return null}var o=Qr(e);for(wa(o)&&(o=o.host);Ze(o)&&["html","body"].indexOf(pt(o))<0;){var a=yt(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function ir(e){for(var t=Ke(e),n=js(e);n&&mp(n)&&yt(n).position==="static";)n=js(n);return n&&(pt(n)==="html"||pt(n)==="body"&&yt(n).position==="static")?t:n||gp(e)||t}function Ma(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function qn(e,t,n){return tn(e,_r(t,n))}function vp(e,t,n){var r=qn(e,t,n);return r>n?n:r}function ql(){return{top:0,right:0,bottom:0,left:0}}function Gl(e){return Object.assign({},ql(),e)}function Xl(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var xp=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Gl(typeof t!="number"?t:Xl(t,sr))};function bp(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,i=ut(n.placement),l=Ma(i),c=[_e,et].indexOf(i)>=0,u=c?"height":"width";if(!(!a||!s)){var d=xp(o.padding,n),f=Sa(a),h=l==="y"?Oe:_e,m=l==="y"?Je:et,y=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],b=s[l]-n.rects.reference[l],g=ir(a),M=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,w=y/2-b/2,C=d[h],k=M-f[u]-d[m],T=M/2-f[u]/2+w,D=qn(C,T,k),O=l;n.modifiersData[r]=(t={},t[O]=D,t.centerOffset=D-T,t)}}function yp(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Kl(t.elements.popper,o)&&(t.elements.arrow=o))}const Cp={name:"arrow",enabled:!0,phase:"main",fn:bp,effect:yp,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function wn(e){return e.split("-")[1]}var wp={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Sp(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:yn(n*o)/o||0,y:yn(r*o)/o||0}}function Fs(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,i=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=s.x,h=f===void 0?0:f,m=s.y,y=m===void 0?0:m,b=typeof u=="function"?u({x:h,y}):{x:h,y};h=b.x,y=b.y;var g=s.hasOwnProperty("x"),M=s.hasOwnProperty("y"),w=_e,C=Oe,k=window;if(c){var T=ir(n),D="clientHeight",O="clientWidth";if(T===Ke(n)&&(T=Bt(n),yt(T).position!=="static"&&i==="absolute"&&(D="scrollHeight",O="scrollWidth")),T=T,o===Oe||(o===_e||o===et)&&a===Qn){C=Je;var I=d&&T===k&&k.visualViewport?k.visualViewport.height:T[D];y-=I-r.height,y*=l?1:-1}if(o===_e||(o===Oe||o===Je)&&a===Qn){w=et;var N=d&&T===k&&k.visualViewport?k.visualViewport.width:T[O];h-=N-r.width,h*=l?1:-1}}var R=Object.assign({position:i},c&&wp),F=u===!0?Sp({x:h,y},Ke(n)):{x:h,y};if(h=F.x,y=F.y,l){var j;return Object.assign({},R,(j={},j[C]=M?"0":"",j[w]=g?"0":"",j.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",j))}return Object.assign({},R,(t={},t[C]=M?y+"px":"",t[w]=g?h+"px":"",t.transform="",t))}function Mp(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,i=n.roundOffsets,l=i===void 0?!0:i,c={placement:ut(t.placement),variation:wn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Fs(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Fs(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const kp={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Mp,data:{}};var gr={passive:!0};function Tp(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,s=r.resize,i=s===void 0?!0:s,l=Ke(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",n.update,gr)}),i&&l.addEventListener("resize",n.update,gr),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",n.update,gr)}),i&&l.removeEventListener("resize",n.update,gr)}}const Pp={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Tp,data:{}};var $p={left:"right",right:"left",bottom:"top",top:"bottom"};function Dr(e){return e.replace(/left|right|bottom|top/g,function(t){return $p[t]})}var Ep={start:"end",end:"start"};function Bs(e){return e.replace(/start|end/g,function(t){return Ep[t]})}function ka(e){var t=Ke(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ta(e){return Cn(Bt(e)).left+ka(e).scrollLeft}function Dp(e,t){var n=Ke(e),r=Bt(e),o=n.visualViewport,a=r.clientWidth,s=r.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;var c=Yl();(c||!c&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:i+Ta(e),y:l}}function Rp(e){var t,n=Bt(e),r=ka(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=tn(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=tn(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),i=-r.scrollLeft+Ta(e),l=-r.scrollTop;return yt(o||n).direction==="rtl"&&(i+=tn(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:i,y:l}}function Pa(e){var t=yt(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ql(e){return["html","body","#document"].indexOf(pt(e))>=0?e.ownerDocument.body:Ze(e)&&Pa(e)?e:Ql(Qr(e))}function Gn(e,t){var n;t===void 0&&(t=[]);var r=Ql(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=Ke(r),s=o?[a].concat(a.visualViewport||[],Pa(r)?r:[]):r,i=t.concat(s);return o?i:i.concat(Gn(Qr(s)))}function Xo(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Np(e,t){var n=Cn(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Hs(e,t,n){return t===Ul?Xo(Dp(e,n)):rn(t)?Np(t,n):Xo(Rp(Bt(e)))}function Lp(e){var t=Gn(Qr(e)),n=["absolute","fixed"].indexOf(yt(e).position)>=0,r=n&&Ze(e)?ir(e):e;return rn(r)?t.filter(function(o){return rn(o)&&Kl(o,r)&&pt(o)!=="body"}):[]}function Op(e,t,n,r){var o=t==="clippingParents"?Lp(e):[].concat(t),a=[].concat(o,[n]),s=a[0],i=a.reduce(function(l,c){var u=Hs(e,c,r);return l.top=tn(u.top,l.top),l.right=_r(u.right,l.right),l.bottom=_r(u.bottom,l.bottom),l.left=tn(u.left,l.left),l},Hs(e,s,r));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Zl(e){var t=e.reference,n=e.element,r=e.placement,o=r?ut(r):null,a=r?wn(r):null,s=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,l;switch(o){case Oe:l={x:s,y:t.y-n.height};break;case Je:l={x:s,y:t.y+t.height};break;case et:l={x:t.x+t.width,y:i};break;case _e:l={x:t.x-n.width,y:i};break;default:l={x:t.x,y:t.y}}var c=o?Ma(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case bn:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Qn:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Zn(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,i=n.boundary,l=i===void 0?ep:i,c=n.rootBoundary,u=c===void 0?Ul:c,d=n.elementContext,f=d===void 0?_n:d,h=n.altBoundary,m=h===void 0?!1:h,y=n.padding,b=y===void 0?0:y,g=Gl(typeof b!="number"?b:Xl(b,sr)),M=f===_n?tp:_n,w=e.rects.popper,C=e.elements[m?M:f],k=Op(rn(C)?C:C.contextElement||Bt(e.elements.popper),l,u,s),T=Cn(e.elements.reference),D=Zl({reference:T,element:w,strategy:"absolute",placement:o}),O=Xo(Object.assign({},w,D)),I=f===_n?O:T,N={top:k.top-I.top+g.top,bottom:I.bottom-k.bottom+g.bottom,left:k.left-I.left+g.left,right:I.right-k.right+g.right},R=e.modifiersData.offset;if(f===_n&&R){var F=R[o];Object.keys(N).forEach(function(j){var L=[et,Je].indexOf(j)>=0?1:-1,E=[Oe,Je].indexOf(j)>=0?"y":"x";N[j]+=F[E]*L})}return N}function _p(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Vl:l,u=wn(r),d=u?i?As:As.filter(function(m){return wn(m)===u}):sr,f=d.filter(function(m){return c.indexOf(m)>=0});f.length===0&&(f=d);var h=f.reduce(function(m,y){return m[y]=Zn(e,{placement:y,boundary:o,rootBoundary:a,padding:s})[ut(y)],m},{});return Object.keys(h).sort(function(m,y){return h[m]-h[y]})}function Ip(e){if(ut(e)===Ca)return[];var t=Dr(e);return[Bs(e),t,Bs(t)]}function Ap(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,i=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,y=n.allowedAutoPlacements,b=t.options.placement,g=ut(b),M=g===b,w=l||(M||!m?[Dr(b)]:Ip(b)),C=[b].concat(w).reduce(function(ee,ne){return ee.concat(ut(ne)===Ca?_p(t,{placement:ne,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:y}):ne)},[]),k=t.rects.reference,T=t.rects.popper,D=new Map,O=!0,I=C[0],N=0;N=0,E=L?"width":"height",P=Zn(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),$=L?j?et:_e:j?Je:Oe;k[E]>T[E]&&($=Dr($));var S=Dr($),A=[];if(a&&A.push(P[F]<=0),i&&A.push(P[$]<=0,P[S]<=0),A.every(function(ee){return ee})){I=R,O=!1;break}D.set(R,A)}if(O)for(var W=m?3:1,K=function(ne){var ie=C.find(function(he){var ce=D.get(he);if(ce)return ce.slice(0,ne).every(function(H){return H})});if(ie)return I=ie,"break"},Q=W;Q>0;Q--){var re=K(Q);if(re==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const jp={name:"flip",enabled:!0,phase:"main",fn:Ap,requiresIfExists:["offset"],data:{_skip:!1}};function Ws(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function zs(e){return[Oe,et,Je,_e].some(function(t){return e[t]>=0})}function Fp(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=Zn(t,{elementContext:"reference"}),i=Zn(t,{altBoundary:!0}),l=Ws(s,r),c=Ws(i,o,a),u=zs(l),d=zs(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const Bp={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Fp};function Hp(e,t,n){var r=ut(e),o=[_e,Oe].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],i=a[1];return s=s||0,i=(i||0)*o,[_e,et].indexOf(r)>=0?{x:i,y:s}:{x:s,y:i}}function Wp(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,s=Vl.reduce(function(u,d){return u[d]=Hp(d,t.rects,a),u},{}),i=s[t.placement],l=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const zp={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Wp};function Up(e){var t=e.state,n=e.name;t.modifiersData[n]=Zl({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Vp={name:"popperOffsets",enabled:!0,phase:"read",fn:Up,data:{}};function Yp(e){return e==="x"?"y":"x"}function Kp(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,i=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,h=f===void 0?!0:f,m=n.tetherOffset,y=m===void 0?0:m,b=Zn(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=ut(t.placement),M=wn(t.placement),w=!M,C=Ma(g),k=Yp(C),T=t.modifiersData.popperOffsets,D=t.rects.reference,O=t.rects.popper,I=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,N=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(T){if(a){var j,L=C==="y"?Oe:_e,E=C==="y"?Je:et,P=C==="y"?"height":"width",$=T[C],S=$+b[L],A=$-b[E],W=h?-O[P]/2:0,K=M===bn?D[P]:O[P],Q=M===bn?-O[P]:-D[P],re=t.elements.arrow,ee=h&&re?Sa(re):{width:0,height:0},ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ql(),ie=ne[L],he=ne[E],ce=qn(0,D[P],ee[P]),H=w?D[P]/2-W-ce-ie-N.mainAxis:K-ce-ie-N.mainAxis,V=w?-D[P]/2+W+ce+he+N.mainAxis:Q+ce+he+N.mainAxis,q=t.elements.arrow&&ir(t.elements.arrow),_=q?C==="y"?q.clientTop||0:q.clientLeft||0:0,z=(j=R==null?void 0:R[C])!=null?j:0,U=$+H-z-_,G=$+V-z,me=qn(h?_r(S,U):S,$,h?tn(A,G):A);T[C]=me,F[C]=me-$}if(i){var pe,ge=C==="x"?Oe:_e,De=C==="x"?Je:et,Me=T[k],Ae=k==="y"?"height":"width",je=Me+b[ge],qe=Me-b[De],ke=[Oe,_e].indexOf(g)!==-1,$t=(pe=R==null?void 0:R[k])!=null?pe:0,ht=ke?je:Me-D[Ae]-O[Ae]-$t+N.altAxis,zt=ke?Me+D[Ae]+O[Ae]-$t-N.altAxis:qe,Ut=h&&ke?vp(ht,Me,zt):qn(h?ht:je,Me,h?zt:qe);T[k]=Ut,F[k]=Ut-Me}t.modifiersData[r]=F}}const qp={name:"preventOverflow",enabled:!0,phase:"main",fn:Kp,requiresIfExists:["offset"]};function Gp(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Xp(e){return e===Ke(e)||!Ze(e)?ka(e):Gp(e)}function Qp(e){var t=e.getBoundingClientRect(),n=yn(t.width)/e.offsetWidth||1,r=yn(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Zp(e,t,n){n===void 0&&(n=!1);var r=Ze(t),o=Ze(t)&&Qp(t),a=Bt(t),s=Cn(e,o,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((pt(t)!=="body"||Pa(a))&&(i=Xp(t)),Ze(t)?(l=Cn(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Ta(a))),{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function Jp(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(i){if(!n.has(i)){var l=t.get(i);l&&o(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function eh(e){var t=Jp(e);return dp.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function th(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function nh(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Us={placement:"bottom",modifiers:[],strategy:"absolute"};function Vs(){for(var e=arguments.length,t=new Array(e),n=0;nwe({root:["root"]},Mf(sh)),fh={},ph=p.forwardRef(function(t,n){var r;const{anchorEl:o,children:a,direction:s,disablePortal:i,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:f,slotProps:h={},slots:m={},TransitionProps:y}=t,b=J(t,ih),g=p.useRef(null),M=Ue(g,n),w=p.useRef(null),C=Ue(w,f),k=p.useRef(C);_t(()=>{k.current=C},[C]),p.useImperativeHandle(f,()=>w.current,[]);const T=ch(u,s),[D,O]=p.useState(T),[I,N]=p.useState(Qo(o));p.useEffect(()=>{w.current&&w.current.forceUpdate()}),p.useEffect(()=>{o&&N(Qo(o))},[o]),_t(()=>{if(!I||!c)return;const E=S=>{O(S.placement)};let P=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:S})=>{E(S)}}];l!=null&&(P=P.concat(l)),d&&d.modifiers!=null&&(P=P.concat(d.modifiers));const $=ah(I,g.current,x({placement:T},d,{modifiers:P}));return k.current($),()=>{$.destroy(),k.current(null)}},[I,i,l,c,d,T]);const R={placement:D};y!==null&&(R.TransitionProps=y);const F=dh(),j=(r=m.root)!=null?r:"div",L=Ye({elementType:j,externalSlotProps:h.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:M},ownerState:t,className:F.root});return v.jsx(j,x({},L,{children:typeof a=="function"?a(R):a}))}),ec=p.forwardRef(function(t,n){const{anchorEl:r,children:o,container:a,direction:s="ltr",disablePortal:i=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:f=fh,popperRef:h,style:m,transition:y=!1,slotProps:b={},slots:g={}}=t,M=J(t,lh),[w,C]=p.useState(!0),k=()=>{C(!1)},T=()=>{C(!0)};if(!l&&!u&&(!y||w))return null;let D;if(a)D=a;else if(r){const N=Qo(r);D=N&&uh(N)?Le(N).body:Le(null).body}const O=!u&&l&&(!y||w)?"none":void 0,I=y?{in:u,onEnter:k,onExited:T}:void 0;return v.jsx(zl,{disablePortal:i,container:D,children:v.jsx(ph,x({anchorEl:r,direction:s,disablePortal:i,modifiers:c,ref:n,open:y?!w:u,placement:d,popperOptions:f,popperRef:h,slotProps:b,slots:g},M,{style:x({position:"fixed",top:0,left:0,display:O},m),TransitionProps:I,children:o}))})});var $a={};Object.defineProperty($a,"__esModule",{value:!0});var tc=$a.default=void 0,hh=gh(p),mh=ld;function nc(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(nc=function(r){return r?n:t})(e)}function gh(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=nc(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function vh(e){return Object.keys(e).length===0}function xh(e=null){const t=hh.useContext(mh.ThemeContext);return!t||vh(t)?e:t}tc=$a.default=xh;const bh=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],yh=X(ec,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ch=p.forwardRef(function(t,n){var r;const o=tc(),a=be({props:t,name:"MuiPopper"}),{anchorEl:s,component:i,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:f,modifiers:h,open:m,placement:y,popperOptions:b,popperRef:g,transition:M,slots:w,slotProps:C}=a,k=J(a,bh),T=(r=w==null?void 0:w.root)!=null?r:l==null?void 0:l.Root,D=x({anchorEl:s,container:u,disablePortal:d,keepMounted:f,modifiers:h,open:m,placement:y,popperOptions:b,popperRef:g,transition:M},k);return v.jsx(yh,x({as:i,direction:o==null?void 0:o.direction,slots:{root:T},slotProps:C??c},D,{ref:n}))}),rc=Ch;function oc({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const wh=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Sh={entering:{opacity:1},entered:{opacity:1}},Mh=p.forwardRef(function(t,n){const r=lt(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:i,easing:l,in:c,onEnter:u,onEntered:d,onEntering:f,onExit:h,onExited:m,onExiting:y,style:b,timeout:g=o,TransitionComponent:M=ba}=t,w=J(t,wh),C=p.useRef(null),k=Ue(C,i.ref,n),T=L=>E=>{if(L){const P=C.current;E===void 0?L(P):L(P,E)}},D=T(f),O=T((L,E)=>{ya(L);const P=xn({style:b,timeout:g,easing:l},{mode:"enter"});L.style.webkitTransition=r.transitions.create("opacity",P),L.style.transition=r.transitions.create("opacity",P),u&&u(L,E)}),I=T(d),N=T(y),R=T(L=>{const E=xn({style:b,timeout:g,easing:l},{mode:"exit"});L.style.webkitTransition=r.transitions.create("opacity",E),L.style.transition=r.transitions.create("opacity",E),h&&h(L)}),F=T(m),j=L=>{a&&a(C.current,L)};return v.jsx(M,x({appear:s,in:c,nodeRef:C,onEnter:O,onEntered:I,onEntering:D,onExit:R,onExited:F,onExiting:N,addEndListener:j,timeout:g},w,{children:(L,E)=>p.cloneElement(i,x({style:x({opacity:0,visibility:L==="exited"&&!c?"hidden":void 0},Sh[L],b,i.props.style),ref:k},E))}))}),ac=Mh;function kh(e){return Se("MuiBackdrop",e)}xe("MuiBackdrop",["root","invisible"]);const Th=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Ph=e=>{const{classes:t,invisible:n}=e;return we({root:["root",n&&"invisible"]},kh,t)},$h=X("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>x({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Eh=p.forwardRef(function(t,n){var r,o,a;const s=be({props:t,name:"MuiBackdrop"}),{children:i,className:l,component:c="div",components:u={},componentsProps:d={},invisible:f=!1,open:h,slotProps:m={},slots:y={},TransitionComponent:b=ac,transitionDuration:g}=s,M=J(s,Th),w=x({},s,{component:c,invisible:f}),C=Ph(w),k=(r=m.root)!=null?r:d.root;return v.jsx(b,x({in:h,timeout:g},M,{children:v.jsx($h,x({"aria-hidden":!0},k,{as:(o=(a=y.root)!=null?a:u.Root)!=null?o:c,className:ae(C.root,l,k==null?void 0:k.className),ownerState:x({},w,k==null?void 0:k.ownerState),classes:C,ref:n,children:i}))}))}),sc=Eh,Dh=xe("MuiBox",["root"]),Rh=Dh,Nh=Pl(),Lh=_l({themeId:Lr,defaultTheme:Nh,defaultClassName:Rh.root,generateClassName:Ml.generate}),Oh=Lh,_h=rr(v.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Ih=rr(v.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Ah=rr(v.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function jh(e){return Se("MuiCheckbox",e)}const Fh=xe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),bo=Fh,Bh=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Hh=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${Ce(r)}`,`size${Ce(o)}`]},s=we(a,jh,t);return x({},t,s)},Wh=X(Ed,{shouldForwardProp:e=>or(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Ce(n.size)}`],n.color!=="default"&&t[`color${Ce(n.color)}`]]}})(({theme:e,ownerState:t})=>x({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Xt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${bo.checked}, &.${bo.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${bo.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),zh=v.jsx(Ih,{}),Uh=v.jsx(_h,{}),Vh=v.jsx(Ah,{}),Yh=p.forwardRef(function(t,n){var r,o;const a=be({props:t,name:"MuiCheckbox"}),{checkedIcon:s=zh,color:i="primary",icon:l=Uh,indeterminate:c=!1,indeterminateIcon:u=Vh,inputProps:d,size:f="medium",className:h}=a,m=J(a,Bh),y=c?u:l,b=c?u:s,g=x({},a,{color:i,indeterminate:c,size:f}),M=Hh(g);return v.jsx(Wh,x({type:"checkbox",inputProps:x({"data-indeterminate":c},d),icon:p.cloneElement(y,{fontSize:(r=y.props.fontSize)!=null?r:f}),checkedIcon:p.cloneElement(b,{fontSize:(o=b.props.fontSize)!=null?o:f}),ownerState:g,ref:n,className:ae(M.root,h)},m,{classes:M}))}),Kh=Yh;function qh(e){return Se("MuiModal",e)}xe("MuiModal",["root","hidden","backdrop"]);const Gh=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Xh=e=>{const{open:t,exited:n,classes:r}=e;return we({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},qh,r)},Qh=X("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>x({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Zh=X(sc,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Jh=p.forwardRef(function(t,n){var r,o,a,s,i,l;const c=be({name:"MuiModal",props:t}),{BackdropComponent:u=Zh,BackdropProps:d,className:f,closeAfterTransition:h=!1,children:m,container:y,component:b,components:g={},componentsProps:M={},disableAutoFocus:w=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:k=!1,disablePortal:T=!1,disableRestoreFocus:D=!1,disableScrollLock:O=!1,hideBackdrop:I=!1,keepMounted:N=!1,onBackdropClick:R,open:F,slotProps:j,slots:L}=c,E=J(c,Gh),P=x({},c,{closeAfterTransition:h,disableAutoFocus:w,disableEnforceFocus:C,disableEscapeKeyDown:k,disablePortal:T,disableRestoreFocus:D,disableScrollLock:O,hideBackdrop:I,keepMounted:N}),{getRootProps:$,getBackdropProps:S,getTransitionProps:A,portalRef:W,isTopModal:K,exited:Q,hasTransition:re}=Zf(x({},P,{rootRef:n})),ee=x({},P,{exited:Q}),ne=Xh(ee),ie={};if(m.props.tabIndex===void 0&&(ie.tabIndex="-1"),re){const{onEnter:z,onExited:U}=A();ie.onEnter=z,ie.onExited=U}const he=(r=(o=L==null?void 0:L.root)!=null?o:g.Root)!=null?r:Qh,ce=(a=(s=L==null?void 0:L.backdrop)!=null?s:g.Backdrop)!=null?a:u,H=(i=j==null?void 0:j.root)!=null?i:M.root,V=(l=j==null?void 0:j.backdrop)!=null?l:M.backdrop,q=Ye({elementType:he,externalSlotProps:H,externalForwardedProps:E,getSlotProps:$,additionalProps:{ref:n,as:b},ownerState:ee,className:ae(f,H==null?void 0:H.className,ne==null?void 0:ne.root,!ee.open&&ee.exited&&(ne==null?void 0:ne.hidden))}),_=Ye({elementType:ce,externalSlotProps:V,additionalProps:d,getSlotProps:z=>S(x({},z,{onClick:U=>{R&&R(U),z!=null&&z.onClick&&z.onClick(U)}})),className:ae(V==null?void 0:V.className,d==null?void 0:d.className,ne==null?void 0:ne.backdrop),ownerState:ee});return!N&&!F&&(!re||Q)?null:v.jsx(zl,{ref:W,container:y,disablePortal:T,children:v.jsxs(he,x({},q,{children:[!I&&u?v.jsx(ce,x({},_)):null,v.jsx(Wf,{disableEnforceFocus:C,disableAutoFocus:w,disableRestoreFocus:D,isEnabled:K,open:F,children:p.cloneElement(m,ie)})]}))})}),Ea=Jh;function em(e){return Se("MuiDialog",e)}const tm=xe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),yo=tm,nm=p.createContext({}),ic=nm,rm=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],om=X(sc,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),am=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${Ce(n)}`],paper:["paper",`paperScroll${Ce(n)}`,`paperWidth${Ce(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return we(s,em,t)},sm=X(Ea,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),im=X("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Ce(n.scroll)}`]]}})(({ownerState:e})=>x({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),lm=X(Gr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Ce(n.scroll)}`],t[`paperWidth${Ce(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>x({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${yo.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${yo.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${yo.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),cm=p.forwardRef(function(t,n){const r=be({props:t,name:"MuiDialog"}),o=lt(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":i,BackdropComponent:l,BackdropProps:c,children:u,className:d,disableEscapeKeyDown:f=!1,fullScreen:h=!1,fullWidth:m=!1,maxWidth:y="sm",onBackdropClick:b,onClick:g,onClose:M,open:w,PaperComponent:C=Gr,PaperProps:k={},scroll:T="paper",TransitionComponent:D=ac,transitionDuration:O=a,TransitionProps:I}=r,N=J(r,rm),R=x({},r,{disableEscapeKeyDown:f,fullScreen:h,fullWidth:m,maxWidth:y,scroll:T}),F=am(R),j=p.useRef(),L=S=>{j.current=S.target===S.currentTarget},E=S=>{g&&g(S),j.current&&(j.current=null,b&&b(S),M&&M(S,"backdropClick"))},P=Ll(i),$=p.useMemo(()=>({titleId:P}),[P]);return v.jsx(sm,x({className:ae(F.root,d),closeAfterTransition:!0,components:{Backdrop:om},componentsProps:{backdrop:x({transitionDuration:O,as:l},c)},disableEscapeKeyDown:f,onClose:M,open:w,ref:n,onClick:E,ownerState:R},N,{children:v.jsx(D,x({appear:!0,in:w,timeout:O,role:"presentation"},I,{children:v.jsx(im,{className:ae(F.container),onMouseDown:L,ownerState:R,children:v.jsx(lm,x({as:C,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":P},k,{className:ae(F.paper,k.className),ownerState:R,children:v.jsx(ic.Provider,{value:$,children:u})}))})}))}))}),lc=cm;function um(e){return Se("MuiDialogActions",e)}xe("MuiDialogActions",["root","spacing"]);const dm=["className","disableSpacing"],fm=e=>{const{classes:t,disableSpacing:n}=e;return we({root:["root",!n&&"spacing"]},um,t)},pm=X("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>x({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),hm=p.forwardRef(function(t,n){const r=be({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=r,s=J(r,dm),i=x({},r,{disableSpacing:a}),l=fm(i);return v.jsx(pm,x({className:ae(l.root,o),ownerState:i,ref:n},s))}),mm=hm;function gm(e){return Se("MuiDialogContent",e)}xe("MuiDialogContent",["root","dividers"]);function vm(e){return Se("MuiDialogTitle",e)}const xm=xe("MuiDialogTitle",["root"]),bm=xm,ym=["className","dividers"],Cm=e=>{const{classes:t,dividers:n}=e;return we({root:["root",n&&"dividers"]},gm,t)},wm=X("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>x({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${bm.root} + &`]:{paddingTop:0}})),Sm=p.forwardRef(function(t,n){const r=be({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=r,s=J(r,ym),i=x({},r,{dividers:a}),l=Cm(i);return v.jsx(wm,x({className:ae(l.root,o),ownerState:i,ref:n},s))}),Mm=Sm;function km(e){return Se("MuiDialogContentText",e)}xe("MuiDialogContentText",["root"]);const Tm=["children","className"],Pm=e=>{const{classes:t}=e,r=we({root:["root"]},km,t);return x({},t,r)},$m=X(Ot,{shouldForwardProp:e=>or(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Em=p.forwardRef(function(t,n){const r=be({props:t,name:"MuiDialogContentText"}),{className:o}=r,a=J(r,Tm),s=Pm(a);return v.jsx($m,x({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:a,className:ae(s.root,o)},r,{classes:s}))}),Dm=Em,Rm=["className","id"],Nm=e=>{const{classes:t}=e;return we({root:["root"]},vm,t)},Lm=X(Ot,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Om=p.forwardRef(function(t,n){const r=be({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=r,s=J(r,Rm),i=r,l=Nm(i),{titleId:c=a}=p.useContext(ic);return v.jsx(Lm,x({component:"h2",className:ae(l.root,o),ownerState:i,ref:n,variant:"h6",id:a??c},s))}),_m=Om;function Gk(e){return Se("MuiDivider",e)}const Im=xe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Ys=Im,Am=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function jm(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),a=bt(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const c=a.getComputedStyle(t);s=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let i=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const c=s.split("(")[1].split(")")[0].split(",");i=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+i-r.left}px)`:`translateX(${a.innerWidth+i-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-i}px)`:`translateX(-${r.left+r.width-i}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${a.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function Fm(e){return typeof e=="function"?e():e}function vr(e,t,n){const r=Fm(n),o=jm(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const Bm=p.forwardRef(function(t,n){const r=lt(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:i=!0,children:l,container:c,direction:u="down",easing:d=o,in:f,onEnter:h,onEntered:m,onEntering:y,onExit:b,onExited:g,onExiting:M,style:w,timeout:C=a,TransitionComponent:k=ba}=t,T=J(t,Am),D=p.useRef(null),O=Ue(l.ref,D,n),I=S=>A=>{S&&(A===void 0?S(D.current):S(D.current,A))},N=I((S,A)=>{vr(u,S,c),ya(S),h&&h(S,A)}),R=I((S,A)=>{const W=xn({timeout:C,style:w,easing:d},{mode:"enter"});S.style.webkitTransition=r.transitions.create("-webkit-transform",x({},W)),S.style.transition=r.transitions.create("transform",x({},W)),S.style.webkitTransform="none",S.style.transform="none",y&&y(S,A)}),F=I(m),j=I(M),L=I(S=>{const A=xn({timeout:C,style:w,easing:d},{mode:"exit"});S.style.webkitTransition=r.transitions.create("-webkit-transform",A),S.style.transition=r.transitions.create("transform",A),vr(u,S,c),b&&b(S)}),E=I(S=>{S.style.webkitTransition="",S.style.transition="",g&&g(S)}),P=S=>{s&&s(D.current,S)},$=p.useCallback(()=>{D.current&&vr(u,D.current,c)},[u,c]);return p.useEffect(()=>{if(f||u==="down"||u==="right")return;const S=Xr(()=>{D.current&&vr(u,D.current,c)}),A=bt(D.current);return A.addEventListener("resize",S),()=>{S.clear(),A.removeEventListener("resize",S)}},[u,f,c]),p.useEffect(()=>{f||$()},[f,$]),v.jsx(k,x({nodeRef:D,onEnter:N,onEntered:F,onEntering:R,onExit:L,onExited:E,onExiting:j,addEndListener:P,appear:i,in:f,timeout:C},T,{children:(S,A)=>p.cloneElement(l,x({ref:O,style:x({visibility:S==="exited"&&!f?"hidden":void 0},w,l.props.style)},A))}))}),Hm=Bm;function Wm(e){return Se("MuiDrawer",e)}xe("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const zm=["BackdropProps"],Um=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],cc=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},Vm=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Ce(n)}`,r!=="temporary"&&`paperAnchorDocked${Ce(n)}`]};return we(o,Wm,t)},Ym=X(Ea,{name:"MuiDrawer",slot:"Root",overridesResolver:cc})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),Ks=X("div",{shouldForwardProp:or,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:cc})({flex:"0 0 auto"}),Km=X(Gr,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Ce(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${Ce(n.anchor)}`]]}})(({theme:e,ownerState:t})=>x({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),uc={left:"right",right:"left",top:"down",bottom:"up"};function qm(e){return["left","right"].indexOf(e)!==-1}function Gm({direction:e},t){return e==="rtl"&&qm(t)?uc[t]:t}const Xm=p.forwardRef(function(t,n){const r=be({props:t,name:"MuiDrawer"}),o=lt(),a=ar(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:i="left",BackdropProps:l,children:c,className:u,elevation:d=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:h}={},onClose:m,open:y=!1,PaperProps:b={},SlideProps:g,TransitionComponent:M=Hm,transitionDuration:w=s,variant:C="temporary"}=r,k=J(r.ModalProps,zm),T=J(r,Um),D=p.useRef(!1);p.useEffect(()=>{D.current=!0},[]);const O=Gm({direction:a?"rtl":"ltr"},i),N=x({},r,{anchor:i,elevation:d,open:y,variant:C},T),R=Vm(N),F=v.jsx(Km,x({elevation:C==="temporary"?d:0,square:!0},b,{className:ae(R.paper,b.className),ownerState:N,children:c}));if(C==="permanent")return v.jsx(Ks,x({className:ae(R.root,R.docked,u),ownerState:N,ref:n},T,{children:F}));const j=v.jsx(M,x({in:y,direction:uc[O],timeout:w,appear:D.current},g,{children:F}));return C==="persistent"?v.jsx(Ks,x({className:ae(R.root,R.docked,u),ownerState:N,ref:n},T,{children:j})):v.jsx(Ym,x({BackdropProps:x({},l,h,{transitionDuration:w}),className:ae(R.root,R.modal,u),open:y,ownerState:N,onClose:m,hideBackdrop:f,ref:n},T,k,{children:j}))}),Qm=Xm,Zm=xf({createStyledComponent:X("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>be({props:e,name:"MuiStack"})}),Jm=Zm;function eg(e){return Se("MuiFormControlLabel",e)}const tg=xe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Vn=tg,ng=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],rg=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e,s={root:["root",n&&"disabled",`labelPlacement${Ce(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return we(s,eg,t)},og=X("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Vn.label}`]:t.label},t.root,t[`labelPlacement${Ce(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>x({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Vn.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Vn.label}`]:{[`&.${Vn.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),ag=X("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Vn.error}`]:{color:(e.vars||e).palette.error.main}})),sg=p.forwardRef(function(t,n){var r,o;const a=be({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:i={},control:l,disabled:c,disableTypography:u,label:d,labelPlacement:f="end",required:h,slotProps:m={}}=a,y=J(a,ng),b=Ol(),g=(r=c??l.props.disabled)!=null?r:b==null?void 0:b.disabled,M=h??l.props.required,w={disabled:g,required:M};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof l.props[I]>"u"&&typeof a[I]<"u"&&(w[I]=a[I])});const C=oc({props:a,muiFormControl:b,states:["error"]}),k=x({},a,{disabled:g,labelPlacement:f,required:M,error:C.error}),T=rg(k),D=(o=m.typography)!=null?o:i.typography;let O=d;return O!=null&&O.type!==Ot&&!u&&(O=v.jsx(Ot,x({component:"span"},D,{className:ae(T.label,D==null?void 0:D.className),children:O}))),v.jsxs(og,x({className:ae(T.root,s),ownerState:k,ref:n},y,{children:[p.cloneElement(l,w),M?v.jsxs(Jm,{display:"block",children:[O,v.jsxs(ag,{ownerState:k,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]}):O]}))}),ig=sg;function lg(e){return Se("MuiFormGroup",e)}xe("MuiFormGroup",["root","row","error"]);const cg=["className","row"],ug=e=>{const{classes:t,row:n,error:r}=e;return we({root:["root",n&&"row",r&&"error"]},lg,t)},dg=X("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>x({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),fg=p.forwardRef(function(t,n){const r=be({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1}=r,s=J(r,cg),i=Ol(),l=oc({props:r,muiFormControl:i,states:["error"]}),c=x({},r,{row:a,error:l.error}),u=ug(c);return v.jsx(dg,x({className:ae(u.root,o),ownerState:c,ref:n},s))}),pg=fg,hg=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Zo(e){return`scale(${e}, ${e**2})`}const mg={entering:{opacity:1,transform:Zo(1)},entered:{opacity:1,transform:"none"}},Co=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),dc=p.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:s,in:i,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:f,onExiting:h,style:m,timeout:y="auto",TransitionComponent:b=ba}=t,g=J(t,hg),M=zn(),w=p.useRef(),C=lt(),k=p.useRef(null),T=Ue(k,a.ref,n),D=E=>P=>{if(E){const $=k.current;P===void 0?E($):E($,P)}},O=D(u),I=D((E,P)=>{ya(E);const{duration:$,delay:S,easing:A}=xn({style:m,timeout:y,easing:s},{mode:"enter"});let W;y==="auto"?(W=C.transitions.getAutoHeightDuration(E.clientHeight),w.current=W):W=$,E.style.transition=[C.transitions.create("opacity",{duration:W,delay:S}),C.transitions.create("transform",{duration:Co?W:W*.666,delay:S,easing:A})].join(","),l&&l(E,P)}),N=D(c),R=D(h),F=D(E=>{const{duration:P,delay:$,easing:S}=xn({style:m,timeout:y,easing:s},{mode:"exit"});let A;y==="auto"?(A=C.transitions.getAutoHeightDuration(E.clientHeight),w.current=A):A=P,E.style.transition=[C.transitions.create("opacity",{duration:A,delay:$}),C.transitions.create("transform",{duration:Co?A:A*.666,delay:Co?$:$||A*.333,easing:S})].join(","),E.style.opacity=0,E.style.transform=Zo(.75),d&&d(E)}),j=D(f),L=E=>{y==="auto"&&M.start(w.current||0,E),r&&r(k.current,E)};return v.jsx(b,x({appear:o,in:i,nodeRef:k,onEnter:I,onEntered:N,onEntering:O,onExit:F,onExited:j,onExiting:R,addEndListener:L,timeout:y==="auto"?null:y},g,{children:(E,P)=>p.cloneElement(a,x({style:x({opacity:0,transform:Zo(.75),visibility:E==="exited"&&!i?"hidden":void 0},mg[E],m,a.props.style),ref:T},P))}))});dc.muiSupportAuto=!0;const Jo=dc,gg=p.createContext({}),ea=gg;function vg(e){return Se("MuiList",e)}xe("MuiList",["root","padding","dense","subheader"]);const xg=["children","className","component","dense","disablePadding","subheader"],bg=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return we({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},vg,t)},yg=X("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>x({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Cg=p.forwardRef(function(t,n){const r=be({props:t,name:"MuiList"}),{children:o,className:a,component:s="ul",dense:i=!1,disablePadding:l=!1,subheader:c}=r,u=J(r,xg),d=p.useMemo(()=>({dense:i}),[i]),f=x({},r,{component:s,dense:i,disablePadding:l}),h=bg(f);return v.jsx(ea.Provider,{value:d,children:v.jsxs(yg,x({as:s,className:ae(h.root,a),ref:n,ownerState:f},u,{children:[c,o]}))})}),wg=Cg,Sg=xe("MuiListItemIcon",["root","alignItemsFlexStart"]),qs=Sg,Mg=xe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Gs=Mg,kg=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function wo(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Xs(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function fc(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function In(e,t,n,r,o,a){let s=!1,i=o(e,t,t?n:!1);for(;i;){if(i===e.firstChild){if(s)return!1;s=!0}const l=r?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!fc(i,a)||l)i=o(e,i,n);else return i.focus(),!0}return!1}const Tg=p.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:s,className:i,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu"}=t,f=J(t,kg),h=p.useRef(null),m=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});_t(()=>{o&&h.current.focus()},[o]),p.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,{direction:C})=>{const k=!h.current.style.width;if(w.clientHeight{const C=h.current,k=w.key,T=Le(C).activeElement;if(k==="ArrowDown")w.preventDefault(),In(C,T,c,l,wo);else if(k==="ArrowUp")w.preventDefault(),In(C,T,c,l,Xs);else if(k==="Home")w.preventDefault(),In(C,null,c,l,wo);else if(k==="End")w.preventDefault(),In(C,null,c,l,Xs);else if(k.length===1){const D=m.current,O=k.toLowerCase(),I=performance.now();D.keys.length>0&&(I-D.lastTime>500?(D.keys=[],D.repeating=!0,D.previousKeyMatched=!0):D.repeating&&O!==D.keys[0]&&(D.repeating=!1)),D.lastTime=I,D.keys.push(O);const N=T&&!D.repeating&&fc(T,D);D.previousKeyMatched&&(N||In(C,T,!1,l,wo,D))?w.preventDefault():D.previousKeyMatched=!1}u&&u(w)},b=Ue(h,n);let g=-1;p.Children.forEach(s,(w,C)=>{if(!p.isValidElement(w)){g===C&&(g+=1,g>=s.length&&(g=-1));return}w.props.disabled||(d==="selectedMenu"&&w.props.selected||g===-1)&&(g=C),g===C&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(g+=1,g>=s.length&&(g=-1))});const M=p.Children.map(s,(w,C)=>{if(C===g){const k={};return a&&(k.autoFocus=!0),w.props.tabIndex===void 0&&d==="selectedMenu"&&(k.tabIndex=0),p.cloneElement(w,k)}return w});return v.jsx(wg,x({role:"menu",ref:b,className:i,onKeyDown:y,tabIndex:o?0:-1},f,{children:M}))}),Pg=Tg;function $g(e){return Se("MuiPopover",e)}xe("MuiPopover",["root","paper"]);const Eg=["onEntering"],Dg=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Rg=["slotProps"];function Qs(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Zs(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Js(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function So(e){return typeof e=="function"?e():e}const Ng=e=>{const{classes:t}=e;return we({root:["root"],paper:["paper"]},$g,t)},Lg=X(Ea,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pc=X(Gr,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Og=p.forwardRef(function(t,n){var r,o,a;const s=be({props:t,name:"MuiPopover"}),{action:i,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:f,className:h,container:m,elevation:y=8,marginThreshold:b=16,open:g,PaperProps:M={},slots:w,slotProps:C,transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:T=Jo,transitionDuration:D="auto",TransitionProps:{onEntering:O}={},disableScrollLock:I=!1}=s,N=J(s.TransitionProps,Eg),R=J(s,Dg),F=(r=C==null?void 0:C.paper)!=null?r:M,j=p.useRef(),L=Ue(j,F.ref),E=x({},s,{anchorOrigin:c,anchorReference:d,elevation:y,marginThreshold:b,externalPaperSlotProps:F,transformOrigin:k,TransitionComponent:T,transitionDuration:D,TransitionProps:N}),P=Ng(E),$=p.useCallback(()=>{if(d==="anchorPosition")return u;const z=So(l),G=(z&&z.nodeType===1?z:Le(j.current).body).getBoundingClientRect();return{top:G.top+Qs(G,c.vertical),left:G.left+Zs(G,c.horizontal)}},[l,c.horizontal,c.vertical,u,d]),S=p.useCallback(z=>({vertical:Qs(z,k.vertical),horizontal:Zs(z,k.horizontal)}),[k.horizontal,k.vertical]),A=p.useCallback(z=>{const U={width:z.offsetWidth,height:z.offsetHeight},G=S(U);if(d==="none")return{top:null,left:null,transformOrigin:Js(G)};const me=$();let pe=me.top-G.vertical,ge=me.left-G.horizontal;const De=pe+U.height,Me=ge+U.width,Ae=bt(So(l)),je=Ae.innerHeight-b,qe=Ae.innerWidth-b;if(b!==null&&peje){const ke=De-je;pe-=ke,G.vertical+=ke}if(b!==null&&geqe){const ke=Me-qe;ge-=ke,G.horizontal+=ke}return{top:`${Math.round(pe)}px`,left:`${Math.round(ge)}px`,transformOrigin:Js(G)}},[l,d,$,S,b]),[W,K]=p.useState(g),Q=p.useCallback(()=>{const z=j.current;if(!z)return;const U=A(z);U.top!==null&&(z.style.top=U.top),U.left!==null&&(z.style.left=U.left),z.style.transformOrigin=U.transformOrigin,K(!0)},[A]);p.useEffect(()=>(I&&window.addEventListener("scroll",Q),()=>window.removeEventListener("scroll",Q)),[l,I,Q]);const re=(z,U)=>{O&&O(z,U),Q()},ee=()=>{K(!1)};p.useEffect(()=>{g&&Q()}),p.useImperativeHandle(i,()=>g?{updatePosition:()=>{Q()}}:null,[g,Q]),p.useEffect(()=>{if(!g)return;const z=Xr(()=>{Q()}),U=bt(l);return U.addEventListener("resize",z),()=>{z.clear(),U.removeEventListener("resize",z)}},[l,g,Q]);let ne=D;D==="auto"&&!T.muiSupportAuto&&(ne=void 0);const ie=m||(l?Le(So(l)).body:void 0),he=(o=w==null?void 0:w.root)!=null?o:Lg,ce=(a=w==null?void 0:w.paper)!=null?a:pc,H=Ye({elementType:ce,externalSlotProps:x({},F,{style:W?F.style:x({},F.style,{opacity:0})}),additionalProps:{elevation:y,ref:L},ownerState:E,className:ae(P.paper,F==null?void 0:F.className)}),V=Ye({elementType:he,externalSlotProps:(C==null?void 0:C.root)||{},externalForwardedProps:R,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:ie,open:g},ownerState:E,className:ae(P.root,h)}),{slotProps:q}=V,_=J(V,Rg);return v.jsx(he,x({},_,!cd(he)&&{slotProps:q,disableScrollLock:I},{children:v.jsx(T,x({appear:!0,in:g,onEntering:re,onExited:ee,timeout:ne},N,{children:v.jsx(ce,x({},H,{children:f}))}))}))}),_g=Og;function Ig(e){return Se("MuiMenu",e)}xe("MuiMenu",["root","paper","list"]);const Ag=["onEntering"],jg=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Fg={vertical:"top",horizontal:"right"},Bg={vertical:"top",horizontal:"left"},Hg=e=>{const{classes:t}=e;return we({root:["root"],paper:["paper"],list:["list"]},Ig,t)},Wg=X(_g,{shouldForwardProp:e=>or(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zg=X(pc,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Ug=X(Pg,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Vg=p.forwardRef(function(t,n){var r,o;const a=be({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:i,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:d,open:f,PaperProps:h={},PopoverClasses:m,transitionDuration:y="auto",TransitionProps:{onEntering:b}={},variant:g="selectedMenu",slots:M={},slotProps:w={}}=a,C=J(a.TransitionProps,Ag),k=J(a,jg),T=ar(),D=x({},a,{autoFocus:s,disableAutoFocusItem:c,MenuListProps:u,onEntering:b,PaperProps:h,transitionDuration:y,TransitionProps:C,variant:g}),O=Hg(D),I=s&&!c&&f,N=p.useRef(null),R=(S,A)=>{N.current&&N.current.adjustStyleForScrollbar(S,{direction:T?"rtl":"ltr"}),b&&b(S,A)},F=S=>{S.key==="Tab"&&(S.preventDefault(),d&&d(S,"tabKeyDown"))};let j=-1;p.Children.map(i,(S,A)=>{p.isValidElement(S)&&(S.props.disabled||(g==="selectedMenu"&&S.props.selected||j===-1)&&(j=A))});const L=(r=M.paper)!=null?r:zg,E=(o=w.paper)!=null?o:h,P=Ye({elementType:M.root,externalSlotProps:w.root,ownerState:D,className:[O.root,l]}),$=Ye({elementType:L,externalSlotProps:E,ownerState:D,className:O.paper});return v.jsx(Wg,x({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?Fg:Bg,slots:{paper:L,root:M.root},slotProps:{root:P,paper:$},open:f,ref:n,transitionDuration:y,TransitionProps:x({onEntering:R},C),ownerState:D},k,{classes:m,children:v.jsx(Ug,x({onKeyDown:F,actions:N,autoFocus:s&&(j===-1||c),autoFocusItem:I,variant:g},u,{className:ae(O.list,u.className),children:i}))}))}),hc=Vg;function Yg(e){return Se("MuiMenuItem",e)}const Kg=xe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),An=Kg,qg=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Gg=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Xg=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:s}=e,l=we({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},Yg,s);return x({},s,l)},Qg=X(pa,{shouldForwardProp:e=>or(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Gg})(({theme:e,ownerState:t})=>x({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${An.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Xt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${An.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Xt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${An.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Xt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Xt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${An.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${An.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Ys.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Ys.inset}`]:{marginLeft:52},[`& .${Gs.root}`]:{marginTop:0,marginBottom:0},[`& .${Gs.inset}`]:{paddingLeft:36},[`& .${qs.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&x({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${qs.root} svg`]:{fontSize:"1.25rem"}}))),Zg=p.forwardRef(function(t,n){const r=be({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:s=!1,divider:i=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:f}=r,h=J(r,qg),m=p.useContext(ea),y=p.useMemo(()=>({dense:s||m.dense||!1,disableGutters:l}),[m.dense,s,l]),b=p.useRef(null);_t(()=>{o&&b.current&&b.current.focus()},[o]);const g=x({},r,{dense:y.dense,divider:i,disableGutters:l}),M=Xg(r),w=Ue(b,n);let C;return r.disabled||(C=d!==void 0?d:-1),v.jsx(ea.Provider,{value:y,children:v.jsx(Qg,x({ref:w,role:u,tabIndex:C,component:a,focusVisibleClassName:ae(M.focusVisible,c),className:ae(M.root,f)},h,{ownerState:g,classes:M}))})}),Jg=Zg;function ev(e){return Se("MuiTooltip",e)}const tv=xe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Lt=tv,nv=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function rv(e){return Math.round(e*1e5)/1e5}const ov=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Ce(a.split("-")[0])}`],arrow:["arrow"]};return we(s,ev,t)},av=X(rc,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>x({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Lt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Lt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Lt.arrow}`]:x({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Lt.arrow}`]:x({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),sv=X("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Ce(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>x({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Xt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${rv(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Lt.popper}[data-popper-placement*="left"] &`]:x({transformOrigin:"right center"},t.isRtl?x({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):x({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Lt.popper}[data-popper-placement*="right"] &`]:x({transformOrigin:"left center"},t.isRtl?x({marginRight:"14px"},t.touch&&{marginRight:"24px"}):x({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Lt.popper}[data-popper-placement*="top"] &`]:x({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Lt.popper}[data-popper-placement*="bottom"] &`]:x({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),iv=X("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Xt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let xr=!1;const ei=new dd;let jn={x:0,y:0};function br(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const lv=p.forwardRef(function(t,n){var r,o,a,s,i,l,c,u,d,f,h,m,y,b,g,M,w,C,k;const T=be({props:t,name:"MuiTooltip"}),{arrow:D=!1,children:O,components:I={},componentsProps:N={},describeChild:R=!1,disableFocusListener:F=!1,disableHoverListener:j=!1,disableInteractive:L=!1,disableTouchListener:E=!1,enterDelay:P=100,enterNextDelay:$=0,enterTouchDelay:S=700,followCursor:A=!1,id:W,leaveDelay:K=0,leaveTouchDelay:Q=1500,onClose:re,onOpen:ee,open:ne,placement:ie="bottom",PopperComponent:he,PopperProps:ce={},slotProps:H={},slots:V={},title:q,TransitionComponent:_=Jo,TransitionProps:z}=T,U=J(T,nv),G=p.isValidElement(O)?O:v.jsx("span",{children:O}),me=lt(),pe=ar(),[ge,De]=p.useState(),[Me,Ae]=p.useState(null),je=p.useRef(!1),qe=L||A,ke=zn(),$t=zn(),ht=zn(),zt=zn(),[Ut,Vt]=Dd({controlled:ne,default:!1,name:"Tooltip",state:"open"});let Ge=Ut;const Et=Ll(W),Yt=p.useRef(),cn=en(()=>{Yt.current!==void 0&&(document.body.style.WebkitUserSelect=Yt.current,Yt.current=void 0),zt.clear()});p.useEffect(()=>cn,[cn]);const un=se=>{ei.clear(),xr=!0,Vt(!0),ee&&!Ge&&ee(se)},Y=en(se=>{ei.start(800+K,()=>{xr=!1}),Vt(!1),re&&Ge&&re(se),ke.start(me.transitions.duration.shortest,()=>{je.current=!1})}),Z=se=>{je.current&&se.type!=="touchstart"||(ge&&ge.removeAttribute("title"),$t.clear(),ht.clear(),P||xr&&$?$t.start(xr?$:P,()=>{un(se)}):un(se))},de=se=>{$t.clear(),ht.start(K,()=>{Y(se)})},{isFocusVisibleRef:ue,onBlur:ye,onFocus:$e,ref:Xe}=ud(),[,Dt]=p.useState(!1),tt=se=>{ye(se),ue.current===!1&&(Dt(!1),de(se))},dn=se=>{ge||De(se.currentTarget),$e(se),ue.current===!0&&(Dt(!0),Z(se))},bs=se=>{je.current=!0;const Fe=G.props;Fe.onTouchStart&&Fe.onTouchStart(se)},ju=se=>{bs(se),ht.clear(),ke.clear(),cn(),Yt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",zt.start(S,()=>{document.body.style.WebkitUserSelect=Yt.current,Z(se)})},Fu=se=>{G.props.onTouchEnd&&G.props.onTouchEnd(se),cn(),ht.start(Q,()=>{Y(se)})};p.useEffect(()=>{if(!Ge)return;function se(Fe){(Fe.key==="Escape"||Fe.key==="Esc")&&Y(Fe)}return document.addEventListener("keydown",se),()=>{document.removeEventListener("keydown",se)}},[Y,Ge]);const Bu=Ue(G.ref,Xe,De,n);!q&&q!==0&&(Ge=!1);const lo=p.useRef(),Hu=se=>{const Fe=G.props;Fe.onMouseMove&&Fe.onMouseMove(se),jn={x:se.clientX,y:se.clientY},lo.current&&lo.current.update()},Nn={},co=typeof q=="string";R?(Nn.title=!Ge&&co&&!j?q:null,Nn["aria-describedby"]=Ge?Et:null):(Nn["aria-label"]=co?q:null,Nn["aria-labelledby"]=Ge&&!co?Et:null);const nt=x({},Nn,U,G.props,{className:ae(U.className,G.props.className),onTouchStart:bs,ref:Bu},A?{onMouseMove:Hu}:{}),Ln={};E||(nt.onTouchStart=ju,nt.onTouchEnd=Fu),j||(nt.onMouseOver=br(Z,nt.onMouseOver),nt.onMouseLeave=br(de,nt.onMouseLeave),qe||(Ln.onMouseOver=Z,Ln.onMouseLeave=de)),F||(nt.onFocus=br(dn,nt.onFocus),nt.onBlur=br(tt,nt.onBlur),qe||(Ln.onFocus=dn,Ln.onBlur=tt));const Wu=p.useMemo(()=>{var se;let Fe=[{name:"arrow",enabled:!!Me,options:{element:Me,padding:4}}];return(se=ce.popperOptions)!=null&&se.modifiers&&(Fe=Fe.concat(ce.popperOptions.modifiers)),x({},ce.popperOptions,{modifiers:Fe})},[Me,ce]),On=x({},T,{isRtl:pe,arrow:D,disableInteractive:qe,placement:ie,PopperComponentProp:he,touch:je.current}),uo=ov(On),ys=(r=(o=V.popper)!=null?o:I.Popper)!=null?r:av,Cs=(a=(s=(i=V.transition)!=null?i:I.Transition)!=null?s:_)!=null?a:Jo,ws=(l=(c=V.tooltip)!=null?c:I.Tooltip)!=null?l:sv,Ss=(u=(d=V.arrow)!=null?d:I.Arrow)!=null?u:iv,zu=Wn(ys,x({},ce,(f=H.popper)!=null?f:N.popper,{className:ae(uo.popper,ce==null?void 0:ce.className,(h=(m=H.popper)!=null?m:N.popper)==null?void 0:h.className)}),On),Uu=Wn(Cs,x({},z,(y=H.transition)!=null?y:N.transition),On),Vu=Wn(ws,x({},(b=H.tooltip)!=null?b:N.tooltip,{className:ae(uo.tooltip,(g=(M=H.tooltip)!=null?M:N.tooltip)==null?void 0:g.className)}),On),Yu=Wn(Ss,x({},(w=H.arrow)!=null?w:N.arrow,{className:ae(uo.arrow,(C=(k=H.arrow)!=null?k:N.arrow)==null?void 0:C.className)}),On);return v.jsxs(p.Fragment,{children:[p.cloneElement(G,nt),v.jsx(ys,x({as:he??rc,placement:ie,anchorEl:A?{getBoundingClientRect:()=>({top:jn.y,left:jn.x,right:jn.x,bottom:jn.y,width:0,height:0})}:ge,popperRef:lo,open:ge?Ge:!1,id:Et,transition:!0},Ln,zu,{popperOptions:Wu,children:({TransitionProps:se})=>v.jsx(Cs,x({timeout:me.transitions.duration.shorter},se,Uu,{children:v.jsxs(ws,x({},Vu,{children:[q,D?v.jsx(Ss,x({},Yu,{ref:Ae})):null]}))}))}))]})}),Zr=lv;function cv(e){return Se("MuiTab",e)}const uv=xe("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Rt=uv,dv=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],fv=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:a,label:s,selected:i,disabled:l}=e,c={root:["root",a&&s&&"labelIcon",`textColor${Ce(n)}`,r&&"fullWidth",o&&"wrapped",i&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return we(c,cv,t)},pv=X(pa,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Ce(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Rt.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>x({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Rt.iconWrapper}`]:x({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Rt.selected}`]:{opacity:1},[`&.${Rt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Rt.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Rt.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Rt.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Rt.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),hv=p.forwardRef(function(t,n){const r=be({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:s=!1,fullWidth:i,icon:l,iconPosition:c="top",indicator:u,label:d,onChange:f,onClick:h,onFocus:m,selected:y,selectionFollowsFocus:b,textColor:g="inherit",value:M,wrapped:w=!1}=r,C=J(r,dv),k=x({},r,{disabled:a,disableFocusRipple:s,selected:y,icon:!!l,iconPosition:c,label:!!d,fullWidth:i,textColor:g,wrapped:w}),T=fv(k),D=l&&d&&p.isValidElement(l)?p.cloneElement(l,{className:ae(T.iconWrapper,l.props.className)}):l,O=N=>{!y&&f&&f(N,M),h&&h(N)},I=N=>{b&&!y&&f&&f(N,M),m&&m(N)};return v.jsxs(pv,x({focusRipple:!s,className:ae(T.root,o),ref:n,role:"tab","aria-selected":y,disabled:a,onClick:O,onFocus:I,ownerState:k,tabIndex:y?0:-1},C,{children:[c==="top"||c==="start"?v.jsxs(p.Fragment,{children:[D,d]}):v.jsxs(p.Fragment,{children:[d,D]}),u]}))}),mv=hv,gv=rr(v.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),vv=rr(v.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function xv(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function bv(e,t,n,r={},o=()=>{}){const{ease:a=xv,duration:s=300}=r;let i=null;const l=t[e];let c=!1;const u=()=>{c=!0},d=f=>{if(c){o(new Error("Animation cancelled"));return}i===null&&(i=f);const h=Math.min(1,(f-i)/s);if(t[e]=a(h)*(n-l)+l,h>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(d)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(d),u)}const yv=["onChange"],Cv={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function wv(e){const{onChange:t}=e,n=J(e,yv),r=p.useRef(),o=p.useRef(null),a=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return _t(()=>{const s=Xr(()=>{const l=r.current;a(),l!==r.current&&t(r.current)}),i=bt(o.current);return i.addEventListener("resize",s),()=>{s.clear(),i.removeEventListener("resize",s)}},[t]),p.useEffect(()=>{a(),t(r.current)},[t]),v.jsx("div",x({style:Cv,ref:o},n))}function Sv(e){return Se("MuiTabScrollButton",e)}const Mv=xe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),kv=Mv,Tv=["className","slots","slotProps","direction","orientation","disabled"],Pv=e=>{const{classes:t,orientation:n,disabled:r}=e;return we({root:["root",n,r&&"disabled"]},Sv,t)},$v=X(pa,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>x({width:40,flexShrink:0,opacity:.8,[`&.${kv.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Ev=p.forwardRef(function(t,n){var r,o;const a=be({props:t,name:"MuiTabScrollButton"}),{className:s,slots:i={},slotProps:l={},direction:c}=a,u=J(a,Tv),d=ar(),f=x({isRtl:d},a),h=Pv(f),m=(r=i.StartScrollButtonIcon)!=null?r:gv,y=(o=i.EndScrollButtonIcon)!=null?o:vv,b=Ye({elementType:m,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f}),g=Ye({elementType:y,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f});return v.jsx($v,x({component:"div",className:ae(h.root,s),ref:n,role:null,ownerState:f,tabIndex:null},u,{children:c==="left"?v.jsx(m,x({},b)):v.jsx(y,x({},g))}))}),Dv=Ev;function Rv(e){return Se("MuiTabs",e)}const Nv=xe("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Mo=Nv,Lv=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],ti=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,ni=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,yr=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=n(e,o);else{o.focus();return}}},Ov=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:a,centered:s,scrollButtonsHideMobile:i,classes:l}=e;return we({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",i&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Rv,l)},_v=X("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Mo.scrollButtons}`]:t.scrollButtons},{[`& .${Mo.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>x({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Mo.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Iv=X("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>x({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Av=X("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>x({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),jv=X("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>x({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),Fv=X(wv)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),ri={},Bv=p.forwardRef(function(t,n){const r=be({props:t,name:"MuiTabs"}),o=lt(),a=ar(),{"aria-label":s,"aria-labelledby":i,action:l,centered:c=!1,children:u,className:d,component:f="div",allowScrollButtonsMobile:h=!1,indicatorColor:m="primary",onChange:y,orientation:b="horizontal",ScrollButtonComponent:g=Dv,scrollButtons:M="auto",selectionFollowsFocus:w,slots:C={},slotProps:k={},TabIndicatorProps:T={},TabScrollButtonProps:D={},textColor:O="primary",value:I,variant:N="standard",visibleScrollbar:R=!1}=r,F=J(r,Lv),j=N==="scrollable",L=b==="vertical",E=L?"scrollTop":"scrollLeft",P=L?"top":"left",$=L?"bottom":"right",S=L?"clientHeight":"clientWidth",A=L?"height":"width",W=x({},r,{component:f,allowScrollButtonsMobile:h,indicatorColor:m,orientation:b,vertical:L,scrollButtons:M,textColor:O,variant:N,visibleScrollbar:R,fixed:!j,hideScrollbar:j&&!R,scrollableX:j&&!L,scrollableY:j&&L,centered:c&&!j,scrollButtonsHideMobile:!h}),K=Ov(W),Q=Ye({elementType:C.StartScrollButtonIcon,externalSlotProps:k.startScrollButtonIcon,ownerState:W}),re=Ye({elementType:C.EndScrollButtonIcon,externalSlotProps:k.endScrollButtonIcon,ownerState:W}),[ee,ne]=p.useState(!1),[ie,he]=p.useState(ri),[ce,H]=p.useState(!1),[V,q]=p.useState(!1),[_,z]=p.useState(!1),[U,G]=p.useState({overflow:"hidden",scrollbarWidth:0}),me=new Map,pe=p.useRef(null),ge=p.useRef(null),De=()=>{const Y=pe.current;let Z;if(Y){const ue=Y.getBoundingClientRect();Z={clientWidth:Y.clientWidth,scrollLeft:Y.scrollLeft,scrollTop:Y.scrollTop,scrollLeftNormalized:tf(Y,a?"rtl":"ltr"),scrollWidth:Y.scrollWidth,top:ue.top,bottom:ue.bottom,left:ue.left,right:ue.right}}let de;if(Y&&I!==!1){const ue=ge.current.children;if(ue.length>0){const ye=ue[me.get(I)];de=ye?ye.getBoundingClientRect():null}}return{tabsMeta:Z,tabMeta:de}},Me=en(()=>{const{tabsMeta:Y,tabMeta:Z}=De();let de=0,ue;if(L)ue="top",Z&&Y&&(de=Z.top-Y.top+Y.scrollTop);else if(ue=a?"right":"left",Z&&Y){const $e=a?Y.scrollLeftNormalized+Y.clientWidth-Y.scrollWidth:Y.scrollLeft;de=(a?-1:1)*(Z[ue]-Y[ue]+$e)}const ye={[ue]:de,[A]:Z?Z[A]:0};if(isNaN(ie[ue])||isNaN(ie[A]))he(ye);else{const $e=Math.abs(ie[ue]-ye[ue]),Xe=Math.abs(ie[A]-ye[A]);($e>=1||Xe>=1)&&he(ye)}}),Ae=(Y,{animation:Z=!0}={})=>{Z?bv(E,pe.current,Y,{duration:o.transitions.duration.standard}):pe.current[E]=Y},je=Y=>{let Z=pe.current[E];L?Z+=Y:(Z+=Y*(a?-1:1),Z*=a&&Al()==="reverse"?-1:1),Ae(Z)},qe=()=>{const Y=pe.current[S];let Z=0;const de=Array.from(ge.current.children);for(let ue=0;ueY){ue===0&&(Z=Y);break}Z+=ye[S]}return Z},ke=()=>{je(-1*qe())},$t=()=>{je(qe())},ht=p.useCallback(Y=>{G({overflow:null,scrollbarWidth:Y})},[]),zt=()=>{const Y={};Y.scrollbarSizeListener=j?v.jsx(Fv,{onChange:ht,className:ae(K.scrollableX,K.hideScrollbar)}):null;const de=j&&(M==="auto"&&(ce||V)||M===!0);return Y.scrollButtonStart=de?v.jsx(g,x({slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Q},orientation:b,direction:a?"right":"left",onClick:ke,disabled:!ce},D,{className:ae(K.scrollButtons,D.className)})):null,Y.scrollButtonEnd=de?v.jsx(g,x({slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:re},orientation:b,direction:a?"left":"right",onClick:$t,disabled:!V},D,{className:ae(K.scrollButtons,D.className)})):null,Y},Ut=en(Y=>{const{tabsMeta:Z,tabMeta:de}=De();if(!(!de||!Z)){if(de[P]Z[$]){const ue=Z[E]+(de[$]-Z[$]);Ae(ue,{animation:Y})}}}),Vt=en(()=>{j&&M!==!1&&z(!_)});p.useEffect(()=>{const Y=Xr(()=>{pe.current&&Me()});let Z;const de=$e=>{$e.forEach(Xe=>{Xe.removedNodes.forEach(Dt=>{var tt;(tt=Z)==null||tt.unobserve(Dt)}),Xe.addedNodes.forEach(Dt=>{var tt;(tt=Z)==null||tt.observe(Dt)})}),Y(),Vt()},ue=bt(pe.current);ue.addEventListener("resize",Y);let ye;return typeof ResizeObserver<"u"&&(Z=new ResizeObserver(Y),Array.from(ge.current.children).forEach($e=>{Z.observe($e)})),typeof MutationObserver<"u"&&(ye=new MutationObserver(de),ye.observe(ge.current,{childList:!0})),()=>{var $e,Xe;Y.clear(),ue.removeEventListener("resize",Y),($e=ye)==null||$e.disconnect(),(Xe=Z)==null||Xe.disconnect()}},[Me,Vt]),p.useEffect(()=>{const Y=Array.from(ge.current.children),Z=Y.length;if(typeof IntersectionObserver<"u"&&Z>0&&j&&M!==!1){const de=Y[0],ue=Y[Z-1],ye={root:pe.current,threshold:.99},$e=dn=>{H(!dn[0].isIntersecting)},Xe=new IntersectionObserver($e,ye);Xe.observe(de);const Dt=dn=>{q(!dn[0].isIntersecting)},tt=new IntersectionObserver(Dt,ye);return tt.observe(ue),()=>{Xe.disconnect(),tt.disconnect()}}},[j,M,_,u==null?void 0:u.length]),p.useEffect(()=>{ne(!0)},[]),p.useEffect(()=>{Me()}),p.useEffect(()=>{Ut(ri!==ie)},[Ut,ie]),p.useImperativeHandle(l,()=>({updateIndicator:Me,updateScrollButtons:Vt}),[Me,Vt]);const Ge=v.jsx(jv,x({},T,{className:ae(K.indicator,T.className),ownerState:W,style:x({},ie,T.style)}));let Et=0;const Yt=p.Children.map(u,Y=>{if(!p.isValidElement(Y))return null;const Z=Y.props.value===void 0?Et:Y.props.value;me.set(Z,Et);const de=Z===I;return Et+=1,p.cloneElement(Y,x({fullWidth:N==="fullWidth",indicator:de&&!ee&&Ge,selected:de,selectionFollowsFocus:w,onChange:y,textColor:O,value:Z},Et===1&&I===!1&&!Y.props.tabIndex?{tabIndex:0}:{}))}),cn=Y=>{const Z=ge.current,de=Le(Z).activeElement;if(de.getAttribute("role")!=="tab")return;let ye=b==="horizontal"?"ArrowLeft":"ArrowUp",$e=b==="horizontal"?"ArrowRight":"ArrowDown";switch(b==="horizontal"&&a&&(ye="ArrowRight",$e="ArrowLeft"),Y.key){case ye:Y.preventDefault(),yr(Z,de,ni);break;case $e:Y.preventDefault(),yr(Z,de,ti);break;case"Home":Y.preventDefault(),yr(Z,null,ti);break;case"End":Y.preventDefault(),yr(Z,null,ni);break}},un=zt();return v.jsxs(_v,x({className:ae(K.root,d),ownerState:W,ref:n,as:f},F,{children:[un.scrollButtonStart,un.scrollbarSizeListener,v.jsxs(Iv,{className:K.scroller,ownerState:W,style:{overflow:U.overflow,[L?`margin${a?"Left":"Right"}`:"marginBottom"]:R?void 0:-U.scrollbarWidth},ref:pe,children:[v.jsx(Av,{"aria-label":s,"aria-labelledby":i,"aria-orientation":b==="vertical"?"vertical":null,className:K.flexContainer,ownerState:W,onKeyDown:cn,ref:ge,role:"tablist",children:Yt}),ee&&Ge]}),un.scrollButtonEnd]}))}),Hv=Bv,Wv=e=>Ie("color:",e.contrast,";background:",e.shadow,';display:flex;font-size:10px;letter-spacing:1px;font-family:"Courier New",Courier,monospace;margin:0px 10px;',""),zv=()=>{const[e,t]=p.useState(new Date),n=jt();return p.useEffect(()=>{const r=setInterval(()=>{t(new Date)},1e3);return()=>clearInterval(r)},[]),B("div",{children:B("div",{className:Ve(Wv(n)),children:B("p",{children:e.toLocaleString()})})})},Uv={name:"Clock",section:"Status Bar",id:ha(),Component:zv,description:"A simple clock with date / time",active:!1,visible:!0,roles:["admin","user","guest","superAdmin"]};var Da={},Vv=st;Object.defineProperty(Da,"__esModule",{value:!0});var mc=Da.default=void 0,Yv=Vv(it()),Kv=v;mc=Da.default=(0,Yv.default)((0,Kv.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRightOutlined");const qv=(e,t,n)=>Ie("display:flex;flex-direction:column;background:",e.shadow,";border-radius:3px;margin:0px 4px;padding:4px 6px;.title{color:theme.contrast;font-size:10px;margin-bottom:1px;}.total-num{color:",(()=>({prev:e.contrast,amount:e.primary,diff:e.contrast}))()[t],";font-size:16px;letter-spacing:1px;font-weight:bold;padding:3px 0px;:before{content:",(()=>t==="diff"&&{up:"'↑'",down:"'↓'",none:""})()[n],";font-size:14px;position:relative;font-weight:bold;color:",(()=>t==="diff"&&{up:e.accent,down:e.primary,none:e.primary})()[n],";top:-3px;margin-left:3px;}}",""),oi={total:{text:"Total Series",value:e=>e},percent:{text:"Percentage from total",value:e=>`${String(e)}%`},previous:{text:"Previous total",value:e=>e||0},diff:{text:"Diff from previous",value:e=>`${e??0}`},quota:{text:"Quota Limit",value:e=>e===0?"Unlimited":`${e}`}},Yn=({theme:e,value:t,text:n,type:r="amount",trend:o="none"})=>oe("div",{className:Ve(qv(e,r,o)),children:[B("div",{className:"title",children:oi[n].text}),B("div",{className:"total-num",children:oi[n].value(t)})]});ha();var Ra={},Gv=st;Object.defineProperty(Ra,"__esModule",{value:!0});var gc=Ra.default=void 0,Xv=Gv(it()),Qv=v;gc=Ra.default=(0,Xv.default)((0,Qv.jsx)("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V10h14zm0-12H5V6h14zM9 14H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2zm-8 4H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2z"}),"CalendarMonthOutlined");var vc={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Td,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",s="second",i="minute",l="hour",c="day",u="week",d="month",f="quarter",h="year",m="date",y="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(L){var E=["th","st","nd","rd"],P=L%100;return"["+L+(E[(P-20)%10]||E[P]||E[0])+"]"}},w=function(L,E,P){var $=String(L);return!$||$.length>=E?L:""+Array(E+1-$.length).join(P)+L},C={s:w,z:function(L){var E=-L.utcOffset(),P=Math.abs(E),$=Math.floor(P/60),S=P%60;return(E<=0?"+":"-")+w($,2,"0")+":"+w(S,2,"0")},m:function L(E,P){if(E.date()1)return L(W[0])}else{var K=E.name;T[K]=E,S=K}return!$&&S&&(k=S),S||!$&&k},N=function(L,E){if(O(L))return L.clone();var P=typeof E=="object"?E:{};return P.date=L,P.args=arguments,new F(P)},R=C;R.l=I,R.i=O,R.w=function(L,E){return N(L,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var F=function(){function L(P){this.$L=I(P.locale,null,!0),this.parse(P),this.$x=this.$x||P.x||{},this[D]=!0}var E=L.prototype;return E.parse=function(P){this.$d=function($){var S=$.date,A=$.utc;if(S===null)return new Date(NaN);if(R.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var W=S.match(b);if(W){var K=W[2]-1||0,Q=(W[7]||"0").substring(0,3);return A?new Date(Date.UTC(W[1],K,W[3]||1,W[4]||0,W[5]||0,W[6]||0,Q)):new Date(W[1],K,W[3]||1,W[4]||0,W[5]||0,W[6]||0,Q)}}return new Date(S)}(P),this.init()},E.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},E.$utils=function(){return R},E.isValid=function(){return this.$d.toString()!==y},E.isSame=function(P,$){var S=N(P);return this.startOf($)<=S&&S<=this.endOf($)},E.isAfter=function(P,$){return N(P)1&&(l||!c),d=t>1&&(c||!l),f=function(){r&&a(r)},h=function(){o&&a(o)};return v.jsx(Rx,{displayMonth:e.displayMonth,hideNext:u,hidePrevious:d,nextMonth:o,previousMonth:r,onPreviousClick:f,onNextClick:h})}function Nx(e){var t,n=ve(),r=n.classNames,o=n.disableNavigation,a=n.styles,s=n.captionLayout,i=n.components,l=(t=i==null?void 0:i.CaptionLabel)!==null&&t!==void 0?t:yc,c;return o?c=v.jsx(l,{id:e.id,displayMonth:e.displayMonth}):s==="dropdown"?c=v.jsx(ai,{displayMonth:e.displayMonth,id:e.id}):s==="dropdown-buttons"?c=v.jsxs(v.Fragment,{children:[v.jsx(ai,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),v.jsx(si,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):c=v.jsxs(v.Fragment,{children:[v.jsx(l,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),v.jsx(si,{displayMonth:e.displayMonth,id:e.id})]}),v.jsx("div",{className:r.caption,style:a.caption,children:c})}function Lx(e){var t=ve(),n=t.footer,r=t.styles,o=t.classNames.tfoot;return n?v.jsx("tfoot",{className:o,style:r.tfoot,children:v.jsx("tr",{children:v.jsx("td",{colSpan:8,children:n})})}):v.jsx(v.Fragment,{})}function Ox(e,t,n){for(var r=n?va(new Date):xa(new Date,{locale:e,weekStartsOn:t}),o=[],a=0;a<7;a++){var s=He(r,a);o.push(s)}return o}function _x(){var e=ve(),t=e.classNames,n=e.styles,r=e.showWeekNumber,o=e.locale,a=e.weekStartsOn,s=e.ISOWeek,i=e.formatters.formatWeekdayName,l=e.labels.labelWeekday,c=Ox(o,a,s);return v.jsxs("tr",{style:n.head_row,className:t.head_row,children:[r&&v.jsx("td",{style:n.head_cell,className:t.head_cell}),c.map(function(u,d){return v.jsx("th",{scope:"col",className:t.head_cell,style:n.head_cell,"aria-label":l(u,{locale:o}),children:i(u,{locale:o})},d)})]})}function Ix(){var e,t=ve(),n=t.classNames,r=t.styles,o=t.components,a=(e=o==null?void 0:o.HeadRow)!==null&&e!==void 0?e:_x;return v.jsx("thead",{style:r.head,className:n.head,children:v.jsx(a,{})})}function Ax(e){var t=ve(),n=t.locale,r=t.formatters.formatDay;return v.jsx(v.Fragment,{children:r(e.date,{locale:n})})}var Na=p.createContext(void 0);function jx(e){if(!lr(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return v.jsx(Na.Provider,{value:t,children:e.children})}return v.jsx(Fx,{initialProps:e.initialProps,children:e.children})}function Fx(e){var t=e.initialProps,n=e.children,r=t.selected,o=t.min,a=t.max,s=function(c,u,d){var f,h;(f=t.onDayClick)===null||f===void 0||f.call(t,c,u,d);var m=!!(u.selected&&o&&(r==null?void 0:r.length)===o);if(!m){var y=!!(!u.selected&&a&&(r==null?void 0:r.length)===a);if(!y){var b=r?xc([],r,!0):[];if(u.selected){var g=b.findIndex(function(M){return Re(c,M)});b.splice(g,1)}else b.push(c);(h=t.onSelect)===null||h===void 0||h.call(t,b,c,u,d)}}},i={disabled:[]};r&&i.disabled.push(function(c){var u=a&&r.length>a-1,d=r.some(function(f){return Re(f,c)});return!!(u&&!d)});var l={selected:r,onDayClick:s,modifiers:i};return v.jsx(Na.Provider,{value:l,children:n})}function La(){var e=p.useContext(Na);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function Bx(e,t){var n=t||{},r=n.from,o=n.to;return r&&o?Re(o,e)&&Re(r,e)?void 0:Re(o,e)?{from:o,to:void 0}:Re(r,e)?void 0:Yo(r,e)?{from:e,to:o}:{from:r,to:e}:o?Yo(e,o)?{from:o,to:e}:{from:e,to:o}:r?$l(e,r)?{from:e,to:r}:{from:r,to:e}:{from:e,to:void 0}}var Oa=p.createContext(void 0);function Hx(e){if(!cr(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return v.jsx(Oa.Provider,{value:t,children:e.children})}return v.jsx(Wx,{initialProps:e.initialProps,children:e.children})}function Wx(e){var t=e.initialProps,n=e.children,r=t.selected,o=r||{},a=o.from,s=o.to,i=t.min,l=t.max,c=function(h,m,y){var b,g;(b=t.onDayClick)===null||b===void 0||b.call(t,h,m,y);var M=Bx(h,r);(g=t.onSelect)===null||g===void 0||g.call(t,M,h,m,y)},u={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(u.range_start=[a],s?(u.range_end=[s],Re(a,s)||(u.range_middle=[{after:a,before:s}])):u.range_end=[a]):s&&(u.range_start=[s],u.range_end=[s]),i&&(a&&!s&&u.disabled.push({after:ho(a,i-1),before:He(a,i-1)}),a&&s&&u.disabled.push({after:a,before:He(a,i-1)}),!a&&s&&u.disabled.push({after:ho(s,i-1),before:He(s,i-1)})),l){if(a&&!s&&(u.disabled.push({before:He(a,-l+1)}),u.disabled.push({after:He(a,l-1)})),a&&s){var d=gt(s,a)+1,f=l-d;u.disabled.push({before:ho(a,f)}),u.disabled.push({after:He(s,f)})}!a&&s&&(u.disabled.push({before:He(s,-l+1)}),u.disabled.push({after:He(s,l-1)}))}return v.jsx(Oa.Provider,{value:{selected:r,onDayClick:c,modifiers:u},children:n})}function _a(){var e=p.useContext(Oa);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function Rr(e){return Array.isArray(e)?xc([],e,!0):e!==void 0?[e]:[]}function zx(e){var t={};return Object.entries(e).forEach(function(n){var r=n[0],o=n[1];t[r]=Rr(o)}),t}var at;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(at||(at={}));var Ux=at.Selected,mt=at.Disabled,Vx=at.Hidden,Yx=at.Today,ko=at.RangeEnd,To=at.RangeMiddle,Po=at.RangeStart,Kx=at.Outside;function qx(e,t,n){var r,o=(r={},r[Ux]=Rr(e.selected),r[mt]=Rr(e.disabled),r[Vx]=Rr(e.hidden),r[Yx]=[e.today],r[ko]=[],r[To]=[],r[Po]=[],r[Kx]=[],r);return e.fromDate&&o[mt].push({before:e.fromDate}),e.toDate&&o[mt].push({after:e.toDate}),lr(e)?o[mt]=o[mt].concat(t.modifiers[mt]):cr(e)&&(o[mt]=o[mt].concat(n.modifiers[mt]),o[Po]=n.modifiers[Po],o[To]=n.modifiers[To],o[ko]=n.modifiers[ko]),o}var Sc=p.createContext(void 0);function Gx(e){var t=ve(),n=La(),r=_a(),o=qx(t,n,r),a=zx(t.modifiers),s=te(te({},o),a);return v.jsx(Sc.Provider,{value:s,children:e.children})}function Mc(){var e=p.useContext(Sc);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function Xx(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function Qx(e){return!!(e&&typeof e=="object"&&"from"in e)}function Zx(e){return!!(e&&typeof e=="object"&&"after"in e)}function Jx(e){return!!(e&&typeof e=="object"&&"before"in e)}function eb(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function tb(e,t){var n,r=t.from,o=t.to;if(r&&o){var a=gt(o,r)<0;a&&(n=[o,r],r=n[0],o=n[1]);var s=gt(e,r)>=0&>(o,e)>=0;return s}return o?Re(o,e):r?Re(r,e):!1}function nb(e){return Rl(e)}function rb(e){return Array.isArray(e)&&e.every(Rl)}function ob(e,t){return t.some(function(n){if(typeof n=="boolean")return n;if(nb(n))return Re(e,n);if(rb(n))return n.includes(e);if(Qx(n))return tb(e,n);if(eb(n))return n.dayOfWeek.includes(e.getDay());if(Xx(n)){var r=gt(n.before,e),o=gt(n.after,e),a=r>0,s=o<0,i=Yo(n.before,n.after);return i?s&&a:a||s}return Zx(n)?gt(e,n.after)>0:Jx(n)?gt(n.before,e)>0:typeof n=="function"?n(e):!1})}function Ia(e,t,n){var r=Object.keys(t).reduce(function(a,s){var i=t[s];return ob(e,i)&&a.push(s),a},[]),o={};return r.forEach(function(a){return o[a]=!0}),n&&!ga(e,n)&&(o.outside=!0),o}function ab(e,t){for(var n=ze(e[0]),r=ma(e[e.length-1]),o,a,s=n;s<=r;){var i=Ia(s,t),l=!i.disabled&&!i.hidden;if(!l){s=He(s,1);continue}if(i.selected)return s;i.today&&!a&&(a=s),o||(o=s),s=He(s,1)}return a||o}var sb=365;function kc(e,t){var n=t.moveBy,r=t.direction,o=t.context,a=t.modifiers,s=t.retry,i=s===void 0?{count:0,lastFocused:e}:s,l=o.weekStartsOn,c=o.fromDate,u=o.toDate,d=o.locale,f={day:He,week:Ko,month:ft,year:Sd,startOfWeek:function(b){return o.ISOWeek?va(b):xa(b,{locale:d,weekStartsOn:l})},endOfWeek:function(b){return o.ISOWeek?El(b):Dl(b,{locale:d,weekStartsOn:l})}},h=f[n](e,r==="after"?1:-1);r==="before"&&c?h=bd([c,h]):r==="after"&&u&&(h=yd([u,h]));var m=!0;if(a){var y=Ia(h,a);m=!y.disabled&&!y.hidden}return m?h:i.count>sb?i.lastFocused:kc(h,{moveBy:n,direction:r,context:o,modifiers:a,retry:te(te({},i),{count:i.count+1})})}var Tc=p.createContext(void 0);function ib(e){var t=ur(),n=Mc(),r=p.useState(),o=r[0],a=r[1],s=p.useState(),i=s[0],l=s[1],c=ab(t.displayMonths,n),u=o??(i&&t.isDateDisplayed(i))?i:c,d=function(){l(o),a(void 0)},f=function(b){a(b)},h=ve(),m=function(b,g){if(o){var M=kc(o,{moveBy:b,direction:g,context:h,modifiers:n});Re(o,M)||(t.goToDate(M,o),f(M))}},y={focusedDay:o,focusTarget:u,blur:d,focus:f,focusDayAfter:function(){return m("day","after")},focusDayBefore:function(){return m("day","before")},focusWeekAfter:function(){return m("week","after")},focusWeekBefore:function(){return m("week","before")},focusMonthBefore:function(){return m("month","before")},focusMonthAfter:function(){return m("month","after")},focusYearBefore:function(){return m("year","before")},focusYearAfter:function(){return m("year","after")},focusStartOfWeek:function(){return m("startOfWeek","before")},focusEndOfWeek:function(){return m("endOfWeek","after")}};return v.jsx(Tc.Provider,{value:y,children:e.children})}function Aa(){var e=p.useContext(Tc);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function lb(e,t){var n=Mc(),r=Ia(e,n,t);return r}var ja=p.createContext(void 0);function cb(e){if(!Jr(e.initialProps)){var t={selected:void 0};return v.jsx(ja.Provider,{value:t,children:e.children})}return v.jsx(ub,{initialProps:e.initialProps,children:e.children})}function ub(e){var t=e.initialProps,n=e.children,r=function(a,s,i){var l,c,u;if((l=t.onDayClick)===null||l===void 0||l.call(t,a,s,i),s.selected&&!t.required){(c=t.onSelect)===null||c===void 0||c.call(t,void 0,a,s,i);return}(u=t.onSelect)===null||u===void 0||u.call(t,a,a,s,i)},o={selected:t.selected,onDayClick:r};return v.jsx(ja.Provider,{value:o,children:n})}function Pc(){var e=p.useContext(ja);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function db(e,t){var n=ve(),r=Pc(),o=La(),a=_a(),s=Aa(),i=s.focusDayAfter,l=s.focusDayBefore,c=s.focusWeekAfter,u=s.focusWeekBefore,d=s.blur,f=s.focus,h=s.focusMonthBefore,m=s.focusMonthAfter,y=s.focusYearBefore,b=s.focusYearAfter,g=s.focusStartOfWeek,M=s.focusEndOfWeek,w=function($){var S,A,W,K;Jr(n)?(S=r.onDayClick)===null||S===void 0||S.call(r,e,t,$):lr(n)?(A=o.onDayClick)===null||A===void 0||A.call(o,e,t,$):cr(n)?(W=a.onDayClick)===null||W===void 0||W.call(a,e,t,$):(K=n.onDayClick)===null||K===void 0||K.call(n,e,t,$)},C=function($){var S;f(e),(S=n.onDayFocus)===null||S===void 0||S.call(n,e,t,$)},k=function($){var S;d(),(S=n.onDayBlur)===null||S===void 0||S.call(n,e,t,$)},T=function($){var S;(S=n.onDayMouseEnter)===null||S===void 0||S.call(n,e,t,$)},D=function($){var S;(S=n.onDayMouseLeave)===null||S===void 0||S.call(n,e,t,$)},O=function($){var S;(S=n.onDayPointerEnter)===null||S===void 0||S.call(n,e,t,$)},I=function($){var S;(S=n.onDayPointerLeave)===null||S===void 0||S.call(n,e,t,$)},N=function($){var S;(S=n.onDayTouchCancel)===null||S===void 0||S.call(n,e,t,$)},R=function($){var S;(S=n.onDayTouchEnd)===null||S===void 0||S.call(n,e,t,$)},F=function($){var S;(S=n.onDayTouchMove)===null||S===void 0||S.call(n,e,t,$)},j=function($){var S;(S=n.onDayTouchStart)===null||S===void 0||S.call(n,e,t,$)},L=function($){var S;(S=n.onDayKeyUp)===null||S===void 0||S.call(n,e,t,$)},E=function($){var S;switch($.key){case"ArrowLeft":$.preventDefault(),$.stopPropagation(),n.dir==="rtl"?i():l();break;case"ArrowRight":$.preventDefault(),$.stopPropagation(),n.dir==="rtl"?l():i();break;case"ArrowDown":$.preventDefault(),$.stopPropagation(),c();break;case"ArrowUp":$.preventDefault(),$.stopPropagation(),u();break;case"PageUp":$.preventDefault(),$.stopPropagation(),$.shiftKey?y():h();break;case"PageDown":$.preventDefault(),$.stopPropagation(),$.shiftKey?b():m();break;case"Home":$.preventDefault(),$.stopPropagation(),g();break;case"End":$.preventDefault(),$.stopPropagation(),M();break}(S=n.onDayKeyDown)===null||S===void 0||S.call(n,e,t,$)},P={onClick:w,onFocus:C,onBlur:k,onKeyDown:E,onKeyUp:L,onMouseEnter:T,onMouseLeave:D,onPointerEnter:O,onPointerLeave:I,onTouchCancel:N,onTouchEnd:R,onTouchMove:F,onTouchStart:j};return P}function fb(){var e=ve(),t=Pc(),n=La(),r=_a(),o=Jr(e)?t.selected:lr(e)?n.selected:cr(e)?r.selected:void 0;return o}function pb(e){return Object.values(at).includes(e)}function hb(e,t){var n=[e.classNames.day];return Object.keys(t).forEach(function(r){var o=e.modifiersClassNames[r];if(o)n.push(o);else if(pb(r)){var a=e.classNames["day_".concat(r)];a&&n.push(a)}}),n}function mb(e,t){var n=te({},e.styles.day);return Object.keys(t).forEach(function(r){var o;n=te(te({},n),(o=e.modifiersStyles)===null||o===void 0?void 0:o[r])}),n}function gb(e,t,n){var r,o,a,s=ve(),i=Aa(),l=lb(e,t),c=db(e,l),u=fb(),d=!!(s.onDayClick||s.mode!=="default");p.useEffect(function(){var T;l.outside||i.focusedDay&&d&&Re(i.focusedDay,e)&&((T=n.current)===null||T===void 0||T.focus())},[i.focusedDay,e,n,d,l.outside]);var f=hb(s,l).join(" "),h=mb(s,l),m=!!(l.outside&&!s.showOutsideDays||l.hidden),y=(a=(o=s.components)===null||o===void 0?void 0:o.DayContent)!==null&&a!==void 0?a:Ax,b=v.jsx(y,{date:e,displayMonth:t,activeModifiers:l}),g={style:h,className:f,children:b,role:"gridcell"},M=i.focusTarget&&Re(i.focusTarget,e)&&!l.outside,w=i.focusedDay&&Re(i.focusedDay,e),C=te(te(te({},g),(r={disabled:l.disabled,role:"gridcell"},r["aria-selected"]=l.selected,r.tabIndex=w||M?0:-1,r)),c),k={isButton:d,isHidden:m,activeModifiers:l,selectedDays:u,buttonProps:C,divProps:g};return k}function vb(e){var t=p.useRef(null),n=gb(e.date,e.displayMonth,t);return n.isHidden?v.jsx("div",{role:"gridcell"}):n.isButton?v.jsx(Ir,te({name:"day",ref:t},n.buttonProps)):v.jsx("div",te({},n.divProps))}function xb(e){var t=e.number,n=e.dates,r=ve(),o=r.onWeekNumberClick,a=r.styles,s=r.classNames,i=r.locale,l=r.labels.labelWeekNumber,c=r.formatters.formatWeekNumber,u=c(Number(t),{locale:i});if(!o)return v.jsx("span",{className:s.weeknumber,style:a.weeknumber,children:u});var d=l(Number(t),{locale:i}),f=function(h){o(t,n,h)};return v.jsx(Ir,{name:"week-number","aria-label":d,className:s.weeknumber,style:a.weeknumber,onClick:f,children:u})}function bb(e){var t,n,r=ve(),o=r.styles,a=r.classNames,s=r.showWeekNumber,i=r.components,l=(t=i==null?void 0:i.Day)!==null&&t!==void 0?t:vb,c=(n=i==null?void 0:i.WeekNumber)!==null&&n!==void 0?n:xb,u;return s&&(u=v.jsx("td",{className:a.cell,style:o.cell,children:v.jsx(c,{number:e.weekNumber,dates:e.dates})})),v.jsxs("tr",{className:a.row,style:o.row,children:[u,e.dates.map(function(d){return v.jsx("td",{className:a.cell,style:o.cell,role:"presentation",children:v.jsx(l,{displayMonth:e.displayMonth,date:d})},hd(d))})]})}function ii(e,t,n){for(var r=n!=null&&n.ISOWeek?El(t):Dl(t,n),o=n!=null&&n.ISOWeek?va(e):xa(e,n),a=gt(r,o),s=[],i=0;i<=a;i++)s.push(He(o,i));var l=s.reduce(function(c,u){var d=n!=null&&n.ISOWeek?Cd(u):wd(u,n),f=c.find(function(h){return h.weekNumber===d});return f?(f.dates.push(u),c):(c.push({weekNumber:d,dates:[u]}),c)},[]);return l}function yb(e,t){var n=ii(ze(e),ma(e),t);if(t!=null&&t.useFixedWeeks){var r=md(e,t);if(r<6){var o=n[n.length-1],a=o.dates[o.dates.length-1],s=Ko(a,6-r),i=ii(Ko(a,1),s,t);n.push.apply(n,i)}}return n}function Cb(e){var t,n,r,o=ve(),a=o.locale,s=o.classNames,i=o.styles,l=o.hideHead,c=o.fixedWeeks,u=o.components,d=o.weekStartsOn,f=o.firstWeekContainsDate,h=o.ISOWeek,m=yb(e.displayMonth,{useFixedWeeks:!!c,ISOWeek:h,locale:a,weekStartsOn:d,firstWeekContainsDate:f}),y=(t=u==null?void 0:u.Head)!==null&&t!==void 0?t:Ix,b=(n=u==null?void 0:u.Row)!==null&&n!==void 0?n:bb,g=(r=u==null?void 0:u.Footer)!==null&&r!==void 0?r:Lx;return v.jsxs("table",{id:e.id,className:s.table,style:i.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!l&&v.jsx(y,{}),v.jsx("tbody",{className:s.tbody,style:i.tbody,children:m.map(function(M){return v.jsx(b,{displayMonth:e.displayMonth,dates:M.dates,weekNumber:M.weekNumber},M.weekNumber)})}),v.jsx(g,{displayMonth:e.displayMonth})]})}function wb(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Sb=wb()?p.useLayoutEffect:p.useEffect,$o=!1,Mb=0;function li(){return"react-day-picker-".concat(++Mb)}function kb(e){var t,n=e??($o?li():null),r=p.useState(n),o=r[0],a=r[1];return Sb(function(){o===null&&a(li())},[]),p.useEffect(function(){$o===!1&&($o=!0)},[]),(t=e??o)!==null&&t!==void 0?t:void 0}function Tb(e){var t,n,r=ve(),o=r.dir,a=r.classNames,s=r.styles,i=r.components,l=ur().displayMonths,c=kb(r.id?"".concat(r.id,"-").concat(e.displayIndex):void 0),u=r.id?"".concat(r.id,"-grid-").concat(e.displayIndex):void 0,d=[a.month],f=s.month,h=e.displayIndex===0,m=e.displayIndex===l.length-1,y=!h&&!m;o==="rtl"&&(t=[h,m],m=t[0],h=t[1]),h&&(d.push(a.caption_start),f=te(te({},f),s.caption_start)),m&&(d.push(a.caption_end),f=te(te({},f),s.caption_end)),y&&(d.push(a.caption_between),f=te(te({},f),s.caption_between));var b=(n=i==null?void 0:i.Caption)!==null&&n!==void 0?n:Nx;return v.jsxs("div",{className:d.join(" "),style:f,children:[v.jsx(b,{id:c,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),v.jsx(Cb,{id:u,"aria-labelledby":c,displayMonth:e.displayMonth})]},e.displayIndex)}function Pb(e){var t=ve(),n=t.classNames,r=t.styles;return v.jsx("div",{className:n.months,style:r.months,children:e.children})}function $b(e){var t,n,r=e.initialProps,o=ve(),a=Aa(),s=ur(),i=p.useState(!1),l=i[0],c=i[1];p.useEffect(function(){o.initialFocus&&a.focusTarget&&(l||(a.focus(a.focusTarget),c(!0)))},[o.initialFocus,l,a.focus,a.focusTarget,a]);var u=[o.classNames.root,o.className];o.numberOfMonths>1&&u.push(o.classNames.multiple_months),o.showWeekNumber&&u.push(o.classNames.with_weeknumber);var d=te(te({},o.styles.root),o.style),f=Object.keys(r).filter(function(m){return m.startsWith("data-")}).reduce(function(m,y){var b;return te(te({},m),(b={},b[y]=r[y],b))},{}),h=(n=(t=r.components)===null||t===void 0?void 0:t.Months)!==null&&n!==void 0?n:Pb;return v.jsx("div",te({className:u.join(" "),style:d,dir:o.dir,id:o.id,nonce:r.nonce,title:r.title,lang:r.lang},f,{children:v.jsx(h,{children:s.displayMonths.map(function(m,y){return v.jsx(Tb,{displayIndex:y,displayMonth:m},y)})})}))}function Eb(e){var t=e.children,n=Jv(e,["children"]);return v.jsx(xx,{initialProps:n,children:v.jsx($x,{children:v.jsx(cb,{initialProps:n,children:v.jsx(jx,{initialProps:n,children:v.jsx(Hx,{initialProps:n,children:v.jsx(Gx,{children:v.jsx(ib,{children:t})})})})})})})}function Db(e){return v.jsx(Eb,te({},e,{children:v.jsx($b,{initialProps:e})}))}const Sn="YYYY-MM-DD";const ci=e=>{let t;const n=new Set,r=(u,d)=>{const f=typeof u=="function"?u(t):u;if(!Object.is(f,t)){const h=t;t=d??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(m=>m(t,h))}},o=()=>t,l={setState:r,getState:o,getInitialState:()=>c,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{n.clear()}},c=t=e(r,o,l);return l},Rb=e=>e?ci(e):ci,{useDebugValue:Nb}=Nt,{useSyncExternalStoreWithSelector:Lb}=Md;const Ob=e=>e;function _b(e,t=Ob,n){const r=Lb(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Nb(r),r}const ui=e=>{const t=typeof e=="function"?Rb(e):e,n=(r,o)=>_b(t,r,o);return Object.assign(n,t),n},Ib=e=>e?ui(e):ui;var Ab=(e=>(e.GO="GO",e.NODE="NODE",e))(Ab||{});const jb=e=>It(e).unix(),Fb=e=>It(e).subtract(1,"day").unix(),Bb={total:{amount:0,prev:0,diff:0,quota:0},date:It().format(Sn),timeRange:{end:jb(new Date),start:Fb(new Date)},responseType:"NODE",isUpdating:!1,timeSeriesSelector:"",focusLabel:"",limitEntries:10,deletedQueries:[],isLoading:!1,error:"",tsdbStatus:{}},Hb={topN:10,timeSeriesSelector:"",focusLabel:""},At=Ib(e=>({...Bb,setIsUpdating:t=>e(()=>({isUpdating:t})),setTotal:t=>e(()=>({total:t})),setTimeSeriesSelector:t=>e(()=>({timeSeriesSelector:t})),setTimeRange:t=>e(()=>({timeRange:t})),setFocusLabel:t=>e(()=>({focusLabel:t})),setLimitEntries:t=>e(()=>({limitEntries:t})),setDate:t=>e(()=>({date:t})),setDeletedQueries:t=>e(n=>({deletedQueries:[...n.deletedQueries,t]})),reset:()=>e(()=>({...Hb})),setIsLoading:t=>e(()=>({isLoading:t})),setResponseType:t=>e(()=>({responseType:t})),setError:t=>e(()=>({error:t})),setTsdbStatus:t=>e(()=>({tsdbStatus:t}))})),Wb=e=>({color:`${e.contrast}`,overflow:"visible",fontSize:"12px",background:`${e.shadow}`,border:`1px solid ${e.accentNeutral}`,mt:1.5,"& .MuiAvatar-root":{width:32,height:32,ml:-.5,mr:1},"&:before":{content:'""',display:"block",position:"absolute",top:0,right:14,width:10,height:10,borderLeft:`1px solid ${e.accentNeutral}`,borderTop:`1px solid ${e.accentNeutral}`,bgcolor:`${e.shadow}`,transform:"translateY(-50%) rotate(45deg)",zIndex:0},"& .icon":{fontSize:"16px",marginRight:"4px",color:`${e.maxContrast}`},"& .item":{fontSize:"12px",color:`${e.maxContrast}`},".rdp-day_selected, .rdp-day_selected:focus-visible, .rdp-day_selected:hover":{background:`${e.primary}`,color:`${e.maxContrast}`},"& .rdp-day_selected : hover":{background:`${e.primary}`,color:`${e.maxContrast}`}}),Eo=(e,t=!1)=>{let n=!e||e.length<1?new Date:new Date(e);if(typeof e=="string")return n;{const r=t?n.getTimezoneOffset():-n.getTimezoneOffset(),o=new Date;return o.setTime(n.getTime()+r*6e4),o}};function zb(){const e=jt(),[t,n]=Nt.useState(null),{date:r,setDate:o}=At(),[a,s]=Nt.useState(new Date(r)),i=!!t;let l=B("p",{children:"Please pick a day."});a&&(l=oe("p",{children:["You picked ",Ft(a,"PP"),"."]}));const c=f=>{s(()=>Eo(f)),o(It(Eo(f)).format(Sn)),n(null)},u=f=>{n(f.currentTarget)},d=()=>{n(null)};return oe(Or,{children:[oe(Oh,{sx:{display:"flex",alignItems:"center",textAlign:"center"},children:[a&&B("p",{style:{fontSize:".8em"},children:It(a).format(Sn)}),B(Zr,{title:"Select Day",children:B(fd,{onClick:u,size:"small",sx:{ml:2,color:`${e.maxContrast}`,background:`${e.primaryAccent}`,"&.MuiIconButton-root":{border:`1px solid ${e.primary}`,borderRadius:"3px"}},"aria-controls":i?"account-menu":void 0,"aria-haspopup":"true","aria-expanded":i?"true":void 0,children:B(gc,{style:{height:"16px",width:"16px"}})})})]}),B(hc,{id:"account-menu",anchorEl:t,open:i,onClose:d,PaperProps:{elevation:0,sx:Wb(e)},transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},children:B(Db,{mode:"single",selected:Eo(a,!0),onSelect:c,footer:l})})]})}const di=(e,t)=>e?"{"+e+"="+JSON.stringify(t)+"}":"",Ub=e=>e.reduce((t,n)=>(t[n]=t[n]+1||1,t),{}),Vb=e=>{if((e==null?void 0:e.length)<1)return"";let t="{",n=e.length,r=[];for(let a=0;a1)continue;const[i,l]=e[a].split("=");t+=`${i}="${l}"`,a===e.length-1?t+="}":t+=","}return t},$c={seriesCountByMetricName:({query:e})=>di("__name__",e),seriesCountByLabelName:({query:e})=>{const t=`{${e}!=""}`;return localStorage.setItem("labelValuePairs",`${e}!=`),t},seriesCountByFocusLabelValue:({query:e,focusLabel:t})=>di(t,e),seriesCountByLabelValuePair:({query:e})=>{let t;try{const o=localStorage.getItem("labelValuePairs");o?t=o:t=""}catch{t=""}let n="";if(t&&!t.includes(e))n=`${t} ${e}`,localStorage.setItem("labelValuePairs",n);else if(t&&t.includes(e)){let s=t.split(" ").filter(i=>i!==e).join(" ");n=s,localStorage.setItem("labelValuePairs",s)}else t===""&&(n=e,localStorage.setItem("labelValuePairs",n));let r=n.split(" ");return Vb(r)},labelValueCountByLabelName:({query:e,match:t})=>t===""?`{${e}!=""}`:`${t.replace(/\}/gm,"")}, ${e}!=""}`};function Yb(e){return e==null?void 0:e.sort((n,r)=>n.value-r.value)}function Kb(e){return e==null?void 0:e.sort((n,r)=>r.value-n.value)}function qb(e){return e.sort((t,n)=>{const r=t.name.toUpperCase(),o=n.name.toUpperCase();return ro?1:0})}function Gb(e){return e.sort((t,n)=>{const r=t.name.toUpperCase(),o=n.name.toUpperCase();return or?1:0})}function Xb(e,t,n){return{name:{asc:()=>qb(e),desc:()=>Gb(e)},value:{asc:()=>Yb(e),desc:()=>Kb(e)}}[t][n]()}const Do=(e,t)=>{const n=t.match?`&match[]=${encodeURIComponent(t.match)}`:"",r=t.focusLabel?`&focusLabel=${encodeURIComponent(t.focusLabel)}`:"";return`${e}/api/v1/status/tsdb?topN=${t.topN}&date=${t.date}${n}${r}`};function Qb(e,t){return`${btoa(e)}${t&&t!==""?":":""}${btoa(t)}`}const Fa={totalSeries:0,totalSeriesPrev:0,totalSeriesByAll:0,totalLabelValuePairs:0,seriesCountByMetricName:[],seriesCountByLabelName:[],seriesCountByFocusLabelValue:[],seriesCountByLabelValuePair:[],labelValueCountByLabelName:[]},Zb=e=>{const t=gn(c=>c.dataSources);let n="";const{auth:r,url:o,headers:a}=t.find(c=>c.value===e);let s=a==null?void 0:a.reduce((c,u)=>Object.assign(c,{[u.header]:u.value}),{});const i=r.basicAuth.value;let l={u:"",p:""};if(i){let[c,u]=r.fields.basicAuth,d=u.value,f=c.value;l.u=c==null?void 0:c.value,l.p=u==null?void 0:u.value,n=Qb(f,d)}return{url:o,auth:n,user_pass:l,headers:s}},Jb=e=>({seriesCountByMetricName:"Metric names with highest number of series",seriesCountByLabelName:" Labels with the highest number of series",seriesCountByFocusLabelValue:`Values for "${e}" label with the highest number of series`,seriesCountByLabelValuePair:"Label=value pairs with the highest number of series",labelValueCountByLabelName:"Labels with the highest number of unique values"}),e0={seriesCountByMetricName:"Metric Name",seriesCountByLabelName:"Label name",seriesCountByFocusLabelValue:"Label value",seriesCountByLabelValuePair:"Label=value pair",labelValueCountByLabelName:"Label name"},t0=(e,t)=>Jb(t??"metric")[Object.keys(e)[0]],n0=e=>Object.keys(e)[0],r0=e=>e0[Object.keys(e)[0]],o0=e=>e[Object.keys(e)[0]],a0=(e,t)=>({title:t0(e,t),sectionHeaderName:n0(e),sectionHeader:r0(e),rows:o0(e)});function Ec(e,t){return t===0?0:e*100/t}function s0(e){return e===0?!1:e>60}const i0=async(e,t,n,r,o,a)=>{const s={}.VITE_API_DELETE_URL||e;try{r(!0);const i=s+"/loki/api/v1/delete",{u:l,p:c}=a;await fetch(i,{method:"GET",headers:{...o,Authorization:`Basic ${btoa(l+":"+c)}`}}).then(u=>{(u&&(u==null?void 0:u.status)===204||(u==null?void 0:u.status)===200)&&console.log(u)})}catch(i){console.log(i),t(JSON.stringify(i))}finally{}},l0=async(e,t,n,r,o,a,s,i,l,c)=>{const u={}.VITE_API_DELETE_URL||e;try{i(!0);const{u:d,p:f}=c,h=u+"/loki/api/v1/delete?query="+encodeURIComponent(t)+"&start="+r+"&end="+o;await fetch(h,{method:"POST",headers:{...l,Authorization:`Basic ${btoa(d+":"+f)}`}}).then(m=>{if(m&&(m==null?void 0:m.status)===500||(m==null?void 0:m.status)===400){a(m.statusText),i(!1);let y=m.text();Pr.dispatch($r({message:y,type:"error"}))}(m&&(m==null?void 0:m.status)===204||(m==null?void 0:m.status)===200)&&(i(!1),a(""),Pr.dispatch($r({message:`Deleted ${n} Fingerprints from ${t}`,type:"success"})))})}catch(d){a(JSON.stringify(d)),i(!1),s(f=>[...f,t]),Pr.dispatch($r({message:`${n} Fingerprints from ${t} not deleted`,type:"error"}))}finally{i(!1)}},fi=async(e,t,n,r,o,a,s)=>{const{match:i}=t,l={date:t.date,topN:0,match:"",focusLabel:""},c={...t,date:It(t.date).subtract(1,"day").format(Sn)},u=Do(e,t),d=Do(e,c),f=Do(e,l),h=[u,d,f];if(e){n(""),r(!0);try{const{u:m,p:y}=s,b=await Promise.all(h.map(C=>fetch(C,{headers:{...a,Authorization:`Basic ${btoa(m+":"+y)}`}})));if(b[0].status===400||b[0].status===500){const C=await b[0].text();n(C),r(!1),Pr.dispatch($r({message:C,type:"error"}));return}const[g,M,w]=await Promise.all(b.map(C=>C.json()));if(b[0].ok){const{data:C}=w,k={...M.data},T={...g.data};T.totalSeriesByAll=C==null?void 0:C.totalSeries,T.totalSeriesPrev=k==null?void 0:k.totalSeries;const D=i==null?void 0:i.replace(/[{}"]/g,"");T.seriesCountByLabelValuePair=T.seriesCountByLabelValuePair.filter(O=>O.name!==D),Object.keys(T).forEach(O=>{const I=O,N=T[I],R=k[I];Array.isArray(N)&&Array.isArray(R)&&N.forEach(F=>{var L;const j=(L=R.find(E=>E.name===F.name))==null?void 0:L.value;F.diff=j?F.value-j:0,F.valuePrev=j||0})}),o(T),r(!1)}else n(g.error),o(Fa)}catch(m){r(!1),m instanceof Error&&n(`${m.name}: ${m.message}`)}}},Ba=(e=!1)=>{const{timeSeriesSelector:t,focusLabel:n,limitEntries:r,date:o,setDeletedQueries:a,setError:s,setIsLoading:i,setTsdbStatus:l,error:c}=At(),u=o||It().format(Sn),d={match:t,focusLabel:n,topN:r,date:u},{url:f,headers:h,user_pass:m}=Zb("logs"),y=async(M,w)=>{const C=po.tz.guess(!0),k=po.tz(u,C).add(1,"day"),T=po.tz(u,C).add(2,"day"),D=k.clone().utc().startOf("day").unix(),O=T.clone().utc().startOf("day").unix();await l0(f,M,w,D,O,s,a,i,h,m)},b=async()=>{await i0(f,s,a,i,h,m)},g=async M=>{const w=o||It().format(Sn);let C={match:t,focusLabel:n,topN:r,date:w};M!==void 0&&(C={...C,...M}),await fi(f,C,s,i,l,h,m)};return p.useEffect(()=>{e&&fi(f,d,s,i,l,h,m)},[f,t,n,r,o]),p.useEffect(()=>{c&&(l(Fa),i(!1))},[c]),{handleDelete:y,handleGetDeletedFingerprints:b,handleCardinalityRequest:g}},c0=({setHistoryItem:e})=>{const{timeSeriesSelector:t,setTimeSeriesSelector:n,focusLabel:r,setFocusLabel:o,limitEntries:a,setLimitEntries:s,reset:i,date:l}=At(),{total:c}=At(),{handleCardinalityRequest:u}=Ba(),[d,f]=p.useState(t),[h,m]=p.useState(r),[y,b]=p.useState(a);return p.useEffect(()=>{f(t)},[t]),p.useEffect(()=>{m(r)},[r]),p.useEffect(()=>{b(a)},[a]),{onTimeSeriesChange:N=>{f(()=>N.target.value)},onKeyDownTimeSeries:N=>{N.keyCode===13&&(n(d),u({match:d}),e("timeSeriesSelector",d))},onFocusLabeChange:N=>{m(()=>N.target.value)},onKeyDownFocusLabel:N=>{N.keyCode===13&&(o(h),u({focusLabel:h}),e("focusLabel",h))},onLimitEntriesChange:N=>{b(()=>N.target.value)},onKeyDownLimitEntries:N=>{N.keyCode===13&&(s(Number(y)),u({topN:y}),e("limitEntries",Number(y)))},onQueryHistoryChange:N=>{N.preventDefault(),n(N.target.innerText),u({match:N.target.innerText})},onFocusHistoryChange:N=>{N.preventDefault(),m(N.target.innerText),u({focusLabel:N.target.innerText})},onLimitHistoryChange:N=>{N.preventDefault(),b(Number(N.target.innerText)),u({topN:Number(N.target.innerText)})},query:d,focus:h,limit:y,totalSeries:c,reset:i,date:l}};var Ha={},u0=st;Object.defineProperty(Ha,"__esModule",{value:!0});var Dc=Ha.default=void 0,d0=u0(it()),f0=v;Dc=Ha.default=(0,d0.default)((0,f0.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"}),"Restore");const p0=e=>Ie("font-size:12px;line-height:20px;cursor:pointer;user-select:none;font-weight:500;white-space:nowrap;display:flex;align-items:center;background:",e.neutral,";border:1px solid ",e.accentNeutral,";color:",e.contrast,";border-radius:3px;height:26px;margin:0px 1px;padding:3px 5px;span{margin-left:5px;}svg{font-size:1.15em;margin:0px 2px;}&:hover{color:orange;}.tooltip{background-color:red;display:flex;align-items:center;justify-items:center;}",""),h0=({theme:e,id:t,...n})=>B(hc,{id:t,elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"left"},PaperProps:{sx:{background:e.neutral,color:e.contrast}},transformOrigin:{vertical:"bottom",horizontal:"left"},...n}),m0=({id:e,handleClose:t,menuItems:n})=>{const r=jt(),[o,a]=p.useState(null),s=!!o,i=c=>{a(()=>c.currentTarget)},l=c=>{a(null),c.target.innerText&&t(c)};return oe(Or,{children:[B("button",{onClick:i,id:`custom-menu-button-${e}`,className:Ve(p0(r)),"aria-controls":s?`custom-menu${e}`:void 0,"aria-haspopup":"true","aria-expanded":s?"true":void 0,children:B(Dc,{fontSize:"small"})}),B(h0,{id:`custom-menu-${e}`,anchorEl:o,open:s,onClose:l,theme:r,children:n==null?void 0:n.map((c,u)=>B(Jg,{sx:{"&.MuiMenuItem-root":{fontSize:12}},onClick:l,children:c},`${c}-${u} r`))})]})},Ro=({name:e,value:t,label:n,size:r,inputSize:o="",type:a,onChange:s,onHistoryChange:i,onKeyDown:l,history:c,hasHistory:u})=>oe("div",{className:`form-group ${r}`,children:[B("label",{children:n}),B("input",{name:e,className:o,type:a,value:t,onKeyDown:l,onChange:s}),u&&(c==null?void 0:c.length)>0&&B(m0,{id:e,menuItems:c,handleClose:i})]}),g0=e=>Ie("background:",e.shadow,";padding:8px;border-radius:3px;margin:4px;margin-bottom:8px;display:flex;flex-direction:column;.form-row{display:flex;flex:1;}.form-group{display:flex;align-items:center;label{color:",e.contrast,";font-size:12px;padding:7px;background:",e.background,";border:1px solid ",e.lightNeutral,";border-radius:3px;}input,select{background:",e.deep,";border-radius:3px;padding:5px 8px;border:1px solid ",e.lightNeutral,";color:",e.contrast,";transition:0.35s all;font-family:monospace;&:focus{outline:none;border:1px solid ",e.primary,";}&.l{flex:1;}&.s{max-width:50px;}}select{padding:4px 7px;}&.l{flex:1;}}.config-actions{display:flex;align-items:center;justify-content:space-between;padding:4px 0px;.c-totals{display:flex;align-items:center;}.buttons-group{display:flex;gap:8px;align-items:center;}.query-button{height:30px;transition:0.35s all;background:",e.primaryAccent,";color:",e.maxContrast,";padding:4px 6px;border-radius:3px;border:1px solid ",e.primary,";cursor:pointer;display:flex;align-items:center;&:hover{background:",e.primary,";}}}","");function v0(e){return e&&e.ownerDocument||document}function x0(e){return v0(e).defaultView||window}function b0(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const y0=typeof window<"u"?p.useLayoutEffect:p.useEffect,Ar=y0;let pi=0;function C0(e){const[t,n]=p.useState(e),r=e||t;return p.useEffect(()=>{t==null&&(pi+=1,n(`mui-${pi}`))},[t]),r}const hi=$d["useId".toString()];function Wa(e){if(hi!==void 0){const t=hi();return e??t}return C0(e)}function w0({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=p.useRef(e!==void 0),[a,s]=p.useState(t),i=o?e:a,l=p.useCallback(c=>{o||s(c)},[]);return[i,l]}function Ht(...e){return p.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{b0(n,t)})},e)}class za{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new za}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let eo=!0,ta=!1;const S0=new za,M0={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function k0(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&M0[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function T0(e){e.metaKey||e.altKey||e.ctrlKey||(eo=!0)}function No(){eo=!1}function P0(){this.visibilityState==="hidden"&&ta&&(eo=!0)}function $0(e){e.addEventListener("keydown",T0,!0),e.addEventListener("mousedown",No,!0),e.addEventListener("pointerdown",No,!0),e.addEventListener("touchstart",No,!0),e.addEventListener("visibilitychange",P0,!0)}function E0(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return eo||k0(t)}function D0(){const e=p.useCallback(o=>{o!=null&&$0(o.ownerDocument)},[]),t=p.useRef(!1);function n(){return t.current?(ta=!0,S0.start(100,()=>{ta=!1}),t.current=!1,!0):!1}function r(o){return E0(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function kt(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((a,s)=>{if(s){const i=t(s);i!==""&&a.push(i),n&&n[s]&&a.push(n[s])}return a},[]).join(" ")}),r}const mi=e=>e,R0=()=>{let e=mi;return{configure(t){e=t},generate(t){return e(t)},reset(){e=mi}}},N0=R0(),L0=N0,O0={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Tt(e,t,n="Mui"){const r=O0[t];return r?`${n}-${r}`:`${L0.generate(e)}-${t}`}function Pt(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Tt(e,o,n)}),r}const _0=Pt("MuiButton",["root","active","disabled","focusVisible"]),I0=_0;function Rc(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function A0(e={}){const{disabled:t=!1,focusableWhenDisabled:n,href:r,rootRef:o,tabIndex:a,to:s,type:i}=e,l=p.useRef(),[c,u]=p.useState(!1),{isFocusVisibleRef:d,onFocus:f,onBlur:h,ref:m}=D0(),[y,b]=p.useState(!1);t&&!n&&y&&b(!1),p.useEffect(()=>{d.current=y},[y,d]);const[g,M]=p.useState(""),w=E=>P=>{var $;y&&P.preventDefault(),($=E.onMouseLeave)==null||$.call(E,P)},C=E=>P=>{var $;h(P),d.current===!1&&b(!1),($=E.onBlur)==null||$.call(E,P)},k=E=>P=>{var $;if(l.current||(l.current=P.currentTarget),f(P),d.current===!0){var S;b(!0),(S=E.onFocusVisible)==null||S.call(E,P)}($=E.onFocus)==null||$.call(E,P)},T=()=>{const E=l.current;return g==="BUTTON"||g==="INPUT"&&["button","submit","reset"].includes(E==null?void 0:E.type)||g==="A"&&(E==null?void 0:E.href)},D=E=>P=>{if(!t){var $;($=E.onClick)==null||$.call(E,P)}},O=E=>P=>{var $;t||(u(!0),document.addEventListener("mouseup",()=>{u(!1)},{once:!0})),($=E.onMouseDown)==null||$.call(E,P)},I=E=>P=>{var $;if(($=E.onKeyDown)==null||$.call(E,P),!P.defaultMuiPrevented&&(P.target===P.currentTarget&&!T()&&P.key===" "&&P.preventDefault(),P.target===P.currentTarget&&P.key===" "&&!t&&u(!0),P.target===P.currentTarget&&!T()&&P.key==="Enter"&&!t)){var S;(S=E.onClick)==null||S.call(E,P),P.preventDefault()}},N=E=>P=>{var $;if(P.target===P.currentTarget&&u(!1),($=E.onKeyUp)==null||$.call(E,P),P.target===P.currentTarget&&!T()&&!t&&P.key===" "&&!P.defaultMuiPrevented){var S;(S=E.onClick)==null||S.call(E,P)}},R=p.useCallback(E=>{var P;M((P=E==null?void 0:E.tagName)!=null?P:"")},[]),F=Ht(R,o,m,l),j={};return g==="BUTTON"?(j.type=i??"button",n?j["aria-disabled"]=t:j.disabled=t):g!==""&&(!r&&!s&&(j.role="button",j.tabIndex=a??0),t&&(j["aria-disabled"]=t,j.tabIndex=n?a??0:-1)),{getRootProps:(E={})=>{const P=Rc(e),$=x({},P,E);return delete $.onFocusVisible,x({type:i},$,j,{onBlur:C($),onClick:D($),onFocus:k($),onKeyDown:I($),onKeyUp:N($),onMouseDown:O($),onMouseLeave:w($),ref:F})},focusVisible:y,setFocusVisible:b,active:c,rootRef:F}}function j0(e){return typeof e=="string"}function F0(e,t,n){return e===void 0||j0(e)?t:x({},t,{ownerState:x({},t.ownerState,n)})}function gi(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const B0={disableDefaultClasses:!1},H0=p.createContext(B0);function to(e){const{disableDefaultClasses:t}=p.useContext(H0);return n=>t?"":e(n)}function W0(e,t){return typeof e=="function"?e(t):e}function Nc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function z0(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const h=vi(o==null?void 0:o.className,r==null?void 0:r.className,a,n==null?void 0:n.className),m=x({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),y=x({},n,o,r);return h.length>0&&(y.className=h),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:void 0}}const s=Rc(x({},o,r)),i=xi(r),l=xi(o),c=t(s),u=vi(c==null?void 0:c.className,n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),d=x({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=x({},c,n,l,i);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}const U0=["elementType","externalSlotProps","ownerState"];function no(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,a=J(e,U0),s=W0(r,o),{props:i,internalRef:l}=z0(x({},a,{externalSlotProps:s})),c=Ht(l,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return F0(n,x({},i,{ref:c}),o)}function V0(e){return Tt("MuiTab",e)}const Y0=Pt("MuiTab",["root","selected","disabled"]),K0=Y0;function q0(e){return Tt("MuiTabs",e)}Pt("MuiTabs",["root","horizontal","vertical"]);const ro=p.createContext(null);ro.displayName="CompoundComponentContext";function G0(e){const t=Array.from(e.keys()).map(n=>{const r=e.get(n);return{key:n,subitem:r}});return t.sort((n,r)=>{const o=n.subitem.ref.current,a=r.subitem.ref.current;return o===null||a===null||o===a?0:o.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(t.map(n=>[n.key,n.subitem]))}function Lc(){const[e,t]=p.useState(new Map),n=p.useRef(new Set),r=p.useCallback(function(l){n.current.delete(l),t(c=>{const u=new Map(c);return u.delete(l),u})},[]),o=p.useCallback(function(l,c){let u;return typeof l=="function"?u=l(n.current):u=l,n.current.add(u),t(d=>{const f=new Map(d);return f.set(u,c),f}),{id:u,deregister:()=>r(u)}},[r]),a=p.useMemo(()=>G0(e),[e]);return{contextValue:{getItemIndex:p.useCallback(function(l){return Array.from(a.keys()).indexOf(l)},[a]),registerItem:o,totalSubitemCount:e.size},subitems:a}}function X0(e){const{value:t,defaultValue:n,onChange:r,orientation:o,direction:a,selectionFollowsFocus:s}=e,[i,l]=w0({controlled:t,default:n,name:"Tabs",state:"value"}),c=p.useCallback((b,g)=>{l(g),r==null||r(b,g)},[r,l]),{subitems:u,contextValue:d}=Lc(),f=p.useRef(()=>{}),h=p.useCallback(b=>{var g;return(g=u.get(b))==null?void 0:g.id},[u]),m=p.useCallback(b=>f.current(b),[]),y=p.useCallback(b=>{f.current=b},[]);return{contextValue:x({direction:a,getTabId:m,getTabPanelId:h,onSelected:c,orientation:o,registerTabIdLookup:y,selectionFollowsFocus:s,value:i},d)}}const Oc=p.createContext(null);function Ua(){const e=p.useContext(Oc);if(e==null)throw new Error("No TabsContext provided");return e}function Q0(e){const{value:t,children:n}=e,{direction:r,getItemIndex:o,onSelected:a,orientation:s,registerItem:i,registerTabIdLookup:l,selectionFollowsFocus:c,totalSubitemCount:u,value:d,getTabId:f,getTabPanelId:h}=t,m=p.useMemo(()=>({getItemIndex:o,registerItem:i,totalSubitemCount:u}),[i,o,u]),y=p.useMemo(()=>({direction:r,getTabId:f,getTabPanelId:h,onSelected:a,orientation:s,registerTabIdLookup:l,selectionFollowsFocus:c,value:d}),[r,f,h,a,s,l,c,d]);return v.jsx(ro.Provider,{value:m,children:v.jsx(Oc.Provider,{value:y,children:n})})}const Z0=["children","value","defaultValue","orientation","direction","onChange","selectionFollowsFocus","slotProps","slots"],J0=e=>{const{orientation:t}=e;return kt({root:["root",t]},to(q0))},ey=p.forwardRef(function(t,n){var r;const{children:o,orientation:a="horizontal",direction:s="ltr",slotProps:i={},slots:l={}}=t,c=J(t,Z0),{contextValue:u}=X0(t),d=x({},t,{orientation:a,direction:s}),f=J0(d),h=(r=l.root)!=null?r:"div",m=no({elementType:h,externalSlotProps:i.root,externalForwardedProps:c,additionalProps:{ref:n},ownerState:d,className:f.root});return v.jsx(h,x({},m,{children:v.jsx(Q0,{value:u,children:o})}))}),ty=ey;function _c(e,t){const n=p.useContext(ro);if(n===null)throw new Error("useCompoundItem must be used within a useCompoundParent");const{registerItem:r}=n,[o,a]=p.useState(typeof e=="function"?void 0:e);return Ar(()=>{const{id:s,deregister:i}=r(e,t);return a(s),i},[r,t,e]),{id:o,index:o!==void 0?n.getItemIndex(o):-1,totalItemCount:n.totalSubitemCount}}const Ee={blur:"list:blur",focus:"list:focus",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",textNavigation:"list:textNavigation"};function ny(e,t,n,r,o,a){if(n.length===0||!r&&n.every((i,l)=>o(i,l)))return-1;let s=e;for(;;){if(!a&&t==="next"&&s===n.length||!a&&t==="previous"&&s===-1)return-1;if(r?!1:o(n[s],s))s+=t==="next"?1:-1,a&&(s=(s+n.length)%n.length);else return s}}function We(e,t,n){var r;const{items:o,isItemDisabled:a,disableListWrap:s,disabledItemsFocusable:i,itemComparer:l,focusManagement:c}=n,u=c==="DOM"?0:-1,d=o.length-1,f=e==null?-1:o.findIndex(g=>l(g,e));let h,m,y=!s;switch(t){case"reset":if(u===-1)return null;h=0,m="next",y=!1;break;case"start":h=0,m="next",y=!1;break;case"end":h=d,m="previous",y=!1;break;default:{const g=f+t;g<0?!y&&f!==-1||Math.abs(t)>1?(h=0,m="next"):(h=d,m="previous"):g>d?!y||Math.abs(t)>1?(h=d,m="previous"):(h=0,m="next"):(h=g,m=t>=0?"next":"previous")}}const b=ny(h,m,o,i,a,y);return b===-1&&e!==null&&!a(e,f)?e:(r=o[b])!=null?r:null}function ry(e,t,n,r){return n==="none"?[]:n==="single"?r(t[0],e)?t:[e]:t.some(o=>r(o,e))?t.filter(o=>!r(o,e)):[...t,e]}function Ic(e,t,n){const{itemComparer:r,isItemDisabled:o,selectionMode:a,items:s}=n,{selectedValues:i}=t,l=s.findIndex(u=>r(e,u));if(o(e,l))return t;const c=ry(e,i,a,r);return x({},t,{selectedValues:c,highlightedValue:e})}function oy(e,t,n){const r=t.highlightedValue,{orientation:o,pageSize:a}=n;switch(e){case"Home":return x({},t,{highlightedValue:We(r,"start",n)});case"End":return x({},t,{highlightedValue:We(r,"end",n)});case"PageUp":return x({},t,{highlightedValue:We(r,-a,n)});case"PageDown":return x({},t,{highlightedValue:We(r,a,n)});case"ArrowUp":if(o!=="vertical")break;return x({},t,{highlightedValue:We(r,-1,n)});case"ArrowDown":if(o!=="vertical")break;return x({},t,{highlightedValue:We(r,1,n)});case"ArrowLeft":{if(o==="vertical")break;return x({},t,{highlightedValue:We(r,o==="horizontal-ltr"?-1:1,n)})}case"ArrowRight":{if(o==="vertical")break;return x({},t,{highlightedValue:We(r,o==="horizontal-ltr"?1:-1,n)})}case"Enter":case" ":return t.highlightedValue===null?t:Ic(t.highlightedValue,t,n)}return t}function ay(e,t){return t.focusManagement==="DOM"?e:x({},e,{highlightedValue:null})}function sy(e,t,n){var r;const o=(r=n(e))==null?void 0:r.trim().toLowerCase();return!o||o.length===0?!1:o.indexOf(t)===0}function iy(e,t,n){const{items:r,isItemDisabled:o,disabledItemsFocusable:a,getItemAsString:s}=n,i=t.length>1;let l=i?e.highlightedValue:We(e.highlightedValue,1,n);for(let c=0;ca(d,n.highlightedValue)))!=null?l:null}else s==="DOM"&&t.length===0&&(i=We(null,"reset",r));const u=((o=n.selectedValues)!=null?o:[]).filter(d=>e.some(f=>a(f,d)));return x({},n,{highlightedValue:i,selectedValues:u})}function cy(e,t){return x({},e,{highlightedValue:We(null,"reset",t)})}function Ac(e,t){const{type:n,context:r}=t;switch(n){case Ee.keyDown:return oy(t.key,e,r);case Ee.itemClick:return Ic(t.item,e,r);case Ee.blur:return ay(e,r);case Ee.textNavigation:return iy(e,t.searchString,r);case Ee.itemsChange:return ly(t.items,t.previousItems,e,r);case Ee.resetHighlight:return cy(e,r);default:return e}}function uy(){const e=new Map;function t(r,o){let a=e.get(r);return a?a.add(o):(a=new Set([o]),e.set(r,a)),()=>{a.delete(o),a.size===0&&e.delete(r)}}function n(r,...o){const a=e.get(r);a&&a.forEach(s=>s(...o))}return{subscribe:t,publish:n}}function dy(){const e=p.useRef();return e.current||(e.current=uy()),e.current}const bi="select:change-selection",yi="select:change-highlight";function fy(){const e=dy(),t=p.useCallback(a=>{e.publish(bi,a)},[e]),n=p.useCallback(a=>{e.publish(yi,a)},[e]),r=p.useCallback(a=>e.subscribe(bi,a),[e]),o=p.useCallback(a=>e.subscribe(yi,a),[e]);return{notifySelectionChanged:t,notifyHighlightChanged:n,registerSelectionChangeHandler:r,registerHighlightChangeHandler:o}}function py(e,t){return e===t}const Lo={},Ci=()=>{};function na(e,t){const n=x({},e);return Object.keys(t).forEach(r=>{t[r]!==void 0&&(n[r]=t[r])}),n}function hy(e){const{nextState:t,initialState:n,stateComparers:r,onStateChange:o,controlledProps:a,lastActionRef:s}=e,i=p.useRef(n);p.useEffect(()=>{if(s.current===null)return;const l=na(i.current,a);Object.keys(t).forEach(c=>{var u;const d=(u=r[c])!=null?u:py,f=t[c],h=l[c];if(h==null&&f!=null||h!=null&&f==null||h!=null&&f!=null&&!d(f,h)){var m,y;o==null||o((m=s.current.event)!=null?m:null,c,f,(y=s.current.type)!=null?y:"",t)}}),i.current=t,s.current=null},[i,t,s,o,r,a])}function my(e){const t=p.useRef(null),{reducer:n,initialState:r,controlledProps:o=Lo,stateComparers:a=Lo,onStateChange:s=Ci,actionContext:i}=e,l=p.useCallback((f,h)=>{t.current=h;const m=na(f,o);return n(m,h)},[o,n]),[c,u]=p.useReducer(l,r),d=p.useCallback(f=>{u(x({},f,{context:i}))},[i]);return hy({nextState:c,initialState:r,stateComparers:a??Lo,onStateChange:s??Ci,controlledProps:o,lastActionRef:t}),[na(c,o),d]}function wi(e,t){const n=p.useRef(e);return p.useEffect(()=>{n.current=e},t??[e]),n}const gy=500;function vy(e){const t=p.useRef({searchString:"",lastTime:null});return p.useCallback(n=>{if(n.key.length===1&&n.key!==" "){const r=t.current,o=n.key.toLowerCase(),a=performance.now();r.searchString.length>0&&r.lastTime&&a-r.lastTime>gy?r.searchString=o:(r.searchString.length!==1||o!==r.searchString)&&(r.searchString+=o),r.lastTime=a,e(r.searchString,n)}},[e])}const Si={},xy=()=>{},by=(e,t)=>e===t,yy=()=>!1,Cy=e=>typeof e=="string"?e:String(e),wy=()=>({highlightedValue:null,selectedValues:[]});function Sy(e){const{controlledProps:t=Si,disabledItemsFocusable:n=!1,disableListWrap:r=!1,focusManagement:o="activeDescendant",getInitialState:a=wy,getItemDomElement:s,getItemId:i,isItemDisabled:l=yy,rootRef:c,onStateChange:u=xy,items:d,itemComparer:f=by,getItemAsString:h=Cy,onChange:m,onHighlightChange:y,onItemsChange:b,orientation:g="vertical",pageSize:M=5,reducerActionContext:w=Si,selectionMode:C="single",stateReducer:k}=e,T=p.useRef(null),D=Ht(c,T),O=p.useCallback((_,z,U)=>{if(y==null||y(_,z,U),o==="DOM"&&z!=null&&(U===Ee.itemClick||U===Ee.keyDown||U===Ee.textNavigation)){var G;s==null||(G=s(z))==null||G.focus()}},[s,y,o]),I=p.useMemo(()=>({highlightedValue:f,selectedValues:(_,z)=>gi(_,z,f)}),[f]),N=p.useCallback((_,z,U,G,me)=>{switch(u==null||u(_,z,U,G,me),z){case"highlightedValue":O(_,U,G);break;case"selectedValues":m==null||m(_,U,G);break}},[O,m,u]),R=p.useMemo(()=>({disabledItemsFocusable:n,disableListWrap:r,focusManagement:o,isItemDisabled:l,itemComparer:f,items:d,getItemAsString:h,onHighlightChange:O,orientation:g,pageSize:M,selectionMode:C,stateComparers:I}),[n,r,o,l,f,d,h,O,g,M,C,I]),F=a(),j=k??Ac,L=p.useMemo(()=>x({},w,R),[w,R]),[E,P]=my({reducer:j,actionContext:L,initialState:F,controlledProps:t,stateComparers:I,onStateChange:N}),{highlightedValue:$,selectedValues:S}=E,A=vy((_,z)=>P({type:Ee.textNavigation,event:z,searchString:_})),W=wi(S),K=wi($),Q=p.useRef([]);p.useEffect(()=>{gi(Q.current,d,f)||(P({type:Ee.itemsChange,event:null,items:d,previousItems:Q.current}),Q.current=d,b==null||b(d))},[d,f,P,b]);const{notifySelectionChanged:re,notifyHighlightChanged:ee,registerHighlightChangeHandler:ne,registerSelectionChangeHandler:ie}=fy();p.useEffect(()=>{re(S)},[S,re]),p.useEffect(()=>{ee($)},[$,ee]);const he=_=>z=>{var U;if((U=_.onKeyDown)==null||U.call(_,z),z.defaultMuiPrevented)return;const G=["Home","End","PageUp","PageDown"];g==="vertical"?G.push("ArrowUp","ArrowDown"):G.push("ArrowLeft","ArrowRight"),o==="activeDescendant"&&G.push(" ","Enter"),G.includes(z.key)&&z.preventDefault(),P({type:Ee.keyDown,key:z.key,event:z}),A(z)},ce=_=>z=>{var U,G;(U=_.onBlur)==null||U.call(_,z),!z.defaultMuiPrevented&&((G=T.current)!=null&&G.contains(z.relatedTarget)||P({type:Ee.blur,event:z}))},H=(_={})=>x({},_,{"aria-activedescendant":o==="activeDescendant"&&$!=null?i($):void 0,onBlur:ce(_),onKeyDown:he(_),tabIndex:o==="DOM"?-1:0,ref:D}),V=p.useCallback(_=>{var z;const U=d.findIndex(De=>f(De,_)),G=((z=W.current)!=null?z:[]).some(De=>De!=null&&f(_,De)),me=l(_,U),pe=K.current!=null&&f(_,K.current);return{disabled:me,focusable:o==="DOM",highlighted:pe,index:U,selected:G}},[d,l,f,W,K,o]),q=p.useMemo(()=>({dispatch:P,getItemState:V,registerHighlightChangeHandler:ne,registerSelectionChangeHandler:ie}),[P,V,ne,ie]);return p.useDebugValue({state:E}),{contextValue:q,dispatch:P,getRootProps:H,rootRef:D,state:E}}function My(){const[,e]=p.useState({});return p.useCallback(()=>{e({})},[])}const jc=p.createContext(null);function ky(e){const{handlePointerOverEvents:t=!1,item:n,rootRef:r}=e,o=p.useRef(null),a=Ht(o,r),s=p.useContext(jc);if(!s)throw new Error("useListItem must be used within a ListProvider");const{dispatch:i,getItemState:l,registerHighlightChangeHandler:c,registerSelectionChangeHandler:u}=s,{highlighted:d,selected:f,focusable:h}=l(n),m=My();Ar(()=>{function w(C){(C===n&&!d||C!==n&&d)&&m()}return c(w)}),Ar(()=>{function w(C){f?C.includes(n)||m():C.includes(n)&&m()}return u(w)},[u,m,f,n]);const y=p.useCallback(w=>C=>{var k;(k=w.onClick)==null||k.call(w,C),!C.defaultPrevented&&i({type:Ee.itemClick,item:n,event:C})},[i,n]),b=p.useCallback(w=>C=>{var k;(k=w.onMouseOver)==null||k.call(w,C),!C.defaultPrevented&&i({type:Ee.itemHover,item:n,event:C})},[i,n]);let g;return h&&(g=d?0:-1),{getRootProps:(w={})=>x({},w,{onClick:y(w),onPointerOver:t?b(w):void 0,ref:a,tabIndex:g}),highlighted:d,rootRef:a,selected:f}}function Ty(e){return e.size}function Py(e){const{value:t,rootRef:n,disabled:r=!1,id:o}=e,a=p.useRef(null),s=Wa(o),{value:i,selectionFollowsFocus:l,getTabPanelId:c}=Ua(),u=p.useMemo(()=>({disabled:r,ref:a,id:s}),[r,a,s]),{id:d,index:f,totalItemCount:h}=_c(t??Ty,u),{getRootProps:m,rootRef:y,highlighted:b,selected:g}=ky({item:d}),{getRootProps:M,rootRef:w,active:C,focusVisible:k,setFocusVisible:T}=A0({disabled:r,focusableWhenDisabled:!l,type:"button"}),D=Ht(a,n,y,w),O=d!==void 0?c(d):void 0;return{getRootProps:(N={})=>{const R=x({},N,m(N)),F=x({},R,M(R));return x({},F,{role:"tab","aria-controls":O,"aria-selected":g,id:s,ref:D})},active:C,focusVisible:k,highlighted:b,index:f,rootRef:D,selected:g||d===i,setFocusVisible:T,totalTabsCount:h}}const $y=["action","children","value","disabled","onChange","onClick","onFocus","slotProps","slots"],Ey=e=>{const{selected:t,disabled:n}=e;return kt({root:["root",t&&"selected",n&&"disabled"]},to(V0))},Dy=p.forwardRef(function(t,n){var r;const{children:o,disabled:a=!1,slotProps:s={},slots:i={}}=t,l=J(t,$y),c=p.useRef(),u=Ht(c,n),{active:d,highlighted:f,selected:h,getRootProps:m}=Py(x({},t,{rootRef:u})),y=x({},t,{active:d,disabled:a,highlighted:f,selected:h}),b=Ey(y),g=(r=i.root)!=null?r:"button",M=no({elementType:g,getSlotProps:m,externalSlotProps:s.root,externalForwardedProps:l,additionalProps:{ref:n},ownerState:y,className:b.root});return v.jsx(g,x({},M,{children:o}))}),Ry=Dy;var Va={},Ny=st;Object.defineProperty(Va,"__esModule",{value:!0});var Fc=Va.default=void 0,Ly=Ny(it()),Mi=v;Fc=Va.default=(0,Ly.default)([(0,Mi.jsx)("path",{d:"M20 3H4c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h4v2h8v-2h4c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2m0 14H4V5h16z"},"0"),(0,Mi.jsx)("path",{d:"M6 8.25h8v1.5H6zm10.5 1.5H18v-1.5h-1.5V7H15v4h1.5zm-6.5 2.5h8v1.5h-8zM7.5 15H9v-4H7.5v1.25H6v1.5h1.5z"},"1")],"DisplaySettings");var Ya={},Oy=st;Object.defineProperty(Ya,"__esModule",{value:!0});var Bc=Ya.default=void 0,_y=Oy(it()),Iy=v;Bc=Ya.default=(0,_y.default)((0,Iy.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"}),"History");var Ka={},Ay=st;Object.defineProperty(Ka,"__esModule",{value:!0});var Hc=Ka.default=void 0,jy=Ay(it()),Fy=v;Hc=Ka.default=(0,jy.default)((0,Fy.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search");function By(e){return Tt("MuiTabsList",e)}Pt("MuiTabsList",["root","horizontal","vertical"]);const Wc={valueChange:"valueChange"};function Hy(e,t){if(t.type===Wc.valueChange)return x({},e,{highlightedValue:t.value});const n=Ac(e,t),{context:{selectionFollowsFocus:r}}=t;if(t.type===Ee.itemsChange){if(n.selectedValues.length>0)return x({},n,{highlightedValue:n.selectedValues[0]});We(null,"reset",t.context)}return r&&n.highlightedValue!=null?x({},n,{selectedValues:[n.highlightedValue]}):n}function Wy(e){var t;const{rootRef:n}=e,{direction:r="ltr",onSelected:o,orientation:a="horizontal",value:s,registerTabIdLookup:i,selectionFollowsFocus:l}=Ua(),{subitems:c,contextValue:u}=Lc(),d=p.useCallback(N=>{var R;return(R=c.get(N))==null?void 0:R.id},[c]);i(d);const f=p.useMemo(()=>Array.from(c.keys()),[c]),h=p.useCallback(N=>{var R,F;return N==null?null:(R=(F=c.get(N))==null?void 0:F.ref.current)!=null?R:null},[c]),m=r==="rtl";let y;a==="vertical"?y="vertical":y=m?"horizontal-rtl":"horizontal-ltr";const b=p.useCallback((N,R)=>{var F;o(N,(F=R[0])!=null?F:null)},[o]),g=p.useMemo(()=>s===void 0?{}:s!=null?{selectedValues:[s]}:{selectedValues:[]},[s]),M=p.useCallback(N=>{var R,F;return(R=(F=c.get(N))==null?void 0:F.disabled)!=null?R:!1},[c]),{contextValue:w,dispatch:C,getRootProps:k,state:{highlightedValue:T,selectedValues:D},rootRef:O}=Sy({controlledProps:g,disabledItemsFocusable:!l,focusManagement:"DOM",getItemDomElement:h,isItemDisabled:M,items:f,rootRef:n,onChange:b,orientation:y,reducerActionContext:p.useMemo(()=>({selectionFollowsFocus:l||!1}),[l]),selectionMode:"single",stateReducer:Hy});p.useEffect(()=>{s!==void 0&&s!=null&&C({type:Wc.valueChange,value:s})},[C,s]);const I=(N={})=>x({},N,k(N),{"aria-orientation":a==="vertical"?"vertical":void 0,role:"tablist"});return{contextValue:x({},u,w),dispatch:C,getRootProps:I,highlightedValue:T,isRtl:m,orientation:a,rootRef:O,selectedValue:(t=D[0])!=null?t:null}}function zy(e){const{value:t,children:n}=e,{dispatch:r,getItemIndex:o,getItemState:a,registerHighlightChangeHandler:s,registerSelectionChangeHandler:i,registerItem:l,totalSubitemCount:c}=t,u=p.useMemo(()=>({dispatch:r,getItemState:a,getItemIndex:o,registerHighlightChangeHandler:s,registerSelectionChangeHandler:i}),[r,o,a,s,i]),d=p.useMemo(()=>({getItemIndex:o,registerItem:l,totalSubitemCount:c}),[l,o,c]);return v.jsx(ro.Provider,{value:d,children:v.jsx(jc.Provider,{value:u,children:n})})}const Uy=["children","slotProps","slots"],Vy=e=>{const{orientation:t}=e;return kt({root:["root",t]},to(By))},Yy=p.forwardRef(function(t,n){var r;const{children:o,slotProps:a={},slots:s={}}=t,i=J(t,Uy),{isRtl:l,orientation:c,getRootProps:u,contextValue:d}=Wy({rootRef:n}),f=x({},t,{isRtl:l,orientation:c}),h=Vy(f),m=(r=s.root)!=null?r:"div",y=no({elementType:m,getSlotProps:u,externalSlotProps:a.root,externalForwardedProps:i,ownerState:f,className:h.root});return v.jsx(zy,{value:d,children:v.jsx(m,x({},y,{children:o}))})}),Ky=Yy;function qy(e){return Tt("MuiTabPanel",e)}Pt("MuiTabPanel",["root","hidden"]);function Gy(e){return e.size}function Xy(e){const{value:t,id:n,rootRef:r}=e,o=Ua();if(o===null)throw new Error("No TabContext provided");const{value:a,getTabId:s}=o,i=Wa(n),l=p.useRef(null),c=Ht(l,r),u=p.useMemo(()=>({id:i,ref:l}),[i]),{id:d}=_c(t??Gy,u),f=d!==a,h=d!==void 0?s(d):void 0;return{hidden:f,getRootProps:()=>({"aria-labelledby":h??void 0,hidden:f,id:i??void 0,ref:c}),rootRef:c}}const Qy=["children","value","slotProps","slots"],Zy=e=>{const{hidden:t}=e;return kt({root:["root",t&&"hidden"]},to(qy))},Jy=p.forwardRef(function(t,n){var r;const{children:o,slotProps:a={},slots:s={}}=t,i=J(t,Qy),{hidden:l,getRootProps:c}=Xy(t),u=x({},t,{hidden:l}),d=Zy(u),f=(r=s.root)!=null?r:"div",h=no({elementType:f,getSlotProps:c,externalSlotProps:a.root,externalForwardedProps:i,additionalProps:{role:"tabpanel",ref:n},ownerState:u,className:d.root});return v.jsx(f,x({},h,{children:!l&&o}))}),e1=Jy;var qa={},t1=st;Object.defineProperty(qa,"__esModule",{value:!0});var zc=qa.default=void 0,n1=t1(it()),r1=v;zc=qa.default=(0,n1.default)((0,r1.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z"}),"StarBorder");var Ga={},o1=st;Object.defineProperty(Ga,"__esModule",{value:!0});var Uc=Ga.default=void 0,a1=o1(it()),s1=v;Uc=Ga.default=(0,a1.default)((0,s1.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link");const i1=le("button",{target:"efhpvve1"})("display:flex;align-items:center;font-size:12px;cursor:pointer;user-select:none;border:none;border-radius:",e=>{switch(e.side){case"central":return"0px";case"left":return"10px 0px 0px 10px";case"right":return"0px 10px 10px 0px";case"individual":return"10px"}},";padding:0px 6px;white-space:nowrap;background:",e=>e.theme.neutral,";border:1px solid ",e=>e.theme.deep,";color:",e=>e.theme.contrast,";height:26px;span{margin-left:5px;}svg{margin:0;padding:0;}&:hover{color:orange;}"),Xk=le(e=>B(Qm,{anchor:"bottom",style:{maxHeight:"250px"},variant:"persistent",...e}),{target:"e1sfd2ep24"})(({theme:e})=>({"& .MuiPaper-root":{borderTop:`1px solid ${e.accentNeutral}`}}),""),Qk=le(ty,{target:"e1sfd2ep23"})('height:"320px";background:',({theme:e})=>e.deep,";"),Zk=le(Ry,{target:"e1sfd2ep22"})("color:",({theme:e})=>e.contrast,";background:",({theme:e})=>e.neutral,";border:1px solid ",e=>e.theme.accentNeutral,";cursor:pointer;font-size:13px;background-color:transparent;padding:6px 10px;border:none;border-radius:3px 3px 0px 0px;display:flex;justify-content:center;align-items:center;border-bottom:1px solid transparent;transition:0.2s all;&:hover{background-color:",({theme:e})=>e.lightNeutral,";}&:focus{color:",({theme:e})=>e.contrast,";background:",({theme:e})=>e.neutral,";border-radius:3px 3px 0px 0px;outline-offset:2px;}&.",K0.selected,"{border-bottom:1px solid ",({theme:e})=>e.primary,";}&.",I0.disabled,"{opacity:0.5;cursor:not-allowed;}@media screen and (max-width: 360px){span{display:none;}padding:5px 20px;}"),Jk=le(Bc,{target:"e1sfd2ep21"})({name:"1hncz6a",styles:"height:16px;width:16px;margin-right:3px"}),eT=le(zc,{target:"e1sfd2ep20"})({name:"1hncz6a",styles:"height:16px;width:16px;margin-right:3px"}),tT=le(Fc,{target:"e1sfd2ep19"})({name:"1hncz6a",styles:"height:16px;width:16px;margin-right:3px"}),nT=le(Uc,{target:"e1sfd2ep18"})({name:"1hncz6a",styles:"height:16px;width:16px;margin-right:3px"}),rT=le(Hc,{target:"e1sfd2ep17"})("height:21px;width:16px;padding:0px 3px;border-radius:3px 0px 0px 3px;background:",({theme:e})=>e.deep,";"),oT=le("div",{target:"e1sfd2ep16"})("padding:0px 15px;font-size:13px;display:flex;align-items:center;color:",({theme:e})=>e.contrast,";justify-content:space-between;background:",({theme:e})=>e.shadow,";height:37px;"),aT=le(e1,{target:"e1sfd2ep15"})("width:100%;background:",({theme:e})=>e.shadow,";"),sT=le(Ky,{target:"e1sfd2ep14"})("min-width:320px;background:",({theme:e})=>e.shadow,";border-bottom:4px solid ",({theme:e})=>e.bgNeutral,";display:flex;align-items:center;align-content:space-between;"),iT=le("div",{target:"e1sfd2ep13"})("display:flex;align-items:center;justify-content:center;color:",({theme:e})=>e.contrast,";font-size:14px;flex:1;padding:20px;height:50%;"),lT=le("div",{target:"e1sfd2ep12"})("height:250px;overflow-y:auto;color:",({theme:e})=>e.contrast,";background:",({theme:e})=>e.lightActiveBg,";&.starredCont{height:210px;}&::-webkit-scrollbar{width:5px;background:",({theme:e})=>e.neutral,";}&::-webkit-scrollbar-corner{background:transparent;}&::-webkit-scrollbar-thumb{border-radius:5px;background:",({theme:e})=>e.alphaPlusNeutral,";}"),dr=le(i1,{target:"e1sfd2ep11"})("padding:3px 6px;background:",({theme:e})=>e.neutral,";border:1px solid ",e=>e.theme.accentNeutral,";border-radius:3px;border:none;color:",({theme:e})=>e.contrast,";display:flex;align-items:center;justify-content:center;margin:0px 6px;cursor:pointer;min-height:20px;"),cT=le("div",{target:"e1sfd2ep10"})("height:100px;width:240px;display:flex;flex-direction:column;justify-content:space-between;padding:20px;background:",({theme:e})=>e.neutral,";border:1px solid ",e=>e.theme.accentNeutral,";margin:10px;border-radius:3px;& div{font-size:15px;color:",({theme:e})=>e.accent,";line-height:1.5;}& small{font-size:12px;color:",({theme:e})=>e.contrast,";line-height:1.5;margin-bottom:10px;}"),uT=le(dr,{target:"e1sfd2ep9"})("background:",({theme:e})=>e.primary,";color:",({theme:e})=>e.maxContrast,";white-space:nowrap;.open-icon{display:none;}.open-text{display:flex;font-size:12px;}@media screen and (max-width: 1070px){.open-icon{display:flex;}.open-text{display:none;}}"),dT=le(dr,{target:"e1sfd2ep8"})("font-weight:bold;padding:10px 20px;background:",({theme:e})=>e.primary,";color:",({theme:e})=>e.maxContrast,";margin:0;width:100%;white-space:nowrap;"),fT=le(dr,{target:"e1sfd2ep7"})("background:none;color:",({theme:e})=>e.contrast,";position:absolute;right:0;"),l1=le(dr,{target:"e1sfd2ep6"})("background:",({theme:e})=>e.neutral,";border:1px solid ",e=>e.theme.accentNeutral,";padding:8px 16px;"),c1=le(dr,{target:"e1sfd2ep5"})("background:",({theme:e,active:t})=>t?e.primary:e.shadow,";color:",({theme:e,active:t})=>t?e.maxContrast:e.contrast,";padding:8px 16px;cursor:",({active:e})=>e?"pointer":"not-allowed",";pointer-events:",({active:e})=>e?"auto":"none",";"),pT=le("input",{target:"e1sfd2ep4"})("color:",({theme:e})=>e.contrast,";background:",({theme:e})=>e.deep,";border:none;height:21px;margin:0px 10px 0px 0px;padding:0px;font-size:13px;border-radius:0px 3px 3px 0px;font-family:monospace;font-size:12px;&:focus{outline:none;color:",({theme:e})=>e.primary,";}"),hT=le("span",{target:"e1sfd2ep3"})('flex:1;font-family:monospace;display:flex;align-items:center;font-size:"13px";color:',({theme:e})=>e.contrast,";white-space:nowrap;padding:4px 0px;overflow:hidden;text-overflow:ellipsis;"),mT=le("div",{target:"e1sfd2ep2"})("display:flex;flex:1;justify-content:space-between;.open-button{display:none;}.inline-params{align-items:center;display:",e=>e.open?"none":"grid",";flex:1;grid-template-columns:1fr 0.25fr 0.25fr auto;margin-right:5px;}.open-button{display:flex;color:",({theme:e})=>e.maxContrast,";background:none;border:none;}.block-params{display:",e=>e.open?"flex":"none",";flex-direction:column;flex:1;p{display:flex;align-items:center;flex:1;line-height:1.5;font-size:12px;font-family:monospace;span{margin-left:3px;&.key{flex:1;}&.value{flex:3;}}}}@media screen and (max-width: 1070px){.inline-params{display:none;}}"),gT=le("div",{target:"e1sfd2ep1"})("padding:5px 0px;padding-left:10px;border:1px solid ",({theme:e})=>e.bgNeutral,";margin:5px;border-radius:3px;font-size:13px;display:flex;justify-content:space-between;align-items:center;"),vT=le("div",{target:"e1sfd2ep0"})({name:"oylbmz",styles:"@media screen and (max-width: 1370px){display:none;}"}),u1=p.createContext(null),Vc=u1;function d1(){return p.useContext(Vc)}const f1=typeof Symbol=="function"&&Symbol.for,p1=f1?Symbol.for("mui.nested"):"__THEME_NESTED__";function h1(e,t){return typeof t=="function"?t(e):x({},e,t)}function m1(e){const{children:t,theme:n}=e,r=d1(),o=p.useMemo(()=>{const a=r===null?n:h1(r,n);return a!=null&&(a[p1]=r!==null),a},[n,r]);return v.jsx(Vc.Provider,{value:o,children:t})}const g1=e=>t=>{t({type:"SET_SETTINGS_DIALOG_OPEN",settingsDialogOpen:e})};var Xa={},v1=st;Object.defineProperty(Xa,"__esModule",{value:!0});var Yc=Xa.default=void 0,x1=v1(it()),b1=v;Yc=Xa.default=(0,x1.default)((0,b1.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var Qa={},y1=st;Object.defineProperty(Qa,"__esModule",{value:!0});var Za=Qa.default=void 0,C1=y1(it()),w1=v;Za=Qa.default=(0,C1.default)((0,w1.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");const Oo=le("div",{target:"er3ypqd13"})({name:"v62lug",styles:"display:flex;flex-direction:column;margin-bottom:20px"}),S1=le("div",{target:"er3ypqd9"})("display:flex;flex:1;flex-direction:column;background:",({theme:e})=>e.shadow,";"),M1=le("div",{target:"er3ypqd8"})({name:"t6jzno",styles:"margin:20px;display:flex;flex-direction:column;flex:1"}),Cr=le("label",{target:"er3ypqd5"})("font-size:12px;color:",({theme:e})=>e.contrast,";margin-left:10px;"),k1=le("div",{target:"er3ypqd2"})("display:flex;justify-content:space-between;align-items:center;margin:10px;h3{margin-left:10px;font-size:1em;color:",({theme:e})=>e.contrast,";}"),T1=le(Rd,{target:"er3ypqd1"})("background:none;padding:0;color:",({theme:e})=>e.contrast,";"),P1=le("textarea",{target:"er3ypqd0"})("display:flex;flex:1;margin:5px 0px;height:150px;width:250px;font-size:10px;padding:5px 8px;border:1px solid ",({theme:e})=>e.accentNeutral,";border-radius:3px;background:",({theme:e})=>e.deep,";color:",({theme:e})=>e.contrast,";");function $1(e){return function(t){t({type:"SET_DEBUG_MODE",debugMode:e})}}const E1=e=>{var r,o;const n=/&(lt|gt|amp);/.test(e);return e===void 0?"":n?(o=(r=e==null?void 0:e.replaceAll(/</g,"<"))==null?void 0:r.replaceAll(/>/g,">"))==null?void 0:o.replaceAll(/&/g,"&"):e};function D1(e){return String(E1(e))}const Kc=Ie({name:"1l02985",styles:"background-color:transparent!important"});function xT({open:e}){const t=Nl(),n=gn(M=>M.theme),r=gn(M=>M.autoTheme),o=gn(M=>M.debugMode),a=jt(),[s,i]=p.useState(f(window.location.href)),[l,c]=p.useState(n),[u,d]=p.useState(r);p.useEffect(()=>{d(r)},[r,d]);function f(M){return M+"&isEmbed=true"}p.useEffect(()=>{i(f(window.location.href))},[window.location.href]),p.useEffect(()=>{c(n)},[n,c]);function h(){const M=l==="light"?"dark":"light";t(Nd(M)),c(M),localStorage.setItem("theme",JSON.stringify({theme:M,auto:u}))}const m=()=>{const M=!u;t(jd(M)),d(M),localStorage.setItem("theme",JSON.stringify({theme:n,auto:M}))};function y(){t(g1(!1))}function b(M){i(M.target.value)}function g(){t($1(!o)),localStorage.setItem("isDebug",JSON.stringify({isActive:!o}))}return B(_d,{theme:a,children:B(lc,{open:e,onClose:y,PaperProps:{classes:{root:Kc}},children:oe(S1,{children:[oe(k1,{children:[B("h3",{children:"Settings"}),oe(T1,{onClick:y,children:[" ",B(Yc,{})," "]})]}),oe(M1,{children:[oe(Oo,{children:[oe(Cr,{children:["Theme: ",n]}),B(go,{size:"small",checked:l==="dark",onChange:h,disabled:u,inputProps:{"aria-label":"controlled"}}),oe(Cr,{children:["Automatic theme detection"," ",B(Zr,{title:"Theme determined by your system preferenes",children:B(Za,{fontSize:"inherit"})})]}),B(go,{size:"small",checked:u,onChange:m,inputProps:{"aria-label":"controlled"}})]}),oe(Oo,{children:[B(Cr,{children:"Set Debug Mode"}),B(go,{size:"small",checked:o,onChange:g,inputProps:{"aria-label":"controlled"}})]}),oe(Oo,{children:[B(Cr,{children:"Embed View"}),B(P1,{rows:"8",value:D1(s),onChange:b})]})]})]})})})}const R1=le("div",{target:"e1n1tll40"})("background:",({theme:e})=>e.shadow,";#alert-dialog-title{color:",({theme:e})=>e.contrast,";span{color:",({theme:e})=>e.primary,";padding:2px 4px;border-radius:3px;font-family:monospace;}}#alert-dialog-description{color:",({theme:e})=>e.lightContrast,";font-weight:normal;em{color:",({theme:e})=>e.contrast,";font-variant:italic;}}");function N1({label:e,checked:t,handleChange:n,theme:r,text:o}){return B(pg,{children:B(ig,{style:{padding:"0",marginRight:0,cursor:e?"pointer":"not-allowed",display:"flex",alignItems:"center",marginTop:"20px"},checked:t,onChange:n,control:B(Kh,{style:{paddingRight:"0px",marginRight:"3px"},sx:{"& .MuiSvgIcon-root":{fontSize:18}},disabled:!e}),label:B(Ot,{style:{fontSize:"14px",color:r.contrast},children:o})})})}function qc({clearFingerPrints:e,label:t,value:n,source:r,isLoading:o,isCustom:a=!1,query:s="",labelsRelated:i=[]}){const[l,c]=p.useState(!1),[u,d]=p.useState(!1),f=jt(),{focusLabel:h,timeSeriesSelector:m}=At(),y=()=>{c(!0)},b=()=>{c(!1)},g=()=>{d(w=>!w)};async function M(){let w=s??"";a||(w=$c[r]({query:t,focusLabel:h,match:m})),await e(w),c(!1)}return B(m1,{theme:f,children:oe("div",{children:[B(Zr,{title:`Delete fingerprints for ${t!==""?t:s}`,children:B("div",{style:{display:"flex",flex:1,alignItems:"center",justifyContent:"center"},children:B(Ld,{onClick:y,style:{color:f.contrast,cursor:"pointer",fontSize:"18px"},fontSize:"small"})})}),B(lc,{open:l,onClose:b,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",PaperProps:{classes:{root:Kc}},children:oe(R1,{children:[B(_m,{id:"alert-dialog-title",children:a?oe(Or,{children:["Are you sure you want to clear the"," ",B("span",{children:n})," fingerprints with query"," ",s,"?"]}):oe(Or,{children:["Are you sure you want to clear the"," ",B("span",{children:n})," fingerprints with label"," ",B("span",{children:t})," from"," ",B("span",{children:r}),"?"]})}),B(Mm,{children:oe(Dm,{id:"alert-dialog-description",children:[oe("p",{style:{marginTop:"10px"},children:["Click ",B("em",{children:"Delete Fingerprints"})," to delete your fingerprints permanently"]}),B("p",{style:{margin:"6px"},children:B("em",{children:"Note that you will also be removing all fingerprints with labels related."})}),B(N1,{checked:u,handleChange:g,theme:f,label:!0,text:"I want to remove all fingerprints related to this labels in selected time range."})]})}),oe(mm,{children:[B(l1,{onClick:b,children:"Cancel"}),B(c1,{onClick:M,active:!o&&u,autoFocus:!0,children:o?"Deleting...":"Delete Fingerprints"})]})]})})]})})}const L1=({theme:e=Id(),focusLabelItems:t,timeSeriesSelectorItems:n,limitEntriesItems:r,setHistoryItem:o})=>{const{onTimeSeriesChange:a,onKeyDownTimeSeries:s,onFocusLabeChange:i,onKeyDownFocusLabel:l,onLimitEntriesChange:c,onKeyDownLimitEntries:u,onQueryHistoryChange:d,onFocusHistoryChange:f,onLimitHistoryChange:h,query:m,focus:y,limit:b,totalSeries:g,reset:M,date:w}=c0({setHistoryItem:o}),{handleCardinalityRequest:C,handleDelete:k}=Ba(!0),{setTimeSeriesSelector:T,setFocusLabel:D,setLimitEntries:O,isLoading:I}=At(),N=()=>{M(),localStorage.setItem("labelValuePairs",""),C({match:"",focusLabel:"",topN:b,date:w})};return oe("div",{className:Ve(g0(e)),children:[oe("div",{className:"form-row",children:[B(Ro,{name:"timeSeriesSelector",value:m,label:"Time Series Selector",size:"l",inputSize:"l",type:"text",onChange:a,onKeyDown:s,onHistoryChange:d,history:n,hasHistory:n.length>0}),B(Ro,{name:"focusLabel",value:y,label:"Focus Label",size:"m",inputSize:"",type:"text",onChange:i,onKeyDown:l,onHistoryChange:f,history:t,hasHistory:t.length>0}),B(Ro,{name:"limitEntries",value:b,label:"Limit Entries",size:"s",inputSize:"s",type:"number",onChange:c,onKeyDown:u,onHistoryChange:h,history:r,hasHistory:r.length>0})]}),oe("div",{className:"config-actions",children:[oe("div",{className:"c-totals",children:[B(Yn,{theme:e,value:g.amount,text:"total"}),B(Yn,{theme:e,type:"prev",value:g.prev,text:"previous"}),B(Yn,{theme:e,type:"diff",value:g.diff,trend:g.diff===0?"none":g.diff>0?"up":"down",text:"diff"}),B(Yn,{theme:e,type:"prev",value:g.quota,text:"quota"})]}),oe("div",{className:"buttons-group",children:[m!==""&&B("button",{className:"query-button",children:B(qc,{clearFingerPrints:R=>k(R,g.amount),isLoading:I,label:"",value:g.amount,source:"",isCustom:!0,query:m})}),B(zb,{}),B("button",{onClick:N,className:"query-button",children:"Reset"}),oe("button",{onClick:()=>{T(m),D(y),O(Number(b)),C({match:m,focusLabel:y,topN:b})},className:"query-button",children:[B(mc,{fontSize:"small"}),"Execute Query"]})]})]})]})},O1="SET_IS_CARDINALITY",ki=e=>t=>{t({type:O1,isCardinality:e})},_1=(e,t)=>{var b;const{focusLabel:n,timeSeriesSelector:r,setFocusLabel:o,setTimeSeriesSelector:a,setTotal:s,tsdbStatus:i,isLoading:l}=At(),[c,u]=p.useState({data:Fa,formattedSeries:[]}),d=(g,M)=>{const w=$c[g]({query:M,focusLabel:n,match:r});a(w),t("timeSeriesSelector",w),(g==="labelValueCountByLabelName"||g=="seriesCountByLabelName")&&(o(M),t("focusLabel",M)),g=="seriesCountByFocusLabelValue"&&o("")},f=(g,M)=>{d(M.source,M.name)},h=(g,M)=>g*100/M,m=(g,M,w)=>g.map(C=>({name:C.name||"",value:C.value||0,diff:C.diff||0,prev:C.valuePrev||0,share:h(C.value,M==null?void 0:M.totalSeries)||0,quota:M.quota,source:w,onFilter:f})),y=g=>{if(g){let M=g;return M!=null&&M.quota||(M.quota=0),Object.keys(M).filter(T=>Array.isArray(M[T])).map(T=>({[T]:m(M[T],M,T)}))}return[]};return p.useEffect(()=>{i&&(s({amount:i.totalSeries,prev:i.totalSeriesPrev,diff:i.totalSeries-i.totalSeriesPrev,quota:(i==null?void 0:i.quota)||0}),u({data:i,formattedSeries:y(i)}))},[i]),{data:c,totalSeries:((b=c==null?void 0:c.data)==null?void 0:b.totalSeries)??0,formattedSeries:(c==null?void 0:c.formattedSeries)??[],isLoading:l}},I1=X(e=>B(Hv,{...e,TabIndicatorProps:{children:B("span",{className:"MuiTabs-indicatorSpan"})}}))(({theme:e})=>({"& .MuiButtonBase-root-MuiTab-root":{maxHeight:"20px"},"& .MuiTabs-indicator":{display:"flex",justifyContent:"center",backgroundColor:"transparent"},"& .MuiTabs-indicatorSpan":{maxWidth:40,width:"100%",backgroundColor:e==null?void 0:e.primary}})),Ti=X(e=>B(mv,{disableRipple:!0,...e}))(({theme:e})=>({textTransform:"none",fontWeight:e.typography.fontWeightRegular,fontSize:"12px",padding:0,marginRight:"8px",color:e.lightContrast,"&.Mui-selected":{color:e.contrast},"&.Mui-focusVisible":{backgroundColor:"rgba(100, 95, 228, 0.32)"}})),A1=e=>Ie("background:",e.WidgetBg,";.MuiTabs-root{height:20px!important;min-height:20px;}.MuiButtonBase-root{min-height:0;}",""),j1=({title:e,tabsValue:t,onTabChange:n,theme:r})=>oe("div",{className:"c-header",children:[B("div",{children:e}),B("div",{className:Ve(A1(r)),children:oe(I1,{value:t,onChange:n,children:[B(Ti,{label:"Table"}),B(Ti,{label:"Chart"})]})})]}),Pi=e=>{const{neutral:t,primaryLight:n,deep:r,ultraDeep:o,primary:a,contrast:s,shadow:i}=e;return{neutral:t,primaryLight:n,deep:r,ultraDeep:o,primary:a,contrast:s,shadow:i}},F1=e=>Ie("margin:4px;display:flex;flex-direction:column;padding:8px 4px;background:",e.shadow,";gap:4px;.c-header{display:flex;align-items:center;justify-content:space-between;font-size:14px;padding:8px 6px;border-bottom:1px solid ",e.neutral,";font-weight:bold;}.c-table{display:table;widht:100%;}",""),Gc=e=>({seriesGroupContainer:Ve(F1(Pi(e))),seriesGroupStyles:Pi(e)}),Xc=e=>{const[t,n]=p.useState({col:"value",order:"desc"});return{sortedRows:p.useMemo(()=>{const{col:a,order:s}=t;return Xb(e,a,s)},[e,t]),handleSort:a=>{n(s=>({col:a,order:s.order==="asc"?"desc":"asc"}))}}};function rt(e){return function(){return e}}const B1=Math.PI,_o=2*B1;function Qc(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function H1(e,t){return te?1:t>=e?0:NaN}function W1(e){return e}function z1(){var e=W1,t=H1,n=null,r=rt(0),o=rt(_o),a=rt(0);function s(i){var l,c=(i=Qc(i)).length,u,d,f=0,h=new Array(c),m=new Array(c),y=+r.apply(this,arguments),b=Math.min(_o,Math.max(-_o,o.apply(this,arguments)-y)),g,M=Math.min(Math.abs(b)/c,a.apply(this,arguments)),w=M*(b<0?-1:1),C;for(l=0;l0&&(f+=C);for(t!=null?h.sort(function(k,T){return t(m[k],m[T])}):n!=null&&h.sort(function(k,T){return n(i[k],i[T])}),l=0,d=f?(b-c*w)/f:0;l0?C*d:0)+w,m[u]={data:i[u],index:l,value:C,startAngle:y,endAngle:g,padAngle:M};return m}return s.value=function(i){return arguments.length?(e=typeof i=="function"?i:rt(+i),s):e},s.sortValues=function(i){return arguments.length?(t=i,n=null,s):t},s.sort=function(i){return arguments.length?(n=i,t=null,s):n},s.startAngle=function(i){return arguments.length?(r=typeof i=="function"?i:rt(+i),s):r},s.endAngle=function(i){return arguments.length?(o=typeof i=="function"?i:rt(+i),s):o},s.padAngle=function(i){return arguments.length?(a=typeof i=="function"?i:rt(+i),s):a},s}function Mn(e,t){if((s=e.length)>1)for(var n=1,r,o,a=e[t[0]],s,i=a.length;n=0;)n[t]=t;return n}function U1(e,t){return e[t]}function V1(e){const t=[];return t.key=e,t}function Zc(){var e=rt([]),t=kn,n=Mn,r=U1;function o(a){var s=Array.from(e.apply(this,arguments),V1),i,l=s.length,c=-1,u;for(const d of a)for(i=0,++c;i0){for(var n,r,o=0,a=e[0].length,s;o0)for(var n,r=0,o,a,s,i,l,c=e[t[0]].length;r0?(o[0]=s,o[1]=s+=a):a<0?(o[1]=i,o[0]=i+=a):(o[0]=0,o[1]=a)}function q1(e,t){if((o=e.length)>0){for(var n=0,r=e[t[0]],o,a=r.length;n0)||!((a=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,a,s;ra&&(a=o,n=t);return n}function eu(e){var t=e.map(tu);return kn(e).sort(function(n,r){return t[n]-t[r]})}function tu(e){for(var t=0,n=-1,r=e.length,o;++n{const{series:t,seriesOrder:n}=e,r=[],o={};return n.forEach(a=>{const{stack:s,stackOrder:i,stackOffset:l}=t[a];s===void 0?r.push({ids:[a],stackingOrder:Io.none,stackingOffset:Ao.none}):o[s]===void 0?(o[s]=r.length,r.push({ids:[a],stackingOrder:Io[i??"none"],stackingOffset:Ao[l??"diverging"]})):(r[o[s]].ids.push(a),i!==void 0&&(r[o[s]].stackingOrder=Io[i]),l!==void 0&&(r[o[s]].stackingOffset=Ao[l]))}),r};function Ja(e,t){const n={};return Object.keys(e).forEach(r=>{n[r]=x({valueFormatter:t},e[r])}),n}const eC=(e,t)=>{const{seriesOrder:n,series:r}=e,o=nu(e),a=t??[];n.forEach(i=>{const l=r[i].data;if(l!==void 0)l.forEach((c,u)=>{a.length<=u?a.push({[i]:c}):a[u][i]=c});else if(t===void 0)throw new Error([`MUI: bar series with id='${i}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(` +`))});const s={};return o.forEach(i=>{const{ids:l,stackingOffset:c,stackingOrder:u}=i,d=Zc().keys(l.map(f=>{const h=r[f].dataKey;return r[f].data===void 0&&h!==void 0?h:f})).order(u).offset(c)(a);l.forEach((f,h)=>{const m=r[f].dataKey;s[f]=x({layout:"vertical"},r[f],{data:m?t.map(y=>y[m]):r[f].data,stackedData:d[h].map(([y,b])=>[y,b])})})}),{seriesOrder:n,stackingGroups:o,series:Ja(s,i=>i.toLocaleString())}},tC=eC,nC=({series:e,seriesOrder:t})=>({series:Ja(e,n=>`(${n.x}, ${n.y})`),seriesOrder:t}),rC=nC,oC=(e,t)=>{const{seriesOrder:n,series:r}=e,o=nu(e),a=t??[];n.forEach(i=>{const l=r[i].data;if(l!==void 0)l.forEach((c,u)=>{a.length<=u?a.push({[i]:c}):a[u][i]=c});else if(t===void 0)throw new Error([`MUI: line series with id='${i}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(` +`))});const s={};return o.forEach(i=>{const{ids:l,stackingOrder:c,stackingOffset:u}=i,d=Zc().keys(l.map(f=>{const h=r[f].dataKey;return r[f].data===void 0&&h!==void 0?h:f})).order(c).offset(u)(a);l.forEach((f,h)=>{const m=r[f].dataKey;s[f]=x({},r[f],{data:m?t.map(y=>y[m]):r[f].data,stackedData:d[h].map(([y,b])=>[y,b])})})}),{seriesOrder:n,stackingGroups:o,series:Ja(s,i=>i.toLocaleString())}},aC=oC,sC=(e="none")=>{if(typeof e=="function")return e;switch(e){case"none":return null;case"desc":return(t,n)=>n-t;case"asc":return(t,n)=>t-n;default:return null}},iC=e=>{const{seriesOrder:t,series:n}=e,r={};return t.forEach(o=>{var a,s,i,l;const c=z1().startAngle(2*Math.PI*((a=n[o].startAngle)!=null?a:0)/360).endAngle(2*Math.PI*((s=n[o].endAngle)!=null?s:360)/360).padAngle(2*Math.PI*((i=n[o].paddingAngle)!=null?i:0)/360).sortValues(sC((l=n[o].sortingValues)!=null?l:"none"))(n[o].data.map(u=>u.value));r[o]=x({valueFormatter:u=>u.value.toLocaleString()},n[o],{data:n[o].data.map((u,d)=>{var f;return x({},u,{id:(f=u.id)!=null?f:`auto-generated-pie-id-${o}-${d}`},c[d])}).map(u=>{var d,f,h;return x({},u,{formattedValue:(d=(f=(h=n[o]).valueFormatter)==null?void 0:f.call(h,u))!=null?d:u.value.toLocaleString()})})})}),{seriesOrder:t,series:r}},lC=iC,cC=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];function uC(e,t,n=cC){return e.type==="pie"?x({},e,{data:e.data.map((r,o)=>x({color:n[o%n.length]},r))}):x({color:n[t%n.length]},e)}const dC=["#02B2AF","#2E96FF","#B800D8","#60009B","#2731C8","#03008D"],fC=["#02B2AF","#72CCFF","#DA00FF","#9001CB","#2E96FF","#3B48E0"],pC=e=>e==="dark"?fC:dC,Dn=p.createContext({}),jo={bar:tC,scatter:rC,line:aC,pie:lC},hC=(e,t,n)=>{const r={};e.forEach((a,s)=>{var i;const{id:l=`auto-generated-id-${s}`,type:c}=a;if(r[c]===void 0&&(r[c]={series:{},seriesOrder:[]}),((i=r[c])==null?void 0:i.series[l])!==void 0)throw new Error(`MUI: series' id "${l}" is not unique`);r[c].series[l]=x({id:l},uC(a,s,t)),r[c].seriesOrder.push(l)});const o={};return Object.keys(jo).forEach(a=>{if(r[a]!==void 0){var s,i;o[a]=(s=(i=jo[a])==null?void 0:i.call(jo,r[a],n))!=null?s:r[a]}}),o};function mC({series:e,dataset:t,colors:n=pC,children:r}){const o=lt(),a=p.useMemo(()=>hC(e,typeof n=="function"?n(o.palette.mode):n,t),[e,n,o.palette.mode,t]);return v.jsx(Dn.Provider,{value:a,children:r})}function Nr(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function gC(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function es(e){let t,n,r;e.length!==2?(t=Nr,n=(i,l)=>Nr(e(i),l),r=(i,l)=>e(i)-l):(t=e===Nr||e===gC?e:vC,n=e,r=e);function o(i,l,c=0,u=i.length){if(c>>1;n(i[d],l)<0?c=d+1:u=d}while(c>>1;n(i[d],l)<=0?c=d+1:u=d}while(cc&&r(i[d-1],l)>-r(i[d],l)?d-1:d}return{left:o,center:s,right:a}}function vC(){return 0}function xC(e){return e===null?NaN:+e}const bC=es(Nr),yC=bC.right;es(xC).center;const CC=yC;class $i extends Map{constructor(t,n=MC){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,o]of t)this.set(r,o)}get(t){return super.get(Ei(this,t))}has(t){return super.has(Ei(this,t))}set(t,n){return super.set(wC(this,t),n)}delete(t){return super.delete(SC(this,t))}}function Ei({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function wC({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function SC({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function MC(e){return e!==null&&typeof e=="object"?e.valueOf():e}const kC=Math.sqrt(50),TC=Math.sqrt(10),PC=Math.sqrt(2);function jr(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),a=r/Math.pow(10,o),s=a>=kC?10:a>=TC?5:a>=PC?2:1;let i,l,c;return o<0?(c=Math.pow(10,-o)/s,i=Math.round(e*c),l=Math.round(t*c),i/ct&&--l,c=-c):(c=Math.pow(10,o)*s,i=Math.round(e/c),l=Math.round(t/c),i*ct&&--l),l0))return[];if(e===t)return[e];const r=t=o))return[];const i=a-o+1,l=new Array(i);if(r)if(s<0)for(let c=0;c>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?wr(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?wr(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=DC.exec(e))?new Ne(t[1],t[2],t[3],1):(t=RC.exec(e))?new Ne(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=NC.exec(e))?wr(t[1],t[2],t[3],t[4]):(t=LC.exec(e))?wr(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=OC.exec(e))?ji(t[1],t[2]/100,t[3]/100,1):(t=_C.exec(e))?ji(t[1],t[2]/100,t[3]/100,t[4]):Ni.hasOwnProperty(e)?_i(Ni[e]):e==="transparent"?new Ne(NaN,NaN,NaN,0):null}function _i(e){return new Ne(e>>16&255,e>>8&255,e&255,1)}function wr(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ne(e,t,n,r)}function jC(e){return e instanceof fr||(e=Tn(e)),e?(e=e.rgb(),new Ne(e.r,e.g,e.b,e.opacity)):new Ne}function sa(e,t,n,r){return arguments.length===1?jC(e):new Ne(e,t,n,r??1)}function Ne(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}ts(Ne,sa,au(fr,{brighter(e){return e=e==null?Br:Math.pow(Br,e),new Ne(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Jn:Math.pow(Jn,e),new Ne(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ne(nn(this.r),nn(this.g),nn(this.b),Hr(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ii,formatHex:Ii,formatHex8:FC,formatRgb:Ai,toString:Ai}));function Ii(){return`#${Qt(this.r)}${Qt(this.g)}${Qt(this.b)}`}function FC(){return`#${Qt(this.r)}${Qt(this.g)}${Qt(this.b)}${Qt((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ai(){const e=Hr(this.opacity);return`${e===1?"rgb(":"rgba("}${nn(this.r)}, ${nn(this.g)}, ${nn(this.b)}${e===1?")":`, ${e})`}`}function Hr(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function nn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Qt(e){return e=nn(e),(e<16?"0":"")+e.toString(16)}function ji(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ot(e,t,n,r)}function su(e){if(e instanceof ot)return new ot(e.h,e.s,e.l,e.opacity);if(e instanceof fr||(e=Tn(e)),!e)return new ot;if(e instanceof ot)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,i=a-o,l=(a+o)/2;return i?(t===a?s=(n-r)/i+(n0&&l<1?0:s,new ot(s,i,l,e.opacity)}function BC(e,t,n,r){return arguments.length===1?su(e):new ot(e,t,n,r??1)}function ot(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}ts(ot,BC,au(fr,{brighter(e){return e=e==null?Br:Math.pow(Br,e),new ot(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Jn:Math.pow(Jn,e),new ot(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Ne(Fo(e>=240?e-240:e+120,o,r),Fo(e,o,r),Fo(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ot(Fi(this.h),Sr(this.s),Sr(this.l),Hr(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Hr(this.opacity);return`${e===1?"hsl(":"hsla("}${Fi(this.h)}, ${Sr(this.s)*100}%, ${Sr(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Fi(e){return e=(e||0)%360,e<0?e+360:e}function Sr(e){return Math.max(0,Math.min(1,e||0))}function Fo(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const ns=e=>()=>e;function HC(e,t){return function(n){return e+n*t}}function WC(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function zC(e){return(e=+e)==1?iu:function(t,n){return n-t?WC(t,n,e):ns(isNaN(t)?n:t)}}function iu(e,t){var n=t-e;return n?HC(e,n):ns(isNaN(e)?t:e)}const Bi=function e(t){var n=zC(t);function r(o,a){var s=n((o=sa(o)).r,(a=sa(a)).r),i=n(o.g,a.g),l=n(o.b,a.b),c=iu(o.opacity,a.opacity);return function(u){return o.r=s(u),o.g=i(u),o.b=l(u),o.opacity=c(u),o+""}}return r.gamma=e,r}(1);function UC(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(a){for(o=0;on&&(a=t.slice(n,a),i[s]?i[s]+=a:i[++s]=a),(r=r[0])===(o=o[0])?i[s]?i[s]+=o:i[++s]=o:(i[++s]=null,l.push({i:s,x:Wr(r,o)})),n=Bo.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function nw(e,t,n){var r=e[0],o=e[1],a=t[0],s=t[1];return o2?rw:nw,l=c=null,d}function d(f){return f==null||isNaN(f=+f)?a:(l||(l=i(e.map(r),t,n)))(r(s(f)))}return d.invert=function(f){return s(o((c||(c=i(t,e.map(r),Wr)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,ew),u()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),u()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=ZC,u()},d.clamp=function(f){return arguments.length?(s=f?!0:ct,u()):s!==ct},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(a=f,d):a},function(f,h){return r=f,o=h,u()}}function lu(){return os()(ct,ct)}function ow(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function zr(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Pn(e){return e=zr(Math.abs(e)),e?e[1]:NaN}function aw(e,t){return function(n,r){for(var o=n.length,a=[],s=0,i=e[0],l=0;o>0&&i>0&&(l+i+1>r&&(i=Math.max(1,r-l)),a.push(n.substring(o-=i,o+i)),!((l+=i+1)>r));)i=e[s=(s+1)%e.length];return a.reverse().join(t)}}function sw(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var iw=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function tr(e){if(!(t=iw.exec(e)))throw new Error("invalid format: "+e);var t;return new as({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}tr.prototype=as.prototype;function as(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}as.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function lw(e){e:for(var t=e.length,n=1,r=-1,o;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var cu;function cw(e,t){var n=zr(e,t);if(!n)return e+"";var r=n[0],o=n[1],a=o-(cu=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,s=r.length;return a===s?r:a>s?r+new Array(a-s+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+zr(e,Math.max(0,t+a-1))[0]}function Wi(e,t){var n=zr(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const zi={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:ow,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Wi(e*100,t),r:Wi,s:cw,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Ui(e){return e}var Vi=Array.prototype.map,Yi=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function uw(e){var t=e.grouping===void 0||e.thousands===void 0?Ui:aw(Vi.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Ui:sw(Vi.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",i=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=tr(d);var f=d.fill,h=d.align,m=d.sign,y=d.symbol,b=d.zero,g=d.width,M=d.comma,w=d.precision,C=d.trim,k=d.type;k==="n"?(M=!0,k="g"):zi[k]||(w===void 0&&(w=12),C=!0,k="g"),(b||f==="0"&&h==="=")&&(b=!0,f="0",h="=");var T=y==="$"?n:y==="#"&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",D=y==="$"?r:/[%p]/.test(k)?s:"",O=zi[k],I=/[defgprs%]/.test(k);w=w===void 0?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function N(R){var F=T,j=D,L,E,P;if(k==="c")j=O(R)+j,R="";else{R=+R;var $=R<0||1/R<0;if(R=isNaN(R)?l:O(Math.abs(R),w),C&&(R=lw(R)),$&&+R==0&&m!=="+"&&($=!1),F=($?m==="("?m:i:m==="-"||m==="("?"":m)+F,j=(k==="s"?Yi[8+cu/3]:"")+j+($&&m==="("?")":""),I){for(L=-1,E=R.length;++LP||P>57){j=(P===46?o+R.slice(L+1):R.slice(L))+j,R=R.slice(0,L);break}}}M&&!b&&(R=t(R,1/0));var S=F.length+R.length+j.length,A=S>1)+F+R+j+A.slice(S);break;default:R=A+F+R+j;break}return a(R)}return N.toString=function(){return d+""},N}function u(d,f){var h=c((d=tr(d),d.type="f",d)),m=Math.max(-8,Math.min(8,Math.floor(Pn(f)/3)))*3,y=Math.pow(10,-m),b=Yi[8+m/3];return function(g){return h(y*g)+b}}return{format:c,formatPrefix:u}}var Mr,ss,uu;dw({thousands:",",grouping:[3],currency:["$",""]});function dw(e){return Mr=uw(e),ss=Mr.format,uu=Mr.formatPrefix,Mr}function fw(e){return Math.max(0,-Pn(Math.abs(e)))}function pw(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Pn(t)/3)))*3-Pn(Math.abs(e)))}function hw(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Pn(t)-Pn(e))+1}function mw(e,t,n,r){var o=aa(e,t,n),a;switch(r=tr(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=pw(o,s))&&(r.precision=a),uu(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=hw(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=fw(o))&&(r.precision=a-(r.type==="%")*2);break}}return ss(r)}function du(e){var t=e.domain;return e.ticks=function(n){var r=t();return ra(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return mw(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,a=r.length-1,s=r[o],i=r[a],l,c,u=10;for(i0;){if(c=oa(s,i,n),c===l)return r[o]=s,r[a]=i,t(r);if(c>0)s=Math.floor(s/c)*c,i=Math.ceil(i/c)*c;else if(c<0)s=Math.ceil(s*c)/c,i=Math.floor(i*c)/c;else break;l=c}return e},e}function fu(){var e=lu();return e.copy=function(){return oo(e,fu())},on.apply(e,arguments),du(e)}function pu(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],a=e[r],s;return aMath.pow(e,t)}function yw(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Gi(e){return(t,n)=>-e(-t,n)}function Cw(e){const t=e(Ki,qi),n=t.domain;let r=10,o,a;function s(){return o=yw(r),a=bw(r),n()[0]<0?(o=Gi(o),a=Gi(a),e(gw,vw)):e(Ki,qi),t}return t.base=function(i){return arguments.length?(r=+i,s()):r},t.domain=function(i){return arguments.length?(n(i),s()):n()},t.ticks=i=>{const l=n();let c=l[0],u=l[l.length-1];const d=u0){for(;f<=h;++f)for(m=1;mu)break;g.push(y)}}else for(;f<=h;++f)for(m=r-1;m>=1;--m)if(y=f>0?m/a(-f):m*a(f),!(yu)break;g.push(y)}g.length*2{if(i==null&&(i=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=tr(l)).precision==null&&(l.trim=!0),l=ss(l)),i===1/0)return l;const c=Math.max(1,r*i/t.ticks().length);return u=>{let d=u/a(Math.round(o(u)));return d*rn(pu(n(),{floor:i=>a(Math.floor(o(i))),ceil:i=>a(Math.ceil(o(i)))})),t}function hu(){const e=Cw(os()).domain([1,10]);return e.copy=()=>oo(e,hu()).base(e.base()),on.apply(e,arguments),e}function Xi(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function ww(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Sw(e){return e<0?-e*e:e*e}function Mw(e){var t=e(ct,ct),n=1;function r(){return n===1?e(ct,ct):n===.5?e(ww,Sw):e(Xi(n),Xi(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},du(t)}function is(){var e=Mw(os());return e.copy=function(){return oo(e,is()).exponent(e.exponent())},on.apply(e,arguments),e}function kw(){return is.apply(null,arguments).exponent(.5)}const Ho=new Date,Wo=new Date;function Te(e,t,n,r){function o(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return o.floor=a=>(e(a=new Date(+a)),a),o.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),o.round=a=>{const s=o(a),i=o.ceil(a);return a-s(t(a=new Date(+a),s==null?1:Math.floor(s)),a),o.range=(a,s,i)=>{const l=[];if(a=o.ceil(a),i=i==null?1:Math.floor(i),!(a0))return l;let c;do l.push(c=new Date(+a)),t(a,i),e(a);while(cTe(s=>{if(s>=s)for(;e(s),!a(s);)s.setTime(s-1)},(s,i)=>{if(s>=s)if(i<0)for(;++i<=0;)for(;t(s,-1),!a(s););else for(;--i>=0;)for(;t(s,1),!a(s););}),n&&(o.count=(a,s)=>(Ho.setTime(+a),Wo.setTime(+s),e(Ho),e(Wo),Math.floor(n(Ho,Wo))),o.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?o.filter(r?s=>r(s)%a===0:s=>o.count(0,s)%a===0):o)),o}const Ur=Te(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ur.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Te(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Ur);Ur.range;const vt=1e3,Qe=vt*60,xt=Qe*60,Ct=xt*24,ls=Ct*7,Qi=Ct*30,zo=Ct*365,Zt=Te(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*vt)},(e,t)=>(t-e)/vt,e=>e.getUTCSeconds());Zt.range;const cs=Te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*vt)},(e,t)=>{e.setTime(+e+t*Qe)},(e,t)=>(t-e)/Qe,e=>e.getMinutes());cs.range;const us=Te(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Qe)},(e,t)=>(t-e)/Qe,e=>e.getUTCMinutes());us.range;const ds=Te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*vt-e.getMinutes()*Qe)},(e,t)=>{e.setTime(+e+t*xt)},(e,t)=>(t-e)/xt,e=>e.getHours());ds.range;const fs=Te(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*xt)},(e,t)=>(t-e)/xt,e=>e.getUTCHours());fs.range;const pr=Te(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Qe)/Ct,e=>e.getDate()-1);pr.range;const ao=Te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ct,e=>e.getUTCDate()-1);ao.range;const mu=Te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ct,e=>Math.floor(e/Ct));mu.range;function an(e){return Te(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Qe)/ls)}const so=an(0),Vr=an(1),Tw=an(2),Pw=an(3),$n=an(4),$w=an(5),Ew=an(6);so.range;Vr.range;Tw.range;Pw.range;$n.range;$w.range;Ew.range;function sn(e){return Te(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/ls)}const io=sn(0),Yr=sn(1),Dw=sn(2),Rw=sn(3),En=sn(4),Nw=sn(5),Lw=sn(6);io.range;Yr.range;Dw.range;Rw.range;En.range;Nw.range;Lw.range;const ps=Te(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());ps.range;const hs=Te(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());hs.range;const wt=Te(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());wt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Te(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});wt.range;const St=Te(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());St.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Te(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});St.range;function gu(e,t,n,r,o,a){const s=[[Zt,1,vt],[Zt,5,5*vt],[Zt,15,15*vt],[Zt,30,30*vt],[a,1,Qe],[a,5,5*Qe],[a,15,15*Qe],[a,30,30*Qe],[o,1,xt],[o,3,3*xt],[o,6,6*xt],[o,12,12*xt],[r,1,Ct],[r,2,2*Ct],[n,1,ls],[t,1,Qi],[t,3,3*Qi],[e,1,zo]];function i(c,u,d){const f=ub).right(s,f);if(h===s.length)return e.every(aa(c/zo,u/zo,d));if(h===0)return Ur.every(Math.max(aa(c,u,d),1));const[m,y]=s[f/s[h-1][2]53)return null;"w"in _||(_.w=1),"Z"in _?(U=Vo(Fn(_.y,0,1)),G=U.getUTCDay(),U=G>4||G===0?Yr.ceil(U):Yr(U),U=ao.offset(U,(_.V-1)*7),_.y=U.getUTCFullYear(),_.m=U.getUTCMonth(),_.d=U.getUTCDate()+(_.w+6)%7):(U=Uo(Fn(_.y,0,1)),G=U.getDay(),U=G>4||G===0?Vr.ceil(U):Vr(U),U=pr.offset(U,(_.V-1)*7),_.y=U.getFullYear(),_.m=U.getMonth(),_.d=U.getDate()+(_.w+6)%7)}else("W"in _||"U"in _)&&("w"in _||(_.w="u"in _?_.u%7:"W"in _?1:0),G="Z"in _?Vo(Fn(_.y,0,1)).getUTCDay():Uo(Fn(_.y,0,1)).getDay(),_.m=0,_.d="W"in _?(_.w+6)%7+_.W*7-(G+5)%7:_.w+_.U*7-(G+6)%7);return"Z"in _?(_.H+=_.Z/100|0,_.M+=_.Z%100,Vo(_)):Uo(_)}}function O(H,V,q,_){for(var z=0,U=V.length,G=q.length,me,pe;z=G)return-1;if(me=V.charCodeAt(z++),me===37){if(me=V.charAt(z++),pe=k[me in Zi?V.charAt(z++):me],!pe||(_=pe(H,q,_))<0)return-1}else if(me!=q.charCodeAt(_++))return-1}return _}function I(H,V,q){var _=c.exec(V.slice(q));return _?(H.p=u.get(_[0].toLowerCase()),q+_[0].length):-1}function N(H,V,q){var _=h.exec(V.slice(q));return _?(H.w=m.get(_[0].toLowerCase()),q+_[0].length):-1}function R(H,V,q){var _=d.exec(V.slice(q));return _?(H.w=f.get(_[0].toLowerCase()),q+_[0].length):-1}function F(H,V,q){var _=g.exec(V.slice(q));return _?(H.m=M.get(_[0].toLowerCase()),q+_[0].length):-1}function j(H,V,q){var _=y.exec(V.slice(q));return _?(H.m=b.get(_[0].toLowerCase()),q+_[0].length):-1}function L(H,V,q){return O(H,t,V,q)}function E(H,V,q){return O(H,n,V,q)}function P(H,V,q){return O(H,r,V,q)}function $(H){return s[H.getDay()]}function S(H){return a[H.getDay()]}function A(H){return l[H.getMonth()]}function W(H){return i[H.getMonth()]}function K(H){return o[+(H.getHours()>=12)]}function Q(H){return 1+~~(H.getMonth()/3)}function re(H){return s[H.getUTCDay()]}function ee(H){return a[H.getUTCDay()]}function ne(H){return l[H.getUTCMonth()]}function ie(H){return i[H.getUTCMonth()]}function he(H){return o[+(H.getUTCHours()>=12)]}function ce(H){return 1+~~(H.getUTCMonth()/3)}return{format:function(H){var V=T(H+="",w);return V.toString=function(){return H},V},parse:function(H){var V=D(H+="",!1);return V.toString=function(){return H},V},utcFormat:function(H){var V=T(H+="",C);return V.toString=function(){return H},V},utcParse:function(H){var V=D(H+="",!0);return V.toString=function(){return H},V}}}var Zi={"-":"",_:" ",0:"0"},Pe=/^\s*\d+/,Fw=/^%/,Bw=/[\\^$*+?|[\]().{}]/g;function fe(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",a=o.length;return r+(a[t.toLowerCase(),n]))}function Ww(e,t,n){var r=Pe.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function zw(e,t,n){var r=Pe.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Uw(e,t,n){var r=Pe.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Vw(e,t,n){var r=Pe.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Yw(e,t,n){var r=Pe.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Ji(e,t,n){var r=Pe.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function el(e,t,n){var r=Pe.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Kw(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function qw(e,t,n){var r=Pe.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Gw(e,t,n){var r=Pe.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function tl(e,t,n){var r=Pe.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Xw(e,t,n){var r=Pe.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function nl(e,t,n){var r=Pe.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Qw(e,t,n){var r=Pe.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Zw(e,t,n){var r=Pe.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Jw(e,t,n){var r=Pe.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function eS(e,t,n){var r=Pe.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function tS(e,t,n){var r=Fw.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function nS(e,t,n){var r=Pe.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function rS(e,t,n){var r=Pe.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function rl(e,t){return fe(e.getDate(),t,2)}function oS(e,t){return fe(e.getHours(),t,2)}function aS(e,t){return fe(e.getHours()%12||12,t,2)}function sS(e,t){return fe(1+pr.count(wt(e),e),t,3)}function vu(e,t){return fe(e.getMilliseconds(),t,3)}function iS(e,t){return vu(e,t)+"000"}function lS(e,t){return fe(e.getMonth()+1,t,2)}function cS(e,t){return fe(e.getMinutes(),t,2)}function uS(e,t){return fe(e.getSeconds(),t,2)}function dS(e){var t=e.getDay();return t===0?7:t}function fS(e,t){return fe(so.count(wt(e)-1,e),t,2)}function xu(e){var t=e.getDay();return t>=4||t===0?$n(e):$n.ceil(e)}function pS(e,t){return e=xu(e),fe($n.count(wt(e),e)+(wt(e).getDay()===4),t,2)}function hS(e){return e.getDay()}function mS(e,t){return fe(Vr.count(wt(e)-1,e),t,2)}function gS(e,t){return fe(e.getFullYear()%100,t,2)}function vS(e,t){return e=xu(e),fe(e.getFullYear()%100,t,2)}function xS(e,t){return fe(e.getFullYear()%1e4,t,4)}function bS(e,t){var n=e.getDay();return e=n>=4||n===0?$n(e):$n.ceil(e),fe(e.getFullYear()%1e4,t,4)}function yS(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+fe(t/60|0,"0",2)+fe(t%60,"0",2)}function ol(e,t){return fe(e.getUTCDate(),t,2)}function CS(e,t){return fe(e.getUTCHours(),t,2)}function wS(e,t){return fe(e.getUTCHours()%12||12,t,2)}function SS(e,t){return fe(1+ao.count(St(e),e),t,3)}function bu(e,t){return fe(e.getUTCMilliseconds(),t,3)}function MS(e,t){return bu(e,t)+"000"}function kS(e,t){return fe(e.getUTCMonth()+1,t,2)}function TS(e,t){return fe(e.getUTCMinutes(),t,2)}function PS(e,t){return fe(e.getUTCSeconds(),t,2)}function $S(e){var t=e.getUTCDay();return t===0?7:t}function ES(e,t){return fe(io.count(St(e)-1,e),t,2)}function yu(e){var t=e.getUTCDay();return t>=4||t===0?En(e):En.ceil(e)}function DS(e,t){return e=yu(e),fe(En.count(St(e),e)+(St(e).getUTCDay()===4),t,2)}function RS(e){return e.getUTCDay()}function NS(e,t){return fe(Yr.count(St(e)-1,e),t,2)}function LS(e,t){return fe(e.getUTCFullYear()%100,t,2)}function OS(e,t){return e=yu(e),fe(e.getUTCFullYear()%100,t,2)}function _S(e,t){return fe(e.getUTCFullYear()%1e4,t,4)}function IS(e,t){var n=e.getUTCDay();return e=n>=4||n===0?En(e):En.ceil(e),fe(e.getUTCFullYear()%1e4,t,4)}function AS(){return"+0000"}function al(){return"%"}function sl(e){return+e}function il(e){return Math.floor(+e/1e3)}var hn,Cu,wu;jS({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function jS(e){return hn=jw(e),Cu=hn.format,hn.parse,wu=hn.utcFormat,hn.utcParse,hn}function FS(e){return new Date(e)}function BS(e){return e instanceof Date?+e:+new Date(+e)}function ms(e,t,n,r,o,a,s,i,l,c){var u=lu(),d=u.invert,f=u.domain,h=c(".%L"),m=c(":%S"),y=c("%I:%M"),b=c("%I %p"),g=c("%a %d"),M=c("%b %d"),w=c("%B"),C=c("%Y");function k(T){return(l(T){var t,n;const{axis:r}=e,o=Math.min(...(t=r.data)!=null?t:[]),a=Math.max(...(n=r.data)!=null?n:[]);return[o,a]},Mu=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].yAxisKey===n.id||r&&t[o].yAxisKey===void 0).reduce((o,a)=>{const[s,i]=t[a].stackedData.reduce((l,c)=>[Math.min(...c,...l[0]===null?[]:[l[0]]),Math.max(...c,...l[1]===null?[]:[l[1]])],t[a].stackedData[0]);return[o[0]===null?s:Math.min(s,o[0]),o[1]===null?i:Math.max(i,o[1])]},[null,null])},zS=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?Mu(e):Su(e),US=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?Su(e):Mu(e),Kr=(e,t)=>e[0]===null||e[1]===null?t:t[0]===null||t[1]===null?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])],VS=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].xAxisKey===n.id||t[o].xAxisKey===void 0&&r).reduce((o,a)=>{const s=t[a].data.reduce((i,{x:l})=>Kr(i,[l,l]),[null,null]);return Kr(o,s)},[null,null])},YS=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].yAxisKey===n.id||t[o].yAxisKey===void 0&&r).reduce((o,a)=>{const s=t[a].data.reduce((i,{y:l})=>Kr(i,[l,l]),[null,null]);return Kr(o,s)},[null,null])},KS=e=>{var t,n;const{axis:r}=e,o=Math.min(...(t=r.data)!=null?t:[]),a=Math.max(...(n=r.data)!=null?n:[]);return[o,a]},qS=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].yAxisKey===n.id||r&&t[o].yAxisKey===void 0).reduce((o,a)=>{const i=t[a].area!==void 0?u=>u:u=>[u[1],u[1]],[l,c]=t[a].stackedData.reduce((u,d)=>{const[f,h]=i(d);return[Math.min(f,h,u[0]),Math.max(f,h,u[1])]},i(t[a].stackedData[0]));return o[0]===null||o[1]===null?[l,c]:[Math.min(l,o[0]),Math.max(c,o[1])]},[null,null])};function qr(e){return e.scaleType==="band"}function ll(e){return e.scaleType==="point"}function cl(e,t,n){switch(e){case"log":return hu(t,n);case"pow":return is(t,n);case"sqrt":return kw(t,n);case"time":return HS(t,n);case"utc":return WS(t,n);default:return fu(t,n)}}const ca="DEFAULT_X_AXIS_KEY",ua="DEFAULT_Y_AXIS_KEY",GS={top:100,bottom:50,left:50,right:50},XS=(e,t,n)=>{const r=x({},GS,n);return p.useMemo(()=>({left:r.left,top:r.top,width:Math.max(0,e-r.left-r.right),height:Math.max(0,t-r.top-r.bottom)}),[e,t,r.top,r.bottom,r.left,r.right])},QS=XS,ln=p.createContext({top:0,left:0,height:300,width:400}),gs=p.createContext({current:null});function ZS({width:e,height:t,margin:n,svgRef:r,children:o}){const a=QS(e,t,n);return v.jsx(gs.Provider,{value:r,children:v.jsx(ln.Provider,{value:a,children:o})})}function nr(e){return e.bandwidth!==void 0}function ul(e){const{tickMaxStep:t,tickMinStep:n,tickNumber:r,range:o,domain:a}=e,s=n===void 0?999:Math.floor(Math.abs(a[1]-a[0])/n),i=t===void 0?2:Math.ceil(Math.abs(a[1]-a[0])/t),l=r??Math.floor(Math.abs(o[1]-o[0])/50);return Math.min(s,Math.max(i,l))}function ku(e){const{scale:t,ticksNumber:n,valueFormatter:r}=e;return p.useMemo(()=>{if(nr(t)){const o=t.domain();return t.bandwidth()>0?[...o.map(a=>{var s;return{formattedValue:(s=r==null?void 0:r(a))!=null?s:a,offset:t(a)-(t.step()-t.bandwidth())/2,labelOffset:t.step()/2}}),{formattedValue:void 0,offset:t.range()[1],labelOffset:0}]:o.map(a=>{var s;return{formattedValue:(s=r==null?void 0:r(a))!=null?s:a,offset:t(a),labelOffset:0}})}return t.ticks(n).map(o=>{var a;return{formattedValue:(a=r==null?void 0:r(o))!=null?a:t.tickFormat(n)(o),offset:t(o),labelOffset:0}})},[n,t,r])}const dl=.2,JS=.1,eM={bar:zS,scatter:VS,line:KS},tM={bar:US,scatter:YS,line:qS},Wt=p.createContext({xAxis:{},yAxis:{},xAxisIds:[],yAxisIds:[]});function nM({xAxis:e,yAxis:t,dataset:n,children:r}){const o=p.useContext(Dn),a=p.useContext(ln),s=p.useMemo(()=>e==null?void 0:e.map(c=>{const u=c.dataKey;if(u===void 0||c.data!==void 0)return c;if(n===void 0)throw Error("MUI: x-axis uses `dataKey` but no `dataset` is provided.");return x({},c,{data:n.map(d=>d[u])})}),[e,n]),i=p.useMemo(()=>t==null?void 0:t.map(c=>{const u=c.dataKey;if(u===void 0||c.data!==void 0)return c;if(n===void 0)throw Error("MUI: y-axis uses `dataKey` but no `dataset` is provided.");return x({},c,{data:n.map(d=>d[u])})}),[t,n]),l=p.useMemo(()=>{var c,u;const d=(g,M,w,C,k)=>{var T,D;const O=C[M],I=(T=(D=o[M])==null?void 0:D.series)!=null?T:{},[N,R]=O({series:I,axis:w,isDefaultAxis:k}),[F,j]=g;return F===null||j===null?[N,R]:N===null||R===null?[F,j]:[Math.min(N,F),Math.max(R,j)]},f=(g,M,w)=>Object.keys(M).reduce((k,T)=>d(k,T,g,M,w),[null,null]),h=[...(c=s==null?void 0:s.map((g,M)=>x({id:`deaultized-x-axis-${M}`},g)))!=null?c:[],...s===void 0||s.findIndex(({id:g})=>g===ca)===-1?[{id:ca,scaleType:"linear"}]:[]],m={};h.forEach((g,M)=>{var w,C,k,T,D;const O=M===0,[I,N]=f(g,eM,O),R=[a.left,a.left+a.width];if(qr(g)){var F,j;const W=(F=g.categoryGapRatio)!=null?F:dl,K=(j=g.barGapRatio)!=null?j:JS;m[g.id]=x({categoryGapRatio:W,barGapRatio:K},g,{scale:Fr(g.data,R).paddingInner(W).paddingOuter(W/2),ticksNumber:g.data.length})}if(ll(g)&&(m[g.id]=x({},g,{scale:Ri(g.data,R),ticksNumber:g.data.length})),g.scaleType==="band"||g.scaleType==="point")return;const L=(w=g.scaleType)!=null?w:"linear",E=[(C=g.min)!=null?C:I,(k=g.max)!=null?k:N],P=ul(x({},g,{range:R,domain:E})),$=cl(L,E,R).nice(P),S=$.domain(),A=[(T=g.min)!=null?T:S[0],(D=g.max)!=null?D:S[1]];m[g.id]=x({},g,{scaleType:L,scale:$.domain(A),ticksNumber:P})});const y=[...(u=i==null?void 0:i.map((g,M)=>x({id:`deaultized-y-axis-${M}`},g)))!=null?u:[],...i===void 0||i.findIndex(({id:g})=>g===ua)===-1?[{id:ua,scaleType:"linear"}]:[]],b={};return y.forEach((g,M)=>{var w,C,k,T,D;const O=M===0,[I,N]=f(g,tM,O),R=[a.top+a.height,a.top];if(qr(g)){var F;const A=(F=g.categoryGapRatio)!=null?F:dl;b[g.id]=x({categoryGapRatio:A,barGapRatio:0},g,{scale:Fr(g.data,[R[1],R[0]]).paddingInner(A).paddingOuter(A/2),ticksNumber:g.data.length})}if(ll(g)&&(b[g.id]=x({},g,{scale:Ri(g.data,[R[1],R[0]]),ticksNumber:g.data.length})),g.scaleType==="band"||g.scaleType==="point")return;const j=(w=g.scaleType)!=null?w:"linear",L=[(C=g.min)!=null?C:I,(k=g.max)!=null?k:N],E=ul(x({},g,{range:R,domain:L})),P=cl(j,L,R).nice(E),$=P.domain(),S=[(T=g.min)!=null?T:$[0],(D=g.max)!=null?D:$[1]];b[g.id]=x({},g,{scaleType:j,scale:P.domain(S),ticksNumber:E})}),{xAxis:m,yAxis:b,xAxisIds:h.map(({id:g})=>g),yAxisIds:y.map(({id:g})=>g)}},[a.height,a.left,a.top,a.width,o,s,i]);return v.jsx(Wt.Provider,{value:l,children:r})}const Rn=p.createContext({item:null,axis:{x:null,y:null},dispatch:()=>null}),rM=(e,t)=>{switch(t.type){case"enterItem":return x({},e,{item:t.data});case"leaveItem":return e.item===null||Object.keys(t.data).some(n=>t.data[n]!==e.item[n])?e:x({},e,{item:null});case"updateAxis":return x({},e,{axis:t.data});default:return e}};function oM({children:e}){const[t,n]=p.useReducer(rM,{item:null,axis:{x:null,y:null}}),r=p.useMemo(()=>x({},t,{dispatch:n}),[t]);return v.jsx(Rn.Provider,{value:r,children:e})}const vs={highlighted:"none",faded:"none"},Tu=p.createContext({item:null,scope:vs,dispatch:()=>null}),aM=(e,t)=>{switch(t.type){case"enterItem":return x({},e,{item:t.item,scope:x({},vs,t.scope)});case"leaveItem":return e.item===null||Object.keys(t.item).some(n=>t.item[n]!==e.item[n])?e:x({},e,{item:null});default:return e}};function sM({children:e}){const[t,n]=p.useReducer(aM,{item:null,scope:vs}),r=p.useMemo(()=>x({},t,{dispatch:n}),[t]);return v.jsx(Tu.Provider,{value:r,children:e})}const iM=e=>{const{dispatch:t}=p.useContext(Rn),{dispatch:n}=p.useContext(Tu);return o=>({onMouseEnter:()=>{t({type:"enterItem",data:o}),n({type:"enterItem",item:o,scope:e})},onMouseLeave:()=>{t({type:"leaveItem",data:o}),n({type:"leaveItem",item:o})}})},lM=(e,t,n)=>{if(!(n!=null&&n.highlighted)||n.highlighted==="none"||e===null)return!1;const r=e.type===t.type&&e.seriesId===t.seriesId;return r?n.highlighted==="series"?r:e.dataIndex!==void 0&&e.dataIndex===t.dataIndex:!1},cM=(e,t,n)=>{if(!(n!=null&&n.faded)||n.faded==="none"||e===null)return!1;const r=e.type===t.type&&e.seriesId===t.seriesId;return n.faded==="series"?r&&e.dataIndex!==t.dataIndex:n.faded==="global"?r?e.dataIndex!==void 0&&e.dataIndex!==t.dataIndex:!0:!1},uM=["id","dataIndex","classes","color","highlightScope","slots","slotProps"];function dM(e){return Tt("MuiBarElement",e)}Pt("MuiBarElement",["root"]);const fM=e=>{const{classes:t,id:n}=e,r={root:["root",`series-${n}`]};return kt(r,dM,t)},pM=X("rect",{name:"MuiBarElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({stroke:"none",shapeRendering:"crispEdges",fill:e.isHighlighted?Tn(e.color).brighter(.5).formatHex():e.color,transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:e.isFaded&&.3||1}));function hM(e){var t;const{id:n,dataIndex:r,classes:o,color:a,highlightScope:s,slots:i,slotProps:l}=e,c=J(e,uM),u=iM(s),{item:d}=p.useContext(Rn),f=lM(d,{type:"bar",seriesId:n,dataIndex:r},s),h=!f&&cM(d,{type:"bar",seriesId:n,dataIndex:r},s),m={id:n,dataIndex:r,classes:o,color:a,isFaded:h,isHighlighted:f},y=fM(m),b=(t=i==null?void 0:i.bar)!=null?t:pM,g=Ye({elementType:b,externalSlotProps:l==null?void 0:l.bar,additionalProps:x({},c,u({type:"bar",seriesId:n,dataIndex:r}),{className:y.root}),ownerState:m});return v.jsx(b,x({},g))}function mM({bandWidth:e,numberOfGroups:t,gapRatio:n}){if(n===0)return{barWidth:e/t,offset:0};const r=e/(t+(t-1)*n),o=n*r;return{barWidth:r,offset:o}}function gM(e){const t=p.useContext(Dn).bar,n=p.useContext(Wt);if(t===void 0)return null;const{series:r,stackingGroups:o}=t,{xAxis:a,yAxis:s,xAxisIds:i,yAxisIds:l}=n,c=i[0],u=l[0];return v.jsx(p.Fragment,{children:o.flatMap(({ids:d},f)=>d.flatMap(h=>{var m,y;const b=(m=r[h].xAxisKey)!=null?m:c,g=(y=r[h].yAxisKey)!=null?y:u,M=a[b],w=s[g],C=r[h].layout==="vertical";let k;if(C){if(!qr(M))throw new Error(`Axis with id "${b}" shoud be of type "band" to display the bar series of id "${h}"`);if(a[b].data===void 0)throw new Error(`Axis with id "${b}" shoud have data property`);k=M}else{if(!qr(w))throw new Error(`Axis with id "${g}" shoud be of type "band" to display the bar series of id "${h}"`);if(s[g].data===void 0)throw new Error(`Axis with id "${b}" shoud have data property`);k=w}const T=M.scale,D=w.scale,O=k.scale.bandwidth(),{barWidth:I,offset:N}=mM({bandWidth:O,numberOfGroups:o.length,gapRatio:k.barGapRatio}),R=f*(I+N),{stackedData:F,color:j}=r[h];return F.map((L,E)=>{var P,$;const S=Math.min(...L),A=Math.max(...L);return v.jsx(hM,x({id:h,dataIndex:E,x:C?T((P=a[b].data)==null?void 0:P[E])+R:T(S),y:C?D(A):D(($=s[g].data)==null?void 0:$[E])+R,height:C?Math.abs(D(S)-D(A)):I,width:C?I:Math.abs(T(S)-T(A)),color:j,highlightScope:r[h].highlightScope},e),`${h}-${E}`)})}))})}const vM=e=>{const t=p.useContext(gs),{width:n,height:r,top:o,left:a}=p.useContext(ln),{xAxis:s,yAxis:i,xAxisIds:l,yAxisIds:c}=p.useContext(Wt),{dispatch:u}=p.useContext(Rn),d=l[0],f=c[0],h=p.useRef({x:-1,y:-1});p.useEffect(()=>{const m=t.current;if(m===null||e)return()=>{};const y=(M,w)=>{if(d===null)return null;const{scale:C,data:k}=M;if(!nr(C)){const D=C.invert(w);if(k===void 0)return{value:D};const O=k==null?void 0:k.findIndex((I,N)=>I>D&&(N===0||Math.abs(D-I)<=Math.abs(D-k[N-1]))||I<=D&&(N===k.length-1||Math.abs(D-I)=0?k[O]:D,index:O}}const T=C.bandwidth()===0?Math.floor((w-Math.min(...C.range())+C.step()/2)/C.step()):Math.floor((w-Math.min(...C.range()))/C.step());return T<0||T>=k.length?null:{index:T,value:k[T]}},b=()=>{h.current={x:-1,y:-1},u({type:"updateAxis",data:{x:null,y:null}})},g=M=>{const w=t.current.createSVGPoint();w.x=M.clientX,w.y=M.clientY;const C=w.matrixTransform(t.current.getScreenCTM().inverse());h.current={x:C.x,y:C.y};const k=C.xa+n,T=C.yo+r;if(k||T){u({type:"updateAxis",data:{x:null,y:null}});return}const D=y(s[d],C.x),O=y(i[f],C.y);u({type:"updateAxis",data:{x:D,y:O}})};return m.addEventListener("mouseout",b),m.addEventListener("mousemove",g),()=>{m.removeEventListener("mouseout",b),m.removeEventListener("mousemove",g)}},[t,u,a,n,o,r,f,i,d,s,e])},xM=["children","width","height","viewBox","disableAxisListener","className","sx"],bM=X("svg",{name:"MuiChartsSurface",slot:"Root"})(()=>({})),yM=p.forwardRef(function(t,n){const{children:r,width:o,height:a,viewBox:s,disableAxisListener:i=!1,sx:l}=t,c=J(t,xM),u=x({width:o,height:a,x:0,y:0},s);return vM(i),v.jsxs(bM,x({width:o,height:a,viewBox:`${u.x} ${u.y} ${u.width} ${u.height}`,ref:n,sx:[{"--ChartsLegend-itemWidth":"100px","--ChartsLegend-itemMarkSize":"20px","--ChartsLegend-rootSpacing":"5px","--ChartsLegend-labelSpacing":"5px","--ChartsLegend-rootOffsetY":"-20px"},...Array.isArray(l)?l:[l]]},c,{children:[v.jsx("title",{children:t.title}),v.jsx("desc",{children:t.desc}),r]}))}),CM=p.forwardRef(function(t,n){const{width:r,height:o,series:a,margin:s,xAxis:i,yAxis:l,colors:c,dataset:u,sx:d,title:f,desc:h,disableAxisListener:m,children:y}=t,b=p.useRef(null),g=Ht(n,b);return v.jsx(ZS,{width:r,height:o,margin:s,svgRef:b,children:v.jsx(mC,{series:a,colors:c,dataset:u,children:v.jsx(nM,{xAxis:i,yAxis:l,dataset:u,children:v.jsx(oM,{children:v.jsx(sM,{children:v.jsx(yM,{width:r,height:o,ref:g,sx:d,title:f,desc:h,disableAxisListener:m,children:y})})})})})})}),wM=["width","height"],SM=(e,t)=>{const n=p.useRef(null),r=p.useRef(!1),[o,a]=p.useState(0),[s,i]=p.useState(0),l=p.useCallback(()=>{const c=n==null?void 0:n.current;if(!c)return;const d=x0(c).getComputedStyle(c),f=Math.floor(parseFloat(d.height))||0,h=Math.floor(parseFloat(d.width))||0;a(h),i(f)},[]);return p.useEffect(()=>{r.current=!0},[]),Ar(()=>{if(e!==void 0&&t!==void 0)return()=>{};l();const c=n.current;if(typeof ResizeObserver>"u")return()=>{};let u;const d=new ResizeObserver(()=>{u=requestAnimationFrame(()=>{l()})});return c&&d.observe(c),()=>{u&&window.cancelAnimationFrame(u),c&&d.unobserve(c)}},[l,t,e]),[n,e??o,t??s]},MM=X("div",{name:"MuiResponsiveChart",slot:"Container"})(({ownerState:e})=>{var t,n;return{width:(t=e.width)!=null?t:"100%",height:(n=e.height)!=null?n:"100%",display:"flex",position:"relative",flexGrow:1,flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden","&>svg":{width:"100%",height:"100%"}}}),kM=p.forwardRef(function(t,n){const{width:r,height:o}=t,a=J(t,wM),[s,i,l]=SM(r,o);return v.jsx(MM,{ref:s,ownerState:{width:r,height:o},children:v.jsx(CM,x({},a,{width:i,height:l,ref:n}))})});function Pu(e){return Tt("MuiChartsAxis",e)}const Be=Pt("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right"]),$u=X("g",{name:"MuiChartsAxis",slot:"Root",overridesResolver:(e,t)=>t.root})({[`&.${Be.directionY}`]:{[`.${Be.tickLabel}`]:{dominantBaseline:"middle"},[`.${Be.label}`]:{dominantBaseline:"auto",textAnchor:"middle"}},[`&.${Be.left}`]:{[`.${Be.tickLabel}`]:{dominantBaseline:"central",textAnchor:"end"}},[`&.${Be.right}`]:{[`.${Be.tickLabel}`]:{dominantBaseline:"central",textAnchor:"start"}},[`&.${Be.bottom}`]:{[`.${Be.tickLabel}, .${Be.label}`]:{dominantBaseline:"hanging",textAnchor:"middle"}},[`&.${Be.top}`]:{[`.${Be.tickLabel}, .${Be.label}`]:{dominantBaseline:"baseline",textAnchor:"middle"}}}),Eu=X("line",{name:"MuiChartsAxis",slot:"Line",overridesResolver:(e,t)=>t.line})(({theme:e})=>({stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1})),Du=X("line",{name:"MuiChartsAxis",slot:"Tick",overridesResolver:(e,t)=>t.tick})(({theme:e})=>({stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges"})),Ru=X("text",{name:"MuiChartsAxis",slot:"TickLabel",overridesResolver:(e,t)=>t.tickLabel})(({theme:e})=>x({},e.typography.caption,{fill:(e.vars||e).palette.text.primary})),Nu=X("text",{name:"MuiChartsAxis",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>x({},e.typography.body1,{fill:(e.vars||e).palette.text.primary})),TM=["scale","ticksNumber"],PM=e=>{const{classes:t,position:n}=e;return kt({root:["root","directionX",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},Pu,t)},fl={position:"bottom",disableLine:!1,disableTicks:!1,tickFontSize:12,labelFontSize:14,tickSize:6};function pl(e){var t,n,r,o;const a=be({props:x({},fl,e),name:"MuiChartsXAxis"}),s=p.useContext(Wt),i=a.axisId,{xAxis:{[i]:{scale:l,ticksNumber:c}}}=s,u=J(s.xAxis[i],TM),d=x({},fl,u,a),{position:f,disableLine:h,disableTicks:m,tickFontSize:y,label:b,labelFontSize:g,tickSize:M,valueFormatter:w,slots:C,slotProps:k}=d,T=lt(),D=PM(x({},d,{theme:T})),{left:O,top:I,width:N,height:R}=p.useContext(ln),F=m?4:M,j=ku({scale:l,ticksNumber:c,valueFormatter:w}),L=f==="bottom"?1:-1,E={x:O+N/2,y:L*(y+F+10)},P=(t=C==null?void 0:C.axisLine)!=null?t:Eu,$=(n=C==null?void 0:C.axisTick)!=null?n:Du,S=(r=C==null?void 0:C.axisTickLabel)!=null?r:Ru,A=(o=C==null?void 0:C.axisLabel)!=null?o:Nu;return v.jsxs($u,{transform:`translate(0, ${f==="bottom"?I+R:I})`,className:D.root,children:[!h&&v.jsx(P,x({x1:l.range()[0],x2:l.range()[1],className:D.line},k==null?void 0:k.axisLine)),j.map(({formattedValue:W,offset:K,labelOffset:Q},re)=>{const ee=Q??0,ne=L*(F+3);return v.jsxs("g",{transform:`translate(${K}, 0)`,className:D.tickContainer,children:[!m&&v.jsx($,x({y2:L*F,className:D.tick},k==null?void 0:k.axisTick)),W!==void 0&&v.jsx(S,x({x:ee,y:ne,"transform-origin":`${ee}px ${ne}px`,sx:{fontSize:y},className:D.tickLabel},k==null?void 0:k.axisTickLabel,{children:W}))]},re)}),b&&v.jsx(A,x({},E,{sx:{fontSize:g,transformOrigin:`${E.x}px ${E.y}px`},className:D.label},k==null?void 0:k.axisLabel,{children:b}))]})}const $M=["scale","ticksNumber"],EM=e=>{const{classes:t,position:n}=e;return kt({root:["root","directionY",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},Pu,t)},hl={position:"left",disableLine:!1,disableTicks:!1,tickFontSize:12,labelFontSize:14,tickSize:6};function ml(e){var t,n,r,o;const a=be({props:x({},hl,e),name:"MuiChartsYAxis"}),s=p.useContext(Wt),i=a.axisId,{yAxis:{[i]:{scale:l,ticksNumber:c}}}=s,u=J(s.yAxis[i],$M),d=x({},hl,u,a),{position:f,disableLine:h,disableTicks:m,tickFontSize:y,label:b,labelFontSize:g,tickSize:M,valueFormatter:w,slots:C,slotProps:k}=d,T=lt(),D=EM(x({},d,{theme:T})),{left:O,top:I,width:N,height:R}=p.useContext(ln),F=m?4:M,j=ku({scale:l,ticksNumber:c,valueFormatter:w}),L=f==="right"?1:-1,E={x:L*(y+F+10),y:I+R/2},P=(t=C==null?void 0:C.axisLine)!=null?t:Eu,$=(n=C==null?void 0:C.axisTick)!=null?n:Du,S=(r=C==null?void 0:C.axisTickLabel)!=null?r:Ru,A=(o=C==null?void 0:C.axisLabel)!=null?o:Nu;return v.jsxs($u,{transform:`translate(${f==="right"?O+N:O}, 0)`,className:D.root,children:[!h&&v.jsx(P,x({y1:l.range()[0],y2:l.range()[1],className:D.line},k==null?void 0:k.axisLine)),j.map(({formattedValue:W,offset:K,labelOffset:Q},re)=>{const ee=L*(F+2),ne=Q;return v.jsxs("g",{transform:`translate(0, ${K})`,className:D.tickContainer,children:[!m&&v.jsx($,x({x2:L*F,className:D.tick},k==null?void 0:k.axisTick)),W!==void 0&&v.jsx(S,x({x:ee,y:ne,"transform-origin":`${ee}px ${ne}px`,sx:{fontSize:y},className:D.tickLabel},k==null?void 0:k.axisTickLabel,{children:W.toLocaleString()}))]},re)}),b&&v.jsx(A,x({},E,{sx:{fontSize:g,transform:`rotate(${L*90}deg)`,transformOrigin:`${E.x}px ${E.y}px`},className:D.label},k==null?void 0:k.axisLabel,{children:b}))]})}const kr=e=>e==null?null:typeof e=="object"?e.axisId:e,Tr=(e,t,n)=>typeof e=="object"?x({},e,{slots:x({},t,e==null?void 0:e.slots),slotProps:x({},n,e==null?void 0:e.slotProps)}):{slots:t,slotProps:n};function DM(e){const{topAxis:t,leftAxis:n,rightAxis:r,bottomAxis:o,slots:a,slotProps:s}=e,{xAxis:i,xAxisIds:l,yAxis:c,yAxisIds:u}=p.useContext(Wt),d=kr(n===void 0?u[0]:n),f=kr(o===void 0?l[0]:o),h=kr(t),m=kr(r);if(h!==null&&!i[h])throw Error(`MUI: id used for top axis "${h}" is not defined`);if(d!==null&&!c[d])throw Error(`MUI: id used for left axis "${d}" is not defined`);if(m!==null&&!c[m])throw Error(`MUI: id used for right axis "${m}" is not defined`);if(f!==null&&!i[f])throw Error(`MUI: id used for bottom axis "${f}" is not defined`);const y=Tr(t,a,s),b=Tr(o,a,s),g=Tr(n,a,s),M=Tr(r,a,s);return v.jsxs(p.Fragment,{children:[h&&v.jsx(pl,x({},y,{position:"top",axisId:h})),f&&v.jsx(pl,x({},b,{position:"bottom",axisId:f})),d&&v.jsx(ml,x({},g,{position:"left",axisId:d})),m&&v.jsx(ml,x({},M,{position:"right",axisId:m}))]})}function RM(e){if(e===null)return{getBoundingClientRect:()=>({width:0,height:0,x:0,y:0,top:0,right:0,bottom:0,left:0,toJSON:()=>""})};const{x:t,y:n}=e;return{getBoundingClientRect:()=>({width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t,toJSON:()=>JSON.stringify({width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t})})}}function NM(){const e=p.useContext(gs),[t,n]=p.useState(null);return p.useEffect(()=>{const r=e.current;if(r===null)return()=>{};const o=()=>{n(null)},a=s=>{n({x:s.clientX,y:s.clientY})};return r.addEventListener("mouseout",o),r.addEventListener("mousemove",a),()=>{r.removeEventListener("mouseout",o),r.removeEventListener("mousemove",a)}},[e]),t}function LM(e,t){if(e==="item")return t!==null;const n=t.x!==null,r=t.y!==null;return n||r}function OM(e){return Tt("MuiChartsTooltip",e)}const gl=Pt("MuiChartsTooltip",["root","markCell","labelCell","valueCell"]),Lu=X("div",{name:"MuiChartsTooltip",slot:"Container"})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),border:`1px solid ${(e.vars||e).palette.divider}`,borderRadius:e.shape.borderRadius})),Ou=X("table",{name:"MuiChartsTooltip",slot:"Table"})(({theme:e})=>({borderSpacing:0,"& thead td":{borderBottom:`solid ${(e.vars||e).palette.divider} 1px`}})),da=X("tr",{name:"MuiChartsTooltip",slot:"Row"})(({theme:e})=>({"tr:first-of-type& td":{paddingTop:e.spacing(1)},"tr:last-of-type& td":{paddingBottom:e.spacing(1)}})),Jt=X("td",{name:"MuiChartsTooltip",slot:"Cell"})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,[`&.${gl.labelCell}`]:{paddingLeft:e.spacing(1)},[`&.${gl.valueCell}`]:{paddingLeft:e.spacing(4),color:(e.vars||e).palette.text.primary},"td:first-of-type&":{paddingLeft:e.spacing(2)},"td:last-of-type&":{paddingRight:e.spacing(2)}})),_u=X(zd,{name:"MuiChartsTooltip",slot:"Mark"})(({theme:e,ownerState:t})=>({width:e.spacing(1),height:e.spacing(1),borderRadius:"50%",backgroundColor:t.color,borderColor:(e.vars||e).palette.background.paper,border:`solid ${(e.vars||e).palette.background.paper} ${e.spacing(.25)}`,boxSizing:"content-box"}));function _M(e){const{series:t,itemData:n,sx:r,classes:o}=e;if(n.dataIndex===void 0)return null;const{displayedLabel:a,color:s}=t.type==="pie"?{color:t.data[n.dataIndex].color,displayedLabel:t.data[n.dataIndex].label}:{color:t.color,displayedLabel:t.label},i=t.valueFormatter(t.data[n.dataIndex]);return v.jsx(Lu,{sx:r,className:o.root,children:v.jsx(Ou,{children:v.jsx("tbody",{children:v.jsxs(da,{children:[v.jsx(Jt,{className:o.markCell,children:v.jsx(_u,{ownerState:{color:s}})}),v.jsx(Jt,{className:o.labelCell,children:a}),v.jsx(Jt,{className:o.valueCell,children:i})]})})})})}function IM(e){const{content:t,itemData:n,sx:r,classes:o}=e,a=p.useContext(Dn)[n.type].series[n.seriesId],s=t??_M;return v.jsx(s,{itemData:n,series:a,sx:r,classes:o})}function AM(e){var t;const{series:n,axis:r,dataIndex:o,axisValue:a,sx:s,classes:i}=e;if(o==null)return null;const l=(t=r.valueFormatter)!=null?t:c=>c.toLocaleString();return v.jsx(Lu,{sx:s,className:i.root,children:v.jsxs(Ou,{children:[a!=null&&!r.hideTooltip&&v.jsx("thead",{children:v.jsx(da,{children:v.jsx(Jt,{colSpan:3,children:v.jsx(Ot,{children:l(a)})})})}),v.jsx("tbody",{children:n.map(({color:c,id:u,label:d,valueFormatter:f,data:h})=>v.jsxs(da,{children:[v.jsx(Jt,{className:i.markCell,children:v.jsx(_u,{ownerState:{color:c},boxShadow:1})}),v.jsx(Jt,{className:i.labelCell,children:d?v.jsx(Ot,{children:d}):null}),v.jsx(Jt,{className:i.valueCell,children:v.jsx(Ot,{children:f(h[o])})})]},u))})]})})}function jM(e){const{content:t,axisData:n,sx:r,classes:o}=e,a=(n.x&&n.x.index)!==void 0,s=a?n.x&&n.x.index:n.y&&n.y.index,i=a?n.x&&n.x.value:n.y&&n.y.value,{xAxisIds:l,xAxis:c,yAxisIds:u,yAxis:d}=p.useContext(Wt),f=p.useContext(Dn),h=a?l[0]:u[0],m=p.useMemo(()=>{const g=[];return Object.keys(f).filter(M=>["bar","line","scatter"].includes(M)).forEach(M=>{f[M].seriesOrder.forEach(w=>{const C=f[M].series[w],k=a?C.xAxisKey:C.yAxisKey;(k===void 0||k===h)&&g.push(f[M].series[w])})}),g},[h,a,f]),y=p.useMemo(()=>a?c[h]:d[h],[h,a,c,d]),b=t??AM;return v.jsx(b,{axisData:n,series:m,axis:y,dataIndex:s,axisValue:i,sx:r,classes:o})}const FM=e=>{const{classes:t}=e;return kt({root:["root"],markCell:["markCell"],labelCell:["labelCell"],valueCell:["valueCell"]},OM,t)};function BM(e){const{trigger:t="axis",itemContent:n,axisContent:r}=e,o=NM(),{item:a,axis:s}=p.useContext(Rn),i=t==="item"?a:s,l=LM(t,i),c=o!==null&&l,u=FM({classes:e.classes});return t==="none"?null:v.jsx(Jf,{children:c&&v.jsx(ec,{open:c,placement:"right-start",anchorEl:RM(o),style:{pointerEvents:"none"},children:t==="item"?v.jsx(IM,{itemData:i,content:n,sx:{mx:2},classes:u}):v.jsx(jM,{axisData:i,content:r,sx:{mx:2},classes:u})})})}const HM=e=>{const{seriesOrder:t,series:n}=e;return t.map(o=>({color:n[o].color,label:n[o].label,id:o})).filter(o=>o.label!==void 0)},WM=HM,zM=e=>{const{seriesOrder:t,series:n}=e;return t.map(o=>({color:n[o].color,label:n[o].label,id:o})).filter(o=>o.label!==void 0)},UM=zM,VM=e=>{const{seriesOrder:t,series:n}=e;return t.map(o=>({color:n[o].color,label:n[o].label,id:o})).filter(o=>o.label!==void 0)},YM=VM,KM=e=>{const{seriesOrder:t,series:n}=e;return t.flatMap(r=>n[r].data.map(o=>({color:o.color,label:o.label,id:o.id})).filter(o=>o.label!==void 0))},qM=KM,GM={bar:WM,scatter:UM,line:YM,pie:qM};function XM(e){return Object.keys(e).flatMap(t=>GM[t](e[t]))}function QM(e){return Tt("MuiChartsLegend",e)}Pt("MuiChartsLegend",["root","series","mark","label","column","row"]);const ZM=e=>{const{classes:t,direction:n}=e;return kt({root:["root",n],mark:["mark"],label:["label"],series:["series"]},QM,t)};function JM({position:e,drawingArea:t}){let n;switch(e.horizontal){case"left":n=`calc(var(--ChartsLegend-rootOffsetX, 0px) + ${t.left}px - var(--ChartsLegend-rootWidth))`;break;case"middle":n=`calc(var(--ChartsLegend-rootOffsetX, 0px) + ${t.left+t.width/2}px - 0.5 * var(--ChartsLegend-rootWidth))`;break;default:n=`calc(var(--ChartsLegend-rootOffsetX, 0px) + ${t.left+t.width}px)`;break}let r;switch(e.vertical){case"top":r=`calc(var(--ChartsLegend-rootOffsetY, 0px) + ${t.top}px - var(--ChartsLegend-rootHeight))`;break;case"middle":r=`calc(var(--ChartsLegend-rootOffsetY, 0px) + ${t.top+t.height/2}px - 0.5 * var(--ChartsLegend-rootHeight))`;break;default:r=`calc(var(--ChartsLegend-rootOffsetY, 0px) + ${t.top+t.height}px)`;break}return{transform:`translate(${n}, ${r})`}}const ek=X("g",{name:"MuiChartsLegend",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>{const{direction:t,drawingArea:n,offsetX:r,offsetY:o,seriesNumber:a,position:s}=e;return x({"--ChartsLegend-rootOffsetX":typeof r=="number"?`${r}px`:void 0,"--ChartsLegend-rootOffsetY":typeof o=="number"?`${o}px`:void 0,"--ChartsLegend-rootWidth":t==="row"?`calc(var(--ChartsLegend-itemWidth) * ${a} + var(--ChartsLegend-rootSpacing) * ${a-1} )`:"var(--ChartsLegend-itemWidth)","--ChartsLegend-rootHeight":t==="row"?"var(--ChartsLegend-itemMarkSize)":`calc(var(--ChartsLegend-itemMarkSize) * ${a} + var(--ChartsLegend-rootSpacing) * ${a-1} )`},JM({position:s,drawingArea:n,offsetX:r,offsetY:o}))}),tk=X("g",{name:"MuiChartsLegend",slot:"ChartsSeriesLegendGroup",overridesResolver:(e,t)=>t.series})(({ownerState:e})=>{const{direction:t,seriesIndex:n}=e;return t==="row"?{transform:`translate(calc(${n} * (var(--ChartsLegend-itemWidth) + var(--ChartsLegend-rootSpacing))), 0)`}:{transform:`translate(0, calc(${n} * (var(--ChartsLegend-itemMarkSize) + var(--ChartsLegend-rootSpacing))))`}}),nk=X("rect",{name:"MuiChartsLegend",slot:"Mark",overridesResolver:(e,t)=>t.mark})(({ownerState:e})=>({x:0,y:0,width:"var(--ChartsLegend-itemMarkSize)",height:"var(--ChartsLegend-itemMarkSize)",fill:e.color})),rk=X("text",{name:"MuiChartsLegend",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>x({},e.typography.body1,{color:"inherit",transform:`translate( + calc(var(--ChartsLegend-itemMarkSize) + var(--ChartsLegend-labelSpacing)), + calc(0.5 * var(--ChartsLegend-itemMarkSize)) + )`,fill:(e.vars||e).palette.text.primary,dominantBaseline:"central"})),ok={position:{horizontal:"middle",vertical:"top"},direction:"row",markSize:20,itemWidth:100,spacing:2};function ak(e){const{hidden:t,position:n,direction:r,offset:o,series:a,seriesToDisplay:s,drawingArea:i,classes:l}=e;return t?null:v.jsx(ek,{ownerState:{direction:r,offsetX:o==null?void 0:o.x,offsetY:o==null?void 0:o.y,seriesNumber:s.length,position:n,drawingArea:i},className:l.root,children:s.map(({id:c,label:u,color:d},f)=>v.jsxs(tk,{ownerState:x({direction:r,seriesIndex:f},a),className:l.series,children:[v.jsx(nk,{ownerState:{color:d},className:l.mark}),v.jsx(rk,{className:l.label,children:u})]},c))})}function sk(e){var t;const n=be({props:x({},ok,e),name:"MuiChartsLegend"}),{position:r,direction:o,offset:a,hidden:s,slots:i,slotProps:l}=n,c=lt(),u=ZM(x({},n,{theme:c})),d=p.useContext(ln),f=p.useContext(Dn),h=XM(f),m=(t=i==null?void 0:i.legend)!=null?t:ak,y=Ye({elementType:m,externalSlotProps:l==null?void 0:l.legend,additionalProps:{position:r,direction:o,offset:a,classes:u,drawingArea:d,series:f,hidden:s,seriesToDisplay:h},ownerState:{}});return v.jsx(m,x({},y))}function vl(e){return nr(e)?t=>e(t)+e.bandwidth()/2:t=>e(t)}function ik(e){const{x:t,y:n}=e,{xAxisIds:r,xAxis:o,yAxisIds:a,yAxis:s}=p.useContext(Wt),i=r[0],l=a[0],c=o[i].scale,u=s[l].scale,{axis:d}=p.useContext(Rn),f=vl(c),h=vl(u);return v.jsxs(p.Fragment,{children:[t==="band"&&d.x!==null&&nr(c)&&v.jsx("path",{d:`M ${c(d.x.value)-(c.step()-c.bandwidth())/2} ${u.range()[0]} l ${c.step()} 0 l 0 ${u.range()[1]-u.range()[0]} l ${-c.step()} 0 Z`,fill:"gray",fillOpacity:.1,style:{pointerEvents:"none"}}),n==="band"&&d.y!==null&&nr(u)&&v.jsx("path",{d:`M ${c.range()[0]} ${u(d.y.value)-(u.step()-u.bandwidth())/2} l 0 ${u.step()} l ${c.range()[1]-c.range()[0]} 0 l 0 ${-u.step()} Z`,fill:"gray",fillOpacity:.1,style:{pointerEvents:"none"}}),t==="line"&&d.x!==null&&v.jsx("path",{d:`M ${f(d.x.value)} ${u.range()[0]} L ${f(d.x.value)} ${u.range()[1]}`,stroke:"black",strokeDasharray:"5 2",style:{pointerEvents:"none"}}),n==="line"&&d.y!==null&&v.jsx("path",{d:`M ${c.range()[0]} ${h(d.y.value)} L ${c.range()[1]} ${h(d.y.value)}`,stroke:"black",strokeDasharray:"5 2",style:{pointerEvents:"none"}})]})}function lk(e){const{id:t,offset:n}=e,{left:r,top:o,width:a,height:s}=p.useContext(ln),i=x({top:0,right:0,bottom:0,left:0},n);return v.jsx("clipPath",{id:t,children:v.jsx("rect",{x:r-i.left,y:o-i.top,width:a+i.left+i.right,height:s+i.top+i.bottom})})}const xl=p.forwardRef(function(t,n){const{xAxis:r,yAxis:o,series:a,width:s,height:i,margin:l,colors:c,dataset:u,sx:d,layout:f,tooltip:h,axisHighlight:m,legend:y,topAxis:b,leftAxis:g,rightAxis:M,bottomAxis:w,children:C,slots:k,slotProps:T}=t,O=`${Wa()}-clip-path`,I=f==="horizontal"||f===void 0&&a.some(F=>F.layout==="horizontal"),N={scaleType:"band",data:Array.from({length:Math.max(...a.map(F=>{var j,L;return((j=(L=F.data)!=null?L:u)!=null?j:[]).length}))},(F,j)=>j)},R=x({},I?{y:"band"}:{x:"band"},m);return v.jsxs(kM,{ref:n,series:a.map(F=>x({type:"bar"},F,{layout:I?"horizontal":"vertical"})),width:s,height:i,margin:l,xAxis:r??(I?void 0:[x({id:ca},N)]),yAxis:o??(I?[x({id:ua},N)]:void 0),colors:c,dataset:u,sx:d,disableAxisListener:(h==null?void 0:h.trigger)!=="axis"&&(m==null?void 0:m.x)==="none"&&(m==null?void 0:m.y)==="none",children:[v.jsx("g",{clipPath:`url(#${O})`,children:v.jsx(gM,{slots:k,slotProps:T})}),v.jsx(DM,{topAxis:b,leftAxis:g,rightAxis:M,bottomAxis:w,slots:k,slotProps:T}),v.jsx(sk,x({},y,{slots:k,slotProps:T})),v.jsx(ik,x({},R)),v.jsx(BM,x({},h,{slots:k,slotProps:T})),v.jsx(lk,{id:O}),C]})}),ck=p.forwardRef(({chart:e="",isChartGroup:t=!1,chartData:n},r)=>{var c;const[o,a]=Nt.useState(((c=r==null?void 0:r.current)==null?void 0:c.offsetWidth)||0),s=gn(u=>u.theme),i=p.useMemo(()=>Pl({palette:{mode:s}}),[s]);p.useEffect(()=>{var u,d;(u=r==null?void 0:r.current)!=null&&u.offsetWidth&&a(((d=r==null?void 0:r.current)==null?void 0:d.offsetWidth)-8)},[r==null?void 0:r.current]);const l=(u,d)=>{var f,h,m;if(d&&u&&e!=="")return B(xl,{colors:["#babc00","#ff5555"],xAxis:[{id:"barCategories",dataKey:"xAxisData",data:[...(f=d==null?void 0:d.valueTypesMapped[e])==null?void 0:f.names],scaleType:"band"}],series:[{data:[...(h=d==null?void 0:d.valueTypesMapped[e])==null?void 0:h.values],label:"current"},{data:[...(m=d==null?void 0:d.valueTypesMapped[e])==null?void 0:m.diff],label:"previous"}],margin:{bottom:60,left:60},width:o,height:300});if(d&&!u)return B(xl,{colors:["#babc00","#ff5555"],xAxis:[{id:"barCategories",dataKey:"xAxisData",data:[...d==null?void 0:d.xAxisData],scaleType:"band"}],series:[{data:[...d==null?void 0:d.valueData],label:"current"},{data:[...d==null?void 0:d.diffData],label:"previous"}],margin:{bottom:60,left:60},width:o,height:300})};return B(yf,{theme:i,children:o>0&&n&&l(t,n)})}),uk=le("div",{target:"elsu4hb0"})({name:"wur8z8",styles:"display:flex;flex:1;flex-wrap:wrap;gap:4px"}),dk=e=>Ie("display:flex;flex:1;flex-direction:column;min-width:33%;border:1px solid ",e.neutral,";.label{display:flex;padding:6px 8px;text-align:center;}",""),bl=({chart:e="",rows:t,theme:n,hasDiff:r=!0,chartData:o})=>{const a=p.useRef(null);return oe("div",{className:Ve(dk(n)),ref:a,children:[e!==""&&B("div",{className:"label",children:e}),B(ck,{chartData:o,isChartGroup:e!=="",chart:e,rows:t,hasDiff:r,ref:a})]})},fk=(e,t,n,r)=>e.reduce((o,a,s)=>{var l;let i=(l=t[s])==null?void 0:l.split("=")[0];return o[i]===void 0&&(o[i]={},o[i].names=[],o[i].values=[],o[i].diff=[]),o[i].names.push(a),o[i].values.push(n[s]),o[i].diff.push(r[s]),o},{}),pk=e=>{const t=e==null?void 0:e.map(s=>s.name),n=e==null?void 0:e.map(s=>s.value),r=e==null?void 0:e.map(s=>s.diff<0?s.diff*-1:s.diff),o=e==null?void 0:e.map(s=>s.name.split("=")[0]),a=e==null?void 0:e.map(s=>s.name.split("=")[1]);return{xAxisData:t,valueData:n,diffData:r,labelTypes:o,valueTypes:a,valueTypesMapped:{},valueTypesKeys:[]}},hk=e=>p.useMemo(()=>{if(e&&(e==null?void 0:e.length)>0){const{xAxisData:t,valueData:n,diffData:r,labelTypes:o,valueTypes:a}=pk(e);let s={};(a==null?void 0:a[0])!==void 0&&(s=fk(a,t,n,r));let i=Object.keys(s);return{xAxisData:t,valueData:n,diffData:r,labelTypes:o,valueTypes:a,valueTypesMapped:s,valueTypesKeys:i}}return{xAxisData:[],valueData:[],diffData:[],labelTypes:[],valueTypes:[],valueTypesMapped:{},valueTypesKeys:[]}},[e]),mk=({rows:e,theme:t})=>{var r;const n=hk(e);return e.length===0?null:B(uk,{children:(n==null?void 0:n.valueTypes[0])!==void 0?(r=n==null?void 0:n.valueTypesKeys)==null?void 0:r.map((o,a)=>B(bl,{theme:t,rows:e,chart:o,hasDiff:!1,chartData:n},a)):B(bl,{theme:t,rows:e,chartData:n,hasDiff:!0})})},Iu=e=>Ie("display:table-row;align-items:center;padding:12px 8px;border-bottom:1px solid ",e.neutral,";.cell{display:table-cell;padding:12px 0px;width:auto;border-bottom:1px solid ",e.neutral,";}.cell-name{width:60%;cursor:pointer;transition:0.25s all;&:hover{background:",e.neutral,";.c-name{color:",e.primaryLight,";}}}.cell-header{font-size:10px;letter-spacing:1px;text-transform:uppercase;padding:12px;padding-left:0px;&.center{text-align:center;}&.start{text-align:left;}.end{text-align:right;padding:0;padding-right:0px!important;}}.interactive{transition:0.25s all;&:hover{background:",e.neutral,";cursor:pointer;}}.c-name{font-size:12px;color:",e.primaryLight,";cursor:pointer;margin:0px 12px;}.c-value{color:",e.contrast,";font-size:14px;width:auto;}.c-share-cont{align-items:center;display:flex;gap:1px;justify-content:flex-start;}.c-share{display:flex;font-size:12px;font-family:monospace;margin:0px 12px;}.c-progress{grid-gap:8px;align-items:center;display:grid;grid-template-columns:1fr auto;justify-content:center;}progress{background:",e.deep,";border-radius:3px;height:12px;border:1px solid ",e.ultraDeep,";display:flex;flex:1;}progress::-webkit-progress-bar{background-color:",e.deep,";border-radius:3px;}progress::-webkit-progress-value{background-color:",e.primary,";border-radius:3px;}progress::-moz-progress-bar{background-color:",e.primary,";border-radius:3px;}",""),gk=({theme:e,diff:t})=>oe("span",{className:"c-diff",title:`diff from previous day: ${t}`,style:{fontSize:"10px",padding:"5px",paddingBottom:"8px",color:t>0?e.accent:e.primary},children:[t===0?"":t>0?"↑":"↓",t===0?"":t," "]}),vk=({share:e})=>B("div",{className:"cell",children:B("div",{className:"c-share-cont",children:oe("div",{className:"c-progress",children:[B("progress",{value:e,max:100}),oe("span",{className:"c-share",children:[e.toFixed(2),"%"]})]})})}),xk=e=>Ie('display:flex;align-items:center;gap:8px;.square{content:"";width:0.75em;height:0.75em;background:',e?"orange":"green",";border-radius:2px;color:white;}.info-icon{font-size:12px;}.quota-num{font-size:12px;}",""),bk=({quota:e,cardinality:t,isQuotaWarning:n})=>oe("div",{className:Ve(xk(n)),children:[B("div",{className:"square"}),B("div",{className:"info-icon",children:B(Zr,{title:`cardinality over quota percentage ${n?"warning":"(no warning)"}`,children:B(Za,{fontSize:"inherit",style:{cursor:"pointer",opacity:`${n?1:.5}`}})})}),oe("p",{className:"quota-num",children:[Ec(t,e),"%"]})]}),yk=({name:e,value:t,diff:n,hasShare:r,share:o,theme:a,onFilter:s,source:i,quota:l})=>{const{handleDelete:c}=Ba(),{isLoading:u}=At(),d=p.useMemo(()=>{const f=Ec(t,l);return s0(f)},[l]);return oe("div",{className:Ve(Iu(a)),children:[B("div",{className:"cell cell-name",onClick:f=>s(f,{name:e,value:t,source:i}),children:B("div",{className:"c-name",children:e})}),B("div",{className:" cell",children:oe("div",{className:"c-value",children:[B("span",{children:t}),B(gk,{theme:a,diff:n})]})}),r&&B(vk,{share:o}),B("div",{className:"cell",children:B(bk,{quota:l,cardinality:t,isQuotaWarning:d})}),B("div",{className:"cell",children:B("div",{style:{display:"flex",alignItems:"center",justifyContent:"end",marginRight:"20px",flex:"1",height:"100%"},children:B(qc,{clearFingerPrints:f=>c(f,t),isLoading:u,label:e,value:t,source:i})})})]})},Ck=({theme:e,name:t,headerName:n,handleSort:r})=>oe("div",{className:Ve(Iu(e)),children:[B("div",{onClick:()=>r("name"),className:"cell-header interactive cell",children:t}),B("div",{onClick:()=>r("value"),className:"cell-header interactive cell",children:"Number of Series"}),n!=="labelValueCountByLabelName"&&B("div",{className:"cell-header cell",children:"Share in Total"}),B("div",{className:"cell-header cell start",children:"Quota"}),B("div",{className:"cell-header cell end",style:{textAlign:"right"},children:"Drop"})]}),wk=Ie({name:"pilqz3",styles:"display:flex;flex:1;align-items:center;justify-content:center;min-height:300px"}),Sk=Ie({name:"1h6zx21",styles:"border:4px solid #f3f3f3;border-top:4px solid #3498db;border-radius:50%;width:20px;height:20px;margin-left:4px;animation:spin 2s linear infinite;@keyframes spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}"}),Au=()=>B("div",{className:Ve(wk),children:B("div",{className:Ve(Sk)})}),Mk=({rows:e,theme:t,sectionHeader:n,sectionHeaderName:r})=>{const{seriesGroupStyles:o}=Gc(t),{sortedRows:a,handleSort:s}=Xc(e);return oe("div",{className:"c-table",children:[e&&B(Ck,{handleSort:s,headerName:r,name:n,theme:o}),a&&(a==null?void 0:a.length)>=0?a.map((i,l)=>Ad(yk,{...i,key:l,theme:o,hasShare:r!=="labelValueCountByLabelName"})):B(Au,{})]})},kk=({title:e,rows:t,sectionHeader:n,sectionHeaderName:r})=>{const o=jt(),{seriesGroupContainer:a}=Gc(o),{sortedRows:s}=Xc(t),i=p.useRef(null),[l,c]=p.useState(0);return oe("div",{className:a,ref:i,children:[B(j1,{theme:o,title:e,tabsValue:l,onTabChange:(d,f)=>{c(f)}}),l===0&&B(Mk,{title:e,rows:s,theme:o,sectionHeader:n,sectionHeaderName:r}),l===1&&B(mk,{rows:s,theme:o})]})},Tk=Ie({name:"aj5isq",styles:"display:flex;flex-direction:column;flex:1;height:100%;overflow-y:auto"}),Pk=Ie({name:"1c1c0f4",styles:"display:flex;flex-direction:column;flex:1;max-height:calc(100vh - 200px)"}),$k=({formattedSeries:e,isCardinality:t,isLoading:n})=>{const r=jt();return B("div",{className:Ve(Tk,t&&Pk),children:n?B(Au,{}):e==null?void 0:e.map((o,a)=>B(kk,{theme:r,...a0(o)},a))})},yl="cardinalityHistory",Ek=10;class Dk{constructor(){Kt(this,"history",[]);Kt(this,"maxHistory");Kt(this,"setMaxHistory",t=>{this.maxHistory=t});Kt(this,"getLocalHistory",()=>{try{const t=localStorage.getItem(yl);t&&typeof t=="string"&&(this.history=JSON.parse(t)||[])}catch(t){console.log("Error getting cardinality history",t)}return this.history});Kt(this,"setLocalHistoryItem",(t,n)=>{const r=this.getLocalHistory(),o=r.filter(i=>i.type!==t)||[],a=r.filter(i=>i.type===t)||[];a.length===this.maxHistory&&a.shift();const s=[...o,...a,{type:t,value:n}];localStorage.setItem(yl,JSON.stringify(s))});Kt(this,"getLocalHistoryItemsFromType",t=>this.getLocalHistory().filter(o=>o.type===t));this.maxHistory=Ek}}const Rk=()=>{const e=new Dk,t=e.getLocalHistoryItemsFromType("focusLabel"),n=e.getLocalHistoryItemsFromType("limitEntries"),r=p.useMemo(()=>t.map(l=>l.value),[t]),o=p.useMemo(()=>e.getLocalHistoryItemsFromType("timeSeriesSelector").map(c=>c.value),[e.getLocalHistoryItemsFromType("timeSeriesSelector")]),a=p.useMemo(()=>n.map(l=>l.value),[n]);return{historyManager:e,getHistory:()=>e.getLocalHistory(),setHistoryItem:(l,c)=>{e.setLocalHistoryItem(l,c)},focusLabelItems:r,timeSeriesSelectorItems:o,limitEntriesItems:a}},Nk=()=>{const e=Nl(),t=jt(),n=gn(d=>d.isCardinality);p.useEffect(()=>(e(ki(!0)),()=>{e(ki(!1))}),[]);const{setHistoryItem:r,focusLabelItems:o,timeSeriesSelectorItems:a,limitEntriesItems:s,historyManager:i}=Rk(),{totalSeries:l,formattedSeries:c,isLoading:u}=_1(i,r);return oe("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[B(L1,{theme:t,total:l,setHistoryItem:r,focusLabelItems:o,timeSeriesSelectorItems:a,limitEntriesItems:s,percent:35}),!u&&B($k,{formattedSeries:c,isCardinality:n,isLoading:u})]})},Lk={name:"Cardinality View",section:"Query Item",id:ha(),Component:Nk,description:"A cardinality view for labels",active:!1,visible:!0,roles:["admin","superAdmin"]};let Ok=[Uv,Lk];pd(Ok);const bT=e=>{var r,o;const{section:t,localProps:n}=e;return B("div",{className:"renderer-content",children:((r=Ps.getPlugins(t))==null?void 0:r.length)>0&&((o=Ps.getPlugins(t))==null?void 0:o.map(({name:a,Component:s},i)=>B(s,{localProps:n,name:a},i)))})};var xs={},_k=st;Object.defineProperty(xs,"__esModule",{value:!0});var Ik=xs.default=void 0,Ak=_k(it()),jk=v;Ik=xs.default=(0,Ak.default)((0,jk.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");const yT=e=>t=>{t({type:"SET_LINKS_HISTORY",linksHistory:e})},CT={info:"info",warning:"warning",error:"error",success:"success"};export{Uc as $,Zk as A,Oh as B,dT as C,lc as D,iT as E,ac as F,Jk as G,nT as H,eT as I,tT as J,aT as K,Qk as L,Jg as M,dr as N,zc as O,bT as P,uT as Q,hT as R,xT as S,Zr as T,gT as U,lT as V,ty as W,rT as X,pT as Y,oT as Z,cT as _,yT as a,vT as a0,mT as a1,pg as a2,ig as a3,Kh as a4,Za as a5,K0 as a6,I0 as a7,Ry as a8,e1 as a9,Ky as aa,Bc as ab,I1 as ac,Ti as ad,At as ae,Ab as af,hc as b,Fc as c,Ik as d,g1 as e,jd as f,Gk as g,Kc as h,_m as i,Mm as j,Dm as k,mm as l,l1 as m,CT as n,c1 as o,m1 as p,Yc as q,fT as r,qk as s,yf as t,lt as u,Ot as v,D1 as w,i1 as x,Xk as y,sT as z}; diff --git a/assets/consts-b1f58b04.js b/assets/consts-b1f58b04.js deleted file mode 100644 index 192c7d83..00000000 --- a/assets/consts-b1f58b04.js +++ /dev/null @@ -1,6 +0,0 @@ -var Iu=Object.defineProperty;var Au=(e,t,n)=>t in e?Iu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Wt=(e,t,n)=>(Au(e,typeof t!="symbol"?t+"":t,n),n);import{K as cl,L as ul,M as dl,q as aa,c as ae,m as de,O as fl,R as ju,S as pl,T as Fu,U as Bu,V as Hu,v as ms,t as so,W as Wu,X as zu,Y as Uu,Z as gs,b as me,n as ve,_ as Er,$ as Vu,a0 as Yu,a1 as hl,a2 as Ku,a3 as qu,a4 as Me,a5 as jn,s as X,o as Se,u as Ce,a6 as Gu,a7 as Je,a8 as vs,a9 as Xt,aa as Xu,ab as Qu,A as ml,ac as Jn,r as er,a as Yt,P as Vr,ad as Fn,ae as Zu,B as sa,af as gl,ag as Ju,f as Ot,d as B,g as Ve,h as Ae,i as it,j as oe,I as ed,F as Rr,x as Mr,e as kr,w as io,k as le}from"./index-a817164a.js";import{i as td,P as xs}from"./PluginManagerFactory-cd31b81c.js";import{d as J,a as x,n as ia,M as Ne,ah as lo,D as We,ai as xt,I as Ue,J as la,A as bs,Y as pt,a7 as Yn,X as ca,K as vl,aa as Bo,aj as nd,ak as rd,G as Ho,al as od,am as ad,a3 as co,a4 as ys,an as sd,V as id,W as ld,ao as xl,F as bl,ap as ua,E as da,aq as cd,ar as ud,j as _t,a0 as yl,a9 as dd,as as fd,u as fn,m as Cl}from"./vendor-c662a477.js";import{r as p,a as dr,R as Dt,b as pd,c as hd,g as md}from"./react-432945ee.js";import{o as Oe,a as ht,c as Cs,b as gd,u as tr,d as Yr,e as wl,f as Sl,r as lt,S as uo}from"./createSvgIcon-b33a10f9.js";import{j as v}from"./reactDnd-707fca38.js";import{B as vd,s as xd,d as bd}from"./DeleteOutlineOutlined-90e52d8e.js";import{T as yd,d as Cd,f as wd,j as Sd}from"./reactSelect-ab0ea613.js";const ck=e=>t=>{t({type:"SET_IS_SUBMIT",isSubmit:e})},Md=e=>t=>{t({type:"SET_AUTO_THEME",autoTheme:e})},kd=["className","component"];function Ml(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=cl("div",{shouldForwardProp:i=>i!=="theme"&&i!=="sx"&&i!=="as"})(ul);return p.forwardRef(function(l,c){const u=dl(n),d=aa(l),{className:f,component:h="div"}=d,m=J(d,kd);return v.jsx(a,x({as:h,ref:c,className:ae(f,o?o(r):r),theme:t&&u[t]||u},m))})}const Td=de("MuiBox",["root"]),Pd=Td,$d=Ml({defaultClassName:Pd.root,generateClassName:fl.generate}),Dd=$d,Ed=["ownerState"],Rd=["variants"],Nd=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ld(e){return Object.keys(e).length===0}function Od(e){return typeof e=="string"&&e.charCodeAt(0)>96}function fo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const _d=pl(),Id=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function fr({defaultTheme:e,theme:t,themeId:n}){return Ld(t)?e:t[n]||t}function Ad(e){return e?(t,n)=>n[e]:null}function Tr(e,t){let{ownerState:n}=t,r=J(t,Ed);const o=typeof e=="function"?e(x({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(a=>Tr(a,x({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let i=J(o,Rd);return a.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props(x({ownerState:n},r,n)):Object.keys(l.props).forEach(u=>{(n==null?void 0:n[u])!==l.props[u]&&r[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(i)||(i=[i]),i.push(typeof l.style=="function"?l.style(x({ownerState:n},r,n)):l.style))}),i}return o}function jd(e={}){const{themeId:t,defaultTheme:n=_d,rootShouldForwardProp:r=fo,slotShouldForwardProp:o=fo}=e,a=s=>ul(x({},s,{theme:fr(x({},s,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(s,i={})=>{ju(s,T=>T.filter(M=>!(M!=null&&M.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:f=Ad(Id(c))}=i,h=J(i,Nd),m=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,y=d||!1;let b,g=fo;c==="Root"||c==="root"?g=r:c?g=o:Od(s)&&(g=void 0);const S=cl(s,x({shouldForwardProp:g,label:b},h)),w=T=>typeof T=="function"&&T.__emotion_real!==T||Fu(T)?M=>Tr(T,x({},M,{theme:fr({theme:M.theme,defaultTheme:n,themeId:t})})):T,C=(T,...M)=>{let E=w(T);const O=M?M.map(w):[];l&&f&&O.push(N=>{const j=fr(x({},N,{defaultTheme:n,themeId:t}));if(!j.components||!j.components[l]||!j.components[l].styleOverrides)return null;const F=j.components[l].styleOverrides,L={};return Object.entries(F).forEach(([D,$])=>{L[D]=Tr($,x({},N,{theme:j}))}),f(N,L)}),l&&!m&&O.push(N=>{var j;const F=fr(x({},N,{defaultTheme:n,themeId:t})),L=F==null||(j=F.components)==null||(j=j[l])==null?void 0:j.variants;return Tr({variants:L},x({},N,{theme:F}))}),y||O.push(a);const I=O.length-M.length;if(Array.isArray(T)&&I>0){const N=new Array(I).fill("");E=[...T,...N],E.raw=[...T.raw,...N]}const R=S(E,...O);return s.muiName&&(R.muiName=s.muiName),R};return S.withConfig&&(C.withConfig=S.withConfig),C}}const Fd=jd(),Bd=Fd;function kl(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let ln;function Tl(){if(ln)return ln;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),ln="reverse",e.scrollLeft>0?ln="default":(e.scrollLeft=1,e.scrollLeft===0&&(ln="negative")),document.body.removeChild(e),ln}function Hd(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(Tl()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Wd=p.createContext(null),Pl=Wd;function $l(){return p.useContext(Pl)}const zd=typeof Symbol=="function"&&Symbol.for,Ud=zd?Symbol.for("mui.nested"):"__THEME_NESTED__";function Vd(e,t){return typeof t=="function"?t(e):x({},e,t)}function Dl(e){const{children:t,theme:n}=e,r=$l(),o=p.useMemo(()=>{const a=r===null?n:Vd(r,n);return a!=null&&(a[Ud]=r!==null),a},[n,r]);return v.jsx(Pl.Provider,{value:o,children:t})}const Yd=["value"],El=p.createContext();function Kd(e){let{value:t}=e,n=J(e,Yd);return v.jsx(El.Provider,x({value:t??!0},n))}const nr=()=>{const e=p.useContext(El);return e??!1},ws={};function Ss(e,t,n,r=!1){return p.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const a=n(o),s=e?x({},t,{[e]:a}):a;return r?()=>s:s}return e?x({},t,{[e]:n}):x({},t,n)},[e,t,n,r])}function qd(e){const{children:t,theme:n,themeId:r}=e,o=Bu(ws),a=$l()||ws,s=Ss(r,o,n),i=Ss(r,a,n,!0),l=s.direction==="rtl";return v.jsx(Dl,{theme:i,children:v.jsx(yd.Provider,{value:s,children:v.jsx(Kd,{value:l,children:t})})})}const Gd=["component","direction","spacing","divider","children","className","useFlexGap"],Xd=pl(),Qd=Bd("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Zd(e){return Hu({props:e,name:"MuiStack",defaultTheme:Xd})}function Jd(e,t){const n=p.Children.toArray(e).filter(Boolean);return n.reduce((r,o,a)=>(r.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],tf=({ownerState:e,theme:t})=>{let n=x({display:"flex",flexDirection:"column"},ms({theme:t},so({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=Wu(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),a=so({values:e.direction,base:o}),s=so({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((l,c,u)=>{if(!a[l]){const f=c>0?a[u[c-1]]:"column";a[l]=f}}),n=zu(n,ms({theme:t},s,(l,c)=>e.useFlexGap?{gap:gs(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ef(c?a[c]:e.direction)}`]:gs(r,l)}}))}return n=Uu(t.breakpoints,n),n};function nf(e={}){const{createStyledComponent:t=Qd,useThemeProps:n=Zd,componentName:r="MuiStack"}=e,o=()=>me({root:["root"]},l=>ve(r,l),{}),a=t(tf);return p.forwardRef(function(l,c){const u=n(l),d=aa(u),{component:f="div",direction:h="column",spacing:m=0,divider:y,children:b,className:g,useFlexGap:S=!1}=d,w=J(d,Gd),C={direction:h,spacing:m,useFlexGap:S},T=o();return v.jsx(a,x({as:f,ownerState:C,ref:c,className:ae(T.root,g)},w,{children:y?Jd(b,y):b}))})}function ct(){const e=dl(Vu);return e[Er]||e}const rf=["theme"];function of(e){let{theme:t}=e,n=J(e,rf);const r=t[Er];return v.jsx(qd,x({},n,{themeId:r?Er:void 0,theme:r||t}))}const Ms={disabled:!1};var af=function(t){return t.scrollTop},Bn="unmounted",Ut="exited",Vt="entering",dn="entered",Wo="exiting",kt=function(e){Yu(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=o,i=s&&!s.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?i?(l=Ut,a.appearStatus=Vt):l=dn:r.unmountOnExit||r.mountOnEnter?l=Bn:l=Ut,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var s=o.in;return s&&a.status===Bn?{status:Ut}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var a=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Vt&&s!==dn&&(a=Vt):(s===Vt||s===dn)&&(a=Wo)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,s,i;return a=s=i=o,o!=null&&typeof o!="number"&&(a=o.exit,s=o.enter,i=o.appear!==void 0?o.appear:s),{exit:a,enter:s,appear:i}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===Vt){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:dr.findDOMNode(this);s&&af(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ut&&this.setState({status:Bn})},n.performEnter=function(o){var a=this,s=this.props.enter,i=this.context?this.context.isMounting:o,l=this.props.nodeRef?[i]:[dr.findDOMNode(this),i],c=l[0],u=l[1],d=this.getTimeouts(),f=i?d.appear:d.enter;if(!o&&!s||Ms.disabled){this.safeSetState({status:dn},function(){a.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Vt},function(){a.props.onEntering(c,u),a.onTransitionEnd(f,function(){a.safeSetState({status:dn},function(){a.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,a=this.props.exit,s=this.getTimeouts(),i=this.props.nodeRef?void 0:dr.findDOMNode(this);if(!a||Ms.disabled){this.safeSetState({status:Ut},function(){o.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:Wo},function(){o.props.onExiting(i),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Ut},function(){o.props.onExited(i)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},n.setNextCallback=function(o){var a=this,s=!0;return this.nextCallback=function(i){s&&(s=!1,a.nextCallback=null,o(i))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:dr.findDOMNode(this),i=o==null&&!this.props.addEndListener;if(!s||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Bn)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var i=J(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Dt.createElement(hl.Provider,{value:null},typeof s=="function"?s(o,i):Dt.cloneElement(Dt.Children.only(s),i))},t}(Dt.Component);kt.contextType=hl;kt.propTypes={};function cn(){}kt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:cn,onEntering:cn,onEntered:cn,onExit:cn,onExiting:cn,onExited:cn};kt.UNMOUNTED=Bn;kt.EXITED=Ut;kt.ENTERING=Vt;kt.ENTERED=dn;kt.EXITING=Wo;const fa=kt,pa=e=>e.scrollTop;function hn(e,t){var n,r;const{timeout:o,easing:a,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof a=="object"?a[t.mode]:a,delay:s.transitionDelay}}const sf={disableDefaultClasses:!1},lf=p.createContext(sf);function cf(e){const{disableDefaultClasses:t}=p.useContext(lf);return n=>t?"":e(n)}const uf=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ye(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,s=J(e,uf),i=a?{}:Ku(r,o),{props:l,internalRef:c}=qu(x({},s,{externalSlotProps:i})),u=Me(c,i==null?void 0:i.ref,(t=e.additionalProps)==null?void 0:t.ref);return jn(n,x({},l,{ref:u}),o)}function df(e){return ve("MuiTypography",e)}de("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ff=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],pf=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:s}=e,i={root:["root",a,e.align!=="inherit"&&`align${Se(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return me(i,df,s)},hf=X("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Se(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>x({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),ks={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},mf={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},gf=e=>mf[e]||e,vf=p.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiTypography"}),o=gf(r.color),a=aa(x({},r,{color:o})),{align:s="inherit",className:i,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:d=!1,variant:f="body1",variantMapping:h=ks}=a,m=J(a,ff),y=x({},a,{align:s,color:o,className:i,component:l,gutterBottom:c,noWrap:u,paragraph:d,variant:f,variantMapping:h}),b=l||(d?"p":h[f]||ks[f])||"span",g=pf(y);return v.jsx(hf,x({as:b,ref:n,ownerState:y,className:ae(g.root,i)},m))}),Rt=vf,Rl="base";function xf(e){return`${Rl}--${e}`}function bf(e,t){return`${Rl}-${e}-${t}`}function Nl(e,t){const n=Gu[t];return n?xf(n):bf(e,t)}function yf(e,t){const n={};return t.forEach(r=>{n[r]=Nl(e,r)}),n}const Cf=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function wf(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Sf(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Mf(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Sf(e))}function kf(e){const t=[],n=[];return Array.from(e.querySelectorAll(Cf)).forEach((r,o)=>{const a=wf(r);a===-1||!Mf(r)||(a===0?t.push(r):n.push({documentOrder:o,tabIndex:a,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function Tf(){return!0}function Pf(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=kf,isEnabled:s=Tf,open:i}=e,l=p.useRef(!1),c=p.useRef(null),u=p.useRef(null),d=p.useRef(null),f=p.useRef(null),h=p.useRef(!1),m=p.useRef(null),y=Me(t.ref,m),b=p.useRef(null);p.useEffect(()=>{!i||!m.current||(h.current=!n)},[n,i]),p.useEffect(()=>{if(!i||!m.current)return;const w=Oe(m.current);return m.current.contains(w.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[i]),p.useEffect(()=>{if(!i||!m.current)return;const w=Oe(m.current),C=E=>{b.current=E,!(r||!s()||E.key!=="Tab")&&w.activeElement===m.current&&E.shiftKey&&(l.current=!0,u.current&&u.current.focus())},T=()=>{const E=m.current;if(E===null)return;if(!w.hasFocus()||!s()||l.current){l.current=!1;return}if(E.contains(w.activeElement)||r&&w.activeElement!==c.current&&w.activeElement!==u.current)return;if(w.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!h.current)return;let O=[];if((w.activeElement===c.current||w.activeElement===u.current)&&(O=a(m.current)),O.length>0){var I,R;const N=!!((I=b.current)!=null&&I.shiftKey&&((R=b.current)==null?void 0:R.key)==="Tab"),j=O[0],F=O[O.length-1];typeof j!="string"&&typeof F!="string"&&(N?F.focus():j.focus())}else E.focus()};w.addEventListener("focusin",T),w.addEventListener("keydown",C,!0);const M=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&T()},50);return()=>{clearInterval(M),w.removeEventListener("focusin",T),w.removeEventListener("keydown",C,!0)}},[n,r,o,s,i,a]);const g=w=>{d.current===null&&(d.current=w.relatedTarget),h.current=!0,f.current=w.target;const C=t.props.onFocus;C&&C(w)},S=w=>{d.current===null&&(d.current=w.relatedTarget),h.current=!0};return v.jsxs(p.Fragment,{children:[v.jsx("div",{tabIndex:i?0:-1,onFocus:S,ref:c,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:y,onFocus:g}),v.jsx("div",{tabIndex:i?0:-1,onFocus:S,ref:u,"data-testid":"sentinelEnd"})]})}function $f(e){return typeof e=="function"?e():e}const Ll=p.forwardRef(function(t,n){const{children:r,container:o,disablePortal:a=!1}=t,[s,i]=p.useState(null),l=Me(p.isValidElement(r)?r.ref:null,n);if(Je(()=>{a||i($f(o)||document.body)},[o,a]),Je(()=>{if(s&&!a)return vs(n,s),()=>{vs(n,null)}},[n,s,a]),a){if(p.isValidElement(r)){const c={ref:l};return p.cloneElement(r,c)}return v.jsx(p.Fragment,{children:r})}return v.jsx(p.Fragment,{children:s&&pd.createPortal(r,s)})});function Df(e){const t=Oe(e);return t.body===e?ht(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function zn(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ts(e){return parseInt(ht(e).getComputedStyle(e).paddingRight,10)||0}function Ef(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Ps(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,s=>{const i=a.indexOf(s)===-1,l=!Ef(s);i&&l&&zn(s,o)})}function po(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function Rf(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Df(r)){const s=kl(Oe(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Ts(r)+s}px`;const i=Oe(r).querySelectorAll(".mui-fixed");[].forEach.call(i,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Ts(l)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Oe(r).body;else{const s=r.parentElement,i=ht(r);a=(s==null?void 0:s.nodeName)==="HTML"&&i.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:i})=>{a?s.style.setProperty(i,a):s.style.removeProperty(i)})}}function Nf(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Lf{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&zn(t.modalRef,!1);const o=Nf(n);Ps(n,t.mount,t.modalRef,o,!0);const a=po(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=po(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=Rf(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=po(this.containers,s=>s.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&zn(t.modalRef,n),Ps(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&zn(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Of(e){return typeof e=="function"?e():e}function _f(e){return e?e.props.hasOwnProperty("in"):!1}const If=new Lf;function Af(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=If,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:i,children:l,onClose:c,open:u,rootRef:d}=e,f=p.useRef({}),h=p.useRef(null),m=p.useRef(null),y=Me(m,d),[b,g]=p.useState(!u),S=_f(l);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const C=()=>Oe(h.current),T=()=>(f.current.modalRef=m.current,f.current.mount=h.current,f.current),M=()=>{o.mount(T(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=Xt(()=>{const $=Of(t)||C().body;o.add(T(),$),m.current&&M()}),O=p.useCallback(()=>o.isTopModal(T()),[o]),I=Xt($=>{h.current=$,$&&(u&&O()?M():m.current&&zn(m.current,w))}),R=p.useCallback(()=>{o.remove(T(),w)},[w,o]);p.useEffect(()=>()=>{R()},[R]),p.useEffect(()=>{u?E():(!S||!a)&&R()},[u,R,S,a,E]);const N=$=>P=>{var k;(k=$.onKeyDown)==null||k.call($,P),!(P.key!=="Escape"||P.which===229||!O())&&(n||(P.stopPropagation(),c&&c(P,"escapeKeyDown")))},j=$=>P=>{var k;(k=$.onClick)==null||k.call($,P),P.target===P.currentTarget&&c&&c(P,"backdropClick")};return{getRootProps:($={})=>{const P=Xu(e);delete P.onTransitionEnter,delete P.onTransitionExited;const k=x({},P,$);return x({role:"presentation"},k,{onKeyDown:N(k),ref:y})},getBackdropProps:($={})=>{const P=$;return x({"aria-hidden":!0},P,{onClick:j(P),open:u})},getTransitionProps:()=>{const $=()=>{g(!1),s&&s()},P=()=>{g(!0),i&&i(),a&&R()};return{onEnter:Cs($,l==null?void 0:l.props.onEnter),onExited:Cs(P,l==null?void 0:l.props.onExited)}},rootRef:y,portalRef:I,isTopModal:O,exited:b,hasTransition:S}}function jf(e){const{children:t,defer:n=!1,fallback:r=null}=e,[o,a]=p.useState(!1);return Je(()=>{n||a(!0)},[n]),p.useEffect(()=>{n&&a(!0)},[n]),v.jsx(p.Fragment,{children:o?t:r})}var _e="top",et="bottom",tt="right",Ie="left",ha="auto",rr=[_e,et,tt,Ie],mn="start",Kn="end",Ff="clippingParents",Ol="viewport",Rn="popper",Bf="reference",$s=rr.reduce(function(e,t){return e.concat([t+"-"+mn,t+"-"+Kn])},[]),_l=[].concat(rr,[ha]).reduce(function(e,t){return e.concat([t,t+"-"+mn,t+"-"+Kn])},[]),Hf="beforeRead",Wf="read",zf="afterRead",Uf="beforeMain",Vf="main",Yf="afterMain",Kf="beforeWrite",qf="write",Gf="afterWrite",Xf=[Hf,Wf,zf,Uf,Vf,Yf,Kf,qf,Gf];function mt(e){return e?(e.nodeName||"").toLowerCase():null}function Ke(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Jt(e){var t=Ke(e).Element;return e instanceof t||e instanceof Element}function Ze(e){var t=Ke(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ma(e){if(typeof ShadowRoot>"u")return!1;var t=Ke(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Qf(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!Ze(a)||!mt(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(s){var i=o[s];i===!1?a.removeAttribute(s):a.setAttribute(s,i===!0?"":i)}))})}function Zf(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),i=s.reduce(function(l,c){return l[c]="",l},{});!Ze(o)||!mt(o)||(Object.assign(o.style,i),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const Jf={name:"applyStyles",enabled:!0,phase:"write",fn:Qf,effect:Zf,requires:["computeStyles"]};function dt(e){return e.split("-")[0]}var Qt=Math.max,Nr=Math.min,gn=Math.round;function zo(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Il(){return!/^((?!chrome|android).)*safari/i.test(zo())}function vn(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&Ze(e)&&(o=e.offsetWidth>0&&gn(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&gn(r.height)/e.offsetHeight||1);var s=Jt(e)?Ke(e):window,i=s.visualViewport,l=!Il()&&n,c=(r.left+(l&&i?i.offsetLeft:0))/o,u=(r.top+(l&&i?i.offsetTop:0))/a,d=r.width/o,f=r.height/a;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function ga(e){var t=vn(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Al(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ma(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ct(e){return Ke(e).getComputedStyle(e)}function ep(e){return["table","td","th"].indexOf(mt(e))>=0}function It(e){return((Jt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Kr(e){return mt(e)==="html"?e:e.assignedSlot||e.parentNode||(ma(e)?e.host:null)||It(e)}function Ds(e){return!Ze(e)||Ct(e).position==="fixed"?null:e.offsetParent}function tp(e){var t=/firefox/i.test(zo()),n=/Trident/i.test(zo());if(n&&Ze(e)){var r=Ct(e);if(r.position==="fixed")return null}var o=Kr(e);for(ma(o)&&(o=o.host);Ze(o)&&["html","body"].indexOf(mt(o))<0;){var a=Ct(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function or(e){for(var t=Ke(e),n=Ds(e);n&&ep(n)&&Ct(n).position==="static";)n=Ds(n);return n&&(mt(n)==="html"||mt(n)==="body"&&Ct(n).position==="static")?t:n||tp(e)||t}function va(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Un(e,t,n){return Qt(e,Nr(t,n))}function np(e,t,n){var r=Un(e,t,n);return r>n?n:r}function jl(){return{top:0,right:0,bottom:0,left:0}}function Fl(e){return Object.assign({},jl(),e)}function Bl(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var rp=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Fl(typeof t!="number"?t:Bl(t,rr))};function op(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,i=dt(n.placement),l=va(i),c=[Ie,tt].indexOf(i)>=0,u=c?"height":"width";if(!(!a||!s)){var d=rp(o.padding,n),f=ga(a),h=l==="y"?_e:Ie,m=l==="y"?et:tt,y=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],b=s[l]-n.rects.reference[l],g=or(a),S=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,w=y/2-b/2,C=d[h],T=S-f[u]-d[m],M=S/2-f[u]/2+w,E=Un(C,M,T),O=l;n.modifiersData[r]=(t={},t[O]=E,t.centerOffset=E-M,t)}}function ap(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Al(t.elements.popper,o)&&(t.elements.arrow=o))}const sp={name:"arrow",enabled:!0,phase:"main",fn:op,effect:ap,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xn(e){return e.split("-")[1]}var ip={top:"auto",right:"auto",bottom:"auto",left:"auto"};function lp(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:gn(n*o)/o||0,y:gn(r*o)/o||0}}function Es(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,i=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=s.x,h=f===void 0?0:f,m=s.y,y=m===void 0?0:m,b=typeof u=="function"?u({x:h,y}):{x:h,y};h=b.x,y=b.y;var g=s.hasOwnProperty("x"),S=s.hasOwnProperty("y"),w=Ie,C=_e,T=window;if(c){var M=or(n),E="clientHeight",O="clientWidth";if(M===Ke(n)&&(M=It(n),Ct(M).position!=="static"&&i==="absolute"&&(E="scrollHeight",O="scrollWidth")),M=M,o===_e||(o===Ie||o===tt)&&a===Kn){C=et;var I=d&&M===T&&T.visualViewport?T.visualViewport.height:M[E];y-=I-r.height,y*=l?1:-1}if(o===Ie||(o===_e||o===et)&&a===Kn){w=tt;var R=d&&M===T&&T.visualViewport?T.visualViewport.width:M[O];h-=R-r.width,h*=l?1:-1}}var N=Object.assign({position:i},c&&ip),j=u===!0?lp({x:h,y},Ke(n)):{x:h,y};if(h=j.x,y=j.y,l){var F;return Object.assign({},N,(F={},F[C]=S?"0":"",F[w]=g?"0":"",F.transform=(T.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",F))}return Object.assign({},N,(t={},t[C]=S?y+"px":"",t[w]=g?h+"px":"",t.transform="",t))}function cp(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,i=n.roundOffsets,l=i===void 0?!0:i,c={placement:dt(t.placement),variation:xn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Es(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Es(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const up={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:cp,data:{}};var pr={passive:!0};function dp(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,s=r.resize,i=s===void 0?!0:s,l=Ke(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",n.update,pr)}),i&&l.addEventListener("resize",n.update,pr),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",n.update,pr)}),i&&l.removeEventListener("resize",n.update,pr)}}const fp={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:dp,data:{}};var pp={left:"right",right:"left",bottom:"top",top:"bottom"};function Pr(e){return e.replace(/left|right|bottom|top/g,function(t){return pp[t]})}var hp={start:"end",end:"start"};function Rs(e){return e.replace(/start|end/g,function(t){return hp[t]})}function xa(e){var t=Ke(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ba(e){return vn(It(e)).left+xa(e).scrollLeft}function mp(e,t){var n=Ke(e),r=It(e),o=n.visualViewport,a=r.clientWidth,s=r.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;var c=Il();(c||!c&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:i+ba(e),y:l}}function gp(e){var t,n=It(e),r=xa(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Qt(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Qt(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),i=-r.scrollLeft+ba(e),l=-r.scrollTop;return Ct(o||n).direction==="rtl"&&(i+=Qt(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:i,y:l}}function ya(e){var t=Ct(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Hl(e){return["html","body","#document"].indexOf(mt(e))>=0?e.ownerDocument.body:Ze(e)&&ya(e)?e:Hl(Kr(e))}function Vn(e,t){var n;t===void 0&&(t=[]);var r=Hl(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=Ke(r),s=o?[a].concat(a.visualViewport||[],ya(r)?r:[]):r,i=t.concat(s);return o?i:i.concat(Vn(Kr(s)))}function Uo(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function vp(e,t){var n=vn(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Ns(e,t,n){return t===Ol?Uo(mp(e,n)):Jt(t)?vp(t,n):Uo(gp(It(e)))}function xp(e){var t=Vn(Kr(e)),n=["absolute","fixed"].indexOf(Ct(e).position)>=0,r=n&&Ze(e)?or(e):e;return Jt(r)?t.filter(function(o){return Jt(o)&&Al(o,r)&&mt(o)!=="body"}):[]}function bp(e,t,n,r){var o=t==="clippingParents"?xp(e):[].concat(t),a=[].concat(o,[n]),s=a[0],i=a.reduce(function(l,c){var u=Ns(e,c,r);return l.top=Qt(u.top,l.top),l.right=Nr(u.right,l.right),l.bottom=Nr(u.bottom,l.bottom),l.left=Qt(u.left,l.left),l},Ns(e,s,r));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Wl(e){var t=e.reference,n=e.element,r=e.placement,o=r?dt(r):null,a=r?xn(r):null,s=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,l;switch(o){case _e:l={x:s,y:t.y-n.height};break;case et:l={x:s,y:t.y+t.height};break;case tt:l={x:t.x+t.width,y:i};break;case Ie:l={x:t.x-n.width,y:i};break;default:l={x:t.x,y:t.y}}var c=o?va(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case mn:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Kn:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function qn(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,i=n.boundary,l=i===void 0?Ff:i,c=n.rootBoundary,u=c===void 0?Ol:c,d=n.elementContext,f=d===void 0?Rn:d,h=n.altBoundary,m=h===void 0?!1:h,y=n.padding,b=y===void 0?0:y,g=Fl(typeof b!="number"?b:Bl(b,rr)),S=f===Rn?Bf:Rn,w=e.rects.popper,C=e.elements[m?S:f],T=bp(Jt(C)?C:C.contextElement||It(e.elements.popper),l,u,s),M=vn(e.elements.reference),E=Wl({reference:M,element:w,strategy:"absolute",placement:o}),O=Uo(Object.assign({},w,E)),I=f===Rn?O:M,R={top:T.top-I.top+g.top,bottom:I.bottom-T.bottom+g.bottom,left:T.left-I.left+g.left,right:I.right-T.right+g.right},N=e.modifiersData.offset;if(f===Rn&&N){var j=N[o];Object.keys(R).forEach(function(F){var L=[tt,et].indexOf(F)>=0?1:-1,D=[_e,et].indexOf(F)>=0?"y":"x";R[F]+=j[D]*L})}return R}function yp(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?_l:l,u=xn(r),d=u?i?$s:$s.filter(function(m){return xn(m)===u}):rr,f=d.filter(function(m){return c.indexOf(m)>=0});f.length===0&&(f=d);var h=f.reduce(function(m,y){return m[y]=qn(e,{placement:y,boundary:o,rootBoundary:a,padding:s})[dt(y)],m},{});return Object.keys(h).sort(function(m,y){return h[m]-h[y]})}function Cp(e){if(dt(e)===ha)return[];var t=Pr(e);return[Rs(e),t,Rs(t)]}function wp(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,i=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,y=n.allowedAutoPlacements,b=t.options.placement,g=dt(b),S=g===b,w=l||(S||!m?[Pr(b)]:Cp(b)),C=[b].concat(w).reduce(function(ee,ne){return ee.concat(dt(ne)===ha?yp(t,{placement:ne,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:y}):ne)},[]),T=t.rects.reference,M=t.rects.popper,E=new Map,O=!0,I=C[0],R=0;R=0,D=L?"width":"height",$=qn(t,{placement:N,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),P=L?F?tt:Ie:F?et:_e;T[D]>M[D]&&(P=Pr(P));var k=Pr(P),A=[];if(a&&A.push($[j]<=0),i&&A.push($[P]<=0,$[k]<=0),A.every(function(ee){return ee})){I=N,O=!1;break}E.set(N,A)}if(O)for(var W=m?3:1,K=function(ne){var ie=C.find(function(ge){var ce=E.get(ge);if(ce)return ce.slice(0,ne).every(function(H){return H})});if(ie)return I=ie,"break"},Q=W;Q>0;Q--){var re=K(Q);if(re==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const Sp={name:"flip",enabled:!0,phase:"main",fn:wp,requiresIfExists:["offset"],data:{_skip:!1}};function Ls(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Os(e){return[_e,tt,et,Ie].some(function(t){return e[t]>=0})}function Mp(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=qn(t,{elementContext:"reference"}),i=qn(t,{altBoundary:!0}),l=Ls(s,r),c=Ls(i,o,a),u=Os(l),d=Os(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const kp={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Mp};function Tp(e,t,n){var r=dt(e),o=[Ie,_e].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],i=a[1];return s=s||0,i=(i||0)*o,[Ie,tt].indexOf(r)>=0?{x:i,y:s}:{x:s,y:i}}function Pp(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,s=_l.reduce(function(u,d){return u[d]=Tp(d,t.rects,a),u},{}),i=s[t.placement],l=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const $p={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Pp};function Dp(e){var t=e.state,n=e.name;t.modifiersData[n]=Wl({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Ep={name:"popperOffsets",enabled:!0,phase:"read",fn:Dp,data:{}};function Rp(e){return e==="x"?"y":"x"}function Np(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,i=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,h=f===void 0?!0:f,m=n.tetherOffset,y=m===void 0?0:m,b=qn(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=dt(t.placement),S=xn(t.placement),w=!S,C=va(g),T=Rp(C),M=t.modifiersData.popperOffsets,E=t.rects.reference,O=t.rects.popper,I=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,R=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(M){if(a){var F,L=C==="y"?_e:Ie,D=C==="y"?et:tt,$=C==="y"?"height":"width",P=M[C],k=P+b[L],A=P-b[D],W=h?-O[$]/2:0,K=S===mn?E[$]:O[$],Q=S===mn?-O[$]:-E[$],re=t.elements.arrow,ee=h&&re?ga(re):{width:0,height:0},ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:jl(),ie=ne[L],ge=ne[D],ce=Un(0,E[$],ee[$]),H=w?E[$]/2-W-ce-ie-R.mainAxis:K-ce-ie-R.mainAxis,V=w?-E[$]/2+W+ce+ge+R.mainAxis:Q+ce+ge+R.mainAxis,q=t.elements.arrow&&or(t.elements.arrow),_=q?C==="y"?q.clientTop||0:q.clientLeft||0:0,z=(F=N==null?void 0:N[C])!=null?F:0,U=P+H-z-_,G=P+V-z,xe=Un(h?Nr(k,U):k,P,h?Qt(A,G):A);M[C]=xe,j[C]=xe-P}if(i){var he,be=C==="x"?_e:Ie,Re=C==="x"?et:tt,ke=M[T],je=T==="y"?"height":"width",Fe=ke+b[be],qe=ke-b[Re],Te=[_e,Ie].indexOf(g)!==-1,Tt=(he=N==null?void 0:N[T])!=null?he:0,gt=Te?Fe:ke-E[je]-O[je]-Tt+R.altAxis,jt=Te?ke+E[je]+O[je]-Tt-R.altAxis:qe,Ft=h&&Te?np(gt,ke,jt):Un(h?gt:Fe,ke,h?jt:qe);M[T]=Ft,j[T]=Ft-ke}t.modifiersData[r]=j}}const Lp={name:"preventOverflow",enabled:!0,phase:"main",fn:Np,requiresIfExists:["offset"]};function Op(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function _p(e){return e===Ke(e)||!Ze(e)?xa(e):Op(e)}function Ip(e){var t=e.getBoundingClientRect(),n=gn(t.width)/e.offsetWidth||1,r=gn(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Ap(e,t,n){n===void 0&&(n=!1);var r=Ze(t),o=Ze(t)&&Ip(t),a=It(t),s=vn(e,o,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((mt(t)!=="body"||ya(a))&&(i=_p(t)),Ze(t)?(l=vn(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=ba(a))),{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function jp(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(i){if(!n.has(i)){var l=t.get(i);l&&o(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function Fp(e){var t=jp(e);return Xf.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Bp(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Hp(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var _s={placement:"bottom",modifiers:[],strategy:"absolute"};function Is(){for(var e=arguments.length,t=new Array(e),n=0;nme({root:["root"]},cf(Vp)),Qp={},Zp=p.forwardRef(function(t,n){var r;const{anchorEl:o,children:a,direction:s,disablePortal:i,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:f,slotProps:h={},slots:m={},TransitionProps:y}=t,b=J(t,Yp),g=p.useRef(null),S=Me(g,n),w=p.useRef(null),C=Me(w,f),T=p.useRef(C);Je(()=>{T.current=C},[C]),p.useImperativeHandle(f,()=>w.current,[]);const M=qp(u,s),[E,O]=p.useState(M),[I,R]=p.useState(Vo(o));p.useEffect(()=>{w.current&&w.current.forceUpdate()}),p.useEffect(()=>{o&&R(Vo(o))},[o]),Je(()=>{if(!I||!c)return;const D=k=>{O(k.placement)};let $=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:k})=>{D(k)}}];l!=null&&($=$.concat(l)),d&&d.modifiers!=null&&($=$.concat(d.modifiers));const P=Up(I,g.current,x({placement:M},d,{modifiers:$}));return T.current(P),()=>{P.destroy(),T.current(null)}},[I,i,l,c,d,M]);const N={placement:E};y!==null&&(N.TransitionProps=y);const j=Xp(),F=(r=m.root)!=null?r:"div",L=Ye({elementType:F,externalSlotProps:h.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:S},ownerState:t,className:j.root});return v.jsx(F,x({},L,{children:typeof a=="function"?a(N):a}))}),Ul=p.forwardRef(function(t,n){const{anchorEl:r,children:o,container:a,direction:s="ltr",disablePortal:i=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:f=Qp,popperRef:h,style:m,transition:y=!1,slotProps:b={},slots:g={}}=t,S=J(t,Kp),[w,C]=p.useState(!0),T=()=>{C(!1)},M=()=>{C(!0)};if(!l&&!u&&(!y||w))return null;let E;if(a)E=a;else if(r){const R=Vo(r);E=R&&Gp(R)?Oe(R).body:Oe(null).body}const O=!u&&l&&(!y||w)?"none":void 0,I=y?{in:u,onEnter:T,onExited:M}:void 0;return v.jsx(Ll,{disablePortal:i,container:E,children:v.jsx(Zp,x({anchorEl:r,direction:s,disablePortal:i,modifiers:c,ref:n,open:y?!w:u,placement:d,popperOptions:f,popperRef:h,slotProps:b,slots:g},S,{style:x({position:"fixed",top:0,left:0,display:O},m),TransitionProps:I,children:o}))})});var Ca={};Object.defineProperty(Ca,"__esModule",{value:!0});var Vl=Ca.default=void 0,Jp=th(p),eh=Qu;function Yl(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Yl=function(r){return r?n:t})(e)}function th(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Yl(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function nh(e){return Object.keys(e).length===0}function rh(e=null){const t=Jp.useContext(eh.ThemeContext);return!t||nh(t)?e:t}Vl=Ca.default=rh;const oh=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],ah=X(Ul,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sh=p.forwardRef(function(t,n){var r;const o=Vl(),a=Ce({props:t,name:"MuiPopper"}),{anchorEl:s,component:i,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:f,modifiers:h,open:m,placement:y,popperOptions:b,popperRef:g,transition:S,slots:w,slotProps:C}=a,T=J(a,oh),M=(r=w==null?void 0:w.root)!=null?r:l==null?void 0:l.Root,E=x({anchorEl:s,container:u,disablePortal:d,keepMounted:f,modifiers:h,open:m,placement:y,popperOptions:b,popperRef:g,transition:S},T);return v.jsx(ah,x({as:i,direction:o==null?void 0:o.direction,slots:{root:M},slotProps:C??c},E,{ref:n}))}),Kl=sh;function ql({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const ih=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],lh={entering:{opacity:1},entered:{opacity:1}},ch=p.forwardRef(function(t,n){const r=ct(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:i,easing:l,in:c,onEnter:u,onEntered:d,onEntering:f,onExit:h,onExited:m,onExiting:y,style:b,timeout:g=o,TransitionComponent:S=fa}=t,w=J(t,ih),C=p.useRef(null),T=Me(C,i.ref,n),M=L=>D=>{if(L){const $=C.current;D===void 0?L($):L($,D)}},E=M(f),O=M((L,D)=>{pa(L);const $=hn({style:b,timeout:g,easing:l},{mode:"enter"});L.style.webkitTransition=r.transitions.create("opacity",$),L.style.transition=r.transitions.create("opacity",$),u&&u(L,D)}),I=M(d),R=M(y),N=M(L=>{const D=hn({style:b,timeout:g,easing:l},{mode:"exit"});L.style.webkitTransition=r.transitions.create("opacity",D),L.style.transition=r.transitions.create("opacity",D),h&&h(L)}),j=M(m),F=L=>{a&&a(C.current,L)};return v.jsx(S,x({appear:s,in:c,nodeRef:C,onEnter:O,onEntered:I,onEntering:E,onExit:N,onExited:j,onExiting:R,addEndListener:F,timeout:g},w,{children:(L,D)=>p.cloneElement(i,x({style:x({opacity:0,visibility:L==="exited"&&!c?"hidden":void 0},lh[L],b,i.props.style),ref:T},D))}))}),Gl=ch;function uh(e){return ve("MuiBackdrop",e)}de("MuiBackdrop",["root","invisible"]);const dh=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],fh=e=>{const{classes:t,invisible:n}=e;return me({root:["root",n&&"invisible"]},uh,t)},ph=X("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>x({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),hh=p.forwardRef(function(t,n){var r,o,a;const s=Ce({props:t,name:"MuiBackdrop"}),{children:i,className:l,component:c="div",components:u={},componentsProps:d={},invisible:f=!1,open:h,slotProps:m={},slots:y={},TransitionComponent:b=Gl,transitionDuration:g}=s,S=J(s,dh),w=x({},s,{component:c,invisible:f}),C=fh(w),T=(r=m.root)!=null?r:d.root;return v.jsx(b,x({in:h,timeout:g},S,{children:v.jsx(ph,x({"aria-hidden":!0},T,{as:(o=(a=y.root)!=null?a:u.Root)!=null?o:c,className:ae(C.root,l,T==null?void 0:T.className),ownerState:x({},w,T==null?void 0:T.ownerState),classes:C,ref:n,children:i}))}))}),Xl=hh,mh=de("MuiBox",["root"]),gh=mh,vh=ml(),xh=Ml({themeId:Er,defaultTheme:vh,defaultClassName:gh.root,generateClassName:fl.generate}),bh=xh,yh=Jn(v.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Ch=Jn(v.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),wh=Jn(v.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Sh(e){return ve("MuiCheckbox",e)}const Mh=de("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),ho=Mh,kh=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Th=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${Se(r)}`,`size${Se(o)}`]},s=me(a,Sh,t);return x({},t,s)},Ph=X(gd,{shouldForwardProp:e=>er(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Se(n.size)}`],n.color!=="default"&&t[`color${Se(n.color)}`]]}})(({theme:e,ownerState:t})=>x({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Yt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${ho.checked}, &.${ho.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${ho.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),$h=v.jsx(Ch,{}),Dh=v.jsx(yh,{}),Eh=v.jsx(wh,{}),Rh=p.forwardRef(function(t,n){var r,o;const a=Ce({props:t,name:"MuiCheckbox"}),{checkedIcon:s=$h,color:i="primary",icon:l=Dh,indeterminate:c=!1,indeterminateIcon:u=Eh,inputProps:d,size:f="medium",className:h}=a,m=J(a,kh),y=c?u:l,b=c?u:s,g=x({},a,{color:i,indeterminate:c,size:f}),S=Th(g);return v.jsx(Ph,x({type:"checkbox",inputProps:x({"data-indeterminate":c},d),icon:p.cloneElement(y,{fontSize:(r=y.props.fontSize)!=null?r:f}),checkedIcon:p.cloneElement(b,{fontSize:(o=b.props.fontSize)!=null?o:f}),ownerState:g,ref:n,className:ae(S.root,h)},m,{classes:S}))}),Nh=Rh;function Lh(e){return ve("MuiModal",e)}de("MuiModal",["root","hidden","backdrop"]);const Oh=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],_h=e=>{const{open:t,exited:n,classes:r}=e;return me({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Lh,r)},Ih=X("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>x({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Ah=X(Xl,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),jh=p.forwardRef(function(t,n){var r,o,a,s,i,l;const c=Ce({name:"MuiModal",props:t}),{BackdropComponent:u=Ah,BackdropProps:d,className:f,closeAfterTransition:h=!1,children:m,container:y,component:b,components:g={},componentsProps:S={},disableAutoFocus:w=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:T=!1,disablePortal:M=!1,disableRestoreFocus:E=!1,disableScrollLock:O=!1,hideBackdrop:I=!1,keepMounted:R=!1,onBackdropClick:N,open:j,slotProps:F,slots:L}=c,D=J(c,Oh),$=x({},c,{closeAfterTransition:h,disableAutoFocus:w,disableEnforceFocus:C,disableEscapeKeyDown:T,disablePortal:M,disableRestoreFocus:E,disableScrollLock:O,hideBackdrop:I,keepMounted:R}),{getRootProps:P,getBackdropProps:k,getTransitionProps:A,portalRef:W,isTopModal:K,exited:Q,hasTransition:re}=Af(x({},$,{rootRef:n})),ee=x({},$,{exited:Q}),ne=_h(ee),ie={};if(m.props.tabIndex===void 0&&(ie.tabIndex="-1"),re){const{onEnter:z,onExited:U}=A();ie.onEnter=z,ie.onExited=U}const ge=(r=(o=L==null?void 0:L.root)!=null?o:g.Root)!=null?r:Ih,ce=(a=(s=L==null?void 0:L.backdrop)!=null?s:g.Backdrop)!=null?a:u,H=(i=F==null?void 0:F.root)!=null?i:S.root,V=(l=F==null?void 0:F.backdrop)!=null?l:S.backdrop,q=Ye({elementType:ge,externalSlotProps:H,externalForwardedProps:D,getSlotProps:P,additionalProps:{ref:n,as:b},ownerState:ee,className:ae(f,H==null?void 0:H.className,ne==null?void 0:ne.root,!ee.open&&ee.exited&&(ne==null?void 0:ne.hidden))}),_=Ye({elementType:ce,externalSlotProps:V,additionalProps:d,getSlotProps:z=>k(x({},z,{onClick:U=>{N&&N(U),z!=null&&z.onClick&&z.onClick(U)}})),className:ae(V==null?void 0:V.className,d==null?void 0:d.className,ne==null?void 0:ne.backdrop),ownerState:ee});return!R&&!j&&(!re||Q)?null:v.jsx(Ll,{ref:W,container:y,disablePortal:M,children:v.jsxs(ge,x({},q,{children:[!I&&u?v.jsx(ce,x({},_)):null,v.jsx(Pf,{disableEnforceFocus:C,disableAutoFocus:w,disableRestoreFocus:E,isEnabled:K,open:j,children:p.cloneElement(m,ie)})]}))})}),wa=jh;function Fh(e){return ve("MuiDialog",e)}const Bh=de("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),mo=Bh,Hh=p.createContext({}),Ql=Hh,Wh=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],zh=X(Xl,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Uh=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${Se(n)}`],paper:["paper",`paperScroll${Se(n)}`,`paperWidth${Se(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return me(s,Fh,t)},Vh=X(wa,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Yh=X("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Se(n.scroll)}`]]}})(({ownerState:e})=>x({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),Kh=X(Vr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Se(n.scroll)}`],t[`paperWidth${Se(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>x({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${mo.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${mo.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${mo.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),qh=p.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiDialog"}),o=ct(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":i,BackdropComponent:l,BackdropProps:c,children:u,className:d,disableEscapeKeyDown:f=!1,fullScreen:h=!1,fullWidth:m=!1,maxWidth:y="sm",onBackdropClick:b,onClose:g,open:S,PaperComponent:w=Vr,PaperProps:C={},scroll:T="paper",TransitionComponent:M=Gl,transitionDuration:E=a,TransitionProps:O}=r,I=J(r,Wh),R=x({},r,{disableEscapeKeyDown:f,fullScreen:h,fullWidth:m,maxWidth:y,scroll:T}),N=Uh(R),j=p.useRef(),F=P=>{j.current=P.target===P.currentTarget},L=P=>{j.current&&(j.current=null,b&&b(P),g&&g(P,"backdropClick"))},D=tr(i),$=p.useMemo(()=>({titleId:D}),[D]);return v.jsx(Vh,x({className:ae(N.root,d),closeAfterTransition:!0,components:{Backdrop:zh},componentsProps:{backdrop:x({transitionDuration:E,as:l},c)},disableEscapeKeyDown:f,onClose:g,open:S,ref:n,onClick:L,ownerState:R},I,{children:v.jsx(M,x({appear:!0,in:S,timeout:E,role:"presentation"},O,{children:v.jsx(Yh,{className:ae(N.container),onMouseDown:F,ownerState:R,children:v.jsx(Kh,x({as:w,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":D},C,{className:ae(N.paper,C.className),ownerState:R,children:v.jsx(Ql.Provider,{value:$,children:u})}))})}))}))}),Zl=qh;function Gh(e){return ve("MuiDialogActions",e)}de("MuiDialogActions",["root","spacing"]);const Xh=["className","disableSpacing"],Qh=e=>{const{classes:t,disableSpacing:n}=e;return me({root:["root",!n&&"spacing"]},Gh,t)},Zh=X("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>x({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Jh=p.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=r,s=J(r,Xh),i=x({},r,{disableSpacing:a}),l=Qh(i);return v.jsx(Zh,x({className:ae(l.root,o),ownerState:i,ref:n},s))}),em=Jh;function tm(e){return ve("MuiDialogContent",e)}de("MuiDialogContent",["root","dividers"]);function nm(e){return ve("MuiDialogTitle",e)}const rm=de("MuiDialogTitle",["root"]),om=rm,am=["className","dividers"],sm=e=>{const{classes:t,dividers:n}=e;return me({root:["root",n&&"dividers"]},tm,t)},im=X("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>x({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${om.root} + &`]:{paddingTop:0}})),lm=p.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=r,s=J(r,am),i=x({},r,{dividers:a}),l=sm(i);return v.jsx(im,x({className:ae(l.root,o),ownerState:i,ref:n},s))}),cm=lm;function um(e){return ve("MuiDialogContentText",e)}de("MuiDialogContentText",["root"]);const dm=["children","className"],fm=e=>{const{classes:t}=e,r=me({root:["root"]},um,t);return x({},t,r)},pm=X(Rt,{shouldForwardProp:e=>er(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hm=p.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiDialogContentText"}),{className:o}=r,a=J(r,dm),s=fm(a);return v.jsx(pm,x({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:a,className:ae(s.root,o)},r,{classes:s}))}),mm=hm,gm=["className","id"],vm=e=>{const{classes:t}=e;return me({root:["root"]},nm,t)},xm=X(Rt,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),bm=p.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=r,s=J(r,gm),i=r,l=vm(i),{titleId:c=a}=p.useContext(Ql);return v.jsx(xm,x({component:"h2",className:ae(l.root,o),ownerState:i,ref:n,variant:"h6",id:a??c},s))}),ym=bm;function uk(e){return ve("MuiDivider",e)}const Cm=de("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),As=Cm,wm=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Sm(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),a=ht(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const c=a.getComputedStyle(t);s=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let i=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const c=s.split("(")[1].split(")")[0].split(",");i=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+i-r.left}px)`:`translateX(${a.innerWidth+i-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-i}px)`:`translateX(-${r.left+r.width-i}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${a.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function Mm(e){return typeof e=="function"?e():e}function hr(e,t,n){const r=Mm(n),o=Sm(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const km=p.forwardRef(function(t,n){const r=ct(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:i=!0,children:l,container:c,direction:u="down",easing:d=o,in:f,onEnter:h,onEntered:m,onEntering:y,onExit:b,onExited:g,onExiting:S,style:w,timeout:C=a,TransitionComponent:T=fa}=t,M=J(t,wm),E=p.useRef(null),O=Me(l.ref,E,n),I=k=>A=>{k&&(A===void 0?k(E.current):k(E.current,A))},R=I((k,A)=>{hr(u,k,c),pa(k),h&&h(k,A)}),N=I((k,A)=>{const W=hn({timeout:C,style:w,easing:d},{mode:"enter"});k.style.webkitTransition=r.transitions.create("-webkit-transform",x({},W)),k.style.transition=r.transitions.create("transform",x({},W)),k.style.webkitTransform="none",k.style.transform="none",y&&y(k,A)}),j=I(m),F=I(S),L=I(k=>{const A=hn({timeout:C,style:w,easing:d},{mode:"exit"});k.style.webkitTransition=r.transitions.create("-webkit-transform",A),k.style.transition=r.transitions.create("transform",A),hr(u,k,c),b&&b(k)}),D=I(k=>{k.style.webkitTransition="",k.style.transition="",g&&g(k)}),$=k=>{s&&s(E.current,k)},P=p.useCallback(()=>{E.current&&hr(u,E.current,c)},[u,c]);return p.useEffect(()=>{if(f||u==="down"||u==="right")return;const k=Yr(()=>{E.current&&hr(u,E.current,c)}),A=ht(E.current);return A.addEventListener("resize",k),()=>{k.clear(),A.removeEventListener("resize",k)}},[u,f,c]),p.useEffect(()=>{f||P()},[f,P]),v.jsx(T,x({nodeRef:E,onEnter:R,onEntered:j,onEntering:N,onExit:L,onExited:D,onExiting:F,addEndListener:$,appear:i,in:f,timeout:C},M,{children:(k,A)=>p.cloneElement(l,x({ref:O,style:x({visibility:k==="exited"&&!f?"hidden":void 0},w,l.props.style)},A))}))}),Tm=km;function Pm(e){return ve("MuiDrawer",e)}de("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const $m=["BackdropProps"],Dm=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],Jl=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},Em=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Se(n)}`,r!=="temporary"&&`paperAnchorDocked${Se(n)}`]};return me(o,Pm,t)},Rm=X(wa,{name:"MuiDrawer",slot:"Root",overridesResolver:Jl})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),js=X("div",{shouldForwardProp:er,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Jl})({flex:"0 0 auto"}),Nm=X(Vr,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Se(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${Se(n.anchor)}`]]}})(({theme:e,ownerState:t})=>x({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),ec={left:"right",right:"left",top:"down",bottom:"up"};function Lm(e){return["left","right"].indexOf(e)!==-1}function Om({direction:e},t){return e==="rtl"&&Lm(t)?ec[t]:t}const _m=p.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiDrawer"}),o=ct(),a=nr(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:i="left",BackdropProps:l,children:c,className:u,elevation:d=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:h}={},onClose:m,open:y=!1,PaperProps:b={},SlideProps:g,TransitionComponent:S=Tm,transitionDuration:w=s,variant:C="temporary"}=r,T=J(r.ModalProps,$m),M=J(r,Dm),E=p.useRef(!1);p.useEffect(()=>{E.current=!0},[]);const O=Om({direction:a?"rtl":"ltr"},i),R=x({},r,{anchor:i,elevation:d,open:y,variant:C},M),N=Em(R),j=v.jsx(Nm,x({elevation:C==="temporary"?d:0,square:!0},b,{className:ae(N.paper,b.className),ownerState:R,children:c}));if(C==="permanent")return v.jsx(js,x({className:ae(N.root,N.docked,u),ownerState:R,ref:n},M,{children:j}));const F=v.jsx(S,x({in:y,direction:ec[O],timeout:w,appear:E.current},g,{children:j}));return C==="persistent"?v.jsx(js,x({className:ae(N.root,N.docked,u),ownerState:R,ref:n},M,{children:F})):v.jsx(Rm,x({BackdropProps:x({},l,h,{transitionDuration:w}),className:ae(N.root,N.modal,u),open:y,ownerState:R,onClose:m,hideBackdrop:f,ref:n},M,T,{children:F}))}),Im=_m,Am=nf({createStyledComponent:X("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ce({props:e,name:"MuiStack"})}),jm=Am;function Fm(e){return ve("MuiFormControlLabel",e)}const Bm=de("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Hn=Bm,Hm=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Wm=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e,s={root:["root",n&&"disabled",`labelPlacement${Se(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return me(s,Fm,t)},zm=X("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Hn.label}`]:t.label},t.root,t[`labelPlacement${Se(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>x({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Hn.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Hn.label}`]:{[`&.${Hn.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),Um=X("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Hn.error}`]:{color:(e.vars||e).palette.error.main}})),Vm=p.forwardRef(function(t,n){var r,o;const a=Ce({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:i={},control:l,disabled:c,disableTypography:u,label:d,labelPlacement:f="end",required:h,slotProps:m={}}=a,y=J(a,Hm),b=wl(),g=(r=c??l.props.disabled)!=null?r:b==null?void 0:b.disabled,S=h??l.props.required,w={disabled:g,required:S};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof l.props[I]>"u"&&typeof a[I]<"u"&&(w[I]=a[I])});const C=ql({props:a,muiFormControl:b,states:["error"]}),T=x({},a,{disabled:g,labelPlacement:f,required:S,error:C.error}),M=Wm(T),E=(o=m.typography)!=null?o:i.typography;let O=d;return O!=null&&O.type!==Rt&&!u&&(O=v.jsx(Rt,x({component:"span"},E,{className:ae(M.label,E==null?void 0:E.className),children:O}))),v.jsxs(zm,x({className:ae(M.root,s),ownerState:T,ref:n},y,{children:[p.cloneElement(l,w),S?v.jsxs(jm,{display:"block",children:[O,v.jsxs(Um,{ownerState:T,"aria-hidden":!0,className:M.asterisk,children:[" ","*"]})]}):O]}))}),Ym=Vm;function Km(e){return ve("MuiFormGroup",e)}de("MuiFormGroup",["root","row","error"]);const qm=["className","row"],Gm=e=>{const{classes:t,row:n,error:r}=e;return me({root:["root",n&&"row",r&&"error"]},Km,t)},Xm=X("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>x({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),Qm=p.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1}=r,s=J(r,qm),i=wl(),l=ql({props:r,muiFormControl:i,states:["error"]}),c=x({},r,{row:a,error:l.error}),u=Gm(c);return v.jsx(Xm,x({className:ae(u.root,o),ownerState:c,ref:n},s))}),Zm=Qm,Jm=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Yo(e){return`scale(${e}, ${e**2})`}const eg={entering:{opacity:1,transform:Yo(1)},entered:{opacity:1,transform:"none"}},go=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),tc=p.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:s,in:i,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:f,onExiting:h,style:m,timeout:y="auto",TransitionComponent:b=fa}=t,g=J(t,Jm),S=Fn(),w=p.useRef(),C=ct(),T=p.useRef(null),M=Me(T,a.ref,n),E=D=>$=>{if(D){const P=T.current;$===void 0?D(P):D(P,$)}},O=E(u),I=E((D,$)=>{pa(D);const{duration:P,delay:k,easing:A}=hn({style:m,timeout:y,easing:s},{mode:"enter"});let W;y==="auto"?(W=C.transitions.getAutoHeightDuration(D.clientHeight),w.current=W):W=P,D.style.transition=[C.transitions.create("opacity",{duration:W,delay:k}),C.transitions.create("transform",{duration:go?W:W*.666,delay:k,easing:A})].join(","),l&&l(D,$)}),R=E(c),N=E(h),j=E(D=>{const{duration:$,delay:P,easing:k}=hn({style:m,timeout:y,easing:s},{mode:"exit"});let A;y==="auto"?(A=C.transitions.getAutoHeightDuration(D.clientHeight),w.current=A):A=$,D.style.transition=[C.transitions.create("opacity",{duration:A,delay:P}),C.transitions.create("transform",{duration:go?A:A*.666,delay:go?P:P||A*.333,easing:k})].join(","),D.style.opacity=0,D.style.transform=Yo(.75),d&&d(D)}),F=E(f),L=D=>{y==="auto"&&S.start(w.current||0,D),r&&r(T.current,D)};return v.jsx(b,x({appear:o,in:i,nodeRef:T,onEnter:I,onEntered:R,onEntering:O,onExit:j,onExited:F,onExiting:N,addEndListener:L,timeout:y==="auto"?null:y},g,{children:(D,$)=>p.cloneElement(a,x({style:x({opacity:0,transform:Yo(.75),visibility:D==="exited"&&!i?"hidden":void 0},eg[D],m,a.props.style),ref:M},$))}))});tc.muiSupportAuto=!0;const Ko=tc,tg=p.createContext({}),qo=tg;function ng(e){return ve("MuiList",e)}de("MuiList",["root","padding","dense","subheader"]);const rg=["children","className","component","dense","disablePadding","subheader"],og=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return me({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},ng,t)},ag=X("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>x({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),sg=p.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiList"}),{children:o,className:a,component:s="ul",dense:i=!1,disablePadding:l=!1,subheader:c}=r,u=J(r,rg),d=p.useMemo(()=>({dense:i}),[i]),f=x({},r,{component:s,dense:i,disablePadding:l}),h=og(f);return v.jsx(qo.Provider,{value:d,children:v.jsxs(ag,x({as:s,className:ae(h.root,a),ref:n,ownerState:f},u,{children:[c,o]}))})}),ig=sg,lg=de("MuiListItemIcon",["root","alignItemsFlexStart"]),Fs=lg,cg=de("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Bs=cg,ug=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function vo(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Hs(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function nc(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Nn(e,t,n,r,o,a){let s=!1,i=o(e,t,t?n:!1);for(;i;){if(i===e.firstChild){if(s)return!1;s=!0}const l=r?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!nc(i,a)||l)i=o(e,i,n);else return i.focus(),!0}return!1}const dg=p.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:s,className:i,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu"}=t,f=J(t,ug),h=p.useRef(null),m=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Je(()=>{o&&h.current.focus()},[o]),p.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,{direction:C})=>{const T=!h.current.style.width;if(w.clientHeight{const C=h.current,T=w.key,M=Oe(C).activeElement;if(T==="ArrowDown")w.preventDefault(),Nn(C,M,c,l,vo);else if(T==="ArrowUp")w.preventDefault(),Nn(C,M,c,l,Hs);else if(T==="Home")w.preventDefault(),Nn(C,null,c,l,vo);else if(T==="End")w.preventDefault(),Nn(C,null,c,l,Hs);else if(T.length===1){const E=m.current,O=T.toLowerCase(),I=performance.now();E.keys.length>0&&(I-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&O!==E.keys[0]&&(E.repeating=!1)),E.lastTime=I,E.keys.push(O);const R=M&&!E.repeating&&nc(M,E);E.previousKeyMatched&&(R||Nn(C,M,!1,l,vo,E))?w.preventDefault():E.previousKeyMatched=!1}u&&u(w)},b=Me(h,n);let g=-1;p.Children.forEach(s,(w,C)=>{if(!p.isValidElement(w)){g===C&&(g+=1,g>=s.length&&(g=-1));return}w.props.disabled||(d==="selectedMenu"&&w.props.selected||g===-1)&&(g=C),g===C&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(g+=1,g>=s.length&&(g=-1))});const S=p.Children.map(s,(w,C)=>{if(C===g){const T={};return a&&(T.autoFocus=!0),w.props.tabIndex===void 0&&d==="selectedMenu"&&(T.tabIndex=0),p.cloneElement(w,T)}return w});return v.jsx(ig,x({role:"menu",ref:b,className:i,onKeyDown:y,tabIndex:o?0:-1},f,{children:S}))}),fg=dg;function pg(e){return ve("MuiPopover",e)}de("MuiPopover",["root","paper"]);const hg=["onEntering"],mg=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],gg=["slotProps"];function Ws(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function zs(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Us(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function xo(e){return typeof e=="function"?e():e}const vg=e=>{const{classes:t}=e;return me({root:["root"],paper:["paper"]},pg,t)},xg=X(wa,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),rc=X(Vr,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),bg=p.forwardRef(function(t,n){var r,o,a;const s=Ce({props:t,name:"MuiPopover"}),{action:i,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:f,className:h,container:m,elevation:y=8,marginThreshold:b=16,open:g,PaperProps:S={},slots:w,slotProps:C,transformOrigin:T={vertical:"top",horizontal:"left"},TransitionComponent:M=Ko,transitionDuration:E="auto",TransitionProps:{onEntering:O}={},disableScrollLock:I=!1}=s,R=J(s.TransitionProps,hg),N=J(s,mg),j=(r=C==null?void 0:C.paper)!=null?r:S,F=p.useRef(),L=Me(F,j.ref),D=x({},s,{anchorOrigin:c,anchorReference:d,elevation:y,marginThreshold:b,externalPaperSlotProps:j,transformOrigin:T,TransitionComponent:M,transitionDuration:E,TransitionProps:R}),$=vg(D),P=p.useCallback(()=>{if(d==="anchorPosition")return u;const z=xo(l),G=(z&&z.nodeType===1?z:Oe(F.current).body).getBoundingClientRect();return{top:G.top+Ws(G,c.vertical),left:G.left+zs(G,c.horizontal)}},[l,c.horizontal,c.vertical,u,d]),k=p.useCallback(z=>({vertical:Ws(z,T.vertical),horizontal:zs(z,T.horizontal)}),[T.horizontal,T.vertical]),A=p.useCallback(z=>{const U={width:z.offsetWidth,height:z.offsetHeight},G=k(U);if(d==="none")return{top:null,left:null,transformOrigin:Us(G)};const xe=P();let he=xe.top-G.vertical,be=xe.left-G.horizontal;const Re=he+U.height,ke=be+U.width,je=ht(xo(l)),Fe=je.innerHeight-b,qe=je.innerWidth-b;if(b!==null&&heFe){const Te=Re-Fe;he-=Te,G.vertical+=Te}if(b!==null&&beqe){const Te=ke-qe;be-=Te,G.horizontal+=Te}return{top:`${Math.round(he)}px`,left:`${Math.round(be)}px`,transformOrigin:Us(G)}},[l,d,P,k,b]),[W,K]=p.useState(g),Q=p.useCallback(()=>{const z=F.current;if(!z)return;const U=A(z);U.top!==null&&(z.style.top=U.top),U.left!==null&&(z.style.left=U.left),z.style.transformOrigin=U.transformOrigin,K(!0)},[A]);p.useEffect(()=>(I&&window.addEventListener("scroll",Q),()=>window.removeEventListener("scroll",Q)),[l,I,Q]);const re=(z,U)=>{O&&O(z,U),Q()},ee=()=>{K(!1)};p.useEffect(()=>{g&&Q()}),p.useImperativeHandle(i,()=>g?{updatePosition:()=>{Q()}}:null,[g,Q]),p.useEffect(()=>{if(!g)return;const z=Yr(()=>{Q()}),U=ht(l);return U.addEventListener("resize",z),()=>{z.clear(),U.removeEventListener("resize",z)}},[l,g,Q]);let ne=E;E==="auto"&&!M.muiSupportAuto&&(ne=void 0);const ie=m||(l?Oe(xo(l)).body:void 0),ge=(o=w==null?void 0:w.root)!=null?o:xg,ce=(a=w==null?void 0:w.paper)!=null?a:rc,H=Ye({elementType:ce,externalSlotProps:x({},j,{style:W?j.style:x({},j.style,{opacity:0})}),additionalProps:{elevation:y,ref:L},ownerState:D,className:ae($.paper,j==null?void 0:j.className)}),V=Ye({elementType:ge,externalSlotProps:(C==null?void 0:C.root)||{},externalForwardedProps:N,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:ie,open:g},ownerState:D,className:ae($.root,h)}),{slotProps:q}=V,_=J(V,gg);return v.jsx(ge,x({},_,!Zu(ge)&&{slotProps:q,disableScrollLock:I},{children:v.jsx(M,x({appear:!0,in:g,onEntering:re,onExited:ee,timeout:ne},R,{children:v.jsx(ce,x({},H,{children:f}))}))}))}),yg=bg;function Cg(e){return ve("MuiMenu",e)}de("MuiMenu",["root","paper","list"]);const wg=["onEntering"],Sg=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Mg={vertical:"top",horizontal:"right"},kg={vertical:"top",horizontal:"left"},Tg=e=>{const{classes:t}=e;return me({root:["root"],paper:["paper"],list:["list"]},Cg,t)},Pg=X(yg,{shouldForwardProp:e=>er(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$g=X(rc,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Dg=X(fg,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Eg=p.forwardRef(function(t,n){var r,o;const a=Ce({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:i,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:d,open:f,PaperProps:h={},PopoverClasses:m,transitionDuration:y="auto",TransitionProps:{onEntering:b}={},variant:g="selectedMenu",slots:S={},slotProps:w={}}=a,C=J(a.TransitionProps,wg),T=J(a,Sg),M=nr(),E=x({},a,{autoFocus:s,disableAutoFocusItem:c,MenuListProps:u,onEntering:b,PaperProps:h,transitionDuration:y,TransitionProps:C,variant:g}),O=Tg(E),I=s&&!c&&f,R=p.useRef(null),N=(k,A)=>{R.current&&R.current.adjustStyleForScrollbar(k,{direction:M?"rtl":"ltr"}),b&&b(k,A)},j=k=>{k.key==="Tab"&&(k.preventDefault(),d&&d(k,"tabKeyDown"))};let F=-1;p.Children.map(i,(k,A)=>{p.isValidElement(k)&&(k.props.disabled||(g==="selectedMenu"&&k.props.selected||F===-1)&&(F=A))});const L=(r=S.paper)!=null?r:$g,D=(o=w.paper)!=null?o:h,$=Ye({elementType:S.root,externalSlotProps:w.root,ownerState:E,className:[O.root,l]}),P=Ye({elementType:L,externalSlotProps:D,ownerState:E,className:O.paper});return v.jsx(Pg,x({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:M?"right":"left"},transformOrigin:M?Mg:kg,slots:{paper:L,root:S.root},slotProps:{root:$,paper:P},open:f,ref:n,transitionDuration:y,TransitionProps:x({onEntering:N},C),ownerState:E},T,{classes:m,children:v.jsx(Dg,x({onKeyDown:j,actions:R,autoFocus:s&&(F===-1||c),autoFocusItem:I,variant:g},u,{className:ae(O.list,u.className),children:i}))}))}),oc=Eg;function Rg(e){return ve("MuiMenuItem",e)}const Ng=de("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Ln=Ng,Lg=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Og=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},_g=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:s}=e,l=me({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},Rg,s);return x({},s,l)},Ig=X(sa,{shouldForwardProp:e=>er(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Og})(({theme:e,ownerState:t})=>x({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ln.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Yt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ln.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Yt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ln.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Yt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Yt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ln.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ln.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${As.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${As.inset}`]:{marginLeft:52},[`& .${Bs.root}`]:{marginTop:0,marginBottom:0},[`& .${Bs.inset}`]:{paddingLeft:36},[`& .${Fs.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&x({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Fs.root} svg`]:{fontSize:"1.25rem"}}))),Ag=p.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:s=!1,divider:i=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:f}=r,h=J(r,Lg),m=p.useContext(qo),y=p.useMemo(()=>({dense:s||m.dense||!1,disableGutters:l}),[m.dense,s,l]),b=p.useRef(null);Je(()=>{o&&b.current&&b.current.focus()},[o]);const g=x({},r,{dense:y.dense,divider:i,disableGutters:l}),S=_g(r),w=Me(b,n);let C;return r.disabled||(C=d!==void 0?d:-1),v.jsx(qo.Provider,{value:y,children:v.jsx(Ig,x({ref:w,role:u,tabIndex:C,component:a,focusVisibleClassName:ae(S.focusVisible,c),className:ae(S.root,f)},h,{ownerState:g,classes:S}))})}),jg=Ag;function Fg(e){return ve("MuiTooltip",e)}const Bg=de("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Et=Bg,Hg=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function Wg(e){return Math.round(e*1e5)/1e5}const zg=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Se(a.split("-")[0])}`],arrow:["arrow"]};return me(s,Fg,t)},Ug=X(Kl,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>x({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Et.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Et.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Et.arrow}`]:x({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Et.arrow}`]:x({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Vg=X("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Se(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>x({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Yt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Wg(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Et.popper}[data-popper-placement*="left"] &`]:x({transformOrigin:"right center"},t.isRtl?x({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):x({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Et.popper}[data-popper-placement*="right"] &`]:x({transformOrigin:"left center"},t.isRtl?x({marginRight:"14px"},t.touch&&{marginRight:"24px"}):x({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Et.popper}[data-popper-placement*="top"] &`]:x({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Et.popper}[data-popper-placement*="bottom"] &`]:x({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Yg=X("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Yt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let mr=!1;const Vs=new Ju;let On={x:0,y:0};function gr(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Kg=p.forwardRef(function(t,n){var r,o,a,s,i,l,c,u,d,f,h,m,y,b,g,S,w,C,T;const M=Ce({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:O,components:I={},componentsProps:R={},describeChild:N=!1,disableFocusListener:j=!1,disableHoverListener:F=!1,disableInteractive:L=!1,disableTouchListener:D=!1,enterDelay:$=100,enterNextDelay:P=0,enterTouchDelay:k=700,followCursor:A=!1,id:W,leaveDelay:K=0,leaveTouchDelay:Q=1500,onClose:re,onOpen:ee,open:ne,placement:ie="bottom",PopperComponent:ge,PopperProps:ce={},slotProps:H={},slots:V={},title:q,TransitionComponent:_=Ko,TransitionProps:z}=M,U=J(M,Hg),G=p.isValidElement(O)?O:v.jsx("span",{children:O}),xe=ct(),he=nr(),[be,Re]=p.useState(),[ke,je]=p.useState(null),Fe=p.useRef(!1),qe=L||A,Te=Fn(),Tt=Fn(),gt=Fn(),jt=Fn(),[Ft,Bt]=Sl({controlled:ne,default:!1,name:"Tooltip",state:"open"});let Ge=Ft;const Pt=tr(W),Ht=p.useRef(),on=Xt(()=>{Ht.current!==void 0&&(document.body.style.WebkitUserSelect=Ht.current,Ht.current=void 0),jt.clear()});p.useEffect(()=>on,[on]);const an=se=>{Vs.clear(),mr=!0,Bt(!0),ee&&!Ge&&ee(se)},Y=Xt(se=>{Vs.start(800+K,()=>{mr=!1}),Bt(!1),re&&Ge&&re(se),Te.start(xe.transitions.duration.shortest,()=>{Fe.current=!1})}),Z=se=>{Fe.current&&se.type!=="touchstart"||(be&&be.removeAttribute("title"),Tt.clear(),gt.clear(),$||mr&&P?Tt.start(mr?P:$,()=>{an(se)}):an(se))},fe=se=>{Tt.clear(),gt.start(K,()=>{Y(se)})},{isFocusVisibleRef:ue,onBlur:we,onFocus:De,ref:Xe}=gl(),[,$t]=p.useState(!1),nt=se=>{we(se),ue.current===!1&&($t(!1),fe(se))},sn=se=>{be||Re(se.currentTarget),De(se),ue.current===!0&&($t(!0),Z(se))},us=se=>{Fe.current=!0;const Be=G.props;Be.onTouchStart&&Be.onTouchStart(se)},Pu=se=>{us(se),gt.clear(),Te.clear(),on(),Ht.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",jt.start(k,()=>{document.body.style.WebkitUserSelect=Ht.current,Z(se)})},$u=se=>{G.props.onTouchEnd&&G.props.onTouchEnd(se),on(),gt.start(Q,()=>{Y(se)})};p.useEffect(()=>{if(!Ge)return;function se(Be){(Be.key==="Escape"||Be.key==="Esc")&&Y(Be)}return document.addEventListener("keydown",se),()=>{document.removeEventListener("keydown",se)}},[Y,Ge]);const Du=Me(G.ref,Xe,Re,n);!q&&q!==0&&(Ge=!1);const ro=p.useRef(),Eu=se=>{const Be=G.props;Be.onMouseMove&&Be.onMouseMove(se),On={x:se.clientX,y:se.clientY},ro.current&&ro.current.update()},$n={},oo=typeof q=="string";N?($n.title=!Ge&&oo&&!F?q:null,$n["aria-describedby"]=Ge?Pt:null):($n["aria-label"]=oo?q:null,$n["aria-labelledby"]=Ge&&!oo?Pt:null);const rt=x({},$n,U,G.props,{className:ae(U.className,G.props.className),onTouchStart:us,ref:Du},A?{onMouseMove:Eu}:{}),Dn={};D||(rt.onTouchStart=Pu,rt.onTouchEnd=$u),F||(rt.onMouseOver=gr(Z,rt.onMouseOver),rt.onMouseLeave=gr(fe,rt.onMouseLeave),qe||(Dn.onMouseOver=Z,Dn.onMouseLeave=fe)),j||(rt.onFocus=gr(sn,rt.onFocus),rt.onBlur=gr(nt,rt.onBlur),qe||(Dn.onFocus=sn,Dn.onBlur=nt));const Ru=p.useMemo(()=>{var se;let Be=[{name:"arrow",enabled:!!ke,options:{element:ke,padding:4}}];return(se=ce.popperOptions)!=null&&se.modifiers&&(Be=Be.concat(ce.popperOptions.modifiers)),x({},ce.popperOptions,{modifiers:Be})},[ke,ce]),En=x({},M,{isRtl:he,arrow:E,disableInteractive:qe,placement:ie,PopperComponentProp:ge,touch:Fe.current}),ao=zg(En),ds=(r=(o=V.popper)!=null?o:I.Popper)!=null?r:Ug,fs=(a=(s=(i=V.transition)!=null?i:I.Transition)!=null?s:_)!=null?a:Ko,ps=(l=(c=V.tooltip)!=null?c:I.Tooltip)!=null?l:Vg,hs=(u=(d=V.arrow)!=null?d:I.Arrow)!=null?u:Yg,Nu=jn(ds,x({},ce,(f=H.popper)!=null?f:R.popper,{className:ae(ao.popper,ce==null?void 0:ce.className,(h=(m=H.popper)!=null?m:R.popper)==null?void 0:h.className)}),En),Lu=jn(fs,x({},z,(y=H.transition)!=null?y:R.transition),En),Ou=jn(ps,x({},(b=H.tooltip)!=null?b:R.tooltip,{className:ae(ao.tooltip,(g=(S=H.tooltip)!=null?S:R.tooltip)==null?void 0:g.className)}),En),_u=jn(hs,x({},(w=H.arrow)!=null?w:R.arrow,{className:ae(ao.arrow,(C=(T=H.arrow)!=null?T:R.arrow)==null?void 0:C.className)}),En);return v.jsxs(p.Fragment,{children:[p.cloneElement(G,rt),v.jsx(ds,x({as:ge??Kl,placement:ie,anchorEl:A?{getBoundingClientRect:()=>({top:On.y,left:On.x,right:On.x,bottom:On.y,width:0,height:0})}:be,popperRef:ro,open:be?Ge:!1,id:Pt,transition:!0},Dn,Nu,{popperOptions:Ru,children:({TransitionProps:se})=>v.jsx(fs,x({timeout:xe.transitions.duration.shorter},se,Lu,{children:v.jsxs(ps,x({},Ou,{children:[q,E?v.jsx(hs,x({},_u,{ref:je})):null]}))}))}))]})}),qr=Kg;function qg(e){return ve("MuiTab",e)}const Gg=de("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),zt=Gg,Xg=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Qg=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:a,label:s,selected:i,disabled:l}=e,c={root:["root",a&&s&&"labelIcon",`textColor${Se(n)}`,r&&"fullWidth",o&&"wrapped",i&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return me(c,qg,t)},Zg=X(sa,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Se(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>x({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${zt.iconWrapper}`]:x({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${zt.selected}`]:{opacity:1},[`&.${zt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${zt.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${zt.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${zt.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${zt.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Jg=p.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:s=!1,fullWidth:i,icon:l,iconPosition:c="top",indicator:u,label:d,onChange:f,onClick:h,onFocus:m,selected:y,selectionFollowsFocus:b,textColor:g="inherit",value:S,wrapped:w=!1}=r,C=J(r,Xg),T=x({},r,{disabled:a,disableFocusRipple:s,selected:y,icon:!!l,iconPosition:c,label:!!d,fullWidth:i,textColor:g,wrapped:w}),M=Qg(T),E=l&&d&&p.isValidElement(l)?p.cloneElement(l,{className:ae(M.iconWrapper,l.props.className)}):l,O=R=>{!y&&f&&f(R,S),h&&h(R)},I=R=>{b&&!y&&f&&f(R,S),m&&m(R)};return v.jsxs(Zg,x({focusRipple:!s,className:ae(M.root,o),ref:n,role:"tab","aria-selected":y,disabled:a,onClick:O,onFocus:I,ownerState:T,tabIndex:y?0:-1},C,{children:[c==="top"||c==="start"?v.jsxs(p.Fragment,{children:[E,d]}):v.jsxs(p.Fragment,{children:[d,E]}),u]}))}),ev=Jg,tv=Jn(v.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),nv=Jn(v.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function rv(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function ov(e,t,n,r={},o=()=>{}){const{ease:a=rv,duration:s=300}=r;let i=null;const l=t[e];let c=!1;const u=()=>{c=!0},d=f=>{if(c){o(new Error("Animation cancelled"));return}i===null&&(i=f);const h=Math.min(1,(f-i)/s);if(t[e]=a(h)*(n-l)+l,h>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(d)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(d),u)}const av=["onChange"],sv={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function iv(e){const{onChange:t}=e,n=J(e,av),r=p.useRef(),o=p.useRef(null),a=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Je(()=>{const s=Yr(()=>{const l=r.current;a(),l!==r.current&&t(r.current)}),i=ht(o.current);return i.addEventListener("resize",s),()=>{s.clear(),i.removeEventListener("resize",s)}},[t]),p.useEffect(()=>{a(),t(r.current)},[t]),v.jsx("div",x({style:sv,ref:o},n))}function lv(e){return ve("MuiTabScrollButton",e)}const cv=de("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),uv=cv,dv=["className","slots","slotProps","direction","orientation","disabled"],fv=e=>{const{classes:t,orientation:n,disabled:r}=e;return me({root:["root",n,r&&"disabled"]},lv,t)},pv=X(sa,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>x({width:40,flexShrink:0,opacity:.8,[`&.${uv.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),hv=p.forwardRef(function(t,n){var r,o;const a=Ce({props:t,name:"MuiTabScrollButton"}),{className:s,slots:i={},slotProps:l={},direction:c}=a,u=J(a,dv),d=nr(),f=x({isRtl:d},a),h=fv(f),m=(r=i.StartScrollButtonIcon)!=null?r:tv,y=(o=i.EndScrollButtonIcon)!=null?o:nv,b=Ye({elementType:m,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f}),g=Ye({elementType:y,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f});return v.jsx(pv,x({component:"div",className:ae(h.root,s),ref:n,role:null,ownerState:f,tabIndex:null},u,{children:c==="left"?v.jsx(m,x({},b)):v.jsx(y,x({},g))}))}),mv=hv;function gv(e){return ve("MuiTabs",e)}const vv=de("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),bo=vv,xv=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Ys=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Ks=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,vr=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=n(e,o);else{o.focus();return}}},bv=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:a,centered:s,scrollButtonsHideMobile:i,classes:l}=e;return me({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",i&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},gv,l)},yv=X("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bo.scrollButtons}`]:t.scrollButtons},{[`& .${bo.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>x({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${bo.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Cv=X("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>x({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),wv=X("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>x({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Sv=X("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>x({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),Mv=X(iv)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),qs={},kv=p.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiTabs"}),o=ct(),a=nr(),{"aria-label":s,"aria-labelledby":i,action:l,centered:c=!1,children:u,className:d,component:f="div",allowScrollButtonsMobile:h=!1,indicatorColor:m="primary",onChange:y,orientation:b="horizontal",ScrollButtonComponent:g=mv,scrollButtons:S="auto",selectionFollowsFocus:w,slots:C={},slotProps:T={},TabIndicatorProps:M={},TabScrollButtonProps:E={},textColor:O="primary",value:I,variant:R="standard",visibleScrollbar:N=!1}=r,j=J(r,xv),F=R==="scrollable",L=b==="vertical",D=L?"scrollTop":"scrollLeft",$=L?"top":"left",P=L?"bottom":"right",k=L?"clientHeight":"clientWidth",A=L?"height":"width",W=x({},r,{component:f,allowScrollButtonsMobile:h,indicatorColor:m,orientation:b,vertical:L,scrollButtons:S,textColor:O,variant:R,visibleScrollbar:N,fixed:!F,hideScrollbar:F&&!N,scrollableX:F&&!L,scrollableY:F&&L,centered:c&&!F,scrollButtonsHideMobile:!h}),K=bv(W),Q=Ye({elementType:C.StartScrollButtonIcon,externalSlotProps:T.startScrollButtonIcon,ownerState:W}),re=Ye({elementType:C.EndScrollButtonIcon,externalSlotProps:T.endScrollButtonIcon,ownerState:W}),[ee,ne]=p.useState(!1),[ie,ge]=p.useState(qs),[ce,H]=p.useState(!1),[V,q]=p.useState(!1),[_,z]=p.useState(!1),[U,G]=p.useState({overflow:"hidden",scrollbarWidth:0}),xe=new Map,he=p.useRef(null),be=p.useRef(null),Re=()=>{const Y=he.current;let Z;if(Y){const ue=Y.getBoundingClientRect();Z={clientWidth:Y.clientWidth,scrollLeft:Y.scrollLeft,scrollTop:Y.scrollTop,scrollLeftNormalized:Hd(Y,a?"rtl":"ltr"),scrollWidth:Y.scrollWidth,top:ue.top,bottom:ue.bottom,left:ue.left,right:ue.right}}let fe;if(Y&&I!==!1){const ue=be.current.children;if(ue.length>0){const we=ue[xe.get(I)];fe=we?we.getBoundingClientRect():null}}return{tabsMeta:Z,tabMeta:fe}},ke=Xt(()=>{const{tabsMeta:Y,tabMeta:Z}=Re();let fe=0,ue;if(L)ue="top",Z&&Y&&(fe=Z.top-Y.top+Y.scrollTop);else if(ue=a?"right":"left",Z&&Y){const De=a?Y.scrollLeftNormalized+Y.clientWidth-Y.scrollWidth:Y.scrollLeft;fe=(a?-1:1)*(Z[ue]-Y[ue]+De)}const we={[ue]:fe,[A]:Z?Z[A]:0};if(isNaN(ie[ue])||isNaN(ie[A]))ge(we);else{const De=Math.abs(ie[ue]-we[ue]),Xe=Math.abs(ie[A]-we[A]);(De>=1||Xe>=1)&&ge(we)}}),je=(Y,{animation:Z=!0}={})=>{Z?ov(D,he.current,Y,{duration:o.transitions.duration.standard}):he.current[D]=Y},Fe=Y=>{let Z=he.current[D];L?Z+=Y:(Z+=Y*(a?-1:1),Z*=a&&Tl()==="reverse"?-1:1),je(Z)},qe=()=>{const Y=he.current[k];let Z=0;const fe=Array.from(be.current.children);for(let ue=0;ueY){ue===0&&(Z=Y);break}Z+=we[k]}return Z},Te=()=>{Fe(-1*qe())},Tt=()=>{Fe(qe())},gt=p.useCallback(Y=>{G({overflow:null,scrollbarWidth:Y})},[]),jt=()=>{const Y={};Y.scrollbarSizeListener=F?v.jsx(Mv,{onChange:gt,className:ae(K.scrollableX,K.hideScrollbar)}):null;const fe=F&&(S==="auto"&&(ce||V)||S===!0);return Y.scrollButtonStart=fe?v.jsx(g,x({slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Q},orientation:b,direction:a?"right":"left",onClick:Te,disabled:!ce},E,{className:ae(K.scrollButtons,E.className)})):null,Y.scrollButtonEnd=fe?v.jsx(g,x({slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:re},orientation:b,direction:a?"left":"right",onClick:Tt,disabled:!V},E,{className:ae(K.scrollButtons,E.className)})):null,Y},Ft=Xt(Y=>{const{tabsMeta:Z,tabMeta:fe}=Re();if(!(!fe||!Z)){if(fe[$]Z[P]){const ue=Z[D]+(fe[P]-Z[P]);je(ue,{animation:Y})}}}),Bt=Xt(()=>{F&&S!==!1&&z(!_)});p.useEffect(()=>{const Y=Yr(()=>{he.current&&ke()});let Z;const fe=De=>{De.forEach(Xe=>{Xe.removedNodes.forEach($t=>{var nt;(nt=Z)==null||nt.unobserve($t)}),Xe.addedNodes.forEach($t=>{var nt;(nt=Z)==null||nt.observe($t)})}),Y(),Bt()},ue=ht(he.current);ue.addEventListener("resize",Y);let we;return typeof ResizeObserver<"u"&&(Z=new ResizeObserver(Y),Array.from(be.current.children).forEach(De=>{Z.observe(De)})),typeof MutationObserver<"u"&&(we=new MutationObserver(fe),we.observe(be.current,{childList:!0})),()=>{var De,Xe;Y.clear(),ue.removeEventListener("resize",Y),(De=we)==null||De.disconnect(),(Xe=Z)==null||Xe.disconnect()}},[ke,Bt]),p.useEffect(()=>{const Y=Array.from(be.current.children),Z=Y.length;if(typeof IntersectionObserver<"u"&&Z>0&&F&&S!==!1){const fe=Y[0],ue=Y[Z-1],we={root:he.current,threshold:.99},De=sn=>{H(!sn[0].isIntersecting)},Xe=new IntersectionObserver(De,we);Xe.observe(fe);const $t=sn=>{q(!sn[0].isIntersecting)},nt=new IntersectionObserver($t,we);return nt.observe(ue),()=>{Xe.disconnect(),nt.disconnect()}}},[F,S,_,u==null?void 0:u.length]),p.useEffect(()=>{ne(!0)},[]),p.useEffect(()=>{ke()}),p.useEffect(()=>{Ft(qs!==ie)},[Ft,ie]),p.useImperativeHandle(l,()=>({updateIndicator:ke,updateScrollButtons:Bt}),[ke,Bt]);const Ge=v.jsx(Sv,x({},M,{className:ae(K.indicator,M.className),ownerState:W,style:x({},ie,M.style)}));let Pt=0;const Ht=p.Children.map(u,Y=>{if(!p.isValidElement(Y))return null;const Z=Y.props.value===void 0?Pt:Y.props.value;xe.set(Z,Pt);const fe=Z===I;return Pt+=1,p.cloneElement(Y,x({fullWidth:R==="fullWidth",indicator:fe&&!ee&&Ge,selected:fe,selectionFollowsFocus:w,onChange:y,textColor:O,value:Z},Pt===1&&I===!1&&!Y.props.tabIndex?{tabIndex:0}:{}))}),on=Y=>{const Z=be.current,fe=Oe(Z).activeElement;if(fe.getAttribute("role")!=="tab")return;let we=b==="horizontal"?"ArrowLeft":"ArrowUp",De=b==="horizontal"?"ArrowRight":"ArrowDown";switch(b==="horizontal"&&a&&(we="ArrowRight",De="ArrowLeft"),Y.key){case we:Y.preventDefault(),vr(Z,fe,Ks);break;case De:Y.preventDefault(),vr(Z,fe,Ys);break;case"Home":Y.preventDefault(),vr(Z,null,Ys);break;case"End":Y.preventDefault(),vr(Z,null,Ks);break}},an=jt();return v.jsxs(yv,x({className:ae(K.root,d),ownerState:W,ref:n,as:f},j,{children:[an.scrollButtonStart,an.scrollbarSizeListener,v.jsxs(Cv,{className:K.scroller,ownerState:W,style:{overflow:U.overflow,[L?`margin${a?"Left":"Right"}`:"marginBottom"]:N?void 0:-U.scrollbarWidth},ref:he,children:[v.jsx(wv,{"aria-label":s,"aria-labelledby":i,"aria-orientation":b==="vertical"?"vertical":null,className:K.flexContainer,ownerState:W,onKeyDown:on,ref:be,role:"tablist",children:Ht}),ee&&Ge]}),an.scrollButtonEnd]}))}),Tv=kv,Pv=e=>Ae("color:",e.contrast,";background:",e.shadow,';display:flex;font-size:10px;letter-spacing:1px;font-family:"Courier New",Courier,monospace;margin:0px 10px;',""),$v=()=>{const[e,t]=p.useState(new Date),n=Ot();return p.useEffect(()=>{const r=setInterval(()=>{t(new Date)},1e3);return()=>clearInterval(r)},[]),B("div",{children:B("div",{className:Ve(Pv(n)),children:B("p",{children:e.toLocaleString()})})})},Dv={name:"Clock",section:"Status Bar",id:ia(),Component:$v,description:"A simple clock with date / time",active:!1,visible:!0,roles:["admin","user","guest","superAdmin"]};var Sa={},Ev=it;Object.defineProperty(Sa,"__esModule",{value:!0});var ac=Sa.default=void 0,Rv=Ev(lt()),Nv=v;ac=Sa.default=(0,Rv.default)((0,Nv.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRightOutlined");const Lv=(e,t,n)=>Ae("display:flex;flex-direction:column;background:",e.shadow,";border-radius:3px;margin:0px 4px;padding:4px 6px;.title{color:theme.contrast;font-size:10px;margin-bottom:1px;}.total-num{color:",(()=>({prev:e.contrast,amount:e.primary,diff:e.contrast}))()[t],";font-size:16px;letter-spacing:1px;font-weight:bold;padding:3px 0px;:before{content:",(()=>t==="diff"&&{up:"'↑'",down:"'↓'",none:""})()[n],";font-size:14px;position:relative;font-weight:bold;color:",(()=>t==="diff"&&{up:e.accent,down:e.primary,none:e.primary})()[n],";top:-3px;margin-left:3px;}}",""),Gs={total:{text:"Total Series",value:e=>e},percent:{text:"Percentage from total",value:e=>`${String(e)}%`},previous:{text:"Previous total",value:e=>e||0},diff:{text:"Diff from previous",value:e=>`${e??0}`},quota:{text:"Quota Limit",value:e=>e===0?"Unlimited":`${e}`}},Wn=({theme:e,value:t,text:n,type:r="amount",trend:o="none"})=>oe("div",{className:Ve(Lv(e,r,o)),children:[B("div",{className:"title",children:Gs[n].text}),B("div",{className:"total-num",children:Gs[n].value(t)})]});ia();var Ma={},Ov=it;Object.defineProperty(Ma,"__esModule",{value:!0});var sc=Ma.default=void 0,_v=Ov(lt()),Iv=v;sc=Ma.default=(0,_v.default)((0,Iv.jsx)("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V10h14zm0-12H5V6h14zM9 14H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2zm-8 4H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2z"}),"CalendarMonthOutlined");var ic={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(hd,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",s="second",i="minute",l="hour",c="day",u="week",d="month",f="quarter",h="year",m="date",y="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(L){var D=["th","st","nd","rd"],$=L%100;return"["+L+(D[($-20)%10]||D[$]||D[0])+"]"}},w=function(L,D,$){var P=String(L);return!P||P.length>=D?L:""+Array(D+1-P.length).join($)+L},C={s:w,z:function(L){var D=-L.utcOffset(),$=Math.abs(D),P=Math.floor($/60),k=$%60;return(D<=0?"+":"-")+w(P,2,"0")+":"+w(k,2,"0")},m:function L(D,$){if(D.date()<$.date())return-L($,D);var P=12*($.year()-D.year())+($.month()-D.month()),k=D.clone().add(P,d),A=$-k<0,W=D.clone().add(P+(A?-1:1),d);return+(-(P+($-k)/(A?k-W:W-k))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:d,y:h,w:u,d:c,D:m,h:l,m:i,s,ms:a,Q:f}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},T="en",M={};M[T]=S;var E="$isDayjsObject",O=function(L){return L instanceof j||!(!L||!L[E])},I=function L(D,$,P){var k;if(!D)return T;if(typeof D=="string"){var A=D.toLowerCase();M[A]&&(k=A),$&&(M[A]=$,k=A);var W=D.split("-");if(!k&&W.length>1)return L(W[0])}else{var K=D.name;M[K]=D,k=K}return!P&&k&&(T=k),k||!P&&T},R=function(L,D){if(O(L))return L.clone();var $=typeof D=="object"?D:{};return $.date=L,$.args=arguments,new j($)},N=C;N.l=I,N.i=O,N.w=function(L,D){return R(L,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var j=function(){function L($){this.$L=I($.locale,null,!0),this.parse($),this.$x=this.$x||$.x||{},this[E]=!0}var D=L.prototype;return D.parse=function($){this.$d=function(P){var k=P.date,A=P.utc;if(k===null)return new Date(NaN);if(N.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var W=k.match(b);if(W){var K=W[2]-1||0,Q=(W[7]||"0").substring(0,3);return A?new Date(Date.UTC(W[1],K,W[3]||1,W[4]||0,W[5]||0,W[6]||0,Q)):new Date(W[1],K,W[3]||1,W[4]||0,W[5]||0,W[6]||0,Q)}}return new Date(k)}($),this.init()},D.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},D.$utils=function(){return N},D.isValid=function(){return this.$d.toString()!==y},D.isSame=function($,P){var k=R($);return this.startOf(P)<=k&&k<=this.endOf(P)},D.isAfter=function($,P){return R($)1&&(l||!c),d=t>1&&(c||!l),f=function(){r&&a(r)},h=function(){o&&a(o)};return v.jsx(gx,{displayMonth:e.displayMonth,hideNext:u,hidePrevious:d,nextMonth:o,previousMonth:r,onPreviousClick:f,onNextClick:h})}function vx(e){var t,n=ye(),r=n.classNames,o=n.disableNavigation,a=n.styles,s=n.captionLayout,i=n.components,l=(t=i==null?void 0:i.CaptionLabel)!==null&&t!==void 0?t:uc,c;return o?c=v.jsx(l,{id:e.id,displayMonth:e.displayMonth}):s==="dropdown"?c=v.jsx(Xs,{displayMonth:e.displayMonth,id:e.id}):s==="dropdown-buttons"?c=v.jsxs(v.Fragment,{children:[v.jsx(Xs,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),v.jsx(Qs,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):c=v.jsxs(v.Fragment,{children:[v.jsx(l,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),v.jsx(Qs,{displayMonth:e.displayMonth,id:e.id})]}),v.jsx("div",{className:r.caption,style:a.caption,children:c})}function xx(e){var t=ye(),n=t.footer,r=t.styles,o=t.classNames.tfoot;return n?v.jsx("tfoot",{className:o,style:r.tfoot,children:v.jsx("tr",{children:v.jsx("td",{colSpan:8,children:n})})}):v.jsx(v.Fragment,{})}function bx(e,t,n){for(var r=n?ua(new Date):da(new Date,{locale:e,weekStartsOn:t}),o=[],a=0;a<7;a++){var s=We(r,a);o.push(s)}return o}function yx(){var e=ye(),t=e.classNames,n=e.styles,r=e.showWeekNumber,o=e.locale,a=e.weekStartsOn,s=e.ISOWeek,i=e.formatters.formatWeekdayName,l=e.labels.labelWeekday,c=bx(o,a,s);return v.jsxs("tr",{style:n.head_row,className:t.head_row,children:[r&&v.jsx("td",{style:n.head_cell,className:t.head_cell}),c.map(function(u,d){return v.jsx("th",{scope:"col",className:t.head_cell,style:n.head_cell,"aria-label":l(u,{locale:o}),children:i(u,{locale:o})},d)})]})}function Cx(){var e,t=ye(),n=t.classNames,r=t.styles,o=t.components,a=(e=o==null?void 0:o.HeadRow)!==null&&e!==void 0?e:yx;return v.jsx("thead",{style:r.head,className:n.head,children:v.jsx(a,{})})}function wx(e){var t=ye(),n=t.locale,r=t.formatters.formatDay;return v.jsx(v.Fragment,{children:r(e.date,{locale:n})})}var ka=p.createContext(void 0);function Sx(e){if(!ar(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return v.jsx(ka.Provider,{value:t,children:e.children})}return v.jsx(Mx,{initialProps:e.initialProps,children:e.children})}function Mx(e){var t=e.initialProps,n=e.children,r=t.selected,o=t.min,a=t.max,s=function(c,u,d){var f,h;(f=t.onDayClick)===null||f===void 0||f.call(t,c,u,d);var m=!!(u.selected&&o&&(r==null?void 0:r.length)===o);if(!m){var y=!!(!u.selected&&a&&(r==null?void 0:r.length)===a);if(!y){var b=r?lc([],r,!0):[];if(u.selected){var g=b.findIndex(function(S){return Ne(c,S)});b.splice(g,1)}else b.push(c);(h=t.onSelect)===null||h===void 0||h.call(t,b,c,u,d)}}},i={disabled:[]};r&&i.disabled.push(function(c){var u=a&&r.length>a-1,d=r.some(function(f){return Ne(f,c)});return!!(u&&!d)});var l={selected:r,onDayClick:s,modifiers:i};return v.jsx(ka.Provider,{value:l,children:n})}function Ta(){var e=p.useContext(ka);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function kx(e,t){var n=t||{},r=n.from,o=n.to;return r&&o?Ne(o,e)&&Ne(r,e)?void 0:Ne(o,e)?{from:o,to:void 0}:Ne(r,e)?void 0:Bo(r,e)?{from:e,to:o}:{from:r,to:e}:o?Bo(e,o)?{from:o,to:e}:{from:e,to:o}:r?vl(e,r)?{from:e,to:r}:{from:r,to:e}:{from:e,to:void 0}}var Pa=p.createContext(void 0);function Tx(e){if(!sr(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return v.jsx(Pa.Provider,{value:t,children:e.children})}return v.jsx(Px,{initialProps:e.initialProps,children:e.children})}function Px(e){var t=e.initialProps,n=e.children,r=t.selected,o=r||{},a=o.from,s=o.to,i=t.min,l=t.max,c=function(h,m,y){var b,g;(b=t.onDayClick)===null||b===void 0||b.call(t,h,m,y);var S=kx(h,r);(g=t.onSelect)===null||g===void 0||g.call(t,S,h,m,y)},u={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(u.range_start=[a],s?(u.range_end=[s],Ne(a,s)||(u.range_middle=[{after:a,before:s}])):u.range_end=[a]):s&&(u.range_start=[s],u.range_end=[s]),i&&(a&&!s&&u.disabled.push({after:lo(a,i-1),before:We(a,i-1)}),a&&s&&u.disabled.push({after:a,before:We(a,i-1)}),!a&&s&&u.disabled.push({after:lo(s,i-1),before:We(s,i-1)})),l){if(a&&!s&&(u.disabled.push({before:We(a,-l+1)}),u.disabled.push({after:We(a,l-1)})),a&&s){var d=xt(s,a)+1,f=l-d;u.disabled.push({before:lo(a,f)}),u.disabled.push({after:We(s,f)})}!a&&s&&(u.disabled.push({before:We(s,-l+1)}),u.disabled.push({after:We(s,l-1)}))}return v.jsx(Pa.Provider,{value:{selected:r,onDayClick:c,modifiers:u},children:n})}function $a(){var e=p.useContext(Pa);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function $r(e){return Array.isArray(e)?lc([],e,!0):e!==void 0?[e]:[]}function $x(e){var t={};return Object.entries(e).forEach(function(n){var r=n[0],o=n[1];t[r]=$r(o)}),t}var st;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(st||(st={}));var Dx=st.Selected,vt=st.Disabled,Ex=st.Hidden,Rx=st.Today,yo=st.RangeEnd,Co=st.RangeMiddle,wo=st.RangeStart,Nx=st.Outside;function Lx(e,t,n){var r,o=(r={},r[Dx]=$r(e.selected),r[vt]=$r(e.disabled),r[Ex]=$r(e.hidden),r[Rx]=[e.today],r[yo]=[],r[Co]=[],r[wo]=[],r[Nx]=[],r);return e.fromDate&&o[vt].push({before:e.fromDate}),e.toDate&&o[vt].push({after:e.toDate}),ar(e)?o[vt]=o[vt].concat(t.modifiers[vt]):sr(e)&&(o[vt]=o[vt].concat(n.modifiers[vt]),o[wo]=n.modifiers[wo],o[Co]=n.modifiers[Co],o[yo]=n.modifiers[yo]),o}var pc=p.createContext(void 0);function Ox(e){var t=ye(),n=Ta(),r=$a(),o=Lx(t,n,r),a=$x(t.modifiers),s=te(te({},o),a);return v.jsx(pc.Provider,{value:s,children:e.children})}function hc(){var e=p.useContext(pc);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function _x(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function Ix(e){return!!(e&&typeof e=="object"&&"from"in e)}function Ax(e){return!!(e&&typeof e=="object"&&"after"in e)}function jx(e){return!!(e&&typeof e=="object"&&"before"in e)}function Fx(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Bx(e,t){var n,r=t.from,o=t.to;if(r&&o){var a=xt(o,r)<0;a&&(n=[o,r],r=n[0],o=n[1]);var s=xt(e,r)>=0&&xt(o,e)>=0;return s}return o?Ne(o,e):r?Ne(r,e):!1}function Hx(e){return yl(e)}function Wx(e){return Array.isArray(e)&&e.every(yl)}function zx(e,t){return t.some(function(n){if(typeof n=="boolean")return n;if(Hx(n))return Ne(e,n);if(Wx(n))return n.includes(e);if(Ix(n))return Bx(e,n);if(Fx(n))return n.dayOfWeek.includes(e.getDay());if(_x(n)){var r=xt(n.before,e),o=xt(n.after,e),a=r>0,s=o<0,i=Bo(n.before,n.after);return i?s&&a:a||s}return Ax(n)?xt(e,n.after)>0:jx(n)?xt(n.before,e)>0:typeof n=="function"?n(e):!1})}function Da(e,t,n){var r=Object.keys(t).reduce(function(a,s){var i=t[s];return zx(e,i)&&a.push(s),a},[]),o={};return r.forEach(function(a){return o[a]=!0}),n&&!ca(e,n)&&(o.outside=!0),o}function Ux(e,t){for(var n=Ue(e[0]),r=la(e[e.length-1]),o,a,s=n;s<=r;){var i=Da(s,t),l=!i.disabled&&!i.hidden;if(!l){s=We(s,1);continue}if(i.selected)return s;i.today&&!a&&(a=s),o||(o=s),s=We(s,1)}return a||o}var Vx=365;function mc(e,t){var n=t.moveBy,r=t.direction,o=t.context,a=t.modifiers,s=t.retry,i=s===void 0?{count:0,lastFocused:e}:s,l=o.weekStartsOn,c=o.fromDate,u=o.toDate,d=o.locale,f={day:We,week:Ho,month:pt,year:dd,startOfWeek:function(b){return o.ISOWeek?ua(b):da(b,{locale:d,weekStartsOn:l})},endOfWeek:function(b){return o.ISOWeek?xl(b):bl(b,{locale:d,weekStartsOn:l})}},h=f[n](e,r==="after"?1:-1);r==="before"&&c?h=id([c,h]):r==="after"&&u&&(h=ld([u,h]));var m=!0;if(a){var y=Da(h,a);m=!y.disabled&&!y.hidden}return m?h:i.count>Vx?i.lastFocused:mc(h,{moveBy:n,direction:r,context:o,modifiers:a,retry:te(te({},i),{count:i.count+1})})}var gc=p.createContext(void 0);function Yx(e){var t=ir(),n=hc(),r=p.useState(),o=r[0],a=r[1],s=p.useState(),i=s[0],l=s[1],c=Ux(t.displayMonths,n),u=o??(i&&t.isDateDisplayed(i))?i:c,d=function(){l(o),a(void 0)},f=function(b){a(b)},h=ye(),m=function(b,g){if(o){var S=mc(o,{moveBy:b,direction:g,context:h,modifiers:n});Ne(o,S)||(t.goToDate(S,o),f(S))}},y={focusedDay:o,focusTarget:u,blur:d,focus:f,focusDayAfter:function(){return m("day","after")},focusDayBefore:function(){return m("day","before")},focusWeekAfter:function(){return m("week","after")},focusWeekBefore:function(){return m("week","before")},focusMonthBefore:function(){return m("month","before")},focusMonthAfter:function(){return m("month","after")},focusYearBefore:function(){return m("year","before")},focusYearAfter:function(){return m("year","after")},focusStartOfWeek:function(){return m("startOfWeek","before")},focusEndOfWeek:function(){return m("endOfWeek","after")}};return v.jsx(gc.Provider,{value:y,children:e.children})}function Ea(){var e=p.useContext(gc);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function Kx(e,t){var n=hc(),r=Da(e,n,t);return r}var Ra=p.createContext(void 0);function qx(e){if(!Gr(e.initialProps)){var t={selected:void 0};return v.jsx(Ra.Provider,{value:t,children:e.children})}return v.jsx(Gx,{initialProps:e.initialProps,children:e.children})}function Gx(e){var t=e.initialProps,n=e.children,r=function(a,s,i){var l,c,u;if((l=t.onDayClick)===null||l===void 0||l.call(t,a,s,i),s.selected&&!t.required){(c=t.onSelect)===null||c===void 0||c.call(t,void 0,a,s,i);return}(u=t.onSelect)===null||u===void 0||u.call(t,a,a,s,i)},o={selected:t.selected,onDayClick:r};return v.jsx(Ra.Provider,{value:o,children:n})}function vc(){var e=p.useContext(Ra);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function Xx(e,t){var n=ye(),r=vc(),o=Ta(),a=$a(),s=Ea(),i=s.focusDayAfter,l=s.focusDayBefore,c=s.focusWeekAfter,u=s.focusWeekBefore,d=s.blur,f=s.focus,h=s.focusMonthBefore,m=s.focusMonthAfter,y=s.focusYearBefore,b=s.focusYearAfter,g=s.focusStartOfWeek,S=s.focusEndOfWeek,w=function(P){var k,A,W,K;Gr(n)?(k=r.onDayClick)===null||k===void 0||k.call(r,e,t,P):ar(n)?(A=o.onDayClick)===null||A===void 0||A.call(o,e,t,P):sr(n)?(W=a.onDayClick)===null||W===void 0||W.call(a,e,t,P):(K=n.onDayClick)===null||K===void 0||K.call(n,e,t,P)},C=function(P){var k;f(e),(k=n.onDayFocus)===null||k===void 0||k.call(n,e,t,P)},T=function(P){var k;d(),(k=n.onDayBlur)===null||k===void 0||k.call(n,e,t,P)},M=function(P){var k;(k=n.onDayMouseEnter)===null||k===void 0||k.call(n,e,t,P)},E=function(P){var k;(k=n.onDayMouseLeave)===null||k===void 0||k.call(n,e,t,P)},O=function(P){var k;(k=n.onDayPointerEnter)===null||k===void 0||k.call(n,e,t,P)},I=function(P){var k;(k=n.onDayPointerLeave)===null||k===void 0||k.call(n,e,t,P)},R=function(P){var k;(k=n.onDayTouchCancel)===null||k===void 0||k.call(n,e,t,P)},N=function(P){var k;(k=n.onDayTouchEnd)===null||k===void 0||k.call(n,e,t,P)},j=function(P){var k;(k=n.onDayTouchMove)===null||k===void 0||k.call(n,e,t,P)},F=function(P){var k;(k=n.onDayTouchStart)===null||k===void 0||k.call(n,e,t,P)},L=function(P){var k;(k=n.onDayKeyUp)===null||k===void 0||k.call(n,e,t,P)},D=function(P){var k;switch(P.key){case"ArrowLeft":P.preventDefault(),P.stopPropagation(),n.dir==="rtl"?i():l();break;case"ArrowRight":P.preventDefault(),P.stopPropagation(),n.dir==="rtl"?l():i();break;case"ArrowDown":P.preventDefault(),P.stopPropagation(),c();break;case"ArrowUp":P.preventDefault(),P.stopPropagation(),u();break;case"PageUp":P.preventDefault(),P.stopPropagation(),P.shiftKey?y():h();break;case"PageDown":P.preventDefault(),P.stopPropagation(),P.shiftKey?b():m();break;case"Home":P.preventDefault(),P.stopPropagation(),g();break;case"End":P.preventDefault(),P.stopPropagation(),S();break}(k=n.onDayKeyDown)===null||k===void 0||k.call(n,e,t,P)},$={onClick:w,onFocus:C,onBlur:T,onKeyDown:D,onKeyUp:L,onMouseEnter:M,onMouseLeave:E,onPointerEnter:O,onPointerLeave:I,onTouchCancel:R,onTouchEnd:N,onTouchMove:j,onTouchStart:F};return $}function Qx(){var e=ye(),t=vc(),n=Ta(),r=$a(),o=Gr(e)?t.selected:ar(e)?n.selected:sr(e)?r.selected:void 0;return o}function Zx(e){return Object.values(st).includes(e)}function Jx(e,t){var n=[e.classNames.day];return Object.keys(t).forEach(function(r){var o=e.modifiersClassNames[r];if(o)n.push(o);else if(Zx(r)){var a=e.classNames["day_".concat(r)];a&&n.push(a)}}),n}function eb(e,t){var n=te({},e.styles.day);return Object.keys(t).forEach(function(r){var o;n=te(te({},n),(o=e.modifiersStyles)===null||o===void 0?void 0:o[r])}),n}function tb(e,t,n){var r,o,a,s=ye(),i=Ea(),l=Kx(e,t),c=Xx(e,l),u=Qx(),d=!!(s.onDayClick||s.mode!=="default");p.useEffect(function(){var M;l.outside||i.focusedDay&&d&&Ne(i.focusedDay,e)&&((M=n.current)===null||M===void 0||M.focus())},[i.focusedDay,e,n,d,l.outside]);var f=Jx(s,l).join(" "),h=eb(s,l),m=!!(l.outside&&!s.showOutsideDays||l.hidden),y=(a=(o=s.components)===null||o===void 0?void 0:o.DayContent)!==null&&a!==void 0?a:wx,b=v.jsx(y,{date:e,displayMonth:t,activeModifiers:l}),g={style:h,className:f,children:b,role:"gridcell"},S=i.focusTarget&&Ne(i.focusTarget,e)&&!l.outside,w=i.focusedDay&&Ne(i.focusedDay,e),C=te(te(te({},g),(r={disabled:l.disabled,role:"gridcell"},r["aria-selected"]=l.selected,r.tabIndex=w||S?0:-1,r)),c),T={isButton:d,isHidden:m,activeModifiers:l,selectedDays:u,buttonProps:C,divProps:g};return T}function nb(e){var t=p.useRef(null),n=tb(e.date,e.displayMonth,t);return n.isHidden?v.jsx("div",{role:"gridcell"}):n.isButton?v.jsx(Lr,te({name:"day",ref:t},n.buttonProps)):v.jsx("div",te({},n.divProps))}function rb(e){var t=e.number,n=e.dates,r=ye(),o=r.onWeekNumberClick,a=r.styles,s=r.classNames,i=r.locale,l=r.labels.labelWeekNumber,c=r.formatters.formatWeekNumber,u=c(Number(t),{locale:i});if(!o)return v.jsx("span",{className:s.weeknumber,style:a.weeknumber,children:u});var d=l(Number(t),{locale:i}),f=function(h){o(t,n,h)};return v.jsx(Lr,{name:"week-number","aria-label":d,className:s.weeknumber,style:a.weeknumber,onClick:f,children:u})}function ob(e){var t,n,r=ye(),o=r.styles,a=r.classNames,s=r.showWeekNumber,i=r.components,l=(t=i==null?void 0:i.Day)!==null&&t!==void 0?t:nb,c=(n=i==null?void 0:i.WeekNumber)!==null&&n!==void 0?n:rb,u;return s&&(u=v.jsx("td",{className:a.cell,style:o.cell,children:v.jsx(c,{number:e.weekNumber,dates:e.dates})})),v.jsxs("tr",{className:a.row,style:o.row,children:[u,e.dates.map(function(d){return v.jsx("td",{className:a.cell,style:o.cell,role:"presentation",children:v.jsx(l,{displayMonth:e.displayMonth,date:d})},nd(d))})]})}function Zs(e,t,n){for(var r=n!=null&&n.ISOWeek?xl(t):bl(t,n),o=n!=null&&n.ISOWeek?ua(e):da(e,n),a=xt(r,o),s=[],i=0;i<=a;i++)s.push(We(o,i));var l=s.reduce(function(c,u){var d=n!=null&&n.ISOWeek?cd(u):ud(u,n),f=c.find(function(h){return h.weekNumber===d});return f?(f.dates.push(u),c):(c.push({weekNumber:d,dates:[u]}),c)},[]);return l}function ab(e,t){var n=Zs(Ue(e),la(e),t);if(t!=null&&t.useFixedWeeks){var r=rd(e,t);if(r<6){var o=n[n.length-1],a=o.dates[o.dates.length-1],s=Ho(a,6-r),i=Zs(Ho(a,1),s,t);n.push.apply(n,i)}}return n}function sb(e){var t,n,r,o=ye(),a=o.locale,s=o.classNames,i=o.styles,l=o.hideHead,c=o.fixedWeeks,u=o.components,d=o.weekStartsOn,f=o.firstWeekContainsDate,h=o.ISOWeek,m=ab(e.displayMonth,{useFixedWeeks:!!c,ISOWeek:h,locale:a,weekStartsOn:d,firstWeekContainsDate:f}),y=(t=u==null?void 0:u.Head)!==null&&t!==void 0?t:Cx,b=(n=u==null?void 0:u.Row)!==null&&n!==void 0?n:ob,g=(r=u==null?void 0:u.Footer)!==null&&r!==void 0?r:xx;return v.jsxs("table",{id:e.id,className:s.table,style:i.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!l&&v.jsx(y,{}),v.jsx("tbody",{className:s.tbody,style:i.tbody,children:m.map(function(S){return v.jsx(b,{displayMonth:e.displayMonth,dates:S.dates,weekNumber:S.weekNumber},S.weekNumber)})}),v.jsx(g,{displayMonth:e.displayMonth})]})}function ib(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var lb=ib()?p.useLayoutEffect:p.useEffect,So=!1,cb=0;function Js(){return"react-day-picker-".concat(++cb)}function ub(e){var t,n=e??(So?Js():null),r=p.useState(n),o=r[0],a=r[1];return lb(function(){o===null&&a(Js())},[]),p.useEffect(function(){So===!1&&(So=!0)},[]),(t=e??o)!==null&&t!==void 0?t:void 0}function db(e){var t,n,r=ye(),o=r.dir,a=r.classNames,s=r.styles,i=r.components,l=ir().displayMonths,c=ub(r.id?"".concat(r.id,"-").concat(e.displayIndex):void 0),u=r.id?"".concat(r.id,"-grid-").concat(e.displayIndex):void 0,d=[a.month],f=s.month,h=e.displayIndex===0,m=e.displayIndex===l.length-1,y=!h&&!m;o==="rtl"&&(t=[h,m],m=t[0],h=t[1]),h&&(d.push(a.caption_start),f=te(te({},f),s.caption_start)),m&&(d.push(a.caption_end),f=te(te({},f),s.caption_end)),y&&(d.push(a.caption_between),f=te(te({},f),s.caption_between));var b=(n=i==null?void 0:i.Caption)!==null&&n!==void 0?n:vx;return v.jsxs("div",{className:d.join(" "),style:f,children:[v.jsx(b,{id:c,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),v.jsx(sb,{id:u,"aria-labelledby":c,displayMonth:e.displayMonth})]},e.displayIndex)}function fb(e){var t=ye(),n=t.classNames,r=t.styles;return v.jsx("div",{className:n.months,style:r.months,children:e.children})}function pb(e){var t,n,r=e.initialProps,o=ye(),a=Ea(),s=ir(),i=p.useState(!1),l=i[0],c=i[1];p.useEffect(function(){o.initialFocus&&a.focusTarget&&(l||(a.focus(a.focusTarget),c(!0)))},[o.initialFocus,l,a.focus,a.focusTarget,a]);var u=[o.classNames.root,o.className];o.numberOfMonths>1&&u.push(o.classNames.multiple_months),o.showWeekNumber&&u.push(o.classNames.with_weeknumber);var d=te(te({},o.styles.root),o.style),f=Object.keys(r).filter(function(m){return m.startsWith("data-")}).reduce(function(m,y){var b;return te(te({},m),(b={},b[y]=r[y],b))},{}),h=(n=(t=r.components)===null||t===void 0?void 0:t.Months)!==null&&n!==void 0?n:fb;return v.jsx("div",te({className:u.join(" "),style:d,dir:o.dir,id:o.id,nonce:r.nonce,title:r.title,lang:r.lang},f,{children:v.jsx(h,{children:s.displayMonths.map(function(m,y){return v.jsx(db,{displayIndex:y,displayMonth:m},y)})})}))}function hb(e){var t=e.children,n=jv(e,["children"]);return v.jsx(rx,{initialProps:n,children:v.jsx(px,{children:v.jsx(qx,{initialProps:n,children:v.jsx(Sx,{initialProps:n,children:v.jsx(Tx,{initialProps:n,children:v.jsx(Ox,{children:v.jsx(Yx,{children:t})})})})})})})}function mb(e){return v.jsx(hb,te({},e,{children:v.jsx(pb,{initialProps:e})}))}const bn="YYYY-MM-DD";const ei=e=>{let t;const n=new Set,r=(u,d)=>{const f=typeof u=="function"?u(t):u;if(!Object.is(f,t)){const h=t;t=d??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(m=>m(t,h))}},o=()=>t,l={setState:r,getState:o,getInitialState:()=>c,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{n.clear()}},c=t=e(r,o,l);return l},gb=e=>e?ei(e):ei,{useDebugValue:vb}=Dt,{useSyncExternalStoreWithSelector:xb}=fd;const bb=e=>e;function yb(e,t=bb,n){const r=xb(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return vb(r),r}const ti=e=>{const t=typeof e=="function"?gb(e):e,n=(r,o)=>yb(t,r,o);return Object.assign(n,t),n},Cb=e=>e?ti(e):ti;var wb=(e=>(e.GO="GO",e.NODE="NODE",e))(wb||{});const Sb=e=>Nt(e).unix(),Mb=e=>Nt(e).subtract(1,"day").unix(),kb={total:{amount:0,prev:0,diff:0,quota:0},date:Nt().format(bn),timeRange:{end:Sb(new Date),start:Mb(new Date)},responseType:"NODE",isUpdating:!1,timeSeriesSelector:"",focusLabel:"",limitEntries:10,deletedQueries:[],isLoading:!1,error:"",tsdbStatus:{}},Tb={topN:10,timeSeriesSelector:"",focusLabel:""},Lt=Cb(e=>({...kb,setIsUpdating:t=>e(()=>({isUpdating:t})),setTotal:t=>e(()=>({total:t})),setTimeSeriesSelector:t=>e(()=>({timeSeriesSelector:t})),setTimeRange:t=>e(()=>({timeRange:t})),setFocusLabel:t=>e(()=>({focusLabel:t})),setLimitEntries:t=>e(()=>({limitEntries:t})),setDate:t=>e(()=>({date:t})),setDeletedQueries:t=>e(n=>({deletedQueries:[...n.deletedQueries,t]})),reset:()=>e(()=>({...Tb})),setIsLoading:t=>e(()=>({isLoading:t})),setResponseType:t=>e(()=>({responseType:t})),setError:t=>e(()=>({error:t})),setTsdbStatus:t=>e(()=>({tsdbStatus:t}))})),Pb=e=>({color:`${e.contrast}`,overflow:"visible",fontSize:"12px",background:`${e.shadow}`,border:`1px solid ${e.accentNeutral}`,mt:1.5,"& .MuiAvatar-root":{width:32,height:32,ml:-.5,mr:1},"&:before":{content:'""',display:"block",position:"absolute",top:0,right:14,width:10,height:10,borderLeft:`1px solid ${e.accentNeutral}`,borderTop:`1px solid ${e.accentNeutral}`,bgcolor:`${e.shadow}`,transform:"translateY(-50%) rotate(45deg)",zIndex:0},"& .icon":{fontSize:"16px",marginRight:"4px",color:`${e.maxContrast}`},"& .item":{fontSize:"12px",color:`${e.maxContrast}`},".rdp-day_selected, .rdp-day_selected:focus-visible, .rdp-day_selected:hover":{background:`${e.primary}`,color:`${e.maxContrast}`},"& .rdp-day_selected : hover":{background:`${e.primary}`,color:`${e.maxContrast}`}}),Mo=(e,t=!1)=>{let n=!e||e.length<1?new Date:new Date(e);if(typeof e=="string")return n;{const r=t?n.getTimezoneOffset():-n.getTimezoneOffset(),o=new Date;return o.setTime(n.getTime()+r*6e4),o}};function $b(){const e=Ot(),[t,n]=Dt.useState(null),{date:r,setDate:o}=Lt(),[a,s]=Dt.useState(new Date(r)),i=!!t;let l=B("p",{children:"Please pick a day."});a&&(l=oe("p",{children:["You picked ",_t(a,"PP"),"."]}));const c=f=>{s(()=>Mo(f)),o(Nt(Mo(f)).format(bn)),n(null)},u=f=>{n(f.currentTarget)},d=()=>{n(null)};return oe(Rr,{children:[oe(bh,{sx:{display:"flex",alignItems:"center",textAlign:"center"},children:[a&&B("p",{style:{fontSize:".8em"},children:Nt(a).format(bn)}),B(qr,{title:"Select Day",children:B(ed,{onClick:u,size:"small",sx:{ml:2,color:`${e.maxContrast}`,background:`${e.primaryAccent}`,"&.MuiIconButton-root":{border:`1px solid ${e.primary}`,borderRadius:"3px"}},"aria-controls":i?"account-menu":void 0,"aria-haspopup":"true","aria-expanded":i?"true":void 0,children:B(sc,{style:{height:"16px",width:"16px"}})})})]}),B(oc,{id:"account-menu",anchorEl:t,open:i,onClose:d,PaperProps:{elevation:0,sx:Pb(e)},transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},children:B(mb,{mode:"single",selected:Mo(a,!0),onSelect:c,footer:l})})]})}const ni=(e,t)=>e?"{"+e+"="+JSON.stringify(t)+"}":"",Db=e=>e.reduce((t,n)=>(t[n]=t[n]+1||1,t),{}),Eb=e=>{if((e==null?void 0:e.length)<1)return"";let t="{",n=e.length,r=[];for(let a=0;a1)continue;const[i,l]=e[a].split("=");t+=`${i}="${l}"`,a===e.length-1?t+="}":t+=","}return t},xc={seriesCountByMetricName:({query:e})=>ni("__name__",e),seriesCountByLabelName:({query:e})=>{const t=`{${e}!=""}`;return localStorage.setItem("labelValuePairs",`${e}!=`),t},seriesCountByFocusLabelValue:({query:e,focusLabel:t})=>ni(t,e),seriesCountByLabelValuePair:({query:e})=>{let t;try{const o=localStorage.getItem("labelValuePairs");o?t=o:t=""}catch{t=""}let n="";if(t&&!t.includes(e))n=`${t} ${e}`,localStorage.setItem("labelValuePairs",n);else if(t&&t.includes(e)){let s=t.split(" ").filter(i=>i!==e).join(" ");n=s,localStorage.setItem("labelValuePairs",s)}else t===""&&(n=e,localStorage.setItem("labelValuePairs",n));let r=n.split(" ");return Eb(r)},labelValueCountByLabelName:({query:e,match:t})=>t===""?`{${e}!=""}`:`${t.replace(/\}/gm,"")}, ${e}!=""}`};function Rb(e){return e==null?void 0:e.sort((n,r)=>n.value-r.value)}function Nb(e){return e==null?void 0:e.sort((n,r)=>r.value-n.value)}function Lb(e){return e.sort((t,n)=>{const r=t.name.toUpperCase(),o=n.name.toUpperCase();return ro?1:0})}function Ob(e){return e.sort((t,n)=>{const r=t.name.toUpperCase(),o=n.name.toUpperCase();return or?1:0})}function _b(e,t,n){return{name:{asc:()=>Lb(e),desc:()=>Ob(e)},value:{asc:()=>Rb(e),desc:()=>Nb(e)}}[t][n]()}const ko=(e,t)=>{const n=t.match?`&match[]=${encodeURIComponent(t.match)}`:"",r=t.focusLabel?`&focusLabel=${encodeURIComponent(t.focusLabel)}`:"";return`${e}/api/v1/status/tsdb?topN=${t.topN}&date=${t.date}${n}${r}`};function Ib(e,t){return`${btoa(e)}${t&&t!==""?":":""}${btoa(t)}`}const Na={totalSeries:0,totalSeriesPrev:0,totalSeriesByAll:0,totalLabelValuePairs:0,seriesCountByMetricName:[],seriesCountByLabelName:[],seriesCountByFocusLabelValue:[],seriesCountByLabelValuePair:[],labelValueCountByLabelName:[]},Ab=e=>{const t=fn(c=>c.dataSources);let n="";const{auth:r,url:o,headers:a}=t.find(c=>c.value===e);let s=a==null?void 0:a.reduce((c,u)=>Object.assign(c,{[u.header]:u.value}),{});const i=r.basicAuth.value;let l={u:"",p:""};if(i){let[c,u]=r.fields.basicAuth,d=u.value,f=c.value;l.u=c==null?void 0:c.value,l.p=u==null?void 0:u.value,n=Ib(f,d)}return{url:o,auth:n,user_pass:l,headers:s}},jb=e=>({seriesCountByMetricName:"Metric names with highest number of series",seriesCountByLabelName:" Labels with the highest number of series",seriesCountByFocusLabelValue:`Values for "${e}" label with the highest number of series`,seriesCountByLabelValuePair:"Label=value pairs with the highest number of series",labelValueCountByLabelName:"Labels with the highest number of unique values"}),Fb={seriesCountByMetricName:"Metric Name",seriesCountByLabelName:"Label name",seriesCountByFocusLabelValue:"Label value",seriesCountByLabelValuePair:"Label=value pair",labelValueCountByLabelName:"Label name"},Bb=(e,t)=>jb(t??"metric")[Object.keys(e)[0]],Hb=e=>Object.keys(e)[0],Wb=e=>Fb[Object.keys(e)[0]],zb=e=>e[Object.keys(e)[0]],Ub=(e,t)=>({title:Bb(e,t),sectionHeaderName:Hb(e),sectionHeader:Wb(e),rows:zb(e)});function bc(e,t){return t===0?0:e*100/t}function Vb(e){return e===0?!1:e>60}const Yb=async(e,t,n,r,o,a)=>{const s={}.VITE_API_DELETE_URL||e;try{r(!0);const i=s+"/loki/api/v1/delete",{u:l,p:c}=a;await fetch(i,{method:"GET",headers:{...o,Authorization:`Basic ${btoa(l+":"+c)}`}}).then(u=>{(u&&(u==null?void 0:u.status)===204||(u==null?void 0:u.status)===200)&&console.log(u)})}catch(i){console.log(i),t(JSON.stringify(i))}finally{}},Kb=async(e,t,n,r,o,a,s,i,l,c)=>{const u={}.VITE_API_DELETE_URL||e;try{i(!0);const{u:d,p:f}=c,h=u+"/loki/api/v1/delete?query="+encodeURIComponent(t)+"&start="+r+"&end="+o;await fetch(h,{method:"POST",headers:{...l,Authorization:`Basic ${btoa(d+":"+f)}`}}).then(m=>{if(m&&(m==null?void 0:m.status)===500||(m==null?void 0:m.status)===400){a(m.statusText),i(!1);let y=m.text();Mr.dispatch(kr({message:y,type:"error"}))}(m&&(m==null?void 0:m.status)===204||(m==null?void 0:m.status)===200)&&(i(!1),a(""),Mr.dispatch(kr({message:`Deleted ${n} Fingerprints from ${t}`,type:"success"})))})}catch(d){a(JSON.stringify(d)),i(!1),s(f=>[...f,t]),Mr.dispatch(kr({message:`${n} Fingerprints from ${t} not deleted`,type:"error"}))}finally{i(!1)}},ri=async(e,t,n,r,o,a,s)=>{const{match:i}=t,l={date:t.date,topN:0,match:"",focusLabel:""},c={...t,date:Nt(t.date).subtract(1,"day").format(bn)},u=ko(e,t),d=ko(e,c),f=ko(e,l),h=[u,d,f];if(e){n(""),r(!0);try{const{u:m,p:y}=s,b=await Promise.all(h.map(C=>fetch(C,{headers:{...a,Authorization:`Basic ${btoa(m+":"+y)}`}})));if(b[0].status===400||b[0].status===500){const C=await b[0].text();n(C),r(!1),Mr.dispatch(kr({message:C,type:"error"}));return}const[g,S,w]=await Promise.all(b.map(C=>C.json()));if(b[0].ok){const{data:C}=w,T={...S.data},M={...g.data};M.totalSeriesByAll=C==null?void 0:C.totalSeries,M.totalSeriesPrev=T==null?void 0:T.totalSeries;const E=i==null?void 0:i.replace(/[{}"]/g,"");M.seriesCountByLabelValuePair=M.seriesCountByLabelValuePair.filter(O=>O.name!==E),Object.keys(M).forEach(O=>{const I=O,R=M[I],N=T[I];Array.isArray(R)&&Array.isArray(N)&&R.forEach(j=>{var L;const F=(L=N.find(D=>D.name===j.name))==null?void 0:L.value;j.diff=F?j.value-F:0,j.valuePrev=F||0})}),o(M),r(!1)}else n(g.error),o(Na)}catch(m){r(!1),m instanceof Error&&n(`${m.name}: ${m.message}`)}}},La=(e=!1)=>{const{timeSeriesSelector:t,focusLabel:n,limitEntries:r,date:o,setDeletedQueries:a,setError:s,setIsLoading:i,setTsdbStatus:l,error:c}=Lt(),u=o||Nt().format(bn),d={match:t,focusLabel:n,topN:r,date:u},{url:f,headers:h,user_pass:m}=Ab("logs"),y=async(S,w)=>{const C=io.tz.guess(!0),T=io.tz(u,C).add(1,"day"),M=io.tz(u,C).add(2,"day"),E=T.clone().utc().startOf("day").unix(),O=M.clone().utc().startOf("day").unix();await Kb(f,S,w,E,O,s,a,i,h,m)},b=async()=>{await Yb(f,s,a,i,h,m)},g=async S=>{const w=o||Nt().format(bn);let C={match:t,focusLabel:n,topN:r,date:w};S!==void 0&&(C={...C,...S}),await ri(f,C,s,i,l,h,m)};return p.useEffect(()=>{e&&ri(f,d,s,i,l,h,m)},[f,t,n,r,o]),p.useEffect(()=>{c&&(l(Na),i(!1))},[c]),{handleDelete:y,handleGetDeletedFingerprints:b,handleCardinalityRequest:g}},qb=({setHistoryItem:e})=>{const{timeSeriesSelector:t,setTimeSeriesSelector:n,focusLabel:r,setFocusLabel:o,limitEntries:a,setLimitEntries:s,reset:i,date:l}=Lt(),{total:c}=Lt(),{handleCardinalityRequest:u}=La(),[d,f]=p.useState(t),[h,m]=p.useState(r),[y,b]=p.useState(a);return p.useEffect(()=>{f(t)},[t]),p.useEffect(()=>{m(r)},[r]),p.useEffect(()=>{b(a)},[a]),{onTimeSeriesChange:R=>{f(()=>R.target.value)},onKeyDownTimeSeries:R=>{R.keyCode===13&&(n(d),u({match:d}),e("timeSeriesSelector",d))},onFocusLabeChange:R=>{m(()=>R.target.value)},onKeyDownFocusLabel:R=>{R.keyCode===13&&(o(h),u({focusLabel:h}),e("focusLabel",h))},onLimitEntriesChange:R=>{b(()=>R.target.value)},onKeyDownLimitEntries:R=>{R.keyCode===13&&(s(Number(y)),u({topN:y}),e("limitEntries",Number(y)))},onQueryHistoryChange:R=>{R.preventDefault(),n(R.target.innerText),u({match:R.target.innerText})},onFocusHistoryChange:R=>{R.preventDefault(),m(R.target.innerText),u({focusLabel:R.target.innerText})},onLimitHistoryChange:R=>{R.preventDefault(),b(Number(R.target.innerText)),u({topN:Number(R.target.innerText)})},query:d,focus:h,limit:y,totalSeries:c,reset:i,date:l}};var Oa={},Gb=it;Object.defineProperty(Oa,"__esModule",{value:!0});var yc=Oa.default=void 0,Xb=Gb(lt()),Qb=v;yc=Oa.default=(0,Xb.default)((0,Qb.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"}),"Restore");const Zb=e=>Ae("font-size:12px;line-height:20px;cursor:pointer;user-select:none;font-weight:500;white-space:nowrap;display:flex;align-items:center;background:",e.neutral,";border:1px solid ",e.accentNeutral,";color:",e.contrast,";border-radius:3px;height:26px;margin:0px 1px;padding:3px 5px;span{margin-left:5px;}svg{font-size:1.15em;margin:0px 2px;}&:hover{color:orange;}.tooltip{background-color:red;display:flex;align-items:center;justify-items:center;}",""),Jb=({theme:e,id:t,...n})=>B(oc,{id:t,elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"left"},PaperProps:{sx:{background:e.neutral,color:e.contrast}},transformOrigin:{vertical:"bottom",horizontal:"left"},...n}),e0=({id:e,handleClose:t,menuItems:n})=>{const r=Ot(),[o,a]=p.useState(null),s=!!o,i=c=>{a(()=>c.currentTarget)},l=c=>{a(null),c.target.innerText&&t(c)};return oe(Rr,{children:[B("button",{onClick:i,id:`custom-menu-button-${e}`,className:Ve(Zb(r)),"aria-controls":s?`custom-menu${e}`:void 0,"aria-haspopup":"true","aria-expanded":s?"true":void 0,children:B(yc,{fontSize:"small"})}),B(Jb,{id:`custom-menu-${e}`,anchorEl:o,open:s,onClose:l,theme:r,children:n==null?void 0:n.map((c,u)=>B(jg,{sx:{"&.MuiMenuItem-root":{fontSize:12}},onClick:l,children:c},`${c}-${u} r`))})]})},To=({name:e,value:t,label:n,size:r,inputSize:o="",type:a,onChange:s,onHistoryChange:i,onKeyDown:l,history:c,hasHistory:u})=>oe("div",{className:`form-group ${r}`,children:[B("label",{children:n}),B("input",{name:e,className:o,type:a,value:t,onKeyDown:l,onChange:s}),u&&(c==null?void 0:c.length)>0&&B(e0,{id:e,menuItems:c,handleClose:i})]}),t0=e=>Ae("background:",e.shadow,";padding:8px;border-radius:3px;margin:4px;margin-bottom:8px;display:flex;flex-direction:column;.form-row{display:flex;flex:1;}.form-group{display:flex;align-items:center;label{color:",e.contrast,";font-size:12px;padding:7px;background:",e.background,";border:1px solid ",e.lightNeutral,";border-radius:3px;}input,select{background:",e.deep,";border-radius:3px;padding:5px 8px;border:1px solid ",e.lightNeutral,";color:",e.contrast,";transition:0.35s all;font-family:monospace;&:focus{outline:none;border:1px solid ",e.primary,";}&.l{flex:1;}&.s{max-width:50px;}}select{padding:4px 7px;}&.l{flex:1;}}.config-actions{display:flex;align-items:center;justify-content:space-between;padding:4px 0px;.c-totals{display:flex;align-items:center;}.buttons-group{display:flex;gap:8px;align-items:center;}.query-button{height:30px;transition:0.35s all;background:",e.primaryAccent,";color:",e.maxContrast,";padding:4px 6px;border-radius:3px;border:1px solid ",e.primary,";cursor:pointer;display:flex;align-items:center;&:hover{background:",e.primary,";}}}",""),n0=de("MuiButton",["root","active","disabled","focusVisible"]),r0=n0;function Cc(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function o0(e={}){const{disabled:t=!1,focusableWhenDisabled:n,href:r,rootRef:o,tabIndex:a,to:s,type:i}=e,l=p.useRef(),[c,u]=p.useState(!1),{isFocusVisibleRef:d,onFocus:f,onBlur:h,ref:m}=gl(),[y,b]=p.useState(!1);t&&!n&&y&&b(!1),p.useEffect(()=>{d.current=y},[y,d]);const[g,S]=p.useState(""),w=D=>$=>{var P;y&&$.preventDefault(),(P=D.onMouseLeave)==null||P.call(D,$)},C=D=>$=>{var P;h($),d.current===!1&&b(!1),(P=D.onBlur)==null||P.call(D,$)},T=D=>$=>{var P;if(l.current||(l.current=$.currentTarget),f($),d.current===!0){var k;b(!0),(k=D.onFocusVisible)==null||k.call(D,$)}(P=D.onFocus)==null||P.call(D,$)},M=()=>{const D=l.current;return g==="BUTTON"||g==="INPUT"&&["button","submit","reset"].includes(D==null?void 0:D.type)||g==="A"&&(D==null?void 0:D.href)},E=D=>$=>{if(!t){var P;(P=D.onClick)==null||P.call(D,$)}},O=D=>$=>{var P;t||(u(!0),document.addEventListener("mouseup",()=>{u(!1)},{once:!0})),(P=D.onMouseDown)==null||P.call(D,$)},I=D=>$=>{var P;if((P=D.onKeyDown)==null||P.call(D,$),!$.defaultMuiPrevented&&($.target===$.currentTarget&&!M()&&$.key===" "&&$.preventDefault(),$.target===$.currentTarget&&$.key===" "&&!t&&u(!0),$.target===$.currentTarget&&!M()&&$.key==="Enter"&&!t)){var k;(k=D.onClick)==null||k.call(D,$),$.preventDefault()}},R=D=>$=>{var P;if($.target===$.currentTarget&&u(!1),(P=D.onKeyUp)==null||P.call(D,$),$.target===$.currentTarget&&!M()&&!t&&$.key===" "&&!$.defaultMuiPrevented){var k;(k=D.onClick)==null||k.call(D,$)}},N=p.useCallback(D=>{var $;S(($=D==null?void 0:D.tagName)!=null?$:"")},[]),j=Me(N,o,m,l),F={};return g==="BUTTON"?(F.type=i??"button",n?F["aria-disabled"]=t:F.disabled=t):g!==""&&(!r&&!s&&(F.role="button",F.tabIndex=a??0),t&&(F["aria-disabled"]=t,F.tabIndex=n?a??0:-1)),{getRootProps:(D={})=>{const $=Cc(e),P=x({},$,D);return delete P.onFocusVisible,x({type:i},P,F,{onBlur:C(P),onClick:E(P),onFocus:T(P),onKeyDown:I(P),onKeyUp:R(P),onMouseDown:O(P),onMouseLeave:w(P),ref:j})},focusVisible:y,setFocusVisible:b,active:c,rootRef:j}}function a0(e){return typeof e=="string"}function s0(e,t,n){return e===void 0||a0(e)?t:x({},t,{ownerState:x({},t.ownerState,n)})}function oi(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const i0={disableDefaultClasses:!1},l0=p.createContext(i0);function Xr(e){const{disableDefaultClasses:t}=p.useContext(l0);return n=>t?"":e(n)}function c0(e,t){return typeof e=="function"?e(t):e}function wc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function u0(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const h=ai(o==null?void 0:o.className,r==null?void 0:r.className,a,n==null?void 0:n.className),m=x({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),y=x({},n,o,r);return h.length>0&&(y.className=h),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:void 0}}const s=Cc(x({},o,r)),i=si(r),l=si(o),c=t(s),u=ai(c==null?void 0:c.className,n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),d=x({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=x({},c,n,l,i);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}const d0=["elementType","externalSlotProps","ownerState"];function Qr(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,a=J(e,d0),s=c0(r,o),{props:i,internalRef:l}=u0(x({},a,{externalSlotProps:s})),c=Me(l,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return s0(n,x({},i,{ref:c}),o)}function f0(e){return ve("MuiTab",e)}const p0=de("MuiTab",["root","selected","disabled"]),h0=p0;function m0(e){return ve("MuiTabs",e)}de("MuiTabs",["root","horizontal","vertical"]);const Zr=p.createContext(null);Zr.displayName="CompoundComponentContext";function g0(e){const t=Array.from(e.keys()).map(n=>{const r=e.get(n);return{key:n,subitem:r}});return t.sort((n,r)=>{const o=n.subitem.ref.current,a=r.subitem.ref.current;return o===null||a===null||o===a?0:o.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(t.map(n=>[n.key,n.subitem]))}function Sc(){const[e,t]=p.useState(new Map),n=p.useRef(new Set),r=p.useCallback(function(l){n.current.delete(l),t(c=>{const u=new Map(c);return u.delete(l),u})},[]),o=p.useCallback(function(l,c){let u;return typeof l=="function"?u=l(n.current):u=l,n.current.add(u),t(d=>{const f=new Map(d);return f.set(u,c),f}),{id:u,deregister:()=>r(u)}},[r]),a=p.useMemo(()=>g0(e),[e]);return{contextValue:{getItemIndex:p.useCallback(function(l){return Array.from(a.keys()).indexOf(l)},[a]),registerItem:o,totalSubitemCount:e.size},subitems:a}}function v0(e){const{value:t,defaultValue:n,onChange:r,orientation:o,direction:a,selectionFollowsFocus:s}=e,[i,l]=Sl({controlled:t,default:n,name:"Tabs",state:"value"}),c=p.useCallback((b,g)=>{l(g),r==null||r(b,g)},[r,l]),{subitems:u,contextValue:d}=Sc(),f=p.useRef(()=>{}),h=p.useCallback(b=>{var g;return(g=u.get(b))==null?void 0:g.id},[u]),m=p.useCallback(b=>f.current(b),[]),y=p.useCallback(b=>{f.current=b},[]);return{contextValue:x({direction:a,getTabId:m,getTabPanelId:h,onSelected:c,orientation:o,registerTabIdLookup:y,selectionFollowsFocus:s,value:i},d)}}const Mc=p.createContext(null);function _a(){const e=p.useContext(Mc);if(e==null)throw new Error("No TabsContext provided");return e}function x0(e){const{value:t,children:n}=e,{direction:r,getItemIndex:o,onSelected:a,orientation:s,registerItem:i,registerTabIdLookup:l,selectionFollowsFocus:c,totalSubitemCount:u,value:d,getTabId:f,getTabPanelId:h}=t,m=p.useMemo(()=>({getItemIndex:o,registerItem:i,totalSubitemCount:u}),[i,o,u]),y=p.useMemo(()=>({direction:r,getTabId:f,getTabPanelId:h,onSelected:a,orientation:s,registerTabIdLookup:l,selectionFollowsFocus:c,value:d}),[r,f,h,a,s,l,c,d]);return v.jsx(Zr.Provider,{value:m,children:v.jsx(Mc.Provider,{value:y,children:n})})}const b0=["children","value","defaultValue","orientation","direction","onChange","selectionFollowsFocus","slotProps","slots"],y0=e=>{const{orientation:t}=e;return me({root:["root",t]},Xr(m0))},C0=p.forwardRef(function(t,n){var r;const{children:o,orientation:a="horizontal",direction:s="ltr",slotProps:i={},slots:l={}}=t,c=J(t,b0),{contextValue:u}=v0(t),d=x({},t,{orientation:a,direction:s}),f=y0(d),h=(r=l.root)!=null?r:"div",m=Qr({elementType:h,externalSlotProps:i.root,externalForwardedProps:c,additionalProps:{ref:n},ownerState:d,className:f.root});return v.jsx(h,x({},m,{children:v.jsx(x0,{value:u,children:o})}))}),w0=C0;function kc(e,t){const n=p.useContext(Zr);if(n===null)throw new Error("useCompoundItem must be used within a useCompoundParent");const{registerItem:r}=n,[o,a]=p.useState(typeof e=="function"?void 0:e);return Je(()=>{const{id:s,deregister:i}=r(e,t);return a(s),i},[r,t,e]),{id:o,index:o!==void 0?n.getItemIndex(o):-1,totalItemCount:n.totalSubitemCount}}const Ee={blur:"list:blur",focus:"list:focus",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",textNavigation:"list:textNavigation"};function S0(e,t,n,r,o,a){if(n.length===0||!r&&n.every((i,l)=>o(i,l)))return-1;let s=e;for(;;){if(!a&&t==="next"&&s===n.length||!a&&t==="previous"&&s===-1)return-1;if(r?!1:o(n[s],s))s+=t==="next"?1:-1,a&&(s=(s+n.length)%n.length);else return s}}function ze(e,t,n){var r;const{items:o,isItemDisabled:a,disableListWrap:s,disabledItemsFocusable:i,itemComparer:l,focusManagement:c}=n,u=c==="DOM"?0:-1,d=o.length-1,f=e==null?-1:o.findIndex(g=>l(g,e));let h,m,y=!s;switch(t){case"reset":if(u===-1)return null;h=0,m="next",y=!1;break;case"start":h=0,m="next",y=!1;break;case"end":h=d,m="previous",y=!1;break;default:{const g=f+t;g<0?!y&&f!==-1||Math.abs(t)>1?(h=0,m="next"):(h=d,m="previous"):g>d?!y||Math.abs(t)>1?(h=d,m="previous"):(h=0,m="next"):(h=g,m=t>=0?"next":"previous")}}const b=S0(h,m,o,i,a,y);return b===-1&&e!==null&&!a(e,f)?e:(r=o[b])!=null?r:null}function M0(e,t,n,r){return n==="none"?[]:n==="single"?r(t[0],e)?t:[e]:t.some(o=>r(o,e))?t.filter(o=>!r(o,e)):[...t,e]}function Tc(e,t,n){const{itemComparer:r,isItemDisabled:o,selectionMode:a,items:s}=n,{selectedValues:i}=t,l=s.findIndex(u=>r(e,u));if(o(e,l))return t;const c=M0(e,i,a,r);return x({},t,{selectedValues:c,highlightedValue:e})}function k0(e,t,n){const r=t.highlightedValue,{orientation:o,pageSize:a}=n;switch(e){case"Home":return x({},t,{highlightedValue:ze(r,"start",n)});case"End":return x({},t,{highlightedValue:ze(r,"end",n)});case"PageUp":return x({},t,{highlightedValue:ze(r,-a,n)});case"PageDown":return x({},t,{highlightedValue:ze(r,a,n)});case"ArrowUp":if(o!=="vertical")break;return x({},t,{highlightedValue:ze(r,-1,n)});case"ArrowDown":if(o!=="vertical")break;return x({},t,{highlightedValue:ze(r,1,n)});case"ArrowLeft":{if(o==="vertical")break;return x({},t,{highlightedValue:ze(r,o==="horizontal-ltr"?-1:1,n)})}case"ArrowRight":{if(o==="vertical")break;return x({},t,{highlightedValue:ze(r,o==="horizontal-ltr"?1:-1,n)})}case"Enter":case" ":return t.highlightedValue===null?t:Tc(t.highlightedValue,t,n)}return t}function T0(e,t){return t.focusManagement==="DOM"?e:x({},e,{highlightedValue:null})}function P0(e,t,n){var r;const o=(r=n(e))==null?void 0:r.trim().toLowerCase();return!o||o.length===0?!1:o.indexOf(t)===0}function $0(e,t,n){const{items:r,isItemDisabled:o,disabledItemsFocusable:a,getItemAsString:s}=n,i=t.length>1;let l=i?e.highlightedValue:ze(e.highlightedValue,1,n);for(let c=0;ca(d,n.highlightedValue)))!=null?l:null}else s==="DOM"&&t.length===0&&(i=ze(null,"reset",r));const u=((o=n.selectedValues)!=null?o:[]).filter(d=>e.some(f=>a(f,d)));return x({},n,{highlightedValue:i,selectedValues:u})}function E0(e,t){return x({},e,{highlightedValue:ze(null,"reset",t)})}function Pc(e,t){const{type:n,context:r}=t;switch(n){case Ee.keyDown:return k0(t.key,e,r);case Ee.itemClick:return Tc(t.item,e,r);case Ee.blur:return T0(e,r);case Ee.textNavigation:return $0(e,t.searchString,r);case Ee.itemsChange:return D0(t.items,t.previousItems,e,r);case Ee.resetHighlight:return E0(e,r);default:return e}}function R0(){const e=new Map;function t(r,o){let a=e.get(r);return a?a.add(o):(a=new Set([o]),e.set(r,a)),()=>{a.delete(o),a.size===0&&e.delete(r)}}function n(r,...o){const a=e.get(r);a&&a.forEach(s=>s(...o))}return{subscribe:t,publish:n}}function N0(){const e=p.useRef();return e.current||(e.current=R0()),e.current}const ii="select:change-selection",li="select:change-highlight";function L0(){const e=N0(),t=p.useCallback(a=>{e.publish(ii,a)},[e]),n=p.useCallback(a=>{e.publish(li,a)},[e]),r=p.useCallback(a=>e.subscribe(ii,a),[e]),o=p.useCallback(a=>e.subscribe(li,a),[e]);return{notifySelectionChanged:t,notifyHighlightChanged:n,registerSelectionChangeHandler:r,registerHighlightChangeHandler:o}}function O0(e,t){return e===t}const Po={},ci=()=>{};function Go(e,t){const n=x({},e);return Object.keys(t).forEach(r=>{t[r]!==void 0&&(n[r]=t[r])}),n}function _0(e){const{nextState:t,initialState:n,stateComparers:r,onStateChange:o,controlledProps:a,lastActionRef:s}=e,i=p.useRef(n);p.useEffect(()=>{if(s.current===null)return;const l=Go(i.current,a);Object.keys(t).forEach(c=>{var u;const d=(u=r[c])!=null?u:O0,f=t[c],h=l[c];if(h==null&&f!=null||h!=null&&f==null||h!=null&&f!=null&&!d(f,h)){var m,y;o==null||o((m=s.current.event)!=null?m:null,c,f,(y=s.current.type)!=null?y:"",t)}}),i.current=t,s.current=null},[i,t,s,o,r,a])}function I0(e){const t=p.useRef(null),{reducer:n,initialState:r,controlledProps:o=Po,stateComparers:a=Po,onStateChange:s=ci,actionContext:i}=e,l=p.useCallback((f,h)=>{t.current=h;const m=Go(f,o);return n(m,h)},[o,n]),[c,u]=p.useReducer(l,r),d=p.useCallback(f=>{u(x({},f,{context:i}))},[i]);return _0({nextState:c,initialState:r,stateComparers:a??Po,onStateChange:s??ci,controlledProps:o,lastActionRef:t}),[Go(c,o),d]}function ui(e,t){const n=p.useRef(e);return p.useEffect(()=>{n.current=e},t??[e]),n}const A0=500;function j0(e){const t=p.useRef({searchString:"",lastTime:null});return p.useCallback(n=>{if(n.key.length===1&&n.key!==" "){const r=t.current,o=n.key.toLowerCase(),a=performance.now();r.searchString.length>0&&r.lastTime&&a-r.lastTime>A0?r.searchString=o:(r.searchString.length!==1||o!==r.searchString)&&(r.searchString+=o),r.lastTime=a,e(r.searchString,n)}},[e])}const di={},F0=()=>{},B0=(e,t)=>e===t,H0=()=>!1,W0=e=>typeof e=="string"?e:String(e),z0=()=>({highlightedValue:null,selectedValues:[]});function U0(e){const{controlledProps:t=di,disabledItemsFocusable:n=!1,disableListWrap:r=!1,focusManagement:o="activeDescendant",getInitialState:a=z0,getItemDomElement:s,getItemId:i,isItemDisabled:l=H0,rootRef:c,onStateChange:u=F0,items:d,itemComparer:f=B0,getItemAsString:h=W0,onChange:m,onHighlightChange:y,onItemsChange:b,orientation:g="vertical",pageSize:S=5,reducerActionContext:w=di,selectionMode:C="single",stateReducer:T}=e,M=p.useRef(null),E=Me(c,M),O=p.useCallback((_,z,U)=>{if(y==null||y(_,z,U),o==="DOM"&&z!=null&&(U===Ee.itemClick||U===Ee.keyDown||U===Ee.textNavigation)){var G;s==null||(G=s(z))==null||G.focus()}},[s,y,o]),I=p.useMemo(()=>({highlightedValue:f,selectedValues:(_,z)=>oi(_,z,f)}),[f]),R=p.useCallback((_,z,U,G,xe)=>{switch(u==null||u(_,z,U,G,xe),z){case"highlightedValue":O(_,U,G);break;case"selectedValues":m==null||m(_,U,G);break}},[O,m,u]),N=p.useMemo(()=>({disabledItemsFocusable:n,disableListWrap:r,focusManagement:o,isItemDisabled:l,itemComparer:f,items:d,getItemAsString:h,onHighlightChange:O,orientation:g,pageSize:S,selectionMode:C,stateComparers:I}),[n,r,o,l,f,d,h,O,g,S,C,I]),j=a(),F=T??Pc,L=p.useMemo(()=>x({},w,N),[w,N]),[D,$]=I0({reducer:F,actionContext:L,initialState:j,controlledProps:t,stateComparers:I,onStateChange:R}),{highlightedValue:P,selectedValues:k}=D,A=j0((_,z)=>$({type:Ee.textNavigation,event:z,searchString:_})),W=ui(k),K=ui(P),Q=p.useRef([]);p.useEffect(()=>{oi(Q.current,d,f)||($({type:Ee.itemsChange,event:null,items:d,previousItems:Q.current}),Q.current=d,b==null||b(d))},[d,f,$,b]);const{notifySelectionChanged:re,notifyHighlightChanged:ee,registerHighlightChangeHandler:ne,registerSelectionChangeHandler:ie}=L0();p.useEffect(()=>{re(k)},[k,re]),p.useEffect(()=>{ee(P)},[P,ee]);const ge=_=>z=>{var U;if((U=_.onKeyDown)==null||U.call(_,z),z.defaultMuiPrevented)return;const G=["Home","End","PageUp","PageDown"];g==="vertical"?G.push("ArrowUp","ArrowDown"):G.push("ArrowLeft","ArrowRight"),o==="activeDescendant"&&G.push(" ","Enter"),G.includes(z.key)&&z.preventDefault(),$({type:Ee.keyDown,key:z.key,event:z}),A(z)},ce=_=>z=>{var U,G;(U=_.onBlur)==null||U.call(_,z),!z.defaultMuiPrevented&&((G=M.current)!=null&&G.contains(z.relatedTarget)||$({type:Ee.blur,event:z}))},H=(_={})=>x({},_,{"aria-activedescendant":o==="activeDescendant"&&P!=null?i(P):void 0,onBlur:ce(_),onKeyDown:ge(_),tabIndex:o==="DOM"?-1:0,ref:E}),V=p.useCallback(_=>{var z;const U=d.findIndex(Re=>f(Re,_)),G=((z=W.current)!=null?z:[]).some(Re=>Re!=null&&f(_,Re)),xe=l(_,U),he=K.current!=null&&f(_,K.current);return{disabled:xe,focusable:o==="DOM",highlighted:he,index:U,selected:G}},[d,l,f,W,K,o]),q=p.useMemo(()=>({dispatch:$,getItemState:V,registerHighlightChangeHandler:ne,registerSelectionChangeHandler:ie}),[$,V,ne,ie]);return p.useDebugValue({state:D}),{contextValue:q,dispatch:$,getRootProps:H,rootRef:E,state:D}}function V0(){const[,e]=p.useState({});return p.useCallback(()=>{e({})},[])}const $c=p.createContext(null);function Y0(e){const{handlePointerOverEvents:t=!1,item:n,rootRef:r}=e,o=p.useRef(null),a=Me(o,r),s=p.useContext($c);if(!s)throw new Error("useListItem must be used within a ListProvider");const{dispatch:i,getItemState:l,registerHighlightChangeHandler:c,registerSelectionChangeHandler:u}=s,{highlighted:d,selected:f,focusable:h}=l(n),m=V0();Je(()=>{function w(C){(C===n&&!d||C!==n&&d)&&m()}return c(w)}),Je(()=>{function w(C){f?C.includes(n)||m():C.includes(n)&&m()}return u(w)},[u,m,f,n]);const y=p.useCallback(w=>C=>{var T;(T=w.onClick)==null||T.call(w,C),!C.defaultPrevented&&i({type:Ee.itemClick,item:n,event:C})},[i,n]),b=p.useCallback(w=>C=>{var T;(T=w.onMouseOver)==null||T.call(w,C),!C.defaultPrevented&&i({type:Ee.itemHover,item:n,event:C})},[i,n]);let g;return h&&(g=d?0:-1),{getRootProps:(w={})=>x({},w,{onClick:y(w),onPointerOver:t?b(w):void 0,ref:a,tabIndex:g}),highlighted:d,rootRef:a,selected:f}}function K0(e){return e.size}function q0(e){const{value:t,rootRef:n,disabled:r=!1,id:o}=e,a=p.useRef(null),s=tr(o),{value:i,selectionFollowsFocus:l,getTabPanelId:c}=_a(),u=p.useMemo(()=>({disabled:r,ref:a,id:s}),[r,a,s]),{id:d,index:f,totalItemCount:h}=kc(t??K0,u),{getRootProps:m,rootRef:y,highlighted:b,selected:g}=Y0({item:d}),{getRootProps:S,rootRef:w,active:C,focusVisible:T,setFocusVisible:M}=o0({disabled:r,focusableWhenDisabled:!l,type:"button"}),E=Me(a,n,y,w),O=d!==void 0?c(d):void 0;return{getRootProps:(R={})=>{const N=x({},R,m(R)),j=x({},N,S(N));return x({},j,{role:"tab","aria-controls":O,"aria-selected":g,id:s,ref:E})},active:C,focusVisible:T,highlighted:b,index:f,rootRef:E,selected:g||d===i,setFocusVisible:M,totalTabsCount:h}}const G0=["action","children","value","disabled","onChange","onClick","onFocus","slotProps","slots"],X0=e=>{const{selected:t,disabled:n}=e;return me({root:["root",t&&"selected",n&&"disabled"]},Xr(f0))},Q0=p.forwardRef(function(t,n){var r;const{children:o,disabled:a=!1,slotProps:s={},slots:i={}}=t,l=J(t,G0),c=p.useRef(),u=Me(c,n),{active:d,highlighted:f,selected:h,getRootProps:m}=q0(x({},t,{rootRef:u})),y=x({},t,{active:d,disabled:a,highlighted:f,selected:h}),b=X0(y),g=(r=i.root)!=null?r:"button",S=Qr({elementType:g,getSlotProps:m,externalSlotProps:s.root,externalForwardedProps:l,additionalProps:{ref:n},ownerState:y,className:b.root});return v.jsx(g,x({},S,{children:o}))}),Z0=Q0;var Ia={},J0=it;Object.defineProperty(Ia,"__esModule",{value:!0});var Dc=Ia.default=void 0,ey=J0(lt()),fi=v;Dc=Ia.default=(0,ey.default)([(0,fi.jsx)("path",{d:"M20 3H4c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h4v2h8v-2h4c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2m0 14H4V5h16z"},"0"),(0,fi.jsx)("path",{d:"M6 8.25h8v1.5H6zm10.5 1.5H18v-1.5h-1.5V7H15v4h1.5zm-6.5 2.5h8v1.5h-8zM7.5 15H9v-4H7.5v1.25H6v1.5h1.5z"},"1")],"DisplaySettings");var Aa={},ty=it;Object.defineProperty(Aa,"__esModule",{value:!0});var Ec=Aa.default=void 0,ny=ty(lt()),ry=v;Ec=Aa.default=(0,ny.default)((0,ry.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"}),"History");var ja={},oy=it;Object.defineProperty(ja,"__esModule",{value:!0});var Rc=ja.default=void 0,ay=oy(lt()),sy=v;Rc=ja.default=(0,ay.default)((0,sy.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search");function iy(e){return ve("MuiTabsList",e)}de("MuiTabsList",["root","horizontal","vertical"]);const Nc={valueChange:"valueChange"};function ly(e,t){if(t.type===Nc.valueChange)return x({},e,{highlightedValue:t.value});const n=Pc(e,t),{context:{selectionFollowsFocus:r}}=t;if(t.type===Ee.itemsChange){if(n.selectedValues.length>0)return x({},n,{highlightedValue:n.selectedValues[0]});ze(null,"reset",t.context)}return r&&n.highlightedValue!=null?x({},n,{selectedValues:[n.highlightedValue]}):n}function cy(e){var t;const{rootRef:n}=e,{direction:r="ltr",onSelected:o,orientation:a="horizontal",value:s,registerTabIdLookup:i,selectionFollowsFocus:l}=_a(),{subitems:c,contextValue:u}=Sc(),d=p.useCallback(R=>{var N;return(N=c.get(R))==null?void 0:N.id},[c]);i(d);const f=p.useMemo(()=>Array.from(c.keys()),[c]),h=p.useCallback(R=>{var N,j;return R==null?null:(N=(j=c.get(R))==null?void 0:j.ref.current)!=null?N:null},[c]),m=r==="rtl";let y;a==="vertical"?y="vertical":y=m?"horizontal-rtl":"horizontal-ltr";const b=p.useCallback((R,N)=>{var j;o(R,(j=N[0])!=null?j:null)},[o]),g=p.useMemo(()=>s===void 0?{}:s!=null?{selectedValues:[s]}:{selectedValues:[]},[s]),S=p.useCallback(R=>{var N,j;return(N=(j=c.get(R))==null?void 0:j.disabled)!=null?N:!1},[c]),{contextValue:w,dispatch:C,getRootProps:T,state:{highlightedValue:M,selectedValues:E},rootRef:O}=U0({controlledProps:g,disabledItemsFocusable:!l,focusManagement:"DOM",getItemDomElement:h,isItemDisabled:S,items:f,rootRef:n,onChange:b,orientation:y,reducerActionContext:p.useMemo(()=>({selectionFollowsFocus:l||!1}),[l]),selectionMode:"single",stateReducer:ly});p.useEffect(()=>{s!==void 0&&s!=null&&C({type:Nc.valueChange,value:s})},[C,s]);const I=(R={})=>x({},R,T(R),{"aria-orientation":a==="vertical"?"vertical":void 0,role:"tablist"});return{contextValue:x({},u,w),dispatch:C,getRootProps:I,highlightedValue:M,isRtl:m,orientation:a,rootRef:O,selectedValue:(t=E[0])!=null?t:null}}function uy(e){const{value:t,children:n}=e,{dispatch:r,getItemIndex:o,getItemState:a,registerHighlightChangeHandler:s,registerSelectionChangeHandler:i,registerItem:l,totalSubitemCount:c}=t,u=p.useMemo(()=>({dispatch:r,getItemState:a,getItemIndex:o,registerHighlightChangeHandler:s,registerSelectionChangeHandler:i}),[r,o,a,s,i]),d=p.useMemo(()=>({getItemIndex:o,registerItem:l,totalSubitemCount:c}),[l,o,c]);return v.jsx(Zr.Provider,{value:d,children:v.jsx($c.Provider,{value:u,children:n})})}const dy=["children","slotProps","slots"],fy=e=>{const{orientation:t}=e;return me({root:["root",t]},Xr(iy))},py=p.forwardRef(function(t,n){var r;const{children:o,slotProps:a={},slots:s={}}=t,i=J(t,dy),{isRtl:l,orientation:c,getRootProps:u,contextValue:d}=cy({rootRef:n}),f=x({},t,{isRtl:l,orientation:c}),h=fy(f),m=(r=s.root)!=null?r:"div",y=Qr({elementType:m,getSlotProps:u,externalSlotProps:a.root,externalForwardedProps:i,ownerState:f,className:h.root});return v.jsx(uy,{value:d,children:v.jsx(m,x({},y,{children:o}))})}),hy=py;function my(e){return ve("MuiTabPanel",e)}de("MuiTabPanel",["root","hidden"]);function gy(e){return e.size}function vy(e){const{value:t,id:n,rootRef:r}=e,o=_a();if(o===null)throw new Error("No TabContext provided");const{value:a,getTabId:s}=o,i=tr(n),l=p.useRef(null),c=Me(l,r),u=p.useMemo(()=>({id:i,ref:l}),[i]),{id:d}=kc(t??gy,u),f=d!==a,h=d!==void 0?s(d):void 0;return{hidden:f,getRootProps:()=>({"aria-labelledby":h??void 0,hidden:f,id:i??void 0,ref:c}),rootRef:c}}const xy=["children","value","slotProps","slots"],by=e=>{const{hidden:t}=e;return me({root:["root",t&&"hidden"]},Xr(my))},yy=p.forwardRef(function(t,n){var r;const{children:o,slotProps:a={},slots:s={}}=t,i=J(t,xy),{hidden:l,getRootProps:c}=vy(t),u=x({},t,{hidden:l}),d=by(u),f=(r=s.root)!=null?r:"div",h=Qr({elementType:f,getSlotProps:c,externalSlotProps:a.root,externalForwardedProps:i,additionalProps:{role:"tabpanel",ref:n},ownerState:u,className:d.root});return v.jsx(f,x({},h,{children:!l&&o}))}),Cy=yy;var Fa={},wy=it;Object.defineProperty(Fa,"__esModule",{value:!0});var Lc=Fa.default=void 0,Sy=wy(lt()),My=v;Lc=Fa.default=(0,Sy.default)((0,My.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z"}),"StarBorder");var Ba={},ky=it;Object.defineProperty(Ba,"__esModule",{value:!0});var Oc=Ba.default=void 0,Ty=ky(lt()),Py=v;Oc=Ba.default=(0,Ty.default)((0,Py.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link");const $y=le("button",{target:"efhpvve1"})("display:flex;align-items:center;font-size:12px;cursor:pointer;user-select:none;border:none;border-radius:",e=>{switch(e.side){case"central":return"0px";case"left":return"10px 0px 0px 10px";case"right":return"0px 10px 10px 0px";case"individual":return"10px"}},";padding:0px 6px;white-space:nowrap;background:",e=>e.theme.neutral,";border:1px solid ",e=>e.theme.deep,";color:",e=>e.theme.contrast,";height:26px;span{margin-left:5px;}svg{margin:0;padding:0;}&:hover{color:orange;}"),dk=le(e=>B(Im,{anchor:"bottom",style:{maxHeight:"250px"},variant:"persistent",...e}),{target:"e1sfd2ep24"})(({theme:e})=>({"& .MuiPaper-root":{borderTop:`1px solid ${e.accentNeutral}`}}),""),fk=le(w0,{target:"e1sfd2ep23"})('height:"320px";background:',({theme:e})=>e.deep,";"),pk=le(Z0,{target:"e1sfd2ep22"})("color:",({theme:e})=>e.contrast,";background:",({theme:e})=>e.neutral,";border:1px solid ",e=>e.theme.accentNeutral,";cursor:pointer;font-size:13px;background-color:transparent;padding:6px 10px;border:none;border-radius:3px 3px 0px 0px;display:flex;justify-content:center;align-items:center;border-bottom:1px solid transparent;transition:0.2s all;&:hover{background-color:",({theme:e})=>e.lightNeutral,";}&:focus{color:",({theme:e})=>e.contrast,";background:",({theme:e})=>e.neutral,";border-radius:3px 3px 0px 0px;outline-offset:2px;}&.",h0.selected,"{border-bottom:1px solid ",({theme:e})=>e.primary,";}&.",r0.disabled,"{opacity:0.5;cursor:not-allowed;}@media screen and (max-width: 360px){span{display:none;}padding:5px 20px;}"),hk=le(Ec,{target:"e1sfd2ep21"})({name:"1hncz6a",styles:"height:16px;width:16px;margin-right:3px"}),mk=le(Lc,{target:"e1sfd2ep20"})({name:"1hncz6a",styles:"height:16px;width:16px;margin-right:3px"}),gk=le(Dc,{target:"e1sfd2ep19"})({name:"1hncz6a",styles:"height:16px;width:16px;margin-right:3px"}),vk=le(Oc,{target:"e1sfd2ep18"})({name:"1hncz6a",styles:"height:16px;width:16px;margin-right:3px"}),xk=le(Rc,{target:"e1sfd2ep17"})("height:21px;width:16px;padding:0px 3px;border-radius:3px 0px 0px 3px;background:",({theme:e})=>e.deep,";"),bk=le("div",{target:"e1sfd2ep16"})("padding:0px 15px;font-size:13px;display:flex;align-items:center;color:",({theme:e})=>e.contrast,";justify-content:space-between;background:",({theme:e})=>e.shadow,";height:37px;"),yk=le(Cy,{target:"e1sfd2ep15"})("width:100%;background:",({theme:e})=>e.shadow,";"),Ck=le(hy,{target:"e1sfd2ep14"})("min-width:320px;background:",({theme:e})=>e.shadow,";border-bottom:4px solid ",({theme:e})=>e.bgNeutral,";display:flex;align-items:center;align-content:space-between;"),wk=le("div",{target:"e1sfd2ep13"})("display:flex;align-items:center;justify-content:center;color:",({theme:e})=>e.contrast,";font-size:14px;flex:1;padding:20px;height:50%;"),Sk=le("div",{target:"e1sfd2ep12"})("height:250px;overflow-y:auto;color:",({theme:e})=>e.contrast,";background:",({theme:e})=>e.lightActiveBg,";&.starredCont{height:210px;}&::-webkit-scrollbar{width:5px;background:",({theme:e})=>e.neutral,";}&::-webkit-scrollbar-corner{background:transparent;}&::-webkit-scrollbar-thumb{border-radius:5px;background:",({theme:e})=>e.alphaPlusNeutral,";}"),lr=le($y,{target:"e1sfd2ep11"})("padding:3px 6px;background:",({theme:e})=>e.neutral,";border:1px solid ",e=>e.theme.accentNeutral,";border-radius:3px;border:none;color:",({theme:e})=>e.contrast,";display:flex;align-items:center;justify-content:center;margin:0px 6px;cursor:pointer;min-height:20px;"),Mk=le("div",{target:"e1sfd2ep10"})("height:100px;width:240px;display:flex;flex-direction:column;justify-content:space-between;padding:20px;background:",({theme:e})=>e.neutral,";border:1px solid ",e=>e.theme.accentNeutral,";margin:10px;border-radius:3px;& div{font-size:15px;color:",({theme:e})=>e.accent,";line-height:1.5;}& small{font-size:12px;color:",({theme:e})=>e.contrast,";line-height:1.5;margin-bottom:10px;}"),kk=le(lr,{target:"e1sfd2ep9"})("background:",({theme:e})=>e.primary,";color:",({theme:e})=>e.maxContrast,";white-space:nowrap;.open-icon{display:none;}.open-text{display:flex;font-size:12px;}@media screen and (max-width: 1070px){.open-icon{display:flex;}.open-text{display:none;}}"),Tk=le(lr,{target:"e1sfd2ep8"})("font-weight:bold;padding:10px 20px;background:",({theme:e})=>e.primary,";color:",({theme:e})=>e.maxContrast,";margin:0;width:100%;white-space:nowrap;"),Pk=le(lr,{target:"e1sfd2ep7"})("background:none;color:",({theme:e})=>e.contrast,";position:absolute;right:0;"),Dy=le(lr,{target:"e1sfd2ep6"})("background:",({theme:e})=>e.neutral,";border:1px solid ",e=>e.theme.accentNeutral,";padding:8px 16px;"),Ey=le(lr,{target:"e1sfd2ep5"})("background:",({theme:e,active:t})=>t?e.primary:e.shadow,";color:",({theme:e,active:t})=>t?e.maxContrast:e.contrast,";padding:8px 16px;cursor:",({active:e})=>e?"pointer":"not-allowed",";pointer-events:",({active:e})=>e?"auto":"none",";"),$k=le("input",{target:"e1sfd2ep4"})("color:",({theme:e})=>e.contrast,";background:",({theme:e})=>e.deep,";border:none;height:21px;margin:0px 10px 0px 0px;padding:0px;font-size:13px;border-radius:0px 3px 3px 0px;font-family:monospace;font-size:12px;&:focus{outline:none;color:",({theme:e})=>e.primary,";}"),Dk=le("span",{target:"e1sfd2ep3"})('flex:1;font-family:monospace;display:flex;align-items:center;font-size:"13px";color:',({theme:e})=>e.contrast,";white-space:nowrap;padding:4px 0px;overflow:hidden;text-overflow:ellipsis;"),Ek=le("div",{target:"e1sfd2ep2"})("display:flex;flex:1;justify-content:space-between;.open-button{display:none;}.inline-params{align-items:center;display:",e=>e.open?"none":"grid",";flex:1;grid-template-columns:1fr 0.25fr 0.25fr auto;margin-right:5px;}.open-button{display:flex;color:",({theme:e})=>e.maxContrast,";background:none;border:none;}.block-params{display:",e=>e.open?"flex":"none",";flex-direction:column;flex:1;p{display:flex;align-items:center;flex:1;line-height:1.5;font-size:12px;font-family:monospace;span{margin-left:3px;&.key{flex:1;}&.value{flex:3;}}}}@media screen and (max-width: 1070px){.inline-params{display:none;}}"),Rk=le("div",{target:"e1sfd2ep1"})("padding:5px 0px;padding-left:10px;border:1px solid ",({theme:e})=>e.bgNeutral,";margin:5px;border-radius:3px;font-size:13px;display:flex;justify-content:space-between;align-items:center;"),Nk=le("div",{target:"e1sfd2ep0"})({name:"oylbmz",styles:"@media screen and (max-width: 1370px){display:none;}"}),Ry=e=>t=>{t({type:"SET_SETTINGS_DIALOG_OPEN",settingsDialogOpen:e})};var Ha={},Ny=it;Object.defineProperty(Ha,"__esModule",{value:!0});var _c=Ha.default=void 0,Ly=Ny(lt()),Oy=v;_c=Ha.default=(0,Ly.default)((0,Oy.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var Wa={},_y=it;Object.defineProperty(Wa,"__esModule",{value:!0});var za=Wa.default=void 0,Iy=_y(lt()),Ay=v;za=Wa.default=(0,Iy.default)((0,Ay.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");const $o=le("div",{target:"er3ypqd13"})({name:"v62lug",styles:"display:flex;flex-direction:column;margin-bottom:20px"}),jy=le("div",{target:"er3ypqd9"})("display:flex;flex:1;flex-direction:column;background:",({theme:e})=>e.shadow,";"),Fy=le("div",{target:"er3ypqd8"})({name:"t6jzno",styles:"margin:20px;display:flex;flex-direction:column;flex:1"}),xr=le("label",{target:"er3ypqd5"})("font-size:12px;color:",({theme:e})=>e.contrast,";margin-left:10px;"),By=le("div",{target:"er3ypqd2"})("display:flex;justify-content:space-between;align-items:center;margin:10px;h3{margin-left:10px;font-size:1em;color:",({theme:e})=>e.contrast,";}"),Hy=le(vd,{target:"er3ypqd1"})("background:none;padding:0;color:",({theme:e})=>e.contrast,";"),Wy=le("textarea",{target:"er3ypqd0"})("display:flex;flex:1;margin:5px 0px;height:150px;width:250px;font-size:10px;padding:5px 8px;border:1px solid ",({theme:e})=>e.accentNeutral,";border-radius:3px;background:",({theme:e})=>e.deep,";color:",({theme:e})=>e.contrast,";");function zy(e){return function(t){t({type:"SET_DEBUG_MODE",debugMode:e})}}const Uy=e=>{var r,o;const n=/&(lt|gt|amp);/.test(e);return e===void 0?"":n?(o=(r=e==null?void 0:e.replaceAll(/</g,"<"))==null?void 0:r.replaceAll(/>/g,">"))==null?void 0:o.replaceAll(/&/g,"&"):e};function Vy(e){return String(Uy(e))}const Ic=Ae({name:"1l02985",styles:"background-color:transparent!important"});function Lk({open:e}){const t=Cl(),n=fn(S=>S.theme),r=fn(S=>S.autoTheme),o=fn(S=>S.debugMode),a=Ot(),[s,i]=p.useState(f(window.location.href)),[l,c]=p.useState(n),[u,d]=p.useState(r);p.useEffect(()=>{d(r)},[r,d]);function f(S){return S+"&isEmbed=true"}p.useEffect(()=>{i(f(window.location.href))},[window.location.href]),p.useEffect(()=>{c(n)},[n,c]);function h(){const S=l==="light"?"dark":"light";t(xd(S)),c(S),localStorage.setItem("theme",JSON.stringify({theme:S,auto:u}))}const m=()=>{const S=!u;t(Md(S)),d(S),localStorage.setItem("theme",JSON.stringify({theme:n,auto:S}))};function y(){t(Ry(!1))}function b(S){i(S.target.value)}function g(){t(zy(!o)),localStorage.setItem("isDebug",JSON.stringify({isActive:!o}))}return B(Cd,{theme:a,children:B(Zl,{open:e,onClose:y,PaperProps:{classes:{root:Ic}},children:oe(jy,{children:[oe(By,{children:[B("h3",{children:"Settings"}),oe(Hy,{onClick:y,children:[" ",B(_c,{})," "]})]}),oe(Fy,{children:[oe($o,{children:[oe(xr,{children:["Theme: ",n]}),B(uo,{size:"small",checked:l==="dark",onChange:h,disabled:u,inputProps:{"aria-label":"controlled"}}),oe(xr,{children:["Automatic theme detection"," ",B(qr,{title:"Theme determined by your system preferenes",children:B(za,{fontSize:"inherit"})})]}),B(uo,{size:"small",checked:u,onChange:m,inputProps:{"aria-label":"controlled"}})]}),oe($o,{children:[B(xr,{children:"Set Debug Mode"}),B(uo,{size:"small",checked:o,onChange:g,inputProps:{"aria-label":"controlled"}})]}),oe($o,{children:[B(xr,{children:"Embed View"}),B(Wy,{rows:"8",value:Vy(s),onChange:b})]})]})]})})})}const Yy=le("div",{target:"e1n1tll40"})("background:",({theme:e})=>e.shadow,";#alert-dialog-title{color:",({theme:e})=>e.contrast,";span{color:",({theme:e})=>e.primary,";padding:2px 4px;border-radius:3px;font-family:monospace;}}#alert-dialog-description{color:",({theme:e})=>e.lightContrast,";font-weight:normal;em{color:",({theme:e})=>e.contrast,";font-variant:italic;}}");function Ky({label:e,checked:t,handleChange:n,theme:r,text:o}){return B(Zm,{children:B(Ym,{style:{padding:"0",marginRight:0,cursor:e?"pointer":"not-allowed",display:"flex",alignItems:"center",marginTop:"20px"},checked:t,onChange:n,control:B(Nh,{style:{paddingRight:"0px",marginRight:"3px"},sx:{"& .MuiSvgIcon-root":{fontSize:18}},disabled:!e}),label:B(Rt,{style:{fontSize:"14px",color:r.contrast},children:o})})})}function Ac({clearFingerPrints:e,label:t,value:n,source:r,isLoading:o,isCustom:a=!1,query:s="",labelsRelated:i=[]}){const[l,c]=p.useState(!1),[u,d]=p.useState(!1),f=Ot(),{focusLabel:h,timeSeriesSelector:m}=Lt(),y=()=>{c(!0)},b=()=>{c(!1)},g=()=>{d(w=>!w)};async function S(){let w=s??"";a||(w=xc[r]({query:t,focusLabel:h,match:m})),await e(w),c(!1)}return B(Dl,{theme:f,children:oe("div",{children:[B(qr,{title:`Delete fingerprints for ${t!==""?t:s}`,children:B("div",{style:{display:"flex",flex:1,alignItems:"center",justifyContent:"center"},children:B(bd,{onClick:y,style:{color:f.contrast,cursor:"pointer",fontSize:"18px"},fontSize:"small"})})}),B(Zl,{open:l,onClose:b,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",PaperProps:{classes:{root:Ic}},children:oe(Yy,{children:[B(ym,{id:"alert-dialog-title",children:a?oe(Rr,{children:["Are you sure you want to clear the"," ",B("span",{children:n})," fingerprints with query"," ",s,"?"]}):oe(Rr,{children:["Are you sure you want to clear the"," ",B("span",{children:n})," fingerprints with label"," ",B("span",{children:t})," from"," ",B("span",{children:r}),"?"]})}),B(cm,{children:oe(mm,{id:"alert-dialog-description",children:[oe("p",{style:{marginTop:"10px"},children:["Click ",B("em",{children:"Delete Fingerprints"})," to delete your fingerprints permanently"]}),B("p",{style:{margin:"6px"},children:B("em",{children:"Note that you will also be removing all fingerprints with labels related."})}),B(Ky,{checked:u,handleChange:g,theme:f,label:!0,text:"I want to remove all fingerprints related to this labels in selected time range."})]})}),oe(em,{children:[B(Dy,{onClick:b,children:"Cancel"}),B(Ey,{onClick:S,active:!o&&u,autoFocus:!0,children:o?"Deleting...":"Delete Fingerprints"})]})]})})]})})}const qy=({theme:e=wd(),focusLabelItems:t,timeSeriesSelectorItems:n,limitEntriesItems:r,setHistoryItem:o})=>{const{onTimeSeriesChange:a,onKeyDownTimeSeries:s,onFocusLabeChange:i,onKeyDownFocusLabel:l,onLimitEntriesChange:c,onKeyDownLimitEntries:u,onQueryHistoryChange:d,onFocusHistoryChange:f,onLimitHistoryChange:h,query:m,focus:y,limit:b,totalSeries:g,reset:S,date:w}=qb({setHistoryItem:o}),{handleCardinalityRequest:C,handleDelete:T}=La(!0),{setTimeSeriesSelector:M,setFocusLabel:E,setLimitEntries:O,isLoading:I}=Lt(),R=()=>{S(),localStorage.setItem("labelValuePairs",""),C({match:"",focusLabel:"",topN:b,date:w})};return oe("div",{className:Ve(t0(e)),children:[oe("div",{className:"form-row",children:[B(To,{name:"timeSeriesSelector",value:m,label:"Time Series Selector",size:"l",inputSize:"l",type:"text",onChange:a,onKeyDown:s,onHistoryChange:d,history:n,hasHistory:n.length>0}),B(To,{name:"focusLabel",value:y,label:"Focus Label",size:"m",inputSize:"",type:"text",onChange:i,onKeyDown:l,onHistoryChange:f,history:t,hasHistory:t.length>0}),B(To,{name:"limitEntries",value:b,label:"Limit Entries",size:"s",inputSize:"s",type:"number",onChange:c,onKeyDown:u,onHistoryChange:h,history:r,hasHistory:r.length>0})]}),oe("div",{className:"config-actions",children:[oe("div",{className:"c-totals",children:[B(Wn,{theme:e,value:g.amount,text:"total"}),B(Wn,{theme:e,type:"prev",value:g.prev,text:"previous"}),B(Wn,{theme:e,type:"diff",value:g.diff,trend:g.diff===0?"none":g.diff>0?"up":"down",text:"diff"}),B(Wn,{theme:e,type:"prev",value:g.quota,text:"quota"})]}),oe("div",{className:"buttons-group",children:[m!==""&&B("button",{className:"query-button",children:B(Ac,{clearFingerPrints:N=>T(N,g.amount),isLoading:I,label:"",value:g.amount,source:"",isCustom:!0,query:m})}),B($b,{}),B("button",{onClick:R,className:"query-button",children:"Reset"}),oe("button",{onClick:()=>{M(m),E(y),O(Number(b)),C({match:m,focusLabel:y,topN:b})},className:"query-button",children:[B(ac,{fontSize:"small"}),"Execute Query"]})]})]})]})},Gy="SET_IS_CARDINALITY",pi=e=>t=>{t({type:Gy,isCardinality:e})},Xy=(e,t)=>{var b;const{focusLabel:n,timeSeriesSelector:r,setFocusLabel:o,setTimeSeriesSelector:a,setTotal:s,tsdbStatus:i,isLoading:l}=Lt(),[c,u]=p.useState({data:Na,formattedSeries:[]}),d=(g,S)=>{const w=xc[g]({query:S,focusLabel:n,match:r});a(w),t("timeSeriesSelector",w),(g==="labelValueCountByLabelName"||g=="seriesCountByLabelName")&&(o(S),t("focusLabel",S)),g=="seriesCountByFocusLabelValue"&&o("")},f=(g,S)=>{d(S.source,S.name)},h=(g,S)=>g*100/S,m=(g,S,w)=>g.map(C=>({name:C.name||"",value:C.value||0,diff:C.diff||0,prev:C.valuePrev||0,share:h(C.value,S==null?void 0:S.totalSeries)||0,quota:S.quota,source:w,onFilter:f})),y=g=>{if(g){let S=g;return S!=null&&S.quota||(S.quota=0),Object.keys(S).filter(M=>Array.isArray(S[M])).map(M=>({[M]:m(S[M],S,M)}))}return[]};return p.useEffect(()=>{i&&(s({amount:i.totalSeries,prev:i.totalSeriesPrev,diff:i.totalSeries-i.totalSeriesPrev,quota:(i==null?void 0:i.quota)||0}),u({data:i,formattedSeries:y(i)}))},[i]),{data:c,totalSeries:((b=c==null?void 0:c.data)==null?void 0:b.totalSeries)??0,formattedSeries:(c==null?void 0:c.formattedSeries)??[],isLoading:l}},Qy=X(e=>B(Tv,{...e,TabIndicatorProps:{children:B("span",{className:"MuiTabs-indicatorSpan"})}}))(({theme:e})=>({"& .MuiButtonBase-root-MuiTab-root":{maxHeight:"20px"},"& .MuiTabs-indicator":{display:"flex",justifyContent:"center",backgroundColor:"transparent"},"& .MuiTabs-indicatorSpan":{maxWidth:40,width:"100%",backgroundColor:e==null?void 0:e.primary}})),hi=X(e=>B(ev,{disableRipple:!0,...e}))(({theme:e})=>({textTransform:"none",fontWeight:e.typography.fontWeightRegular,fontSize:"12px",padding:0,marginRight:"8px",color:e.lightContrast,"&.Mui-selected":{color:e.contrast},"&.Mui-focusVisible":{backgroundColor:"rgba(100, 95, 228, 0.32)"}})),Zy=e=>Ae("background:",e.WidgetBg,";.MuiTabs-root{height:20px!important;min-height:20px;}.MuiButtonBase-root{min-height:0;}",""),Jy=({title:e,tabsValue:t,onTabChange:n,theme:r})=>oe("div",{className:"c-header",children:[B("div",{children:e}),B("div",{className:Ve(Zy(r)),children:oe(Qy,{value:t,onChange:n,children:[B(hi,{label:"Table"}),B(hi,{label:"Chart"})]})})]}),mi=e=>{const{neutral:t,primaryLight:n,deep:r,ultraDeep:o,primary:a,contrast:s,shadow:i}=e;return{neutral:t,primaryLight:n,deep:r,ultraDeep:o,primary:a,contrast:s,shadow:i}},e1=e=>Ae("margin:4px;display:flex;flex-direction:column;padding:8px 4px;background:",e.shadow,";gap:4px;.c-header{display:flex;align-items:center;justify-content:space-between;font-size:14px;padding:8px 6px;border-bottom:1px solid ",e.neutral,";font-weight:bold;}.c-table{display:table;widht:100%;}",""),jc=e=>({seriesGroupContainer:Ve(e1(mi(e))),seriesGroupStyles:mi(e)}),Fc=e=>{const[t,n]=p.useState({col:"value",order:"desc"});return{sortedRows:p.useMemo(()=>{const{col:a,order:s}=t;return _b(e,a,s)},[e,t]),handleSort:a=>{n(s=>({col:a,order:s.order==="asc"?"desc":"asc"}))}}};function ot(e){return function(){return e}}const t1=Math.PI,Do=2*t1;function Bc(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function n1(e,t){return te?1:t>=e?0:NaN}function r1(e){return e}function o1(){var e=r1,t=n1,n=null,r=ot(0),o=ot(Do),a=ot(0);function s(i){var l,c=(i=Bc(i)).length,u,d,f=0,h=new Array(c),m=new Array(c),y=+r.apply(this,arguments),b=Math.min(Do,Math.max(-Do,o.apply(this,arguments)-y)),g,S=Math.min(Math.abs(b)/c,a.apply(this,arguments)),w=S*(b<0?-1:1),C;for(l=0;l0&&(f+=C);for(t!=null?h.sort(function(T,M){return t(m[T],m[M])}):n!=null&&h.sort(function(T,M){return n(i[T],i[M])}),l=0,d=f?(b-c*w)/f:0;l0?C*d:0)+w,m[u]={data:i[u],index:l,value:C,startAngle:y,endAngle:g,padAngle:S};return m}return s.value=function(i){return arguments.length?(e=typeof i=="function"?i:ot(+i),s):e},s.sortValues=function(i){return arguments.length?(t=i,n=null,s):t},s.sort=function(i){return arguments.length?(n=i,t=null,s):n},s.startAngle=function(i){return arguments.length?(r=typeof i=="function"?i:ot(+i),s):r},s.endAngle=function(i){return arguments.length?(o=typeof i=="function"?i:ot(+i),s):o},s.padAngle=function(i){return arguments.length?(a=typeof i=="function"?i:ot(+i),s):a},s}function yn(e,t){if((s=e.length)>1)for(var n=1,r,o,a=e[t[0]],s,i=a.length;n=0;)n[t]=t;return n}function a1(e,t){return e[t]}function s1(e){const t=[];return t.key=e,t}function Hc(){var e=ot([]),t=Cn,n=yn,r=a1;function o(a){var s=Array.from(e.apply(this,arguments),s1),i,l=s.length,c=-1,u;for(const d of a)for(i=0,++c;i0){for(var n,r,o=0,a=e[0].length,s;o0)for(var n,r=0,o,a,s,i,l,c=e[t[0]].length;r0?(o[0]=s,o[1]=s+=a):a<0?(o[1]=i,o[0]=i+=a):(o[0]=0,o[1]=a)}function c1(e,t){if((o=e.length)>0){for(var n=0,r=e[t[0]],o,a=r.length;n0)||!((a=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,a,s;ra&&(a=o,n=t);return n}function zc(e){var t=e.map(Uc);return Cn(e).sort(function(n,r){return t[n]-t[r]})}function Uc(e){for(var t=0,n=-1,r=e.length,o;++n{const{series:t,seriesOrder:n}=e,r=[],o={};return n.forEach(a=>{const{stack:s,stackOrder:i,stackOffset:l}=t[a];s===void 0?r.push({ids:[a],stackingOrder:Eo.none,stackingOffset:Ro.none}):o[s]===void 0?(o[s]=r.length,r.push({ids:[a],stackingOrder:Eo[i??"none"],stackingOffset:Ro[l??"diverging"]})):(r[o[s]].ids.push(a),i!==void 0&&(r[o[s]].stackingOrder=Eo[i]),l!==void 0&&(r[o[s]].stackingOffset=Ro[l]))}),r};function Ua(e,t){const n={};return Object.keys(e).forEach(r=>{n[r]=x({valueFormatter:t},e[r])}),n}const m1=(e,t)=>{const{seriesOrder:n,series:r}=e,o=Vc(e),a=t??[];n.forEach(i=>{const l=r[i].data;if(l!==void 0)l.forEach((c,u)=>{a.length<=u?a.push({[i]:c}):a[u][i]=c});else if(t===void 0)throw new Error([`MUI: bar series with id='${i}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(` -`))});const s={};return o.forEach(i=>{const{ids:l,stackingOffset:c,stackingOrder:u}=i,d=Hc().keys(l.map(f=>{const h=r[f].dataKey;return r[f].data===void 0&&h!==void 0?h:f})).order(u).offset(c)(a);l.forEach((f,h)=>{const m=r[f].dataKey;s[f]=x({layout:"vertical"},r[f],{data:m?t.map(y=>y[m]):r[f].data,stackedData:d[h].map(([y,b])=>[y,b])})})}),{seriesOrder:n,stackingGroups:o,series:Ua(s,i=>i.toLocaleString())}},g1=m1,v1=({series:e,seriesOrder:t})=>({series:Ua(e,n=>`(${n.x}, ${n.y})`),seriesOrder:t}),x1=v1,b1=(e,t)=>{const{seriesOrder:n,series:r}=e,o=Vc(e),a=t??[];n.forEach(i=>{const l=r[i].data;if(l!==void 0)l.forEach((c,u)=>{a.length<=u?a.push({[i]:c}):a[u][i]=c});else if(t===void 0)throw new Error([`MUI: line series with id='${i}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(` -`))});const s={};return o.forEach(i=>{const{ids:l,stackingOrder:c,stackingOffset:u}=i,d=Hc().keys(l.map(f=>{const h=r[f].dataKey;return r[f].data===void 0&&h!==void 0?h:f})).order(c).offset(u)(a);l.forEach((f,h)=>{const m=r[f].dataKey;s[f]=x({},r[f],{data:m?t.map(y=>y[m]):r[f].data,stackedData:d[h].map(([y,b])=>[y,b])})})}),{seriesOrder:n,stackingGroups:o,series:Ua(s,i=>i.toLocaleString())}},y1=b1,C1=(e="none")=>{if(typeof e=="function")return e;switch(e){case"none":return null;case"desc":return(t,n)=>n-t;case"asc":return(t,n)=>t-n;default:return null}},w1=e=>{const{seriesOrder:t,series:n}=e,r={};return t.forEach(o=>{var a,s,i,l;const c=o1().startAngle(2*Math.PI*((a=n[o].startAngle)!=null?a:0)/360).endAngle(2*Math.PI*((s=n[o].endAngle)!=null?s:360)/360).padAngle(2*Math.PI*((i=n[o].paddingAngle)!=null?i:0)/360).sortValues(C1((l=n[o].sortingValues)!=null?l:"none"))(n[o].data.map(u=>u.value));r[o]=x({valueFormatter:u=>u.value.toLocaleString()},n[o],{data:n[o].data.map((u,d)=>{var f;return x({},u,{id:(f=u.id)!=null?f:`auto-generated-pie-id-${o}-${d}`},c[d])}).map(u=>{var d,f,h;return x({},u,{formattedValue:(d=(f=(h=n[o]).valueFormatter)==null?void 0:f.call(h,u))!=null?d:u.value.toLocaleString()})})})}),{seriesOrder:t,series:r}},S1=w1,M1=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];function k1(e,t,n=M1){return e.type==="pie"?x({},e,{data:e.data.map((r,o)=>x({color:n[o%n.length]},r))}):x({color:n[t%n.length]},e)}const T1=["#02B2AF","#2E96FF","#B800D8","#60009B","#2731C8","#03008D"],P1=["#02B2AF","#72CCFF","#DA00FF","#9001CB","#2E96FF","#3B48E0"],$1=e=>e==="dark"?P1:T1,Tn=p.createContext({}),No={bar:g1,scatter:x1,line:y1,pie:S1},D1=(e,t,n)=>{const r={};e.forEach((a,s)=>{var i;const{id:l=`auto-generated-id-${s}`,type:c}=a;if(r[c]===void 0&&(r[c]={series:{},seriesOrder:[]}),((i=r[c])==null?void 0:i.series[l])!==void 0)throw new Error(`MUI: series' id "${l}" is not unique`);r[c].series[l]=x({id:l},k1(a,s,t)),r[c].seriesOrder.push(l)});const o={};return Object.keys(No).forEach(a=>{if(r[a]!==void 0){var s,i;o[a]=(s=(i=No[a])==null?void 0:i.call(No,r[a],n))!=null?s:r[a]}}),o};function E1({series:e,dataset:t,colors:n=$1,children:r}){const o=ct(),a=p.useMemo(()=>D1(e,typeof n=="function"?n(o.palette.mode):n,t),[e,n,o.palette.mode,t]);return v.jsx(Tn.Provider,{value:a,children:r})}function Dr(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function R1(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Va(e){let t,n,r;e.length!==2?(t=Dr,n=(i,l)=>Dr(e(i),l),r=(i,l)=>e(i)-l):(t=e===Dr||e===R1?e:N1,n=e,r=e);function o(i,l,c=0,u=i.length){if(c>>1;n(i[d],l)<0?c=d+1:u=d}while(c>>1;n(i[d],l)<=0?c=d+1:u=d}while(cc&&r(i[d-1],l)>-r(i[d],l)?d-1:d}return{left:o,center:s,right:a}}function N1(){return 0}function L1(e){return e===null?NaN:+e}const O1=Va(Dr),_1=O1.right;Va(L1).center;const I1=_1;class gi extends Map{constructor(t,n=F1){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,o]of t)this.set(r,o)}get(t){return super.get(vi(this,t))}has(t){return super.has(vi(this,t))}set(t,n){return super.set(A1(this,t),n)}delete(t){return super.delete(j1(this,t))}}function vi({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function A1({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function j1({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function F1(e){return e!==null&&typeof e=="object"?e.valueOf():e}const B1=Math.sqrt(50),H1=Math.sqrt(10),W1=Math.sqrt(2);function Or(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),a=r/Math.pow(10,o),s=a>=B1?10:a>=H1?5:a>=W1?2:1;let i,l,c;return o<0?(c=Math.pow(10,-o)/s,i=Math.round(e*c),l=Math.round(t*c),i/ct&&--l,c=-c):(c=Math.pow(10,o)*s,i=Math.round(e/c),l=Math.round(t/c),i*ct&&--l),l0))return[];if(e===t)return[e];const r=t=o))return[];const i=a-o+1,l=new Array(i);if(r)if(s<0)for(let c=0;c>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?br(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?br(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=V1.exec(e))?new Le(t[1],t[2],t[3],1):(t=Y1.exec(e))?new Le(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=K1.exec(e))?br(t[1],t[2],t[3],t[4]):(t=q1.exec(e))?br(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=G1.exec(e))?Ti(t[1],t[2]/100,t[3]/100,1):(t=X1.exec(e))?Ti(t[1],t[2]/100,t[3]/100,t[4]):yi.hasOwnProperty(e)?Si(yi[e]):e==="transparent"?new Le(NaN,NaN,NaN,0):null}function Si(e){return new Le(e>>16&255,e>>8&255,e&255,1)}function br(e,t,n,r){return r<=0&&(e=t=n=NaN),new Le(e,t,n,r)}function J1(e){return e instanceof cr||(e=wn(e)),e?(e=e.rgb(),new Le(e.r,e.g,e.b,e.opacity)):new Le}function Jo(e,t,n,r){return arguments.length===1?J1(e):new Le(e,t,n,r??1)}function Le(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Ya(Le,Jo,qc(cr,{brighter(e){return e=e==null?Ir:Math.pow(Ir,e),new Le(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Gn:Math.pow(Gn,e),new Le(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Le(Zt(this.r),Zt(this.g),Zt(this.b),Ar(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Mi,formatHex:Mi,formatHex8:eC,formatRgb:ki,toString:ki}));function Mi(){return`#${Kt(this.r)}${Kt(this.g)}${Kt(this.b)}`}function eC(){return`#${Kt(this.r)}${Kt(this.g)}${Kt(this.b)}${Kt((isNaN(this.opacity)?1:this.opacity)*255)}`}function ki(){const e=Ar(this.opacity);return`${e===1?"rgb(":"rgba("}${Zt(this.r)}, ${Zt(this.g)}, ${Zt(this.b)}${e===1?")":`, ${e})`}`}function Ar(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Zt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Kt(e){return e=Zt(e),(e<16?"0":"")+e.toString(16)}function Ti(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new at(e,t,n,r)}function Gc(e){if(e instanceof at)return new at(e.h,e.s,e.l,e.opacity);if(e instanceof cr||(e=wn(e)),!e)return new at;if(e instanceof at)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,i=a-o,l=(a+o)/2;return i?(t===a?s=(n-r)/i+(n0&&l<1?0:s,new at(s,i,l,e.opacity)}function tC(e,t,n,r){return arguments.length===1?Gc(e):new at(e,t,n,r??1)}function at(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Ya(at,tC,qc(cr,{brighter(e){return e=e==null?Ir:Math.pow(Ir,e),new at(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Gn:Math.pow(Gn,e),new at(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Le(Lo(e>=240?e-240:e+120,o,r),Lo(e,o,r),Lo(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new at(Pi(this.h),yr(this.s),yr(this.l),Ar(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ar(this.opacity);return`${e===1?"hsl(":"hsla("}${Pi(this.h)}, ${yr(this.s)*100}%, ${yr(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Pi(e){return e=(e||0)%360,e<0?e+360:e}function yr(e){return Math.max(0,Math.min(1,e||0))}function Lo(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Ka=e=>()=>e;function nC(e,t){return function(n){return e+n*t}}function rC(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function oC(e){return(e=+e)==1?Xc:function(t,n){return n-t?rC(t,n,e):Ka(isNaN(t)?n:t)}}function Xc(e,t){var n=t-e;return n?nC(e,n):Ka(isNaN(e)?t:e)}const $i=function e(t){var n=oC(t);function r(o,a){var s=n((o=Jo(o)).r,(a=Jo(a)).r),i=n(o.g,a.g),l=n(o.b,a.b),c=Xc(o.opacity,a.opacity);return function(u){return o.r=s(u),o.g=i(u),o.b=l(u),o.opacity=c(u),o+""}}return r.gamma=e,r}(1);function aC(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(a){for(o=0;on&&(a=t.slice(n,a),i[s]?i[s]+=a:i[++s]=a),(r=r[0])===(o=o[0])?i[s]?i[s]+=o:i[++s]=o:(i[++s]=null,l.push({i:s,x:jr(r,o)})),n=Oo.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function vC(e,t,n){var r=e[0],o=e[1],a=t[0],s=t[1];return o2?xC:vC,l=c=null,d}function d(f){return f==null||isNaN(f=+f)?a:(l||(l=i(e.map(r),t,n)))(r(s(f)))}return d.invert=function(f){return s(o((c||(c=i(t,e.map(r),jr)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,mC),u()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),u()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=pC,u()},d.clamp=function(f){return arguments.length?(s=f?!0:ut,u()):s!==ut},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(a=f,d):a},function(f,h){return r=f,o=h,u()}}function Qc(){return Ga()(ut,ut)}function bC(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Fr(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Sn(e){return e=Fr(Math.abs(e)),e?e[1]:NaN}function yC(e,t){return function(n,r){for(var o=n.length,a=[],s=0,i=e[0],l=0;o>0&&i>0&&(l+i+1>r&&(i=Math.max(1,r-l)),a.push(n.substring(o-=i,o+i)),!((l+=i+1)>r));)i=e[s=(s+1)%e.length];return a.reverse().join(t)}}function CC(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var wC=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Qn(e){if(!(t=wC.exec(e)))throw new Error("invalid format: "+e);var t;return new Xa({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Qn.prototype=Xa.prototype;function Xa(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Xa.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function SC(e){e:for(var t=e.length,n=1,r=-1,o;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var Zc;function MC(e,t){var n=Fr(e,t);if(!n)return e+"";var r=n[0],o=n[1],a=o-(Zc=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,s=r.length;return a===s?r:a>s?r+new Array(a-s+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Fr(e,Math.max(0,t+a-1))[0]}function Ei(e,t){var n=Fr(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const Ri={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:bC,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Ei(e*100,t),r:Ei,s:MC,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Ni(e){return e}var Li=Array.prototype.map,Oi=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function kC(e){var t=e.grouping===void 0||e.thousands===void 0?Ni:yC(Li.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Ni:CC(Li.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",i=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=Qn(d);var f=d.fill,h=d.align,m=d.sign,y=d.symbol,b=d.zero,g=d.width,S=d.comma,w=d.precision,C=d.trim,T=d.type;T==="n"?(S=!0,T="g"):Ri[T]||(w===void 0&&(w=12),C=!0,T="g"),(b||f==="0"&&h==="=")&&(b=!0,f="0",h="=");var M=y==="$"?n:y==="#"&&/[boxX]/.test(T)?"0"+T.toLowerCase():"",E=y==="$"?r:/[%p]/.test(T)?s:"",O=Ri[T],I=/[defgprs%]/.test(T);w=w===void 0?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function R(N){var j=M,F=E,L,D,$;if(T==="c")F=O(N)+F,N="";else{N=+N;var P=N<0||1/N<0;if(N=isNaN(N)?l:O(Math.abs(N),w),C&&(N=SC(N)),P&&+N==0&&m!=="+"&&(P=!1),j=(P?m==="("?m:i:m==="-"||m==="("?"":m)+j,F=(T==="s"?Oi[8+Zc/3]:"")+F+(P&&m==="("?")":""),I){for(L=-1,D=N.length;++L$||$>57){F=($===46?o+N.slice(L+1):N.slice(L))+F,N=N.slice(0,L);break}}}S&&!b&&(N=t(N,1/0));var k=j.length+N.length+F.length,A=k>1)+j+N+F+A.slice(k);break;default:N=A+j+N+F;break}return a(N)}return R.toString=function(){return d+""},R}function u(d,f){var h=c((d=Qn(d),d.type="f",d)),m=Math.max(-8,Math.min(8,Math.floor(Sn(f)/3)))*3,y=Math.pow(10,-m),b=Oi[8+m/3];return function(g){return h(y*g)+b}}return{format:c,formatPrefix:u}}var Cr,Qa,Jc;TC({thousands:",",grouping:[3],currency:["$",""]});function TC(e){return Cr=kC(e),Qa=Cr.format,Jc=Cr.formatPrefix,Cr}function PC(e){return Math.max(0,-Sn(Math.abs(e)))}function $C(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Sn(t)/3)))*3-Sn(Math.abs(e)))}function DC(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Sn(t)-Sn(e))+1}function EC(e,t,n,r){var o=Zo(e,t,n),a;switch(r=Qn(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=$C(o,s))&&(r.precision=a),Jc(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=DC(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=PC(o))&&(r.precision=a-(r.type==="%")*2);break}}return Qa(r)}function eu(e){var t=e.domain;return e.ticks=function(n){var r=t();return Xo(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return EC(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,a=r.length-1,s=r[o],i=r[a],l,c,u=10;for(i0;){if(c=Qo(s,i,n),c===l)return r[o]=s,r[a]=i,t(r);if(c>0)s=Math.floor(s/c)*c,i=Math.ceil(i/c)*c;else if(c<0)s=Math.ceil(s*c)/c,i=Math.floor(i*c)/c;else break;l=c}return e},e}function tu(){var e=Qc();return e.copy=function(){return Jr(e,tu())},en.apply(e,arguments),eu(e)}function nu(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],a=e[r],s;return aMath.pow(e,t)}function _C(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Ai(e){return(t,n)=>-e(-t,n)}function IC(e){const t=e(_i,Ii),n=t.domain;let r=10,o,a;function s(){return o=_C(r),a=OC(r),n()[0]<0?(o=Ai(o),a=Ai(a),e(RC,NC)):e(_i,Ii),t}return t.base=function(i){return arguments.length?(r=+i,s()):r},t.domain=function(i){return arguments.length?(n(i),s()):n()},t.ticks=i=>{const l=n();let c=l[0],u=l[l.length-1];const d=u0){for(;f<=h;++f)for(m=1;mu)break;g.push(y)}}else for(;f<=h;++f)for(m=r-1;m>=1;--m)if(y=f>0?m/a(-f):m*a(f),!(yu)break;g.push(y)}g.length*2{if(i==null&&(i=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Qn(l)).precision==null&&(l.trim=!0),l=Qa(l)),i===1/0)return l;const c=Math.max(1,r*i/t.ticks().length);return u=>{let d=u/a(Math.round(o(u)));return d*rn(nu(n(),{floor:i=>a(Math.floor(o(i))),ceil:i=>a(Math.ceil(o(i)))})),t}function ru(){const e=IC(Ga()).domain([1,10]);return e.copy=()=>Jr(e,ru()).base(e.base()),en.apply(e,arguments),e}function ji(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function AC(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function jC(e){return e<0?-e*e:e*e}function FC(e){var t=e(ut,ut),n=1;function r(){return n===1?e(ut,ut):n===.5?e(AC,jC):e(ji(n),ji(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},eu(t)}function Za(){var e=FC(Ga());return e.copy=function(){return Jr(e,Za()).exponent(e.exponent())},en.apply(e,arguments),e}function BC(){return Za.apply(null,arguments).exponent(.5)}const _o=new Date,Io=new Date;function Pe(e,t,n,r){function o(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return o.floor=a=>(e(a=new Date(+a)),a),o.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),o.round=a=>{const s=o(a),i=o.ceil(a);return a-s(t(a=new Date(+a),s==null?1:Math.floor(s)),a),o.range=(a,s,i)=>{const l=[];if(a=o.ceil(a),i=i==null?1:Math.floor(i),!(a0))return l;let c;do l.push(c=new Date(+a)),t(a,i),e(a);while(cPe(s=>{if(s>=s)for(;e(s),!a(s);)s.setTime(s-1)},(s,i)=>{if(s>=s)if(i<0)for(;++i<=0;)for(;t(s,-1),!a(s););else for(;--i>=0;)for(;t(s,1),!a(s););}),n&&(o.count=(a,s)=>(_o.setTime(+a),Io.setTime(+s),e(_o),e(Io),Math.floor(n(_o,Io))),o.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?o.filter(r?s=>r(s)%a===0:s=>o.count(0,s)%a===0):o)),o}const Br=Pe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Br.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Pe(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Br);Br.range;const bt=1e3,Qe=bt*60,yt=Qe*60,wt=yt*24,Ja=wt*7,Fi=wt*30,Ao=wt*365,qt=Pe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*bt)},(e,t)=>(t-e)/bt,e=>e.getUTCSeconds());qt.range;const es=Pe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*bt)},(e,t)=>{e.setTime(+e+t*Qe)},(e,t)=>(t-e)/Qe,e=>e.getMinutes());es.range;const ts=Pe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Qe)},(e,t)=>(t-e)/Qe,e=>e.getUTCMinutes());ts.range;const ns=Pe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*bt-e.getMinutes()*Qe)},(e,t)=>{e.setTime(+e+t*yt)},(e,t)=>(t-e)/yt,e=>e.getHours());ns.range;const rs=Pe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*yt)},(e,t)=>(t-e)/yt,e=>e.getUTCHours());rs.range;const ur=Pe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Qe)/wt,e=>e.getDate()-1);ur.range;const eo=Pe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/wt,e=>e.getUTCDate()-1);eo.range;const ou=Pe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/wt,e=>Math.floor(e/wt));ou.range;function tn(e){return Pe(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Qe)/Ja)}const to=tn(0),Hr=tn(1),HC=tn(2),WC=tn(3),Mn=tn(4),zC=tn(5),UC=tn(6);to.range;Hr.range;HC.range;WC.range;Mn.range;zC.range;UC.range;function nn(e){return Pe(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/Ja)}const no=nn(0),Wr=nn(1),VC=nn(2),YC=nn(3),kn=nn(4),KC=nn(5),qC=nn(6);no.range;Wr.range;VC.range;YC.range;kn.range;KC.range;qC.range;const os=Pe(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());os.range;const as=Pe(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());as.range;const St=Pe(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());St.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Pe(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});St.range;const Mt=Pe(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Mt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Pe(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Mt.range;function au(e,t,n,r,o,a){const s=[[qt,1,bt],[qt,5,5*bt],[qt,15,15*bt],[qt,30,30*bt],[a,1,Qe],[a,5,5*Qe],[a,15,15*Qe],[a,30,30*Qe],[o,1,yt],[o,3,3*yt],[o,6,6*yt],[o,12,12*yt],[r,1,wt],[r,2,2*wt],[n,1,Ja],[t,1,Fi],[t,3,3*Fi],[e,1,Ao]];function i(c,u,d){const f=ub).right(s,f);if(h===s.length)return e.every(Zo(c/Ao,u/Ao,d));if(h===0)return Br.every(Math.max(Zo(c,u,d),1));const[m,y]=s[f/s[h-1][2]53)return null;"w"in _||(_.w=1),"Z"in _?(U=Fo(_n(_.y,0,1)),G=U.getUTCDay(),U=G>4||G===0?Wr.ceil(U):Wr(U),U=eo.offset(U,(_.V-1)*7),_.y=U.getUTCFullYear(),_.m=U.getUTCMonth(),_.d=U.getUTCDate()+(_.w+6)%7):(U=jo(_n(_.y,0,1)),G=U.getDay(),U=G>4||G===0?Hr.ceil(U):Hr(U),U=ur.offset(U,(_.V-1)*7),_.y=U.getFullYear(),_.m=U.getMonth(),_.d=U.getDate()+(_.w+6)%7)}else("W"in _||"U"in _)&&("w"in _||(_.w="u"in _?_.u%7:"W"in _?1:0),G="Z"in _?Fo(_n(_.y,0,1)).getUTCDay():jo(_n(_.y,0,1)).getDay(),_.m=0,_.d="W"in _?(_.w+6)%7+_.W*7-(G+5)%7:_.w+_.U*7-(G+6)%7);return"Z"in _?(_.H+=_.Z/100|0,_.M+=_.Z%100,Fo(_)):jo(_)}}function O(H,V,q,_){for(var z=0,U=V.length,G=q.length,xe,he;z=G)return-1;if(xe=V.charCodeAt(z++),xe===37){if(xe=V.charAt(z++),he=T[xe in Bi?V.charAt(z++):xe],!he||(_=he(H,q,_))<0)return-1}else if(xe!=q.charCodeAt(_++))return-1}return _}function I(H,V,q){var _=c.exec(V.slice(q));return _?(H.p=u.get(_[0].toLowerCase()),q+_[0].length):-1}function R(H,V,q){var _=h.exec(V.slice(q));return _?(H.w=m.get(_[0].toLowerCase()),q+_[0].length):-1}function N(H,V,q){var _=d.exec(V.slice(q));return _?(H.w=f.get(_[0].toLowerCase()),q+_[0].length):-1}function j(H,V,q){var _=g.exec(V.slice(q));return _?(H.m=S.get(_[0].toLowerCase()),q+_[0].length):-1}function F(H,V,q){var _=y.exec(V.slice(q));return _?(H.m=b.get(_[0].toLowerCase()),q+_[0].length):-1}function L(H,V,q){return O(H,t,V,q)}function D(H,V,q){return O(H,n,V,q)}function $(H,V,q){return O(H,r,V,q)}function P(H){return s[H.getDay()]}function k(H){return a[H.getDay()]}function A(H){return l[H.getMonth()]}function W(H){return i[H.getMonth()]}function K(H){return o[+(H.getHours()>=12)]}function Q(H){return 1+~~(H.getMonth()/3)}function re(H){return s[H.getUTCDay()]}function ee(H){return a[H.getUTCDay()]}function ne(H){return l[H.getUTCMonth()]}function ie(H){return i[H.getUTCMonth()]}function ge(H){return o[+(H.getUTCHours()>=12)]}function ce(H){return 1+~~(H.getUTCMonth()/3)}return{format:function(H){var V=M(H+="",w);return V.toString=function(){return H},V},parse:function(H){var V=E(H+="",!1);return V.toString=function(){return H},V},utcFormat:function(H){var V=M(H+="",C);return V.toString=function(){return H},V},utcParse:function(H){var V=E(H+="",!0);return V.toString=function(){return H},V}}}var Bi={"-":"",_:" ",0:"0"},$e=/^\s*\d+/,ew=/^%/,tw=/[\\^$*+?|[\]().{}]/g;function pe(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",a=o.length;return r+(a[t.toLowerCase(),n]))}function rw(e,t,n){var r=$e.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function ow(e,t,n){var r=$e.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function aw(e,t,n){var r=$e.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function sw(e,t,n){var r=$e.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function iw(e,t,n){var r=$e.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Hi(e,t,n){var r=$e.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Wi(e,t,n){var r=$e.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function lw(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function cw(e,t,n){var r=$e.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function uw(e,t,n){var r=$e.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function zi(e,t,n){var r=$e.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function dw(e,t,n){var r=$e.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Ui(e,t,n){var r=$e.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function fw(e,t,n){var r=$e.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function pw(e,t,n){var r=$e.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function hw(e,t,n){var r=$e.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function mw(e,t,n){var r=$e.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function gw(e,t,n){var r=ew.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function vw(e,t,n){var r=$e.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function xw(e,t,n){var r=$e.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Vi(e,t){return pe(e.getDate(),t,2)}function bw(e,t){return pe(e.getHours(),t,2)}function yw(e,t){return pe(e.getHours()%12||12,t,2)}function Cw(e,t){return pe(1+ur.count(St(e),e),t,3)}function su(e,t){return pe(e.getMilliseconds(),t,3)}function ww(e,t){return su(e,t)+"000"}function Sw(e,t){return pe(e.getMonth()+1,t,2)}function Mw(e,t){return pe(e.getMinutes(),t,2)}function kw(e,t){return pe(e.getSeconds(),t,2)}function Tw(e){var t=e.getDay();return t===0?7:t}function Pw(e,t){return pe(to.count(St(e)-1,e),t,2)}function iu(e){var t=e.getDay();return t>=4||t===0?Mn(e):Mn.ceil(e)}function $w(e,t){return e=iu(e),pe(Mn.count(St(e),e)+(St(e).getDay()===4),t,2)}function Dw(e){return e.getDay()}function Ew(e,t){return pe(Hr.count(St(e)-1,e),t,2)}function Rw(e,t){return pe(e.getFullYear()%100,t,2)}function Nw(e,t){return e=iu(e),pe(e.getFullYear()%100,t,2)}function Lw(e,t){return pe(e.getFullYear()%1e4,t,4)}function Ow(e,t){var n=e.getDay();return e=n>=4||n===0?Mn(e):Mn.ceil(e),pe(e.getFullYear()%1e4,t,4)}function _w(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+pe(t/60|0,"0",2)+pe(t%60,"0",2)}function Yi(e,t){return pe(e.getUTCDate(),t,2)}function Iw(e,t){return pe(e.getUTCHours(),t,2)}function Aw(e,t){return pe(e.getUTCHours()%12||12,t,2)}function jw(e,t){return pe(1+eo.count(Mt(e),e),t,3)}function lu(e,t){return pe(e.getUTCMilliseconds(),t,3)}function Fw(e,t){return lu(e,t)+"000"}function Bw(e,t){return pe(e.getUTCMonth()+1,t,2)}function Hw(e,t){return pe(e.getUTCMinutes(),t,2)}function Ww(e,t){return pe(e.getUTCSeconds(),t,2)}function zw(e){var t=e.getUTCDay();return t===0?7:t}function Uw(e,t){return pe(no.count(Mt(e)-1,e),t,2)}function cu(e){var t=e.getUTCDay();return t>=4||t===0?kn(e):kn.ceil(e)}function Vw(e,t){return e=cu(e),pe(kn.count(Mt(e),e)+(Mt(e).getUTCDay()===4),t,2)}function Yw(e){return e.getUTCDay()}function Kw(e,t){return pe(Wr.count(Mt(e)-1,e),t,2)}function qw(e,t){return pe(e.getUTCFullYear()%100,t,2)}function Gw(e,t){return e=cu(e),pe(e.getUTCFullYear()%100,t,2)}function Xw(e,t){return pe(e.getUTCFullYear()%1e4,t,4)}function Qw(e,t){var n=e.getUTCDay();return e=n>=4||n===0?kn(e):kn.ceil(e),pe(e.getUTCFullYear()%1e4,t,4)}function Zw(){return"+0000"}function Ki(){return"%"}function qi(e){return+e}function Gi(e){return Math.floor(+e/1e3)}var un,uu,du;Jw({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Jw(e){return un=JC(e),uu=un.format,un.parse,du=un.utcFormat,un.utcParse,un}function eS(e){return new Date(e)}function tS(e){return e instanceof Date?+e:+new Date(+e)}function ss(e,t,n,r,o,a,s,i,l,c){var u=Qc(),d=u.invert,f=u.domain,h=c(".%L"),m=c(":%S"),y=c("%I:%M"),b=c("%I %p"),g=c("%a %d"),S=c("%b %d"),w=c("%B"),C=c("%Y");function T(M){return(l(M){var t,n;const{axis:r}=e,o=Math.min(...(t=r.data)!=null?t:[]),a=Math.max(...(n=r.data)!=null?n:[]);return[o,a]},pu=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].yAxisKey===n.id||r&&t[o].yAxisKey===void 0).reduce((o,a)=>{const[s,i]=t[a].stackedData.reduce((l,c)=>[Math.min(...c,...l[0]===null?[]:[l[0]]),Math.max(...c,...l[1]===null?[]:[l[1]])],t[a].stackedData[0]);return[o[0]===null?s:Math.min(s,o[0]),o[1]===null?i:Math.max(i,o[1])]},[null,null])},oS=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?pu(e):fu(e),aS=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?fu(e):pu(e),zr=(e,t)=>e[0]===null||e[1]===null?t:t[0]===null||t[1]===null?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])],sS=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].xAxisKey===n.id||t[o].xAxisKey===void 0&&r).reduce((o,a)=>{const s=t[a].data.reduce((i,{x:l})=>zr(i,[l,l]),[null,null]);return zr(o,s)},[null,null])},iS=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].yAxisKey===n.id||t[o].yAxisKey===void 0&&r).reduce((o,a)=>{const s=t[a].data.reduce((i,{y:l})=>zr(i,[l,l]),[null,null]);return zr(o,s)},[null,null])},lS=e=>{var t,n;const{axis:r}=e,o=Math.min(...(t=r.data)!=null?t:[]),a=Math.max(...(n=r.data)!=null?n:[]);return[o,a]},cS=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].yAxisKey===n.id||r&&t[o].yAxisKey===void 0).reduce((o,a)=>{const i=t[a].area!==void 0?u=>u:u=>[u[1],u[1]],[l,c]=t[a].stackedData.reduce((u,d)=>{const[f,h]=i(d);return[Math.min(f,h,u[0]),Math.max(f,h,u[1])]},i(t[a].stackedData[0]));return o[0]===null||o[1]===null?[l,c]:[Math.min(l,o[0]),Math.max(c,o[1])]},[null,null])};function Ur(e){return e.scaleType==="band"}function Xi(e){return e.scaleType==="point"}function Qi(e,t,n){switch(e){case"log":return ru(t,n);case"pow":return Za(t,n);case"sqrt":return BC(t,n);case"time":return nS(t,n);case"utc":return rS(t,n);default:return tu(t,n)}}const na="DEFAULT_X_AXIS_KEY",ra="DEFAULT_Y_AXIS_KEY",uS={top:100,bottom:50,left:50,right:50},dS=(e,t,n)=>{const r=x({},uS,n);return p.useMemo(()=>({left:r.left,top:r.top,width:Math.max(0,e-r.left-r.right),height:Math.max(0,t-r.top-r.bottom)}),[e,t,r.top,r.bottom,r.left,r.right])},fS=dS,rn=p.createContext({top:0,left:0,height:300,width:400}),is=p.createContext({current:null});function pS({width:e,height:t,margin:n,svgRef:r,children:o}){const a=fS(e,t,n);return v.jsx(is.Provider,{value:r,children:v.jsx(rn.Provider,{value:a,children:o})})}function Zn(e){return e.bandwidth!==void 0}function Zi(e){const{tickMaxStep:t,tickMinStep:n,tickNumber:r,range:o,domain:a}=e,s=n===void 0?999:Math.floor(Math.abs(a[1]-a[0])/n),i=t===void 0?2:Math.ceil(Math.abs(a[1]-a[0])/t),l=r??Math.floor(Math.abs(o[1]-o[0])/50);return Math.min(s,Math.max(i,l))}function hu(e){const{scale:t,ticksNumber:n,valueFormatter:r}=e;return p.useMemo(()=>{if(Zn(t)){const o=t.domain();return t.bandwidth()>0?[...o.map(a=>{var s;return{formattedValue:(s=r==null?void 0:r(a))!=null?s:a,offset:t(a)-(t.step()-t.bandwidth())/2,labelOffset:t.step()/2}}),{formattedValue:void 0,offset:t.range()[1],labelOffset:0}]:o.map(a=>{var s;return{formattedValue:(s=r==null?void 0:r(a))!=null?s:a,offset:t(a),labelOffset:0}})}return t.ticks(n).map(o=>{var a;return{formattedValue:(a=r==null?void 0:r(o))!=null?a:t.tickFormat(n)(o),offset:t(o),labelOffset:0}})},[n,t,r])}const Ji=.2,hS=.1,mS={bar:oS,scatter:sS,line:lS},gS={bar:aS,scatter:iS,line:cS},At=p.createContext({xAxis:{},yAxis:{},xAxisIds:[],yAxisIds:[]});function vS({xAxis:e,yAxis:t,dataset:n,children:r}){const o=p.useContext(Tn),a=p.useContext(rn),s=p.useMemo(()=>e==null?void 0:e.map(c=>{const u=c.dataKey;if(u===void 0||c.data!==void 0)return c;if(n===void 0)throw Error("MUI: x-axis uses `dataKey` but no `dataset` is provided.");return x({},c,{data:n.map(d=>d[u])})}),[e,n]),i=p.useMemo(()=>t==null?void 0:t.map(c=>{const u=c.dataKey;if(u===void 0||c.data!==void 0)return c;if(n===void 0)throw Error("MUI: y-axis uses `dataKey` but no `dataset` is provided.");return x({},c,{data:n.map(d=>d[u])})}),[t,n]),l=p.useMemo(()=>{var c,u;const d=(g,S,w,C,T)=>{var M,E;const O=C[S],I=(M=(E=o[S])==null?void 0:E.series)!=null?M:{},[R,N]=O({series:I,axis:w,isDefaultAxis:T}),[j,F]=g;return j===null||F===null?[R,N]:R===null||N===null?[j,F]:[Math.min(R,j),Math.max(N,F)]},f=(g,S,w)=>Object.keys(S).reduce((T,M)=>d(T,M,g,S,w),[null,null]),h=[...(c=s==null?void 0:s.map((g,S)=>x({id:`deaultized-x-axis-${S}`},g)))!=null?c:[],...s===void 0||s.findIndex(({id:g})=>g===na)===-1?[{id:na,scaleType:"linear"}]:[]],m={};h.forEach((g,S)=>{var w,C,T,M,E;const O=S===0,[I,R]=f(g,mS,O),N=[a.left,a.left+a.width];if(Ur(g)){var j,F;const W=(j=g.categoryGapRatio)!=null?j:Ji,K=(F=g.barGapRatio)!=null?F:hS;m[g.id]=x({categoryGapRatio:W,barGapRatio:K},g,{scale:_r(g.data,N).paddingInner(W).paddingOuter(W/2),ticksNumber:g.data.length})}if(Xi(g)&&(m[g.id]=x({},g,{scale:bi(g.data,N),ticksNumber:g.data.length})),g.scaleType==="band"||g.scaleType==="point")return;const L=(w=g.scaleType)!=null?w:"linear",D=[(C=g.min)!=null?C:I,(T=g.max)!=null?T:R],$=Zi(x({},g,{range:N,domain:D})),P=Qi(L,D,N).nice($),k=P.domain(),A=[(M=g.min)!=null?M:k[0],(E=g.max)!=null?E:k[1]];m[g.id]=x({},g,{scaleType:L,scale:P.domain(A),ticksNumber:$})});const y=[...(u=i==null?void 0:i.map((g,S)=>x({id:`deaultized-y-axis-${S}`},g)))!=null?u:[],...i===void 0||i.findIndex(({id:g})=>g===ra)===-1?[{id:ra,scaleType:"linear"}]:[]],b={};return y.forEach((g,S)=>{var w,C,T,M,E;const O=S===0,[I,R]=f(g,gS,O),N=[a.top+a.height,a.top];if(Ur(g)){var j;const A=(j=g.categoryGapRatio)!=null?j:Ji;b[g.id]=x({categoryGapRatio:A,barGapRatio:0},g,{scale:_r(g.data,[N[1],N[0]]).paddingInner(A).paddingOuter(A/2),ticksNumber:g.data.length})}if(Xi(g)&&(b[g.id]=x({},g,{scale:bi(g.data,[N[1],N[0]]),ticksNumber:g.data.length})),g.scaleType==="band"||g.scaleType==="point")return;const F=(w=g.scaleType)!=null?w:"linear",L=[(C=g.min)!=null?C:I,(T=g.max)!=null?T:R],D=Zi(x({},g,{range:N,domain:L})),$=Qi(F,L,N).nice(D),P=$.domain(),k=[(M=g.min)!=null?M:P[0],(E=g.max)!=null?E:P[1]];b[g.id]=x({},g,{scaleType:F,scale:$.domain(k),ticksNumber:D})}),{xAxis:m,yAxis:b,xAxisIds:h.map(({id:g})=>g),yAxisIds:y.map(({id:g})=>g)}},[a.height,a.left,a.top,a.width,o,s,i]);return v.jsx(At.Provider,{value:l,children:r})}const Pn=p.createContext({item:null,axis:{x:null,y:null},dispatch:()=>null}),xS=(e,t)=>{switch(t.type){case"enterItem":return x({},e,{item:t.data});case"leaveItem":return e.item===null||Object.keys(t.data).some(n=>t.data[n]!==e.item[n])?e:x({},e,{item:null});case"updateAxis":return x({},e,{axis:t.data});default:return e}};function bS({children:e}){const[t,n]=p.useReducer(xS,{item:null,axis:{x:null,y:null}}),r=p.useMemo(()=>x({},t,{dispatch:n}),[t]);return v.jsx(Pn.Provider,{value:r,children:e})}const ls={highlighted:"none",faded:"none"},mu=p.createContext({item:null,scope:ls,dispatch:()=>null}),yS=(e,t)=>{switch(t.type){case"enterItem":return x({},e,{item:t.item,scope:x({},ls,t.scope)});case"leaveItem":return e.item===null||Object.keys(t.item).some(n=>t.item[n]!==e.item[n])?e:x({},e,{item:null});default:return e}};function CS({children:e}){const[t,n]=p.useReducer(yS,{item:null,scope:ls}),r=p.useMemo(()=>x({},t,{dispatch:n}),[t]);return v.jsx(mu.Provider,{value:r,children:e})}const wS=e=>{const{dispatch:t}=p.useContext(Pn),{dispatch:n}=p.useContext(mu);return o=>({onMouseEnter:()=>{t({type:"enterItem",data:o}),n({type:"enterItem",item:o,scope:e})},onMouseLeave:()=>{t({type:"leaveItem",data:o}),n({type:"leaveItem",item:o})}})},SS=(e,t,n)=>{if(!(n!=null&&n.highlighted)||n.highlighted==="none"||e===null)return!1;const r=e.type===t.type&&e.seriesId===t.seriesId;return r?n.highlighted==="series"?r:e.dataIndex!==void 0&&e.dataIndex===t.dataIndex:!1},MS=(e,t,n)=>{if(!(n!=null&&n.faded)||n.faded==="none"||e===null)return!1;const r=e.type===t.type&&e.seriesId===t.seriesId;return n.faded==="series"?r&&e.dataIndex!==t.dataIndex:n.faded==="global"?r?e.dataIndex!==void 0&&e.dataIndex!==t.dataIndex:!0:!1},kS=["id","dataIndex","classes","color","highlightScope","slots","slotProps"];function TS(e){return ve("MuiBarElement",e)}de("MuiBarElement",["root"]);const PS=e=>{const{classes:t,id:n}=e,r={root:["root",`series-${n}`]};return me(r,TS,t)},$S=X("rect",{name:"MuiBarElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({stroke:"none",shapeRendering:"crispEdges",fill:e.isHighlighted?wn(e.color).brighter(.5).formatHex():e.color,transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:e.isFaded&&.3||1}));function DS(e){var t;const{id:n,dataIndex:r,classes:o,color:a,highlightScope:s,slots:i,slotProps:l}=e,c=J(e,kS),u=wS(s),{item:d}=p.useContext(Pn),f=SS(d,{type:"bar",seriesId:n,dataIndex:r},s),h=!f&&MS(d,{type:"bar",seriesId:n,dataIndex:r},s),m={id:n,dataIndex:r,classes:o,color:a,isFaded:h,isHighlighted:f},y=PS(m),b=(t=i==null?void 0:i.bar)!=null?t:$S,g=Ye({elementType:b,externalSlotProps:l==null?void 0:l.bar,additionalProps:x({},c,u({type:"bar",seriesId:n,dataIndex:r}),{className:y.root}),ownerState:m});return v.jsx(b,x({},g))}function ES({bandWidth:e,numberOfGroups:t,gapRatio:n}){if(n===0)return{barWidth:e/t,offset:0};const r=e/(t+(t-1)*n),o=n*r;return{barWidth:r,offset:o}}function RS(e){const t=p.useContext(Tn).bar,n=p.useContext(At);if(t===void 0)return null;const{series:r,stackingGroups:o}=t,{xAxis:a,yAxis:s,xAxisIds:i,yAxisIds:l}=n,c=i[0],u=l[0];return v.jsx(p.Fragment,{children:o.flatMap(({ids:d},f)=>d.flatMap(h=>{var m,y;const b=(m=r[h].xAxisKey)!=null?m:c,g=(y=r[h].yAxisKey)!=null?y:u,S=a[b],w=s[g],C=r[h].layout==="vertical";let T;if(C){if(!Ur(S))throw new Error(`Axis with id "${b}" shoud be of type "band" to display the bar series of id "${h}"`);if(a[b].data===void 0)throw new Error(`Axis with id "${b}" shoud have data property`);T=S}else{if(!Ur(w))throw new Error(`Axis with id "${g}" shoud be of type "band" to display the bar series of id "${h}"`);if(s[g].data===void 0)throw new Error(`Axis with id "${b}" shoud have data property`);T=w}const M=S.scale,E=w.scale,O=T.scale.bandwidth(),{barWidth:I,offset:R}=ES({bandWidth:O,numberOfGroups:o.length,gapRatio:T.barGapRatio}),N=f*(I+R),{stackedData:j,color:F}=r[h];return j.map((L,D)=>{var $,P;const k=Math.min(...L),A=Math.max(...L);return v.jsx(DS,x({id:h,dataIndex:D,x:C?M(($=a[b].data)==null?void 0:$[D])+N:M(k),y:C?E(A):E((P=s[g].data)==null?void 0:P[D])+N,height:C?Math.abs(E(k)-E(A)):I,width:C?I:Math.abs(M(k)-M(A)),color:F,highlightScope:r[h].highlightScope},e),`${h}-${D}`)})}))})}const NS=e=>{const t=p.useContext(is),{width:n,height:r,top:o,left:a}=p.useContext(rn),{xAxis:s,yAxis:i,xAxisIds:l,yAxisIds:c}=p.useContext(At),{dispatch:u}=p.useContext(Pn),d=l[0],f=c[0],h=p.useRef({x:-1,y:-1});p.useEffect(()=>{const m=t.current;if(m===null||e)return()=>{};const y=(S,w)=>{if(d===null)return null;const{scale:C,data:T}=S;if(!Zn(C)){const E=C.invert(w);if(T===void 0)return{value:E};const O=T==null?void 0:T.findIndex((I,R)=>I>E&&(R===0||Math.abs(E-I)<=Math.abs(E-T[R-1]))||I<=E&&(R===T.length-1||Math.abs(E-I)=0?T[O]:E,index:O}}const M=C.bandwidth()===0?Math.floor((w-Math.min(...C.range())+C.step()/2)/C.step()):Math.floor((w-Math.min(...C.range()))/C.step());return M<0||M>=T.length?null:{index:M,value:T[M]}},b=()=>{h.current={x:-1,y:-1},u({type:"updateAxis",data:{x:null,y:null}})},g=S=>{const w=t.current.createSVGPoint();w.x=S.clientX,w.y=S.clientY;const C=w.matrixTransform(t.current.getScreenCTM().inverse());h.current={x:C.x,y:C.y};const T=C.xa+n,M=C.yo+r;if(T||M){u({type:"updateAxis",data:{x:null,y:null}});return}const E=y(s[d],C.x),O=y(i[f],C.y);u({type:"updateAxis",data:{x:E,y:O}})};return m.addEventListener("mouseout",b),m.addEventListener("mousemove",g),()=>{m.removeEventListener("mouseout",b),m.removeEventListener("mousemove",g)}},[t,u,a,n,o,r,f,i,d,s,e])},LS=["children","width","height","viewBox","disableAxisListener","className","sx"],OS=X("svg",{name:"MuiChartsSurface",slot:"Root"})(()=>({})),_S=p.forwardRef(function(t,n){const{children:r,width:o,height:a,viewBox:s,disableAxisListener:i=!1,sx:l}=t,c=J(t,LS),u=x({width:o,height:a,x:0,y:0},s);return NS(i),v.jsxs(OS,x({width:o,height:a,viewBox:`${u.x} ${u.y} ${u.width} ${u.height}`,ref:n,sx:[{"--ChartsLegend-itemWidth":"100px","--ChartsLegend-itemMarkSize":"20px","--ChartsLegend-rootSpacing":"5px","--ChartsLegend-labelSpacing":"5px","--ChartsLegend-rootOffsetY":"-20px"},...Array.isArray(l)?l:[l]]},c,{children:[v.jsx("title",{children:t.title}),v.jsx("desc",{children:t.desc}),r]}))}),IS=p.forwardRef(function(t,n){const{width:r,height:o,series:a,margin:s,xAxis:i,yAxis:l,colors:c,dataset:u,sx:d,title:f,desc:h,disableAxisListener:m,children:y}=t,b=p.useRef(null),g=Me(n,b);return v.jsx(pS,{width:r,height:o,margin:s,svgRef:b,children:v.jsx(E1,{series:a,colors:c,dataset:u,children:v.jsx(vS,{xAxis:i,yAxis:l,dataset:u,children:v.jsx(bS,{children:v.jsx(CS,{children:v.jsx(_S,{width:r,height:o,ref:g,sx:d,title:f,desc:h,disableAxisListener:m,children:y})})})})})})}),AS=["width","height"],jS=(e,t)=>{const n=p.useRef(null),r=p.useRef(!1),[o,a]=p.useState(0),[s,i]=p.useState(0),l=p.useCallback(()=>{const c=n==null?void 0:n.current;if(!c)return;const d=ht(c).getComputedStyle(c),f=Math.floor(parseFloat(d.height))||0,h=Math.floor(parseFloat(d.width))||0;a(h),i(f)},[]);return p.useEffect(()=>{r.current=!0},[]),Je(()=>{if(e!==void 0&&t!==void 0)return()=>{};l();const c=n.current;if(typeof ResizeObserver>"u")return()=>{};let u;const d=new ResizeObserver(()=>{u=requestAnimationFrame(()=>{l()})});return c&&d.observe(c),()=>{u&&window.cancelAnimationFrame(u),c&&d.unobserve(c)}},[l,t,e]),[n,e??o,t??s]},FS=X("div",{name:"MuiResponsiveChart",slot:"Container"})(({ownerState:e})=>{var t,n;return{width:(t=e.width)!=null?t:"100%",height:(n=e.height)!=null?n:"100%",display:"flex",position:"relative",flexGrow:1,flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden","&>svg":{width:"100%",height:"100%"}}}),BS=p.forwardRef(function(t,n){const{width:r,height:o}=t,a=J(t,AS),[s,i,l]=jS(r,o);return v.jsx(FS,{ref:s,ownerState:{width:r,height:o},children:v.jsx(IS,x({},a,{width:i,height:l,ref:n}))})});function gu(e){return ve("MuiChartsAxis",e)}const He=de("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right"]),vu=X("g",{name:"MuiChartsAxis",slot:"Root",overridesResolver:(e,t)=>t.root})({[`&.${He.directionY}`]:{[`.${He.tickLabel}`]:{dominantBaseline:"middle"},[`.${He.label}`]:{dominantBaseline:"auto",textAnchor:"middle"}},[`&.${He.left}`]:{[`.${He.tickLabel}`]:{dominantBaseline:"central",textAnchor:"end"}},[`&.${He.right}`]:{[`.${He.tickLabel}`]:{dominantBaseline:"central",textAnchor:"start"}},[`&.${He.bottom}`]:{[`.${He.tickLabel}, .${He.label}`]:{dominantBaseline:"hanging",textAnchor:"middle"}},[`&.${He.top}`]:{[`.${He.tickLabel}, .${He.label}`]:{dominantBaseline:"baseline",textAnchor:"middle"}}}),xu=X("line",{name:"MuiChartsAxis",slot:"Line",overridesResolver:(e,t)=>t.line})(({theme:e})=>({stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1})),bu=X("line",{name:"MuiChartsAxis",slot:"Tick",overridesResolver:(e,t)=>t.tick})(({theme:e})=>({stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges"})),yu=X("text",{name:"MuiChartsAxis",slot:"TickLabel",overridesResolver:(e,t)=>t.tickLabel})(({theme:e})=>x({},e.typography.caption,{fill:(e.vars||e).palette.text.primary})),Cu=X("text",{name:"MuiChartsAxis",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>x({},e.typography.body1,{fill:(e.vars||e).palette.text.primary})),HS=["scale","ticksNumber"],WS=e=>{const{classes:t,position:n}=e;return me({root:["root","directionX",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},gu,t)},el={position:"bottom",disableLine:!1,disableTicks:!1,tickFontSize:12,labelFontSize:14,tickSize:6};function tl(e){var t,n,r,o;const a=Ce({props:x({},el,e),name:"MuiChartsXAxis"}),s=p.useContext(At),i=a.axisId,{xAxis:{[i]:{scale:l,ticksNumber:c}}}=s,u=J(s.xAxis[i],HS),d=x({},el,u,a),{position:f,disableLine:h,disableTicks:m,tickFontSize:y,label:b,labelFontSize:g,tickSize:S,valueFormatter:w,slots:C,slotProps:T}=d,M=ct(),E=WS(x({},d,{theme:M})),{left:O,top:I,width:R,height:N}=p.useContext(rn),j=m?4:S,F=hu({scale:l,ticksNumber:c,valueFormatter:w}),L=f==="bottom"?1:-1,D={x:O+R/2,y:L*(y+j+10)},$=(t=C==null?void 0:C.axisLine)!=null?t:xu,P=(n=C==null?void 0:C.axisTick)!=null?n:bu,k=(r=C==null?void 0:C.axisTickLabel)!=null?r:yu,A=(o=C==null?void 0:C.axisLabel)!=null?o:Cu;return v.jsxs(vu,{transform:`translate(0, ${f==="bottom"?I+N:I})`,className:E.root,children:[!h&&v.jsx($,x({x1:l.range()[0],x2:l.range()[1],className:E.line},T==null?void 0:T.axisLine)),F.map(({formattedValue:W,offset:K,labelOffset:Q},re)=>{const ee=Q??0,ne=L*(j+3);return v.jsxs("g",{transform:`translate(${K}, 0)`,className:E.tickContainer,children:[!m&&v.jsx(P,x({y2:L*j,className:E.tick},T==null?void 0:T.axisTick)),W!==void 0&&v.jsx(k,x({x:ee,y:ne,"transform-origin":`${ee}px ${ne}px`,sx:{fontSize:y},className:E.tickLabel},T==null?void 0:T.axisTickLabel,{children:W}))]},re)}),b&&v.jsx(A,x({},D,{sx:{fontSize:g,transformOrigin:`${D.x}px ${D.y}px`},className:E.label},T==null?void 0:T.axisLabel,{children:b}))]})}const zS=["scale","ticksNumber"],US=e=>{const{classes:t,position:n}=e;return me({root:["root","directionY",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},gu,t)},nl={position:"left",disableLine:!1,disableTicks:!1,tickFontSize:12,labelFontSize:14,tickSize:6};function rl(e){var t,n,r,o;const a=Ce({props:x({},nl,e),name:"MuiChartsYAxis"}),s=p.useContext(At),i=a.axisId,{yAxis:{[i]:{scale:l,ticksNumber:c}}}=s,u=J(s.yAxis[i],zS),d=x({},nl,u,a),{position:f,disableLine:h,disableTicks:m,tickFontSize:y,label:b,labelFontSize:g,tickSize:S,valueFormatter:w,slots:C,slotProps:T}=d,M=ct(),E=US(x({},d,{theme:M})),{left:O,top:I,width:R,height:N}=p.useContext(rn),j=m?4:S,F=hu({scale:l,ticksNumber:c,valueFormatter:w}),L=f==="right"?1:-1,D={x:L*(y+j+10),y:I+N/2},$=(t=C==null?void 0:C.axisLine)!=null?t:xu,P=(n=C==null?void 0:C.axisTick)!=null?n:bu,k=(r=C==null?void 0:C.axisTickLabel)!=null?r:yu,A=(o=C==null?void 0:C.axisLabel)!=null?o:Cu;return v.jsxs(vu,{transform:`translate(${f==="right"?O+R:O}, 0)`,className:E.root,children:[!h&&v.jsx($,x({y1:l.range()[0],y2:l.range()[1],className:E.line},T==null?void 0:T.axisLine)),F.map(({formattedValue:W,offset:K,labelOffset:Q},re)=>{const ee=L*(j+2),ne=Q;return v.jsxs("g",{transform:`translate(0, ${K})`,className:E.tickContainer,children:[!m&&v.jsx(P,x({x2:L*j,className:E.tick},T==null?void 0:T.axisTick)),W!==void 0&&v.jsx(k,x({x:ee,y:ne,"transform-origin":`${ee}px ${ne}px`,sx:{fontSize:y},className:E.tickLabel},T==null?void 0:T.axisTickLabel,{children:W.toLocaleString()}))]},re)}),b&&v.jsx(A,x({},D,{sx:{fontSize:g,transform:`rotate(${L*90}deg)`,transformOrigin:`${D.x}px ${D.y}px`},className:E.label},T==null?void 0:T.axisLabel,{children:b}))]})}const wr=e=>e==null?null:typeof e=="object"?e.axisId:e,Sr=(e,t,n)=>typeof e=="object"?x({},e,{slots:x({},t,e==null?void 0:e.slots),slotProps:x({},n,e==null?void 0:e.slotProps)}):{slots:t,slotProps:n};function VS(e){const{topAxis:t,leftAxis:n,rightAxis:r,bottomAxis:o,slots:a,slotProps:s}=e,{xAxis:i,xAxisIds:l,yAxis:c,yAxisIds:u}=p.useContext(At),d=wr(n===void 0?u[0]:n),f=wr(o===void 0?l[0]:o),h=wr(t),m=wr(r);if(h!==null&&!i[h])throw Error(`MUI: id used for top axis "${h}" is not defined`);if(d!==null&&!c[d])throw Error(`MUI: id used for left axis "${d}" is not defined`);if(m!==null&&!c[m])throw Error(`MUI: id used for right axis "${m}" is not defined`);if(f!==null&&!i[f])throw Error(`MUI: id used for bottom axis "${f}" is not defined`);const y=Sr(t,a,s),b=Sr(o,a,s),g=Sr(n,a,s),S=Sr(r,a,s);return v.jsxs(p.Fragment,{children:[h&&v.jsx(tl,x({},y,{position:"top",axisId:h})),f&&v.jsx(tl,x({},b,{position:"bottom",axisId:f})),d&&v.jsx(rl,x({},g,{position:"left",axisId:d})),m&&v.jsx(rl,x({},S,{position:"right",axisId:m}))]})}function YS(e){if(e===null)return{getBoundingClientRect:()=>({width:0,height:0,x:0,y:0,top:0,right:0,bottom:0,left:0,toJSON:()=>""})};const{x:t,y:n}=e;return{getBoundingClientRect:()=>({width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t,toJSON:()=>JSON.stringify({width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t})})}}function KS(){const e=p.useContext(is),[t,n]=p.useState(null);return p.useEffect(()=>{const r=e.current;if(r===null)return()=>{};const o=()=>{n(null)},a=s=>{n({x:s.clientX,y:s.clientY})};return r.addEventListener("mouseout",o),r.addEventListener("mousemove",a),()=>{r.removeEventListener("mouseout",o),r.removeEventListener("mousemove",a)}},[e]),t}function qS(e,t){if(e==="item")return t!==null;const n=t.x!==null,r=t.y!==null;return n||r}function GS(e){return ve("MuiChartsTooltip",e)}const ol=de("MuiChartsTooltip",["root","markCell","labelCell","valueCell"]),wu=X("div",{name:"MuiChartsTooltip",slot:"Container"})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),border:`1px solid ${(e.vars||e).palette.divider}`,borderRadius:e.shape.borderRadius})),Su=X("table",{name:"MuiChartsTooltip",slot:"Table"})(({theme:e})=>({borderSpacing:0,"& thead td":{borderBottom:`solid ${(e.vars||e).palette.divider} 1px`}})),oa=X("tr",{name:"MuiChartsTooltip",slot:"Row"})(({theme:e})=>({"tr:first-of-type& td":{paddingTop:e.spacing(1)},"tr:last-of-type& td":{paddingBottom:e.spacing(1)}})),Gt=X("td",{name:"MuiChartsTooltip",slot:"Cell"})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,[`&.${ol.labelCell}`]:{paddingLeft:e.spacing(1)},[`&.${ol.valueCell}`]:{paddingLeft:e.spacing(4),color:(e.vars||e).palette.text.primary},"td:first-of-type&":{paddingLeft:e.spacing(2)},"td:last-of-type&":{paddingRight:e.spacing(2)}})),Mu=X(Dd,{name:"MuiChartsTooltip",slot:"Mark"})(({theme:e,ownerState:t})=>({width:e.spacing(1),height:e.spacing(1),borderRadius:"50%",backgroundColor:t.color,borderColor:(e.vars||e).palette.background.paper,border:`solid ${(e.vars||e).palette.background.paper} ${e.spacing(.25)}`,boxSizing:"content-box"}));function XS(e){const{series:t,itemData:n,sx:r,classes:o}=e;if(n.dataIndex===void 0)return null;const{displayedLabel:a,color:s}=t.type==="pie"?{color:t.data[n.dataIndex].color,displayedLabel:t.data[n.dataIndex].label}:{color:t.color,displayedLabel:t.label},i=t.valueFormatter(t.data[n.dataIndex]);return v.jsx(wu,{sx:r,className:o.root,children:v.jsx(Su,{children:v.jsx("tbody",{children:v.jsxs(oa,{children:[v.jsx(Gt,{className:o.markCell,children:v.jsx(Mu,{ownerState:{color:s}})}),v.jsx(Gt,{className:o.labelCell,children:a}),v.jsx(Gt,{className:o.valueCell,children:i})]})})})})}function QS(e){const{content:t,itemData:n,sx:r,classes:o}=e,a=p.useContext(Tn)[n.type].series[n.seriesId],s=t??XS;return v.jsx(s,{itemData:n,series:a,sx:r,classes:o})}function ZS(e){var t;const{series:n,axis:r,dataIndex:o,axisValue:a,sx:s,classes:i}=e;if(o==null)return null;const l=(t=r.valueFormatter)!=null?t:c=>c.toLocaleString();return v.jsx(wu,{sx:s,className:i.root,children:v.jsxs(Su,{children:[a!=null&&!r.hideTooltip&&v.jsx("thead",{children:v.jsx(oa,{children:v.jsx(Gt,{colSpan:3,children:v.jsx(Rt,{children:l(a)})})})}),v.jsx("tbody",{children:n.map(({color:c,id:u,label:d,valueFormatter:f,data:h})=>v.jsxs(oa,{children:[v.jsx(Gt,{className:i.markCell,children:v.jsx(Mu,{ownerState:{color:c},boxShadow:1})}),v.jsx(Gt,{className:i.labelCell,children:d?v.jsx(Rt,{children:d}):null}),v.jsx(Gt,{className:i.valueCell,children:v.jsx(Rt,{children:f(h[o])})})]},u))})]})})}function JS(e){const{content:t,axisData:n,sx:r,classes:o}=e,a=(n.x&&n.x.index)!==void 0,s=a?n.x&&n.x.index:n.y&&n.y.index,i=a?n.x&&n.x.value:n.y&&n.y.value,{xAxisIds:l,xAxis:c,yAxisIds:u,yAxis:d}=p.useContext(At),f=p.useContext(Tn),h=a?l[0]:u[0],m=p.useMemo(()=>{const g=[];return Object.keys(f).filter(S=>["bar","line","scatter"].includes(S)).forEach(S=>{f[S].seriesOrder.forEach(w=>{const C=f[S].series[w],T=a?C.xAxisKey:C.yAxisKey;(T===void 0||T===h)&&g.push(f[S].series[w])})}),g},[h,a,f]),y=p.useMemo(()=>a?c[h]:d[h],[h,a,c,d]),b=t??ZS;return v.jsx(b,{axisData:n,series:m,axis:y,dataIndex:s,axisValue:i,sx:r,classes:o})}const eM=e=>{const{classes:t}=e;return me({root:["root"],markCell:["markCell"],labelCell:["labelCell"],valueCell:["valueCell"]},GS,t)};function tM(e){const{trigger:t="axis",itemContent:n,axisContent:r}=e,o=KS(),{item:a,axis:s}=p.useContext(Pn),i=t==="item"?a:s,l=qS(t,i),c=o!==null&&l,u=eM({classes:e.classes});return t==="none"?null:v.jsx(jf,{children:c&&v.jsx(Ul,{open:c,placement:"right-start",anchorEl:YS(o),style:{pointerEvents:"none"},children:t==="item"?v.jsx(QS,{itemData:i,content:n,sx:{mx:2},classes:u}):v.jsx(JS,{axisData:i,content:r,sx:{mx:2},classes:u})})})}const nM=e=>{const{seriesOrder:t,series:n}=e;return t.map(o=>({color:n[o].color,label:n[o].label,id:o})).filter(o=>o.label!==void 0)},rM=nM,oM=e=>{const{seriesOrder:t,series:n}=e;return t.map(o=>({color:n[o].color,label:n[o].label,id:o})).filter(o=>o.label!==void 0)},aM=oM,sM=e=>{const{seriesOrder:t,series:n}=e;return t.map(o=>({color:n[o].color,label:n[o].label,id:o})).filter(o=>o.label!==void 0)},iM=sM,lM=e=>{const{seriesOrder:t,series:n}=e;return t.flatMap(r=>n[r].data.map(o=>({color:o.color,label:o.label,id:o.id})).filter(o=>o.label!==void 0))},cM=lM,uM={bar:rM,scatter:aM,line:iM,pie:cM};function dM(e){return Object.keys(e).flatMap(t=>uM[t](e[t]))}function fM(e){return ve("MuiChartsLegend",e)}de("MuiChartsLegend",["root","series","mark","label","column","row"]);const pM=e=>{const{classes:t,direction:n}=e;return me({root:["root",n],mark:["mark"],label:["label"],series:["series"]},fM,t)};function hM({position:e,drawingArea:t}){let n;switch(e.horizontal){case"left":n=`calc(var(--ChartsLegend-rootOffsetX, 0px) + ${t.left}px - var(--ChartsLegend-rootWidth))`;break;case"middle":n=`calc(var(--ChartsLegend-rootOffsetX, 0px) + ${t.left+t.width/2}px - 0.5 * var(--ChartsLegend-rootWidth))`;break;default:n=`calc(var(--ChartsLegend-rootOffsetX, 0px) + ${t.left+t.width}px)`;break}let r;switch(e.vertical){case"top":r=`calc(var(--ChartsLegend-rootOffsetY, 0px) + ${t.top}px - var(--ChartsLegend-rootHeight))`;break;case"middle":r=`calc(var(--ChartsLegend-rootOffsetY, 0px) + ${t.top+t.height/2}px - 0.5 * var(--ChartsLegend-rootHeight))`;break;default:r=`calc(var(--ChartsLegend-rootOffsetY, 0px) + ${t.top+t.height}px)`;break}return{transform:`translate(${n}, ${r})`}}const mM=X("g",{name:"MuiChartsLegend",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>{const{direction:t,drawingArea:n,offsetX:r,offsetY:o,seriesNumber:a,position:s}=e;return x({"--ChartsLegend-rootOffsetX":typeof r=="number"?`${r}px`:void 0,"--ChartsLegend-rootOffsetY":typeof o=="number"?`${o}px`:void 0,"--ChartsLegend-rootWidth":t==="row"?`calc(var(--ChartsLegend-itemWidth) * ${a} + var(--ChartsLegend-rootSpacing) * ${a-1} )`:"var(--ChartsLegend-itemWidth)","--ChartsLegend-rootHeight":t==="row"?"var(--ChartsLegend-itemMarkSize)":`calc(var(--ChartsLegend-itemMarkSize) * ${a} + var(--ChartsLegend-rootSpacing) * ${a-1} )`},hM({position:s,drawingArea:n,offsetX:r,offsetY:o}))}),gM=X("g",{name:"MuiChartsLegend",slot:"ChartsSeriesLegendGroup",overridesResolver:(e,t)=>t.series})(({ownerState:e})=>{const{direction:t,seriesIndex:n}=e;return t==="row"?{transform:`translate(calc(${n} * (var(--ChartsLegend-itemWidth) + var(--ChartsLegend-rootSpacing))), 0)`}:{transform:`translate(0, calc(${n} * (var(--ChartsLegend-itemMarkSize) + var(--ChartsLegend-rootSpacing))))`}}),vM=X("rect",{name:"MuiChartsLegend",slot:"Mark",overridesResolver:(e,t)=>t.mark})(({ownerState:e})=>({x:0,y:0,width:"var(--ChartsLegend-itemMarkSize)",height:"var(--ChartsLegend-itemMarkSize)",fill:e.color})),xM=X("text",{name:"MuiChartsLegend",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>x({},e.typography.body1,{color:"inherit",transform:`translate( - calc(var(--ChartsLegend-itemMarkSize) + var(--ChartsLegend-labelSpacing)), - calc(0.5 * var(--ChartsLegend-itemMarkSize)) - )`,fill:(e.vars||e).palette.text.primary,dominantBaseline:"central"})),bM={position:{horizontal:"middle",vertical:"top"},direction:"row",markSize:20,itemWidth:100,spacing:2};function yM(e){const{hidden:t,position:n,direction:r,offset:o,series:a,seriesToDisplay:s,drawingArea:i,classes:l}=e;return t?null:v.jsx(mM,{ownerState:{direction:r,offsetX:o==null?void 0:o.x,offsetY:o==null?void 0:o.y,seriesNumber:s.length,position:n,drawingArea:i},className:l.root,children:s.map(({id:c,label:u,color:d},f)=>v.jsxs(gM,{ownerState:x({direction:r,seriesIndex:f},a),className:l.series,children:[v.jsx(vM,{ownerState:{color:d},className:l.mark}),v.jsx(xM,{className:l.label,children:u})]},c))})}function CM(e){var t;const n=Ce({props:x({},bM,e),name:"MuiChartsLegend"}),{position:r,direction:o,offset:a,hidden:s,slots:i,slotProps:l}=n,c=ct(),u=pM(x({},n,{theme:c})),d=p.useContext(rn),f=p.useContext(Tn),h=dM(f),m=(t=i==null?void 0:i.legend)!=null?t:yM,y=Ye({elementType:m,externalSlotProps:l==null?void 0:l.legend,additionalProps:{position:r,direction:o,offset:a,classes:u,drawingArea:d,series:f,hidden:s,seriesToDisplay:h},ownerState:{}});return v.jsx(m,x({},y))}function al(e){return Zn(e)?t=>e(t)+e.bandwidth()/2:t=>e(t)}function wM(e){const{x:t,y:n}=e,{xAxisIds:r,xAxis:o,yAxisIds:a,yAxis:s}=p.useContext(At),i=r[0],l=a[0],c=o[i].scale,u=s[l].scale,{axis:d}=p.useContext(Pn),f=al(c),h=al(u);return v.jsxs(p.Fragment,{children:[t==="band"&&d.x!==null&&Zn(c)&&v.jsx("path",{d:`M ${c(d.x.value)-(c.step()-c.bandwidth())/2} ${u.range()[0]} l ${c.step()} 0 l 0 ${u.range()[1]-u.range()[0]} l ${-c.step()} 0 Z`,fill:"gray",fillOpacity:.1,style:{pointerEvents:"none"}}),n==="band"&&d.y!==null&&Zn(u)&&v.jsx("path",{d:`M ${c.range()[0]} ${u(d.y.value)-(u.step()-u.bandwidth())/2} l 0 ${u.step()} l ${c.range()[1]-c.range()[0]} 0 l 0 ${-u.step()} Z`,fill:"gray",fillOpacity:.1,style:{pointerEvents:"none"}}),t==="line"&&d.x!==null&&v.jsx("path",{d:`M ${f(d.x.value)} ${u.range()[0]} L ${f(d.x.value)} ${u.range()[1]}`,stroke:"black",strokeDasharray:"5 2",style:{pointerEvents:"none"}}),n==="line"&&d.y!==null&&v.jsx("path",{d:`M ${c.range()[0]} ${h(d.y.value)} L ${c.range()[1]} ${h(d.y.value)}`,stroke:"black",strokeDasharray:"5 2",style:{pointerEvents:"none"}})]})}function SM(e){const{id:t,offset:n}=e,{left:r,top:o,width:a,height:s}=p.useContext(rn),i=x({top:0,right:0,bottom:0,left:0},n);return v.jsx("clipPath",{id:t,children:v.jsx("rect",{x:r-i.left,y:o-i.top,width:a+i.left+i.right,height:s+i.top+i.bottom})})}const sl=p.forwardRef(function(t,n){const{xAxis:r,yAxis:o,series:a,width:s,height:i,margin:l,colors:c,dataset:u,sx:d,layout:f,tooltip:h,axisHighlight:m,legend:y,topAxis:b,leftAxis:g,rightAxis:S,bottomAxis:w,children:C,slots:T,slotProps:M}=t,O=`${tr()}-clip-path`,I=f==="horizontal"||f===void 0&&a.some(j=>j.layout==="horizontal"),R={scaleType:"band",data:Array.from({length:Math.max(...a.map(j=>{var F,L;return((F=(L=j.data)!=null?L:u)!=null?F:[]).length}))},(j,F)=>F)},N=x({},I?{y:"band"}:{x:"band"},m);return v.jsxs(BS,{ref:n,series:a.map(j=>x({type:"bar"},j,{layout:I?"horizontal":"vertical"})),width:s,height:i,margin:l,xAxis:r??(I?void 0:[x({id:na},R)]),yAxis:o??(I?[x({id:ra},R)]:void 0),colors:c,dataset:u,sx:d,disableAxisListener:(h==null?void 0:h.trigger)!=="axis"&&(m==null?void 0:m.x)==="none"&&(m==null?void 0:m.y)==="none",children:[v.jsx("g",{clipPath:`url(#${O})`,children:v.jsx(RS,{slots:T,slotProps:M})}),v.jsx(VS,{topAxis:b,leftAxis:g,rightAxis:S,bottomAxis:w,slots:T,slotProps:M}),v.jsx(CM,x({},y,{slots:T,slotProps:M})),v.jsx(wM,x({},N)),v.jsx(tM,x({},h,{slots:T,slotProps:M})),v.jsx(SM,{id:O}),C]})}),MM=p.forwardRef(({chart:e="",isChartGroup:t=!1,chartData:n},r)=>{var c;const[o,a]=Dt.useState(((c=r==null?void 0:r.current)==null?void 0:c.offsetWidth)||0),s=fn(u=>u.theme),i=p.useMemo(()=>ml({palette:{mode:s}}),[s]);p.useEffect(()=>{var u,d;(u=r==null?void 0:r.current)!=null&&u.offsetWidth&&a(((d=r==null?void 0:r.current)==null?void 0:d.offsetWidth)-8)},[r==null?void 0:r.current]);const l=(u,d)=>{var f,h,m;if(d&&u&&e!=="")return B(sl,{colors:["#babc00","#ff5555"],xAxis:[{id:"barCategories",dataKey:"xAxisData",data:[...(f=d==null?void 0:d.valueTypesMapped[e])==null?void 0:f.names],scaleType:"band"}],series:[{data:[...(h=d==null?void 0:d.valueTypesMapped[e])==null?void 0:h.values],label:"current"},{data:[...(m=d==null?void 0:d.valueTypesMapped[e])==null?void 0:m.diff],label:"previous"}],margin:{bottom:60,left:60},width:o,height:300});if(d&&!u)return B(sl,{colors:["#babc00","#ff5555"],xAxis:[{id:"barCategories",dataKey:"xAxisData",data:[...d==null?void 0:d.xAxisData],scaleType:"band"}],series:[{data:[...d==null?void 0:d.valueData],label:"current"},{data:[...d==null?void 0:d.diffData],label:"previous"}],margin:{bottom:60,left:60},width:o,height:300})};return B(of,{theme:i,children:o>0&&n&&l(t,n)})}),kM=le("div",{target:"elsu4hb0"})({name:"wur8z8",styles:"display:flex;flex:1;flex-wrap:wrap;gap:4px"}),TM=e=>Ae("display:flex;flex:1;flex-direction:column;min-width:33%;border:1px solid ",e.neutral,";.label{display:flex;padding:6px 8px;text-align:center;}",""),il=({chart:e="",rows:t,theme:n,hasDiff:r=!0,chartData:o})=>{const a=p.useRef(null);return oe("div",{className:Ve(TM(n)),ref:a,children:[e!==""&&B("div",{className:"label",children:e}),B(MM,{chartData:o,isChartGroup:e!=="",chart:e,rows:t,hasDiff:r,ref:a})]})},PM=(e,t,n,r)=>e.reduce((o,a,s)=>{var l;let i=(l=t[s])==null?void 0:l.split("=")[0];return o[i]===void 0&&(o[i]={},o[i].names=[],o[i].values=[],o[i].diff=[]),o[i].names.push(a),o[i].values.push(n[s]),o[i].diff.push(r[s]),o},{}),$M=e=>{const t=e==null?void 0:e.map(s=>s.name),n=e==null?void 0:e.map(s=>s.value),r=e==null?void 0:e.map(s=>s.diff<0?s.diff*-1:s.diff),o=e==null?void 0:e.map(s=>s.name.split("=")[0]),a=e==null?void 0:e.map(s=>s.name.split("=")[1]);return{xAxisData:t,valueData:n,diffData:r,labelTypes:o,valueTypes:a,valueTypesMapped:{},valueTypesKeys:[]}},DM=e=>p.useMemo(()=>{if(e&&(e==null?void 0:e.length)>0){const{xAxisData:t,valueData:n,diffData:r,labelTypes:o,valueTypes:a}=$M(e);let s={};(a==null?void 0:a[0])!==void 0&&(s=PM(a,t,n,r));let i=Object.keys(s);return{xAxisData:t,valueData:n,diffData:r,labelTypes:o,valueTypes:a,valueTypesMapped:s,valueTypesKeys:i}}return{xAxisData:[],valueData:[],diffData:[],labelTypes:[],valueTypes:[],valueTypesMapped:{},valueTypesKeys:[]}},[e]),EM=({rows:e,theme:t})=>{var r;const n=DM(e);return e.length===0?null:B(kM,{children:(n==null?void 0:n.valueTypes[0])!==void 0?(r=n==null?void 0:n.valueTypesKeys)==null?void 0:r.map((o,a)=>B(il,{theme:t,rows:e,chart:o,hasDiff:!1,chartData:n},a)):B(il,{theme:t,rows:e,chartData:n,hasDiff:!0})})},ku=e=>Ae("display:table-row;align-items:center;padding:12px 8px;border-bottom:1px solid ",e.neutral,";.cell{display:table-cell;padding:12px 0px;width:auto;border-bottom:1px solid ",e.neutral,";}.cell-name{width:60%;cursor:pointer;transition:0.25s all;&:hover{background:",e.neutral,";.c-name{color:",e.primaryLight,";}}}.cell-header{font-size:10px;letter-spacing:1px;text-transform:uppercase;padding:12px;padding-left:0px;&.center{text-align:center;}&.start{text-align:left;}.end{text-align:right;padding:0;padding-right:0px!important;}}.interactive{transition:0.25s all;&:hover{background:",e.neutral,";cursor:pointer;}}.c-name{font-size:12px;color:",e.primaryLight,";cursor:pointer;margin:0px 12px;}.c-value{color:",e.contrast,";font-size:14px;width:auto;}.c-share-cont{align-items:center;display:flex;gap:1px;justify-content:flex-start;}.c-share{display:flex;font-size:12px;font-family:monospace;margin:0px 12px;}.c-progress{grid-gap:8px;align-items:center;display:grid;grid-template-columns:1fr auto;justify-content:center;}progress{background:",e.deep,";border-radius:3px;height:12px;border:1px solid ",e.ultraDeep,";display:flex;flex:1;}progress::-webkit-progress-bar{background-color:",e.deep,";border-radius:3px;}progress::-webkit-progress-value{background-color:",e.primary,";border-radius:3px;}progress::-moz-progress-bar{background-color:",e.primary,";border-radius:3px;}",""),RM=({theme:e,diff:t})=>oe("span",{className:"c-diff",title:`diff from previous day: ${t}`,style:{fontSize:"10px",padding:"5px",paddingBottom:"8px",color:t>0?e.accent:e.primary},children:[t===0?"":t>0?"↑":"↓",t===0?"":t," "]}),NM=({share:e})=>B("div",{className:"cell",children:B("div",{className:"c-share-cont",children:oe("div",{className:"c-progress",children:[B("progress",{value:e,max:100}),oe("span",{className:"c-share",children:[e.toFixed(2),"%"]})]})})}),LM=e=>Ae('display:flex;align-items:center;gap:8px;.square{content:"";width:0.75em;height:0.75em;background:',e?"orange":"green",";border-radius:2px;color:white;}.info-icon{font-size:12px;}.quota-num{font-size:12px;}",""),OM=({quota:e,cardinality:t,isQuotaWarning:n})=>oe("div",{className:Ve(LM(n)),children:[B("div",{className:"square"}),B("div",{className:"info-icon",children:B(qr,{title:`cardinality over quota percentage ${n?"warning":"(no warning)"}`,children:B(za,{fontSize:"inherit",style:{cursor:"pointer",opacity:`${n?1:.5}`}})})}),oe("p",{className:"quota-num",children:[bc(t,e),"%"]})]}),_M=({name:e,value:t,diff:n,hasShare:r,share:o,theme:a,onFilter:s,source:i,quota:l})=>{const{handleDelete:c}=La(),{isLoading:u}=Lt(),d=p.useMemo(()=>{const f=bc(t,l);return Vb(f)},[l]);return oe("div",{className:Ve(ku(a)),children:[B("div",{className:"cell cell-name",onClick:f=>s(f,{name:e,value:t,source:i}),children:B("div",{className:"c-name",children:e})}),B("div",{className:" cell",children:oe("div",{className:"c-value",children:[B("span",{children:t}),B(RM,{theme:a,diff:n})]})}),r&&B(NM,{share:o}),B("div",{className:"cell",children:B(OM,{quota:l,cardinality:t,isQuotaWarning:d})}),B("div",{className:"cell",children:B("div",{style:{display:"flex",alignItems:"center",justifyContent:"end",marginRight:"20px",flex:"1",height:"100%"},children:B(Ac,{clearFingerPrints:f=>c(f,t),isLoading:u,label:e,value:t,source:i})})})]})},IM=({theme:e,name:t,headerName:n,handleSort:r})=>oe("div",{className:Ve(ku(e)),children:[B("div",{onClick:()=>r("name"),className:"cell-header interactive cell",children:t}),B("div",{onClick:()=>r("value"),className:"cell-header interactive cell",children:"Number of Series"}),n!=="labelValueCountByLabelName"&&B("div",{className:"cell-header cell",children:"Share in Total"}),B("div",{className:"cell-header cell start",children:"Quota"}),B("div",{className:"cell-header cell end",style:{textAlign:"right"},children:"Drop"})]}),AM=Ae({name:"pilqz3",styles:"display:flex;flex:1;align-items:center;justify-content:center;min-height:300px"}),jM=Ae({name:"1h6zx21",styles:"border:4px solid #f3f3f3;border-top:4px solid #3498db;border-radius:50%;width:20px;height:20px;margin-left:4px;animation:spin 2s linear infinite;@keyframes spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}"}),Tu=()=>B("div",{className:Ve(AM),children:B("div",{className:Ve(jM)})}),FM=({rows:e,theme:t,sectionHeader:n,sectionHeaderName:r})=>{const{seriesGroupStyles:o}=jc(t),{sortedRows:a,handleSort:s}=Fc(e);return oe("div",{className:"c-table",children:[e&&B(IM,{handleSort:s,headerName:r,name:n,theme:o}),a&&(a==null?void 0:a.length)>=0?a.map((i,l)=>Sd(_M,{...i,key:l,theme:o,hasShare:r!=="labelValueCountByLabelName"})):B(Tu,{})]})},BM=({title:e,rows:t,sectionHeader:n,sectionHeaderName:r})=>{const o=Ot(),{seriesGroupContainer:a}=jc(o),{sortedRows:s}=Fc(t),i=p.useRef(null),[l,c]=p.useState(0);return oe("div",{className:a,ref:i,children:[B(Jy,{theme:o,title:e,tabsValue:l,onTabChange:(d,f)=>{c(f)}}),l===0&&B(FM,{title:e,rows:s,theme:o,sectionHeader:n,sectionHeaderName:r}),l===1&&B(EM,{rows:s,theme:o})]})},HM=Ae({name:"aj5isq",styles:"display:flex;flex-direction:column;flex:1;height:100%;overflow-y:auto"}),WM=Ae({name:"1c1c0f4",styles:"display:flex;flex-direction:column;flex:1;max-height:calc(100vh - 200px)"}),zM=({formattedSeries:e,isCardinality:t,isLoading:n})=>{const r=Ot();return B("div",{className:Ve(HM,t&&WM),children:n?B(Tu,{}):e==null?void 0:e.map((o,a)=>B(BM,{theme:r,...Ub(o)},a))})},ll="cardinalityHistory",UM=10;class VM{constructor(){Wt(this,"history",[]);Wt(this,"maxHistory");Wt(this,"setMaxHistory",t=>{this.maxHistory=t});Wt(this,"getLocalHistory",()=>{try{const t=localStorage.getItem(ll);t&&typeof t=="string"&&(this.history=JSON.parse(t)||[])}catch(t){console.log("Error getting cardinality history",t)}return this.history});Wt(this,"setLocalHistoryItem",(t,n)=>{const r=this.getLocalHistory(),o=r.filter(i=>i.type!==t)||[],a=r.filter(i=>i.type===t)||[];a.length===this.maxHistory&&a.shift();const s=[...o,...a,{type:t,value:n}];localStorage.setItem(ll,JSON.stringify(s))});Wt(this,"getLocalHistoryItemsFromType",t=>this.getLocalHistory().filter(o=>o.type===t));this.maxHistory=UM}}const YM=()=>{const e=new VM,t=e.getLocalHistoryItemsFromType("focusLabel"),n=e.getLocalHistoryItemsFromType("limitEntries"),r=p.useMemo(()=>t.map(l=>l.value),[t]),o=p.useMemo(()=>e.getLocalHistoryItemsFromType("timeSeriesSelector").map(c=>c.value),[e.getLocalHistoryItemsFromType("timeSeriesSelector")]),a=p.useMemo(()=>n.map(l=>l.value),[n]);return{historyManager:e,getHistory:()=>e.getLocalHistory(),setHistoryItem:(l,c)=>{e.setLocalHistoryItem(l,c)},focusLabelItems:r,timeSeriesSelectorItems:o,limitEntriesItems:a}},KM=()=>{const e=Cl(),t=Ot(),n=fn(d=>d.isCardinality);p.useEffect(()=>(e(pi(!0)),()=>{e(pi(!1))}),[]);const{setHistoryItem:r,focusLabelItems:o,timeSeriesSelectorItems:a,limitEntriesItems:s,historyManager:i}=YM(),{totalSeries:l,formattedSeries:c,isLoading:u}=Xy(i,r);return oe("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[B(qy,{theme:t,total:l,setHistoryItem:r,focusLabelItems:o,timeSeriesSelectorItems:a,limitEntriesItems:s,percent:35}),!u&&B(zM,{formattedSeries:c,isCardinality:n,isLoading:u})]})},qM={name:"Cardinality View",section:"Query Item",id:ia(),Component:KM,description:"A cardinality view for labels",active:!1,visible:!0,roles:["admin","superAdmin"]};let GM=[Dv,qM];td(GM);const Ok=e=>{var r,o;const{section:t,localProps:n}=e;return B("div",{className:"renderer-content",children:((r=xs.getPlugins(t))==null?void 0:r.length)>0&&((o=xs.getPlugins(t))==null?void 0:o.map(({name:a,Component:s},i)=>B(s,{localProps:n,name:a},i)))})};var cs={},XM=it;Object.defineProperty(cs,"__esModule",{value:!0});var QM=cs.default=void 0,ZM=XM(lt()),JM=v;QM=cs.default=(0,ZM.default)((0,JM.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");const _k=e=>t=>{t({type:"SET_LINKS_HISTORY",linksHistory:e})},Ik={info:"info",warning:"warning",error:"error",success:"success"};export{Oc as $,pk as A,bh as B,Tk as C,Zl as D,wk as E,Gl as F,hk as G,vk as H,mk as I,gk as J,yk as K,fk as L,jg as M,lr as N,Lc as O,Ok as P,kk as Q,Dk as R,Lk as S,qr as T,Rk as U,Sk as V,w0 as W,xk as X,$k as Y,bk as Z,Mk as _,_k as a,Nk as a0,Ek as a1,Zm as a2,Ym as a3,Nh as a4,za as a5,h0 as a6,r0 as a7,Z0 as a8,Cy as a9,hy as aa,Ec as ab,Qy as ac,hi as ad,Lt as ae,wb as af,oc as b,Dc as c,QM as d,Ry as e,Md as f,uk as g,Ic as h,ym as i,cm as j,mm as k,em as l,Dy as m,Ik as n,Ey as o,Dl as p,_c as q,Pk as r,ck as s,of as t,ct as u,Rt as v,Vy as w,$y as x,dk as y,Ck as z}; diff --git a/assets/createSvgIcon-b33a10f9.js b/assets/createSvgIcon-453c5eac.js similarity index 99% rename from assets/createSvgIcon-b33a10f9.js rename to assets/createSvgIcon-453c5eac.js index 71e7edab..63aea66c 100644 --- a/assets/createSvgIcon-b33a10f9.js +++ b/assets/createSvgIcon-453c5eac.js @@ -1 +1 @@ -import{a as u,d as T}from"./vendor-c662a477.js";import{r as i,d as te,e as ae}from"./react-432945ee.js";import{O as oe,o as p,ac as ne,a8 as se,a7 as re,a9 as ie,a4 as ce,af as le,n as M,m as O,s as v,B as de,r as ue,c as U,b as q,a as P,aj as pe,ak as he,ai as fe}from"./index-a817164a.js";import{j as w}from"./reactDnd-707fca38.js";function ge(...e){return e.reduce((t,a)=>a==null?t:function(...n){t.apply(this,n),a.apply(this,n)},()=>{})}function be(e,t=166){let a;function o(...n){const r=()=>{e.apply(this,n)};clearTimeout(a),a=setTimeout(r,t)}return o.clear=()=>{clearTimeout(a)},o}function me(e,t){return()=>null}function we(e,t){var a,o;return i.isValidElement(e)&&t.indexOf((a=e.type.muiName)!=null?a:(o=e.type)==null||(o=o._payload)==null||(o=o.value)==null?void 0:o.muiName)!==-1}function D(e){return e&&e.ownerDocument||document}function ve(e){return D(e).defaultView||window}function Se(e,t){return()=>null}let z=0;function ke(e){const[t,a]=i.useState(e),o=e||t;return i.useEffect(()=>{t==null&&(z+=1,a(`mui-${z}`))},[t]),o}const j=te["useId".toString()];function Ce(e){if(j!==void 0){const t=j();return e??t}return ke(e)}function ye(e,t,a,o,n){return null}function V({controlled:e,default:t,name:a,state:o="value"}){const{current:n}=i.useRef(e!==void 0),[r,h]=i.useState(t),l=n?e:r,f=i.useCallback(m=>{n||h(m)},[]);return[l,f]}const $e={configure:e=>{oe.configure(e)}},xe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:p,createChainedFunction:ge,createSvgIcon:ne,debounce:be,deprecatedPropType:me,isMuiElement:we,ownerDocument:D,ownerWindow:ve,requirePropFactory:Se,setRef:se,unstable_ClassNameGenerator:$e,unstable_useEnhancedEffect:re,unstable_useId:Ce,unsupportedProp:ye,useControlled:V,useEventCallback:ie,useForkRef:ce,useIsFocusVisible:le},Symbol.toStringTag,{value:"Module"})),Ie=i.createContext(void 0),Be=Ie;function Re(){return i.useContext(Be)}function Fe(e){return M("PrivateSwitchBase",e)}O("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const _e=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Ne=e=>{const{classes:t,checked:a,disabled:o,edge:n}=e,r={root:["root",a&&"checked",o&&"disabled",n&&`edge${p(n)}`],input:["input"]};return q(r,Fe,t)},Pe=v(de)(({ownerState:e})=>u({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),ze=v("input",{shouldForwardProp:ue})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),je=i.forwardRef(function(t,a){const{autoFocus:o,checked:n,checkedIcon:r,className:h,defaultChecked:l,disabled:f,disableFocusRipple:m=!1,edge:g=!1,icon:b,id:k,inputProps:L,inputRef:A,name:G,onBlur:x,onChange:I,onFocus:B,readOnly:W,required:X=!1,tabIndex:H,type:C,value:R}=t,J=T(t,_e),[F,K]=V({controlled:n,default:!!l,name:"SwitchBase",state:"checked"}),d=Re(),Q=c=>{B&&B(c),d&&d.onFocus&&d.onFocus(c)},Y=c=>{x&&x(c),d&&d.onBlur&&d.onBlur(c)},Z=c=>{if(c.nativeEvent.defaultPrevented)return;const N=c.target.checked;K(N),I&&I(c,N)};let S=f;d&&typeof S>"u"&&(S=d.disabled);const ee=C==="checkbox"||C==="radio",y=u({},t,{checked:F,disabled:S,disableFocusRipple:m,edge:g}),_=Ne(y);return w.jsxs(Pe,u({component:"span",className:U(_.root,h),centerRipple:!0,focusRipple:!m,disabled:S,tabIndex:null,role:void 0,onFocus:Q,onBlur:Y,ownerState:y,ref:a},J,{children:[w.jsx(ze,u({autoFocus:o,checked:n,defaultChecked:l,className:_.input,disabled:S,id:ee?k:void 0,name:G,onChange:Z,readOnly:W,ref:A,required:X,ownerState:y,tabIndex:H,type:C},C==="checkbox"&&R===void 0?{}:{value:R},L)),F?r:b]}))}),Ee=je;function Te(e){return M("MuiSwitch",e)}const Me=O("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),s=Me,Oe=["className","color","edge","size","sx"],Ue=fe(),qe=e=>{const{classes:t,edge:a,size:o,color:n,checked:r,disabled:h}=e,l={root:["root",a&&`edge${p(a)}`,`size${p(o)}`],switchBase:["switchBase",`color${p(n)}`,r&&"checked",h&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},f=q(l,Te,t);return u({},t,f)},De=v("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,a.edge&&t[`edge${p(a.edge)}`],t[`size${p(a.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${s.thumb}`]:{width:16,height:16},[`& .${s.switchBase}`]:{padding:4,[`&.${s.checked}`]:{transform:"translateX(16px)"}}}}]}),Ve=v(Ee,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.switchBase,{[`& .${s.input}`]:t.input},a.color!=="default"&&t[`color${p(a.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${s.checked}`]:{transform:"translateX(20px)"},[`&.${s.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${s.checked} + .${s.track}`]:{opacity:.5},[`&.${s.disabled} + .${s.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${s.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:P(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${s.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:P(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${s.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?pe(e.palette[t].main,.62):he(e.palette[t].main,.55)}`}},[`&.${s.checked} + .${s.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),Le=v("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),Ae=v("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Ge=i.forwardRef(function(t,a){const o=Ue({props:t,name:"MuiSwitch"}),{className:n,color:r="primary",edge:h=!1,size:l="medium",sx:f}=o,m=T(o,Oe),g=u({},o,{color:r,edge:h,size:l}),b=qe(g),k=w.jsx(Ae,{className:b.thumb,ownerState:g});return w.jsxs(De,{className:U(b.root,n),sx:f,ownerState:g,children:[w.jsx(Ve,u({type:"checkbox",icon:k,checkedIcon:k,ref:a,ownerState:g},m,{classes:u({},b,{root:b.switchBase})})),w.jsx(Le,{className:b.track,ownerState:g})]})}),Qe=Ge;var $={};const We=ae(xe);var E;function Ye(){return E||(E=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=We}($)),$}export{Qe as S,ve as a,Ee as b,ge as c,be as d,Re as e,V as f,D as o,Ye as r,Ce as u}; +import{a as u,d as T}from"./vendor-c662a477.js";import{r as i,d as te,e as ae}from"./react-432945ee.js";import{O as oe,o as p,ac as ne,a8 as se,a7 as re,a9 as ie,a4 as ce,af as le,n as M,m as O,s as v,B as de,r as ue,c as U,b as q,a as P,aj as pe,ak as he,ai as fe}from"./index-284a6932.js";import{j as w}from"./reactDnd-707fca38.js";function ge(...e){return e.reduce((t,a)=>a==null?t:function(...n){t.apply(this,n),a.apply(this,n)},()=>{})}function be(e,t=166){let a;function o(...n){const r=()=>{e.apply(this,n)};clearTimeout(a),a=setTimeout(r,t)}return o.clear=()=>{clearTimeout(a)},o}function me(e,t){return()=>null}function we(e,t){var a,o;return i.isValidElement(e)&&t.indexOf((a=e.type.muiName)!=null?a:(o=e.type)==null||(o=o._payload)==null||(o=o.value)==null?void 0:o.muiName)!==-1}function D(e){return e&&e.ownerDocument||document}function ve(e){return D(e).defaultView||window}function Se(e,t){return()=>null}let z=0;function ke(e){const[t,a]=i.useState(e),o=e||t;return i.useEffect(()=>{t==null&&(z+=1,a(`mui-${z}`))},[t]),o}const j=te["useId".toString()];function Ce(e){if(j!==void 0){const t=j();return e??t}return ke(e)}function ye(e,t,a,o,n){return null}function V({controlled:e,default:t,name:a,state:o="value"}){const{current:n}=i.useRef(e!==void 0),[r,h]=i.useState(t),l=n?e:r,f=i.useCallback(m=>{n||h(m)},[]);return[l,f]}const $e={configure:e=>{oe.configure(e)}},xe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:p,createChainedFunction:ge,createSvgIcon:ne,debounce:be,deprecatedPropType:me,isMuiElement:we,ownerDocument:D,ownerWindow:ve,requirePropFactory:Se,setRef:se,unstable_ClassNameGenerator:$e,unstable_useEnhancedEffect:re,unstable_useId:Ce,unsupportedProp:ye,useControlled:V,useEventCallback:ie,useForkRef:ce,useIsFocusVisible:le},Symbol.toStringTag,{value:"Module"})),Ie=i.createContext(void 0),Be=Ie;function Re(){return i.useContext(Be)}function Fe(e){return M("PrivateSwitchBase",e)}O("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const _e=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Ne=e=>{const{classes:t,checked:a,disabled:o,edge:n}=e,r={root:["root",a&&"checked",o&&"disabled",n&&`edge${p(n)}`],input:["input"]};return q(r,Fe,t)},Pe=v(de)(({ownerState:e})=>u({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),ze=v("input",{shouldForwardProp:ue})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),je=i.forwardRef(function(t,a){const{autoFocus:o,checked:n,checkedIcon:r,className:h,defaultChecked:l,disabled:f,disableFocusRipple:m=!1,edge:g=!1,icon:b,id:k,inputProps:L,inputRef:A,name:G,onBlur:x,onChange:I,onFocus:B,readOnly:W,required:X=!1,tabIndex:H,type:C,value:R}=t,J=T(t,_e),[F,K]=V({controlled:n,default:!!l,name:"SwitchBase",state:"checked"}),d=Re(),Q=c=>{B&&B(c),d&&d.onFocus&&d.onFocus(c)},Y=c=>{x&&x(c),d&&d.onBlur&&d.onBlur(c)},Z=c=>{if(c.nativeEvent.defaultPrevented)return;const N=c.target.checked;K(N),I&&I(c,N)};let S=f;d&&typeof S>"u"&&(S=d.disabled);const ee=C==="checkbox"||C==="radio",y=u({},t,{checked:F,disabled:S,disableFocusRipple:m,edge:g}),_=Ne(y);return w.jsxs(Pe,u({component:"span",className:U(_.root,h),centerRipple:!0,focusRipple:!m,disabled:S,tabIndex:null,role:void 0,onFocus:Q,onBlur:Y,ownerState:y,ref:a},J,{children:[w.jsx(ze,u({autoFocus:o,checked:n,defaultChecked:l,className:_.input,disabled:S,id:ee?k:void 0,name:G,onChange:Z,readOnly:W,ref:A,required:X,ownerState:y,tabIndex:H,type:C},C==="checkbox"&&R===void 0?{}:{value:R},L)),F?r:b]}))}),Ee=je;function Te(e){return M("MuiSwitch",e)}const Me=O("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),s=Me,Oe=["className","color","edge","size","sx"],Ue=fe(),qe=e=>{const{classes:t,edge:a,size:o,color:n,checked:r,disabled:h}=e,l={root:["root",a&&`edge${p(a)}`,`size${p(o)}`],switchBase:["switchBase",`color${p(n)}`,r&&"checked",h&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},f=q(l,Te,t);return u({},t,f)},De=v("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,a.edge&&t[`edge${p(a.edge)}`],t[`size${p(a.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${s.thumb}`]:{width:16,height:16},[`& .${s.switchBase}`]:{padding:4,[`&.${s.checked}`]:{transform:"translateX(16px)"}}}}]}),Ve=v(Ee,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.switchBase,{[`& .${s.input}`]:t.input},a.color!=="default"&&t[`color${p(a.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${s.checked}`]:{transform:"translateX(20px)"},[`&.${s.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${s.checked} + .${s.track}`]:{opacity:.5},[`&.${s.disabled} + .${s.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${s.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:P(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${s.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:P(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${s.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?pe(e.palette[t].main,.62):he(e.palette[t].main,.55)}`}},[`&.${s.checked} + .${s.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),Le=v("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),Ae=v("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Ge=i.forwardRef(function(t,a){const o=Ue({props:t,name:"MuiSwitch"}),{className:n,color:r="primary",edge:h=!1,size:l="medium",sx:f}=o,m=T(o,Oe),g=u({},o,{color:r,edge:h,size:l}),b=qe(g),k=w.jsx(Ae,{className:b.thumb,ownerState:g});return w.jsxs(De,{className:U(b.root,n),sx:f,ownerState:g,children:[w.jsx(Ve,u({type:"checkbox",icon:k,checkedIcon:k,ref:a,ownerState:g},m,{classes:u({},b,{root:b.switchBase})})),w.jsx(Le,{className:b.track,ownerState:g})]})}),Qe=Ge;var $={};const We=ae(xe);var E;function Ye(){return E||(E=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=We}($)),$}export{Qe as S,ve as a,Ee as b,ge as c,be as d,Re as e,V as f,D as o,Ye as r,Ce as u}; diff --git a/assets/index-a817164a.js b/assets/index-284a6932.js similarity index 75% rename from assets/index-a817164a.js rename to assets/index-284a6932.js index 94c01e3c..b988ee4c 100644 --- a/assets/index-a817164a.js +++ b/assets/index-284a6932.js @@ -14,7 +14,7 @@ S.version="2.30.1";ru(ee);S.fn=g;S.min=zc;S.max=Bc;S.now=Vc;S.utc=Qe;S.unix=vf;S * @license MIT * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function Qh(e,t){return Ps(e,t)}const em=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},tm=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Jh,StyledEngineProvider:Zh,ThemeContext:$s,css:Ul,default:Qh,internal_processStyles:em,keyframes:Sn},Symbol.toStringTag,{value:"Module"}));function gt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Wo(e){if(!gt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Wo(e[r])}),t}function Ve(e,t,r={clone:!0}){const n=r.clone?k({},e):e;return gt(e)&>(t)&&Object.keys(t).forEach(s=>{s!=="__proto__"&&(gt(t[s])&&s in e&>(e[s])?n[s]=Ve(e[s],t[s],r):r.clone?n[s]=gt(t[s])?Wo(t[s]):t[s]:n[s]=t[s])}),n}const rm=Object.freeze(Object.defineProperty({__proto__:null,default:Ve,isPlainObject:gt},Symbol.toStringTag,{value:"Module"})),nm=["values","unit","step"],sm=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>k({},r,{[n.key]:n.val}),{})};function jo(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,s=Se(e,nm),a=sm(t),i=Object.keys(a);function o(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-n/100}${r})`}function u(f,_){const p=i.indexOf(_);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(p!==-1&&typeof t[i[p]]=="number"?t[i[p]]:_)-n/100}${r})`}function d(f){return i.indexOf(f)+1`@media (min-width:${da[e]}px)`};function dt(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||fi;return t.reduce((i,o,l)=>(i[a.up(a.keys[l])]=r(t[l]),i),{})}if(typeof t=="object"){const a=n.breakpoints||fi;return Object.keys(t).reduce((i,o)=>{if(Object.keys(a.values||da).indexOf(o)!==-1){const l=a.up(o);i[l]=r(t[o],o)}else{const l=o;i[l]=t[l]}return i},{})}return r(t)}function Ho(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,s)=>{const a=e.up(s);return n[a]={},n},{}))||{}}function zo(e,t){return e.reduce((r,n)=>{const s=r[n];return(!s||Object.keys(s).length===0)&&delete r[n],r},t)}function $y(e,...t){const r=Ho(e),n=[r,...t].reduce((s,a)=>Ve(s,a),{});return zo(Object.keys(r),n)}function om(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((s,a)=>{a{e[s]!=null&&(r[s]=!0)}),r}function Wy({values:e,breakpoints:t,base:r}){const n=r||om(e,t),s=Object.keys(n);if(s.length===0)return e;let a;return s.reduce((i,o,l)=>(Array.isArray(e)?(i[o]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(i[o]=e[o]!=null?e[o]:e[a],a=o):i[o]=e,i),{})}function Oe(e){if(typeof e!="string")throw new Error(kr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const lm=Object.freeze(Object.defineProperty({__proto__:null,default:Oe},Symbol.toStringTag,{value:"Module"}));function Pn(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((s,a)=>s&&s[a]?s[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,s)=>n&&n[s]!=null?n[s]:null,e)}function gn(e,t,r,n=r){let s;return typeof e=="function"?s=e(r):Array.isArray(e)?s=e[r]||n:s=Pn(e,r)||n,t&&(s=t(s,n,e)),s}function de(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:s}=e,a=i=>{if(i[t]==null)return null;const o=i[t],l=i.theme,u=Pn(l,n)||{};return dt(i,o,h=>{let f=gn(u,s,h);return h===f&&typeof h=="string"&&(f=gn(u,s,`${t}${h==="default"?"":Oe(h)}`,h)),r===!1?f:{[r]:f}})};return a.propTypes={},a.filterProps=[t],a}function um(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const cm={m:"margin",p:"padding"},dm={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},hi={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},fm=um(e=>{if(e.length>2)if(hi[e])e=hi[e];else return[e];const[t,r]=e.split(""),n=cm[t],s=dm[r]||"";return Array.isArray(s)?s.map(a=>n+a):[n+s]}),fa=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ha=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...fa,...ha];function Ar(e,t,r,n){var s;const a=(s=Pn(e,t,!1))!=null?s:r;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function Bo(e){return Ar(e,"spacing",8)}function Pr(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function hm(e,t){return r=>e.reduce((n,s)=>(n[s]=Pr(t,r),n),{})}function mm(e,t,r,n){if(t.indexOf(r)===-1)return null;const s=fm(r),a=hm(s,n),i=e[r];return dt(e,i,a)}function Vo(e,t){const r=Bo(e.theme);return Object.keys(e).map(n=>mm(e,t,n,r)).reduce(Sr,{})}function ae(e){return Vo(e,fa)}ae.propTypes={};ae.filterProps=fa;function ie(e){return Vo(e,ha)}ie.propTypes={};ie.filterProps=ha;function pm(e=8){if(e.mui)return e;const t=Bo({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function In(...e){const t=e.reduce((n,s)=>(s.filterProps.forEach(a=>{n[a]=s}),n),{}),r=n=>Object.keys(n).reduce((s,a)=>t[a]?Sr(s,t[a](n)):s,{});return r.propTypes={},r.filterProps=e.reduce((n,s)=>n.concat(s.filterProps),[]),r}function Fe(e){return typeof e!="number"?e:`${e}px solid`}function He(e,t){return de({prop:e,themeKey:"borders",transform:t})}const gm=He("border",Fe),ym=He("borderTop",Fe),_m=He("borderRight",Fe),Sm=He("borderBottom",Fe),bm=He("borderLeft",Fe),vm=He("borderColor"),Tm=He("borderTopColor"),wm=He("borderRightColor"),Om=He("borderBottomColor"),km=He("borderLeftColor"),xm=He("outline",Fe),Em=He("outlineColor"),Cn=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ar(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Pr(t,n)});return dt(e,e.borderRadius,r)}return null};Cn.propTypes={};Cn.filterProps=["borderRadius"];In(gm,ym,_m,Sm,bm,vm,Tm,wm,Om,km,Cn,xm,Em);const Ln=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ar(e.theme,"spacing",8),r=n=>({gap:Pr(t,n)});return dt(e,e.gap,r)}return null};Ln.propTypes={};Ln.filterProps=["gap"];const Nn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ar(e.theme,"spacing",8),r=n=>({columnGap:Pr(t,n)});return dt(e,e.columnGap,r)}return null};Nn.propTypes={};Nn.filterProps=["columnGap"];const Yn=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ar(e.theme,"spacing",8),r=n=>({rowGap:Pr(t,n)});return dt(e,e.rowGap,r)}return null};Yn.propTypes={};Yn.filterProps=["rowGap"];const Mm=de({prop:"gridColumn"}),Dm=de({prop:"gridRow"}),Rm=de({prop:"gridAutoFlow"}),Am=de({prop:"gridAutoColumns"}),Pm=de({prop:"gridAutoRows"}),Im=de({prop:"gridTemplateColumns"}),Cm=de({prop:"gridTemplateRows"}),Lm=de({prop:"gridTemplateAreas"}),Nm=de({prop:"gridArea"});In(Ln,Nn,Yn,Mm,Dm,Rm,Am,Pm,Im,Cm,Lm,Nm);function Xt(e,t){return t==="grey"?t:e}const Ym=de({prop:"color",themeKey:"palette",transform:Xt}),Fm=de({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Xt}),Um=de({prop:"backgroundColor",themeKey:"palette",transform:Xt});In(Ym,Fm,Um);function Pe(e){return e<=1&&e!==0?`${e*100}%`:e}const $m=de({prop:"width",transform:Pe}),ma=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,s;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||da[r];return a?((s=e.theme)==null||(s=s.breakpoints)==null?void 0:s.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Pe(r)}};return dt(e,e.maxWidth,t)}return null};ma.filterProps=["maxWidth"];const Wm=de({prop:"minWidth",transform:Pe}),jm=de({prop:"height",transform:Pe}),Hm=de({prop:"maxHeight",transform:Pe}),zm=de({prop:"minHeight",transform:Pe});de({prop:"size",cssProperty:"width",transform:Pe});de({prop:"size",cssProperty:"height",transform:Pe});const Bm=de({prop:"boxSizing"});In($m,ma,Wm,jm,Hm,zm,Bm);const Vm={border:{themeKey:"borders",transform:Fe},borderTop:{themeKey:"borders",transform:Fe},borderRight:{themeKey:"borders",transform:Fe},borderBottom:{themeKey:"borders",transform:Fe},borderLeft:{themeKey:"borders",transform:Fe},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Fe},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Cn},color:{themeKey:"palette",transform:Xt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Xt},backgroundColor:{themeKey:"palette",transform:Xt},p:{style:ie},pt:{style:ie},pr:{style:ie},pb:{style:ie},pl:{style:ie},px:{style:ie},py:{style:ie},padding:{style:ie},paddingTop:{style:ie},paddingRight:{style:ie},paddingBottom:{style:ie},paddingLeft:{style:ie},paddingX:{style:ie},paddingY:{style:ie},paddingInline:{style:ie},paddingInlineStart:{style:ie},paddingInlineEnd:{style:ie},paddingBlock:{style:ie},paddingBlockStart:{style:ie},paddingBlockEnd:{style:ie},m:{style:ae},mt:{style:ae},mr:{style:ae},mb:{style:ae},ml:{style:ae},mx:{style:ae},my:{style:ae},margin:{style:ae},marginTop:{style:ae},marginRight:{style:ae},marginBottom:{style:ae},marginLeft:{style:ae},marginX:{style:ae},marginY:{style:ae},marginInline:{style:ae},marginInlineStart:{style:ae},marginInlineEnd:{style:ae},marginBlock:{style:ae},marginBlockStart:{style:ae},marginBlockEnd:{style:ae},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ln},rowGap:{style:Yn},columnGap:{style:Nn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Pe},maxWidth:{style:ma},minWidth:{transform:Pe},height:{transform:Pe},maxHeight:{transform:Pe},minHeight:{transform:Pe},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Ir=Vm;function Gm(...e){const t=e.reduce((n,s)=>n.concat(Object.keys(s)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function qm(e,t){return typeof e=="function"?e(t):e}function Go(){function e(r,n,s,a){const i={[r]:n,theme:s},o=a[r];if(!o)return{[r]:n};const{cssProperty:l=r,themeKey:u,transform:d,style:h}=o;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const f=Pn(s,u)||{};return h?h(i):dt(i,n,p=>{let m=gn(f,d,p);return p===m&&typeof p=="string"&&(m=gn(f,d,`${r}${p==="default"?"":Oe(p)}`,p)),l===!1?m:{[l]:m}})}function t(r){var n;const{sx:s,theme:a={}}=r||{};if(!s)return null;const i=(n=a.unstable_sxConfig)!=null?n:Ir;function o(l){let u=l;if(typeof l=="function")u=l(a);else if(typeof l!="object")return l;if(!u)return null;const d=Ho(a.breakpoints),h=Object.keys(d);let f=d;return Object.keys(u).forEach(_=>{const p=qm(u[_],a);if(p!=null)if(typeof p=="object")if(i[_])f=Sr(f,e(_,p,a,i));else{const m=dt({theme:a},p,R=>({[_]:R}));Gm(m,p)?f[_]=t({sx:p,theme:a}):f=Sr(f,m)}else f=Sr(f,e(_,p,a,i))}),zo(h,f)}return Array.isArray(s)?s.map(o):o(s)}return t}const qo=Go();qo.filterProps=["sx"];const pa=qo;function Ko(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const Km=["breakpoints","palette","spacing","shape"];function ga(e={},...t){const{breakpoints:r={},palette:n={},spacing:s,shape:a={}}=e,i=Se(e,Km),o=jo(r),l=pm(s);let u=Ve({breakpoints:o,direction:"ltr",components:{},palette:k({mode:"light"},n),spacing:l,shape:k({},im,a)},i);return u.applyStyles=Ko,u=t.reduce((d,h)=>Ve(d,h),u),u.unstable_sxConfig=k({},Ir,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(h){return pa({sx:h,theme:this})},u}const Zm=Object.freeze(Object.defineProperty({__proto__:null,default:ga,private_createBreakpoints:jo,unstable_applyStyles:Ko},Symbol.toStringTag,{value:"Module"}));function Xm(e){return Object.keys(e).length===0}function Jm(e=null){const t=T.useContext($s);return!t||Xm(t)?e:t}const Qm=ga();function ep(e=Qm){return Jm(e)}const tp=["sx"],rp=e=>{var t,r;const n={systemProps:{},otherProps:{}},s=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Ir;return Object.keys(e).forEach(a=>{s[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function np(e){const{sx:t}=e,r=Se(e,tp),{systemProps:n,otherProps:s}=rp(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const o=t(...i);return gt(o)?k({},n,o):n}:a=k({},n,t),k({},s,{sx:a})}const sp=Object.freeze(Object.defineProperty({__proto__:null,default:pa,extendSxProp:np,unstable_createStyleFunctionSx:Go,unstable_defaultSxConfig:Ir},Symbol.toStringTag,{value:"Module"})),mi=e=>e,ap=()=>{let e=mi;return{configure(t){e=t},generate(t){return e(t)},reset(){e=mi}}},ip=ap(),op=ip;function Zo(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t{n[s]=tr(e,s,r)}),n}const up=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Xo(e){const t=`${e}`.match(up);return t&&t[1]||""}function Jo(e,t=""){return e.displayName||e.name||Xo(e)||t}function pi(e,t,r){const n=Jo(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function cp(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Jo(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ja.ForwardRef:return pi(e,e.render,"ForwardRef");case Ja.Memo:return pi(e,e.type,"memo");default:return}}}const dp=Object.freeze(Object.defineProperty({__proto__:null,default:cp,getFunctionName:Xo},Symbol.toStringTag,{value:"Module"}));function Qo(e,t){const r=k({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=k({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const s=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=s:!s||!Object.keys(s)?r[n]=a:(r[n]=k({},a),Object.keys(s).forEach(i=>{r[n][i]=Qo(s[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function fp(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Qo(t.components[r].defaultProps,n)}function hp({props:e,name:t,defaultTheme:r,themeId:n}){let s=ep(r);return n&&(s=s[n]||s),fp({theme:s,name:t,props:e})}const mp=typeof window<"u"?T.useLayoutEffect:T.useEffect,pp=mp;function gp(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const yp=Object.freeze(Object.defineProperty({__proto__:null,default:gp},Symbol.toStringTag,{value:"Module"}));function _p(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function en(e){const t=T.useRef(e);return pp(()=>{t.current=e}),T.useRef((...r)=>(0,t.current)(...r)).current}function Cs(...e){return T.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{_p(r,t)})},e)}const gi={};function Sp(e,t){const r=T.useRef(gi);return r.current===gi&&(r.current=e(t)),r}const bp=[];function vp(e){T.useEffect(e,bp)}class Fn{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Fn}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Tp(){const e=Sp(Fn.create).current;return vp(e.disposeEffect),e}let Un=!0,Ls=!1;const wp=new Fn,Op={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function kp(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Op[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function xp(e){e.metaKey||e.altKey||e.ctrlKey||(Un=!0)}function bs(){Un=!1}function Ep(){this.visibilityState==="hidden"&&Ls&&(Un=!0)}function Mp(e){e.addEventListener("keydown",xp,!0),e.addEventListener("mousedown",bs,!0),e.addEventListener("pointerdown",bs,!0),e.addEventListener("touchstart",bs,!0),e.addEventListener("visibilitychange",Ep,!0)}function Dp(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Un||kp(t)}function Rp(){const e=T.useCallback(s=>{s!=null&&Mp(s.ownerDocument)},[]),t=T.useRef(!1);function r(){return t.current?(Ls=!0,wp.start(100,()=>{Ls=!1}),t.current=!1,!0):!1}function n(s){return Dp(s)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function Cr(e,t,r=void 0){const n={};return Object.keys(e).forEach(s=>{n[s]=e[s].reduce((a,i)=>{if(i){const o=t(i);o!==""&&a.push(o),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),n}function Ap(e,t){return k({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var fe={},el={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(el);var tl=el.exports;const Pp=bt(jh),Ip=bt(yp);var rl=tl;Object.defineProperty(fe,"__esModule",{value:!0});var yn=fe.alpha=il;fe.blend=zp;fe.colorChannel=void 0;var Ns=fe.darken=_a;fe.decomposeColor=$e;fe.emphasize=Hp;var Cp=fe.getContrastRatio=Up;fe.getLuminance=_n;fe.hexToRgb=nl;fe.hslToRgb=al;var Ys=fe.lighten=Sa;fe.private_safeAlpha=$p;fe.private_safeColorChannel=void 0;fe.private_safeDarken=Wp;fe.private_safeEmphasize=ol;fe.private_safeLighten=jp;fe.recomposeColor=nr;fe.rgbToHex=Fp;var yi=rl(Pp),Lp=rl(Ip);function ya(e,t=0,r=1){return(0,Lp.default)(e,t,r)}function nl(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,s)=>s<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Np(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function $e(e){if(e.type)return e;if(e.charAt(0)==="#")return $e(nl(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,yi.default)(9,e));let n=e.substring(t+1,e.length-1),s;if(r==="color"){if(n=n.split(" "),s=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(s)===-1)throw new Error((0,yi.default)(10,s))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:s}}const sl=e=>{const t=$e(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};fe.colorChannel=sl;const Yp=(e,t)=>{try{return sl(e)}catch{return e}};fe.private_safeColorChannel=Yp;function nr(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((s,a)=>a<3?parseInt(s,10):s):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Fp(e){if(e.indexOf("#")===0)return e;const{values:t}=$e(e);return`#${t.map((r,n)=>Np(n===3?Math.round(255*r):r)).join("")}`}function al(e){e=$e(e);const{values:t}=e,r=t[0],n=t[1]/100,s=t[2]/100,a=n*Math.min(s,1-s),i=(u,d=(u+r/30)%12)=>s-a*Math.max(Math.min(d-3,9-d,1),-1);let o="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(o+="a",l.push(t[3])),nr({type:o,values:l})}function _n(e){e=$e(e);let t=e.type==="hsl"||e.type==="hsla"?$e(al(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Up(e,t){const r=_n(e),n=_n(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function il(e,t){return e=$e(e),t=ya(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,nr(e)}function $p(e,t,r){try{return il(e,t)}catch{return e}}function _a(e,t){if(e=$e(e),t=ya(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return nr(e)}function Wp(e,t,r){try{return _a(e,t)}catch{return e}}function Sa(e,t){if(e=$e(e),t=ya(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return nr(e)}function jp(e,t,r){try{return Sa(e,t)}catch{return e}}function Hp(e,t=.15){return _n(e)>.5?_a(e,t):Sa(e,t)}function ol(e,t,r){try{return ol(e,t)}catch{return e}}function zp(e,t,r,n=1){const s=(l,u)=>Math.round((l**(1/n)*(1-r)+u**(1/n)*r)**n),a=$e(e),i=$e(t),o=[s(a.values[0],i.values[0]),s(a.values[1],i.values[1]),s(a.values[2],i.values[2])];return nr({type:"rgb",values:o})}const Bp=["mode","contrastThreshold","tonalOffset"],_i={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Or.white,default:Or.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},vs={text:{primary:Or.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Or.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Si(e,t,r,n){const s=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Ys(e.main,s):t==="dark"&&(e.dark=Ns(e.main,a)))}function Vp(e="light"){return e==="dark"?{main:jt[200],light:jt[50],dark:jt[400]}:{main:jt[700],light:jt[400],dark:jt[800]}}function Gp(e="light"){return e==="dark"?{main:Wt[200],light:Wt[50],dark:Wt[400]}:{main:Wt[500],light:Wt[300],dark:Wt[700]}}function qp(e="light"){return e==="dark"?{main:$t[500],light:$t[300],dark:$t[700]}:{main:$t[700],light:$t[400],dark:$t[800]}}function Kp(e="light"){return e==="dark"?{main:Ht[400],light:Ht[300],dark:Ht[700]}:{main:Ht[700],light:Ht[500],dark:Ht[900]}}function Zp(e="light"){return e==="dark"?{main:zt[400],light:zt[300],dark:zt[700]}:{main:zt[800],light:zt[500],dark:zt[900]}}function Xp(e="light"){return e==="dark"?{main:yr[400],light:yr[300],dark:yr[700]}:{main:"#ed6c02",light:yr[500],dark:yr[900]}}function Jp(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,s=Se(e,Bp),a=e.primary||Vp(t),i=e.secondary||Gp(t),o=e.error||qp(t),l=e.info||Kp(t),u=e.success||Zp(t),d=e.warning||Xp(t);function h(m){return Cp(m,vs.text.primary)>=r?vs.text.primary:_i.text.primary}const f=({color:m,name:R,mainShade:Y=500,lightShade:z=300,darkShade:Z=700})=>{if(m=k({},m),!m.main&&m[Y]&&(m.main=m[Y]),!m.hasOwnProperty("main"))throw new Error(kr(11,R?` (${R})`:"",Y));if(typeof m.main!="string")throw new Error(kr(12,R?` (${R})`:"",JSON.stringify(m.main)));return Si(m,"light",z,n),Si(m,"dark",Z,n),m.contrastText||(m.contrastText=h(m.main)),m},_={dark:vs,light:_i};return Ve(k({common:k({},Or),mode:t,primary:f({color:a,name:"primary"}),secondary:f({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:o,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:Wh,contrastThreshold:r,getContrastText:h,augmentColor:f,tonalOffset:n},_[t]),s)}const Qp=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function e0(e){return Math.round(e*1e5)/1e5}const bi={textTransform:"uppercase"},vi='"Roboto", "Helvetica", "Arial", sans-serif';function t0(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=vi,fontSize:s=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:o=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:d,pxToRem:h}=r,f=Se(r,Qp),_=s/14,p=h||(Y=>`${Y/u*_}rem`),m=(Y,z,Z,D,x)=>k({fontFamily:n,fontWeight:Y,fontSize:p(z),lineHeight:Z},n===vi?{letterSpacing:`${e0(D/z)}em`}:{},x,d),R={h1:m(a,96,1.167,-1.5),h2:m(a,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(o,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(o,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(o,14,1.75,.4,bi),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,bi),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ve(k({htmlFontSize:u,pxToRem:p,fontFamily:n,fontSize:s,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:o,fontWeightBold:l},R),f,{clone:!1})}const r0=.2,n0=.14,s0=.12;function re(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${r0})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${n0})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${s0})`].join(",")}const a0=["none",re(0,2,1,-1,0,1,1,0,0,1,3,0),re(0,3,1,-2,0,2,2,0,0,1,5,0),re(0,3,3,-2,0,3,4,0,0,1,8,0),re(0,2,4,-1,0,4,5,0,0,1,10,0),re(0,3,5,-1,0,5,8,0,0,1,14,0),re(0,3,5,-1,0,6,10,0,0,1,18,0),re(0,4,5,-2,0,7,10,1,0,2,16,1),re(0,5,5,-3,0,8,10,1,0,3,14,2),re(0,5,6,-3,0,9,12,1,0,3,16,2),re(0,6,6,-3,0,10,14,1,0,4,18,3),re(0,6,7,-4,0,11,15,1,0,4,20,3),re(0,7,8,-4,0,12,17,2,0,5,22,4),re(0,7,8,-4,0,13,19,2,0,5,24,4),re(0,7,9,-4,0,14,21,2,0,5,26,4),re(0,8,9,-5,0,15,22,2,0,6,28,5),re(0,8,10,-5,0,16,24,2,0,6,30,5),re(0,8,11,-5,0,17,26,2,0,6,32,5),re(0,9,11,-5,0,18,28,2,0,7,34,6),re(0,9,12,-6,0,19,29,2,0,7,36,6),re(0,10,13,-6,0,20,31,3,0,8,38,7),re(0,10,13,-6,0,21,33,3,0,8,40,7),re(0,10,14,-6,0,22,35,3,0,8,42,7),re(0,11,14,-7,0,23,36,3,0,9,44,8),re(0,11,15,-7,0,24,38,3,0,9,46,8)],i0=a0,o0=["duration","easing","delay"],l0={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},u0={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ti(e){return`${Math.round(e)}ms`}function c0(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function d0(e){const t=k({},l0,e.easing),r=k({},u0,e.duration);return k({getAutoHeightDuration:c0,create:(s=["all"],a={})=>{const{duration:i=r.standard,easing:o=t.easeInOut,delay:l=0}=a;return Se(a,o0),(Array.isArray(s)?s:[s]).map(u=>`${u} ${typeof i=="string"?i:Ti(i)} ${o} ${typeof l=="string"?l:Ti(l)}`).join(",")}},e,{easing:t,duration:r})}const f0={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},h0=f0,m0=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ba(e={},...t){const{mixins:r={},palette:n={},transitions:s={},typography:a={}}=e,i=Se(e,m0);if(e.vars)throw new Error(kr(18));const o=Jp(n),l=ga(e);let u=Ve(l,{mixins:Ap(l.breakpoints,r),palette:o,shadows:i0.slice(),typography:t0(o,a),transitions:d0(s),zIndex:k({},h0)});return u=Ve(u,i),u=t.reduce((d,h)=>Ve(d,h),u),u.unstable_sxConfig=k({},Ir,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(h){return pa({sx:h,theme:this})},u}const p0=ba(),ll=p0;function sr({props:e,name:t}){return hp({props:e,name:t,defaultTheme:ll,themeId:$o})}var Lr={},Ts={exports:{}},wi;function g0(){return wi||(wi=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n=0)&&(s[i]=r[i]);return s}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ws)),ws.exports}const _0=bt(tm),S0=bt(rm),b0=bt(lm),v0=bt(dp),T0=bt(Zm),w0=bt(sp);var ar=tl;Object.defineProperty(Lr,"__esModule",{value:!0});var O0=Lr.default=Y0;Lr.shouldForwardProp=un;Lr.systemDefaultTheme=void 0;var Le=ar(g0()),Fs=ar(y0()),ki=A0(_0),k0=S0;ar(b0);ar(v0);var x0=ar(T0),E0=ar(w0);const M0=["ownerState"],D0=["variants"],R0=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ul(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(ul=function(n){return n?r:t})(e)}function A0(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=ul(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=s?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function P0(e){return Object.keys(e).length===0}function I0(e){return typeof e=="string"&&e.charCodeAt(0)>96}function un(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const C0=Lr.systemDefaultTheme=(0,x0.default)(),L0=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function tn({defaultTheme:e,theme:t,themeId:r}){return P0(t)?e:t[r]||t}function N0(e){return e?(t,r)=>r[e]:null}function cn(e,t){let{ownerState:r}=t,n=(0,Fs.default)(t,M0);const s=typeof e=="function"?e((0,Le.default)({ownerState:r},n)):e;if(Array.isArray(s))return s.flatMap(a=>cn(a,(0,Le.default)({ownerState:r},n)));if(s&&typeof s=="object"&&Array.isArray(s.variants)){const{variants:a=[]}=s;let o=(0,Fs.default)(s,D0);return a.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,Le.default)({ownerState:r},n,r)):Object.keys(l.props).forEach(d=>{(r==null?void 0:r[d])!==l.props[d]&&n[d]!==l.props[d]&&(u=!1)}),u&&(Array.isArray(o)||(o=[o]),o.push(typeof l.style=="function"?l.style((0,Le.default)({ownerState:r},n,r)):l.style))}),o}return s}function Y0(e={}){const{themeId:t,defaultTheme:r=C0,rootShouldForwardProp:n=un,slotShouldForwardProp:s=un}=e,a=i=>(0,E0.default)((0,Le.default)({},i,{theme:tn((0,Le.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,o={})=>{(0,ki.internal_processStyles)(i,x=>x.filter(A=>!(A!=null&&A.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:d,skipSx:h,overridesResolver:f=N0(L0(u))}=o,_=(0,Fs.default)(o,R0),p=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,m=h||!1;let R,Y=un;u==="Root"||u==="root"?Y=n:u?Y=s:I0(i)&&(Y=void 0);const z=(0,ki.default)(i,(0,Le.default)({shouldForwardProp:Y,label:R},_)),Z=x=>typeof x=="function"&&x.__emotion_real!==x||(0,k0.isPlainObject)(x)?A=>cn(x,(0,Le.default)({},A,{theme:tn({theme:A.theme,defaultTheme:r,themeId:t})})):x,D=(x,...A)=>{let P=Z(x);const C=A?A.map(Z):[];l&&f&&C.push(B=>{const q=tn((0,Le.default)({},B,{defaultTheme:r,themeId:t}));if(!q.components||!q.components[l]||!q.components[l].styleOverrides)return null;const oe=q.components[l].styleOverrides,se={};return Object.entries(oe).forEach(([ye,ke])=>{se[ye]=cn(ke,(0,Le.default)({},B,{theme:q}))}),f(B,se)}),l&&!p&&C.push(B=>{var q;const oe=tn((0,Le.default)({},B,{defaultTheme:r,themeId:t})),se=oe==null||(q=oe.components)==null||(q=q[l])==null?void 0:q.variants;return cn({variants:se},(0,Le.default)({},B,{theme:oe}))}),m||C.push(a);const J=C.length-A.length;if(Array.isArray(x)&&J>0){const B=new Array(J).fill("");P=[...x,...B],P.raw=[...x.raw,...B]}const b=z(P,...C);return i.muiName&&(b.muiName=i.muiName),b};return z.withConfig&&(D.withConfig=z.withConfig),D}}function F0(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const U0=e=>F0(e)&&e!=="classes",$0=U0,W0=O0({themeId:$o,defaultTheme:ll,rootShouldForwardProp:$0}),tt=W0,j0=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},xi=j0;function H0(e){return tr("MuiSvgIcon",e)}rr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const z0=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],B0=e=>{const{color:t,fontSize:r,classes:n}=e,s={root:["root",t!=="inherit"&&`color${Oe(t)}`,`fontSize${Oe(r)}`]};return Cr(s,H0,n)},V0=tt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Oe(r.color)}`],t[`fontSize${Oe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,s,a,i,o,l,u,d,h,f,_,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(s=e.transitions)==null||(s=s.duration)==null?void 0:s.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((o=e.typography)==null||(l=o.pxToRem)==null?void 0:l.call(o,24))||"1.5rem",large:((u=e.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:(h=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?h:{action:(_=(e.vars||e).palette)==null||(_=_.action)==null?void 0:_.active,disabled:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.disabled,inherit:void 0}[t.color]}}),cl=T.forwardRef(function(t,r){const n=sr({props:t,name:"MuiSvgIcon"}),{children:s,className:a,color:i="inherit",component:o="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:h,viewBox:f="0 0 24 24"}=n,_=Se(n,z0),p=T.isValidElement(s)&&s.type==="svg",m=k({},n,{color:i,component:o,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:f,hasSvgAsChild:p}),R={};d||(R.viewBox=f);const Y=B0(m);return W.jsxs(V0,k({as:o,className:Te(Y.root,a),focusable:"false",color:u,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:r},R,_,p&&s.props,{ownerState:m,children:[p?s.props.children:s,h?W.jsx("title",{children:h}):null]}))});cl.muiName="SvgIcon";const Ei=cl;function Nr(e,t){function r(n,s){return W.jsx(Ei,k({"data-testid":`${t}Icon`,ref:s},n,{children:e}))}return r.muiName=Ei.muiName,T.memo(T.forwardRef(r))}function G0(e){return sr}function q0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zl(e,t)}const Mi=Vt.createContext(null);function va(e,t){var r=function(a){return t&&T.isValidElement(a)?t(a):a},n=Object.create(null);return e&&T.Children.map(e,function(s){return s}).forEach(function(s){n[s.key]=r(s)}),n}function K0(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}var n=Object.create(null),s=[];for(var a in e)a in t?s.length&&(n[a]=s,s=[]):s.push(a);var i,o={};for(var l in t){if(n[l])for(i=0;i{const{square:t,elevation:r,variant:n,classes:s}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Cr(a,tg,s)},sg=tt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return k({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&k({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${yn("#fff",xi(t.elevation))}, ${yn("#fff",xi(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),ag=T.forwardRef(function(t,r){const n=sr({props:t,name:"MuiPaper"}),{className:s,component:a="div",elevation:i=1,square:o=!1,variant:l="elevation"}=n,u=Se(n,rg),d=k({},n,{component:a,elevation:i,square:o,variant:l}),h=ng(d);return W.jsx(sg,k({as:a,ownerState:d,className:Te(h.root,s),ref:r},u))}),ig=ag;function og(e){return typeof e=="string"}function lg(e,t,r){return e===void 0||og(e)?t:k({},t,{ownerState:k({},t.ownerState,r)})}function ug(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function cg(e,t,r){return typeof e=="function"?e(t,r):e}function Di(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function dg(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:s,className:a}=e;if(!t){const _=Te(r==null?void 0:r.className,a,s==null?void 0:s.className,n==null?void 0:n.className),p=k({},r==null?void 0:r.style,s==null?void 0:s.style,n==null?void 0:n.style),m=k({},r,s,n);return _.length>0&&(m.className=_),Object.keys(p).length>0&&(m.style=p),{props:m,internalRef:void 0}}const i=ug(k({},s,n)),o=Di(n),l=Di(s),u=t(i),d=Te(u==null?void 0:u.className,r==null?void 0:r.className,a,s==null?void 0:s.className,n==null?void 0:n.className),h=k({},u==null?void 0:u.style,r==null?void 0:r.style,s==null?void 0:s.style,n==null?void 0:n.style),f=k({},u,r,l,o);return d.length>0&&(f.className=d),Object.keys(h).length>0&&(f.style=h),{props:f,internalRef:u.ref}}const fg=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],hg=["component","slots","slotProps"],mg=["component"];function Ri(e,t){const{className:r,elementType:n,ownerState:s,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:o}=t,l=Se(t,fg),{component:u,slots:d={[e]:void 0},slotProps:h={[e]:void 0}}=a,f=Se(a,hg),_=d[e]||n,p=cg(h[e],s),m=dg(k({className:r},l,{externalForwardedProps:e==="root"?f:void 0,externalSlotProps:p})),{props:{component:R},internalRef:Y}=m,z=Se(m.props,mg),Z=Cs(Y,p==null?void 0:p.ref,t.ref),D=i?i(z):{},x=k({},s,D),A=e==="root"?R||u:R,P=lg(_,k({},e==="root"&&!u&&!d[e]&&o,e!=="root"&&!d[e]&&o,z,A&&{as:A},{ref:Z}),x);return Object.keys(D).forEach(C=>{delete P[C]}),[_,P]}function pg(e){const{className:t,classes:r,pulsate:n=!1,rippleX:s,rippleY:a,rippleSize:i,in:o,onExited:l,timeout:u}=e,[d,h]=T.useState(!1),f=Te(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),_={width:i,height:i,top:-(i/2)+a,left:-(i/2)+s},p=Te(r.child,d&&r.childLeaving,n&&r.childPulsate);return!o&&!d&&h(!0),T.useEffect(()=>{if(!o&&l!=null){const m=setTimeout(l,u);return()=>{clearTimeout(m)}}},[l,o,u]),W.jsx("span",{className:f,style:_,children:W.jsx("span",{className:p})})}const gg=rr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ne=gg,yg=["center","classes","className"];let $n=e=>e,Ai,Pi,Ii,Ci;const Us=550,_g=80,Sg=Sn(Ai||(Ai=$n` + */function Qh(e,t){return Ps(e,t)}const em=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},tm=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Jh,StyledEngineProvider:Zh,ThemeContext:$s,css:Ul,default:Qh,internal_processStyles:em,keyframes:Sn},Symbol.toStringTag,{value:"Module"}));function gt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Wo(e){if(!gt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Wo(e[r])}),t}function Ve(e,t,r={clone:!0}){const n=r.clone?k({},e):e;return gt(e)&>(t)&&Object.keys(t).forEach(s=>{gt(t[s])&&Object.prototype.hasOwnProperty.call(e,s)&>(e[s])?n[s]=Ve(e[s],t[s],r):r.clone?n[s]=gt(t[s])?Wo(t[s]):t[s]:n[s]=t[s]}),n}const rm=Object.freeze(Object.defineProperty({__proto__:null,default:Ve,isPlainObject:gt},Symbol.toStringTag,{value:"Module"})),nm=["values","unit","step"],sm=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>k({},r,{[n.key]:n.val}),{})};function jo(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,s=Se(e,nm),a=sm(t),i=Object.keys(a);function o(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-n/100}${r})`}function u(f,_){const p=i.indexOf(_);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(p!==-1&&typeof t[i[p]]=="number"?t[i[p]]:_)-n/100}${r})`}function d(f){return i.indexOf(f)+1`@media (min-width:${da[e]}px)`};function dt(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||fi;return t.reduce((i,o,l)=>(i[a.up(a.keys[l])]=r(t[l]),i),{})}if(typeof t=="object"){const a=n.breakpoints||fi;return Object.keys(t).reduce((i,o)=>{if(Object.keys(a.values||da).indexOf(o)!==-1){const l=a.up(o);i[l]=r(t[o],o)}else{const l=o;i[l]=t[l]}return i},{})}return r(t)}function Ho(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,s)=>{const a=e.up(s);return n[a]={},n},{}))||{}}function zo(e,t){return e.reduce((r,n)=>{const s=r[n];return(!s||Object.keys(s).length===0)&&delete r[n],r},t)}function $y(e,...t){const r=Ho(e),n=[r,...t].reduce((s,a)=>Ve(s,a),{});return zo(Object.keys(r),n)}function om(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((s,a)=>{a{e[s]!=null&&(r[s]=!0)}),r}function Wy({values:e,breakpoints:t,base:r}){const n=r||om(e,t),s=Object.keys(n);if(s.length===0)return e;let a;return s.reduce((i,o,l)=>(Array.isArray(e)?(i[o]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(i[o]=e[o]!=null?e[o]:e[a],a=o):i[o]=e,i),{})}function Oe(e){if(typeof e!="string")throw new Error(kr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const lm=Object.freeze(Object.defineProperty({__proto__:null,default:Oe},Symbol.toStringTag,{value:"Module"}));function Pn(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((s,a)=>s&&s[a]?s[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,s)=>n&&n[s]!=null?n[s]:null,e)}function gn(e,t,r,n=r){let s;return typeof e=="function"?s=e(r):Array.isArray(e)?s=e[r]||n:s=Pn(e,r)||n,t&&(s=t(s,n,e)),s}function de(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:s}=e,a=i=>{if(i[t]==null)return null;const o=i[t],l=i.theme,u=Pn(l,n)||{};return dt(i,o,h=>{let f=gn(u,s,h);return h===f&&typeof h=="string"&&(f=gn(u,s,`${t}${h==="default"?"":Oe(h)}`,h)),r===!1?f:{[r]:f}})};return a.propTypes={},a.filterProps=[t],a}function um(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const cm={m:"margin",p:"padding"},dm={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},hi={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},fm=um(e=>{if(e.length>2)if(hi[e])e=hi[e];else return[e];const[t,r]=e.split(""),n=cm[t],s=dm[r]||"";return Array.isArray(s)?s.map(a=>n+a):[n+s]}),fa=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ha=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...fa,...ha];function Ar(e,t,r,n){var s;const a=(s=Pn(e,t,!1))!=null?s:r;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function Bo(e){return Ar(e,"spacing",8)}function Pr(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function hm(e,t){return r=>e.reduce((n,s)=>(n[s]=Pr(t,r),n),{})}function mm(e,t,r,n){if(t.indexOf(r)===-1)return null;const s=fm(r),a=hm(s,n),i=e[r];return dt(e,i,a)}function Vo(e,t){const r=Bo(e.theme);return Object.keys(e).map(n=>mm(e,t,n,r)).reduce(Sr,{})}function ae(e){return Vo(e,fa)}ae.propTypes={};ae.filterProps=fa;function ie(e){return Vo(e,ha)}ie.propTypes={};ie.filterProps=ha;function pm(e=8){if(e.mui)return e;const t=Bo({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function In(...e){const t=e.reduce((n,s)=>(s.filterProps.forEach(a=>{n[a]=s}),n),{}),r=n=>Object.keys(n).reduce((s,a)=>t[a]?Sr(s,t[a](n)):s,{});return r.propTypes={},r.filterProps=e.reduce((n,s)=>n.concat(s.filterProps),[]),r}function Fe(e){return typeof e!="number"?e:`${e}px solid`}function He(e,t){return de({prop:e,themeKey:"borders",transform:t})}const gm=He("border",Fe),ym=He("borderTop",Fe),_m=He("borderRight",Fe),Sm=He("borderBottom",Fe),bm=He("borderLeft",Fe),vm=He("borderColor"),Tm=He("borderTopColor"),wm=He("borderRightColor"),Om=He("borderBottomColor"),km=He("borderLeftColor"),xm=He("outline",Fe),Em=He("outlineColor"),Cn=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ar(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Pr(t,n)});return dt(e,e.borderRadius,r)}return null};Cn.propTypes={};Cn.filterProps=["borderRadius"];In(gm,ym,_m,Sm,bm,vm,Tm,wm,Om,km,Cn,xm,Em);const Ln=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ar(e.theme,"spacing",8),r=n=>({gap:Pr(t,n)});return dt(e,e.gap,r)}return null};Ln.propTypes={};Ln.filterProps=["gap"];const Nn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ar(e.theme,"spacing",8),r=n=>({columnGap:Pr(t,n)});return dt(e,e.columnGap,r)}return null};Nn.propTypes={};Nn.filterProps=["columnGap"];const Yn=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ar(e.theme,"spacing",8),r=n=>({rowGap:Pr(t,n)});return dt(e,e.rowGap,r)}return null};Yn.propTypes={};Yn.filterProps=["rowGap"];const Mm=de({prop:"gridColumn"}),Dm=de({prop:"gridRow"}),Rm=de({prop:"gridAutoFlow"}),Am=de({prop:"gridAutoColumns"}),Pm=de({prop:"gridAutoRows"}),Im=de({prop:"gridTemplateColumns"}),Cm=de({prop:"gridTemplateRows"}),Lm=de({prop:"gridTemplateAreas"}),Nm=de({prop:"gridArea"});In(Ln,Nn,Yn,Mm,Dm,Rm,Am,Pm,Im,Cm,Lm,Nm);function Xt(e,t){return t==="grey"?t:e}const Ym=de({prop:"color",themeKey:"palette",transform:Xt}),Fm=de({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Xt}),Um=de({prop:"backgroundColor",themeKey:"palette",transform:Xt});In(Ym,Fm,Um);function Pe(e){return e<=1&&e!==0?`${e*100}%`:e}const $m=de({prop:"width",transform:Pe}),ma=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,s;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||da[r];return a?((s=e.theme)==null||(s=s.breakpoints)==null?void 0:s.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Pe(r)}};return dt(e,e.maxWidth,t)}return null};ma.filterProps=["maxWidth"];const Wm=de({prop:"minWidth",transform:Pe}),jm=de({prop:"height",transform:Pe}),Hm=de({prop:"maxHeight",transform:Pe}),zm=de({prop:"minHeight",transform:Pe});de({prop:"size",cssProperty:"width",transform:Pe});de({prop:"size",cssProperty:"height",transform:Pe});const Bm=de({prop:"boxSizing"});In($m,ma,Wm,jm,Hm,zm,Bm);const Vm={border:{themeKey:"borders",transform:Fe},borderTop:{themeKey:"borders",transform:Fe},borderRight:{themeKey:"borders",transform:Fe},borderBottom:{themeKey:"borders",transform:Fe},borderLeft:{themeKey:"borders",transform:Fe},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Fe},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Cn},color:{themeKey:"palette",transform:Xt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Xt},backgroundColor:{themeKey:"palette",transform:Xt},p:{style:ie},pt:{style:ie},pr:{style:ie},pb:{style:ie},pl:{style:ie},px:{style:ie},py:{style:ie},padding:{style:ie},paddingTop:{style:ie},paddingRight:{style:ie},paddingBottom:{style:ie},paddingLeft:{style:ie},paddingX:{style:ie},paddingY:{style:ie},paddingInline:{style:ie},paddingInlineStart:{style:ie},paddingInlineEnd:{style:ie},paddingBlock:{style:ie},paddingBlockStart:{style:ie},paddingBlockEnd:{style:ie},m:{style:ae},mt:{style:ae},mr:{style:ae},mb:{style:ae},ml:{style:ae},mx:{style:ae},my:{style:ae},margin:{style:ae},marginTop:{style:ae},marginRight:{style:ae},marginBottom:{style:ae},marginLeft:{style:ae},marginX:{style:ae},marginY:{style:ae},marginInline:{style:ae},marginInlineStart:{style:ae},marginInlineEnd:{style:ae},marginBlock:{style:ae},marginBlockStart:{style:ae},marginBlockEnd:{style:ae},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ln},rowGap:{style:Yn},columnGap:{style:Nn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Pe},maxWidth:{style:ma},minWidth:{transform:Pe},height:{transform:Pe},maxHeight:{transform:Pe},minHeight:{transform:Pe},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Ir=Vm;function Gm(...e){const t=e.reduce((n,s)=>n.concat(Object.keys(s)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function qm(e,t){return typeof e=="function"?e(t):e}function Go(){function e(r,n,s,a){const i={[r]:n,theme:s},o=a[r];if(!o)return{[r]:n};const{cssProperty:l=r,themeKey:u,transform:d,style:h}=o;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const f=Pn(s,u)||{};return h?h(i):dt(i,n,p=>{let m=gn(f,d,p);return p===m&&typeof p=="string"&&(m=gn(f,d,`${r}${p==="default"?"":Oe(p)}`,p)),l===!1?m:{[l]:m}})}function t(r){var n;const{sx:s,theme:a={}}=r||{};if(!s)return null;const i=(n=a.unstable_sxConfig)!=null?n:Ir;function o(l){let u=l;if(typeof l=="function")u=l(a);else if(typeof l!="object")return l;if(!u)return null;const d=Ho(a.breakpoints),h=Object.keys(d);let f=d;return Object.keys(u).forEach(_=>{const p=qm(u[_],a);if(p!=null)if(typeof p=="object")if(i[_])f=Sr(f,e(_,p,a,i));else{const m=dt({theme:a},p,R=>({[_]:R}));Gm(m,p)?f[_]=t({sx:p,theme:a}):f=Sr(f,m)}else f=Sr(f,e(_,p,a,i))}),zo(h,f)}return Array.isArray(s)?s.map(o):o(s)}return t}const qo=Go();qo.filterProps=["sx"];const pa=qo;function Ko(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const Km=["breakpoints","palette","spacing","shape"];function ga(e={},...t){const{breakpoints:r={},palette:n={},spacing:s,shape:a={}}=e,i=Se(e,Km),o=jo(r),l=pm(s);let u=Ve({breakpoints:o,direction:"ltr",components:{},palette:k({mode:"light"},n),spacing:l,shape:k({},im,a)},i);return u.applyStyles=Ko,u=t.reduce((d,h)=>Ve(d,h),u),u.unstable_sxConfig=k({},Ir,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(h){return pa({sx:h,theme:this})},u}const Zm=Object.freeze(Object.defineProperty({__proto__:null,default:ga,private_createBreakpoints:jo,unstable_applyStyles:Ko},Symbol.toStringTag,{value:"Module"}));function Xm(e){return Object.keys(e).length===0}function Jm(e=null){const t=T.useContext($s);return!t||Xm(t)?e:t}const Qm=ga();function ep(e=Qm){return Jm(e)}const tp=["sx"],rp=e=>{var t,r;const n={systemProps:{},otherProps:{}},s=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Ir;return Object.keys(e).forEach(a=>{s[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function np(e){const{sx:t}=e,r=Se(e,tp),{systemProps:n,otherProps:s}=rp(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const o=t(...i);return gt(o)?k({},n,o):n}:a=k({},n,t),k({},s,{sx:a})}const sp=Object.freeze(Object.defineProperty({__proto__:null,default:pa,extendSxProp:np,unstable_createStyleFunctionSx:Go,unstable_defaultSxConfig:Ir},Symbol.toStringTag,{value:"Module"})),mi=e=>e,ap=()=>{let e=mi;return{configure(t){e=t},generate(t){return e(t)},reset(){e=mi}}},ip=ap(),op=ip;function Zo(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t{n[s]=tr(e,s,r)}),n}const up=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Xo(e){const t=`${e}`.match(up);return t&&t[1]||""}function Jo(e,t=""){return e.displayName||e.name||Xo(e)||t}function pi(e,t,r){const n=Jo(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function cp(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Jo(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ja.ForwardRef:return pi(e,e.render,"ForwardRef");case Ja.Memo:return pi(e,e.type,"memo");default:return}}}const dp=Object.freeze(Object.defineProperty({__proto__:null,default:cp,getFunctionName:Xo},Symbol.toStringTag,{value:"Module"}));function Qo(e,t){const r=k({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=k({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const s=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=s:!s||!Object.keys(s)?r[n]=a:(r[n]=k({},a),Object.keys(s).forEach(i=>{r[n][i]=Qo(s[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function fp(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Qo(t.components[r].defaultProps,n)}function hp({props:e,name:t,defaultTheme:r,themeId:n}){let s=ep(r);return n&&(s=s[n]||s),fp({theme:s,name:t,props:e})}const mp=typeof window<"u"?T.useLayoutEffect:T.useEffect,pp=mp;function gp(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const yp=Object.freeze(Object.defineProperty({__proto__:null,default:gp},Symbol.toStringTag,{value:"Module"}));function _p(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function en(e){const t=T.useRef(e);return pp(()=>{t.current=e}),T.useRef((...r)=>(0,t.current)(...r)).current}function Cs(...e){return T.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{_p(r,t)})},e)}const gi={};function Sp(e,t){const r=T.useRef(gi);return r.current===gi&&(r.current=e(t)),r}const bp=[];function vp(e){T.useEffect(e,bp)}class Fn{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Fn}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Tp(){const e=Sp(Fn.create).current;return vp(e.disposeEffect),e}let Un=!0,Ls=!1;const wp=new Fn,Op={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function kp(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Op[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function xp(e){e.metaKey||e.altKey||e.ctrlKey||(Un=!0)}function bs(){Un=!1}function Ep(){this.visibilityState==="hidden"&&Ls&&(Un=!0)}function Mp(e){e.addEventListener("keydown",xp,!0),e.addEventListener("mousedown",bs,!0),e.addEventListener("pointerdown",bs,!0),e.addEventListener("touchstart",bs,!0),e.addEventListener("visibilitychange",Ep,!0)}function Dp(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Un||kp(t)}function Rp(){const e=T.useCallback(s=>{s!=null&&Mp(s.ownerDocument)},[]),t=T.useRef(!1);function r(){return t.current?(Ls=!0,wp.start(100,()=>{Ls=!1}),t.current=!1,!0):!1}function n(s){return Dp(s)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function Cr(e,t,r=void 0){const n={};return Object.keys(e).forEach(s=>{n[s]=e[s].reduce((a,i)=>{if(i){const o=t(i);o!==""&&a.push(o),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),n}function Ap(e,t){return k({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var fe={},el={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(el);var tl=el.exports;const Pp=bt(jh),Ip=bt(yp);var rl=tl;Object.defineProperty(fe,"__esModule",{value:!0});var yn=fe.alpha=il;fe.blend=zp;fe.colorChannel=void 0;var Ns=fe.darken=_a;fe.decomposeColor=$e;fe.emphasize=ol;var Cp=fe.getContrastRatio=Up;fe.getLuminance=_n;fe.hexToRgb=nl;fe.hslToRgb=al;var Ys=fe.lighten=Sa;fe.private_safeAlpha=$p;fe.private_safeColorChannel=void 0;fe.private_safeDarken=Wp;fe.private_safeEmphasize=Hp;fe.private_safeLighten=jp;fe.recomposeColor=nr;fe.rgbToHex=Fp;var yi=rl(Pp),Lp=rl(Ip);function ya(e,t=0,r=1){return(0,Lp.default)(e,t,r)}function nl(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,s)=>s<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Np(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function $e(e){if(e.type)return e;if(e.charAt(0)==="#")return $e(nl(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,yi.default)(9,e));let n=e.substring(t+1,e.length-1),s;if(r==="color"){if(n=n.split(" "),s=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(s)===-1)throw new Error((0,yi.default)(10,s))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:s}}const sl=e=>{const t=$e(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};fe.colorChannel=sl;const Yp=(e,t)=>{try{return sl(e)}catch{return e}};fe.private_safeColorChannel=Yp;function nr(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((s,a)=>a<3?parseInt(s,10):s):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Fp(e){if(e.indexOf("#")===0)return e;const{values:t}=$e(e);return`#${t.map((r,n)=>Np(n===3?Math.round(255*r):r)).join("")}`}function al(e){e=$e(e);const{values:t}=e,r=t[0],n=t[1]/100,s=t[2]/100,a=n*Math.min(s,1-s),i=(u,d=(u+r/30)%12)=>s-a*Math.max(Math.min(d-3,9-d,1),-1);let o="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(o+="a",l.push(t[3])),nr({type:o,values:l})}function _n(e){e=$e(e);let t=e.type==="hsl"||e.type==="hsla"?$e(al(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Up(e,t){const r=_n(e),n=_n(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function il(e,t){return e=$e(e),t=ya(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,nr(e)}function $p(e,t,r){try{return il(e,t)}catch{return e}}function _a(e,t){if(e=$e(e),t=ya(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return nr(e)}function Wp(e,t,r){try{return _a(e,t)}catch{return e}}function Sa(e,t){if(e=$e(e),t=ya(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return nr(e)}function jp(e,t,r){try{return Sa(e,t)}catch{return e}}function ol(e,t=.15){return _n(e)>.5?_a(e,t):Sa(e,t)}function Hp(e,t,r){try{return ol(e,t)}catch{return e}}function zp(e,t,r,n=1){const s=(l,u)=>Math.round((l**(1/n)*(1-r)+u**(1/n)*r)**n),a=$e(e),i=$e(t),o=[s(a.values[0],i.values[0]),s(a.values[1],i.values[1]),s(a.values[2],i.values[2])];return nr({type:"rgb",values:o})}const Bp=["mode","contrastThreshold","tonalOffset"],_i={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Or.white,default:Or.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},vs={text:{primary:Or.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Or.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Si(e,t,r,n){const s=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Ys(e.main,s):t==="dark"&&(e.dark=Ns(e.main,a)))}function Vp(e="light"){return e==="dark"?{main:jt[200],light:jt[50],dark:jt[400]}:{main:jt[700],light:jt[400],dark:jt[800]}}function Gp(e="light"){return e==="dark"?{main:Wt[200],light:Wt[50],dark:Wt[400]}:{main:Wt[500],light:Wt[300],dark:Wt[700]}}function qp(e="light"){return e==="dark"?{main:$t[500],light:$t[300],dark:$t[700]}:{main:$t[700],light:$t[400],dark:$t[800]}}function Kp(e="light"){return e==="dark"?{main:Ht[400],light:Ht[300],dark:Ht[700]}:{main:Ht[700],light:Ht[500],dark:Ht[900]}}function Zp(e="light"){return e==="dark"?{main:zt[400],light:zt[300],dark:zt[700]}:{main:zt[800],light:zt[500],dark:zt[900]}}function Xp(e="light"){return e==="dark"?{main:yr[400],light:yr[300],dark:yr[700]}:{main:"#ed6c02",light:yr[500],dark:yr[900]}}function Jp(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,s=Se(e,Bp),a=e.primary||Vp(t),i=e.secondary||Gp(t),o=e.error||qp(t),l=e.info||Kp(t),u=e.success||Zp(t),d=e.warning||Xp(t);function h(m){return Cp(m,vs.text.primary)>=r?vs.text.primary:_i.text.primary}const f=({color:m,name:R,mainShade:Y=500,lightShade:z=300,darkShade:Z=700})=>{if(m=k({},m),!m.main&&m[Y]&&(m.main=m[Y]),!m.hasOwnProperty("main"))throw new Error(kr(11,R?` (${R})`:"",Y));if(typeof m.main!="string")throw new Error(kr(12,R?` (${R})`:"",JSON.stringify(m.main)));return Si(m,"light",z,n),Si(m,"dark",Z,n),m.contrastText||(m.contrastText=h(m.main)),m},_={dark:vs,light:_i};return Ve(k({common:k({},Or),mode:t,primary:f({color:a,name:"primary"}),secondary:f({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:o,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:Wh,contrastThreshold:r,getContrastText:h,augmentColor:f,tonalOffset:n},_[t]),s)}const Qp=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function e0(e){return Math.round(e*1e5)/1e5}const bi={textTransform:"uppercase"},vi='"Roboto", "Helvetica", "Arial", sans-serif';function t0(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=vi,fontSize:s=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:o=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:d,pxToRem:h}=r,f=Se(r,Qp),_=s/14,p=h||(Y=>`${Y/u*_}rem`),m=(Y,z,Z,D,x)=>k({fontFamily:n,fontWeight:Y,fontSize:p(z),lineHeight:Z},n===vi?{letterSpacing:`${e0(D/z)}em`}:{},x,d),R={h1:m(a,96,1.167,-1.5),h2:m(a,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(o,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(o,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(o,14,1.75,.4,bi),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,bi),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ve(k({htmlFontSize:u,pxToRem:p,fontFamily:n,fontSize:s,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:o,fontWeightBold:l},R),f,{clone:!1})}const r0=.2,n0=.14,s0=.12;function re(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${r0})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${n0})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${s0})`].join(",")}const a0=["none",re(0,2,1,-1,0,1,1,0,0,1,3,0),re(0,3,1,-2,0,2,2,0,0,1,5,0),re(0,3,3,-2,0,3,4,0,0,1,8,0),re(0,2,4,-1,0,4,5,0,0,1,10,0),re(0,3,5,-1,0,5,8,0,0,1,14,0),re(0,3,5,-1,0,6,10,0,0,1,18,0),re(0,4,5,-2,0,7,10,1,0,2,16,1),re(0,5,5,-3,0,8,10,1,0,3,14,2),re(0,5,6,-3,0,9,12,1,0,3,16,2),re(0,6,6,-3,0,10,14,1,0,4,18,3),re(0,6,7,-4,0,11,15,1,0,4,20,3),re(0,7,8,-4,0,12,17,2,0,5,22,4),re(0,7,8,-4,0,13,19,2,0,5,24,4),re(0,7,9,-4,0,14,21,2,0,5,26,4),re(0,8,9,-5,0,15,22,2,0,6,28,5),re(0,8,10,-5,0,16,24,2,0,6,30,5),re(0,8,11,-5,0,17,26,2,0,6,32,5),re(0,9,11,-5,0,18,28,2,0,7,34,6),re(0,9,12,-6,0,19,29,2,0,7,36,6),re(0,10,13,-6,0,20,31,3,0,8,38,7),re(0,10,13,-6,0,21,33,3,0,8,40,7),re(0,10,14,-6,0,22,35,3,0,8,42,7),re(0,11,14,-7,0,23,36,3,0,9,44,8),re(0,11,15,-7,0,24,38,3,0,9,46,8)],i0=a0,o0=["duration","easing","delay"],l0={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},u0={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ti(e){return`${Math.round(e)}ms`}function c0(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function d0(e){const t=k({},l0,e.easing),r=k({},u0,e.duration);return k({getAutoHeightDuration:c0,create:(s=["all"],a={})=>{const{duration:i=r.standard,easing:o=t.easeInOut,delay:l=0}=a;return Se(a,o0),(Array.isArray(s)?s:[s]).map(u=>`${u} ${typeof i=="string"?i:Ti(i)} ${o} ${typeof l=="string"?l:Ti(l)}`).join(",")}},e,{easing:t,duration:r})}const f0={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},h0=f0,m0=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ba(e={},...t){const{mixins:r={},palette:n={},transitions:s={},typography:a={}}=e,i=Se(e,m0);if(e.vars)throw new Error(kr(18));const o=Jp(n),l=ga(e);let u=Ve(l,{mixins:Ap(l.breakpoints,r),palette:o,shadows:i0.slice(),typography:t0(o,a),transitions:d0(s),zIndex:k({},h0)});return u=Ve(u,i),u=t.reduce((d,h)=>Ve(d,h),u),u.unstable_sxConfig=k({},Ir,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(h){return pa({sx:h,theme:this})},u}const p0=ba(),ll=p0;function sr({props:e,name:t}){return hp({props:e,name:t,defaultTheme:ll,themeId:$o})}var Lr={},Ts={exports:{}},wi;function g0(){return wi||(wi=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n=0)&&(s[i]=r[i]);return s}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ws)),ws.exports}const _0=bt(tm),S0=bt(rm),b0=bt(lm),v0=bt(dp),T0=bt(Zm),w0=bt(sp);var ar=tl;Object.defineProperty(Lr,"__esModule",{value:!0});var O0=Lr.default=Y0;Lr.shouldForwardProp=un;Lr.systemDefaultTheme=void 0;var Le=ar(g0()),Fs=ar(y0()),ki=A0(_0),k0=S0;ar(b0);ar(v0);var x0=ar(T0),E0=ar(w0);const M0=["ownerState"],D0=["variants"],R0=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ul(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(ul=function(n){return n?r:t})(e)}function A0(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=ul(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=s?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function P0(e){return Object.keys(e).length===0}function I0(e){return typeof e=="string"&&e.charCodeAt(0)>96}function un(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const C0=Lr.systemDefaultTheme=(0,x0.default)(),L0=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function tn({defaultTheme:e,theme:t,themeId:r}){return P0(t)?e:t[r]||t}function N0(e){return e?(t,r)=>r[e]:null}function cn(e,t){let{ownerState:r}=t,n=(0,Fs.default)(t,M0);const s=typeof e=="function"?e((0,Le.default)({ownerState:r},n)):e;if(Array.isArray(s))return s.flatMap(a=>cn(a,(0,Le.default)({ownerState:r},n)));if(s&&typeof s=="object"&&Array.isArray(s.variants)){const{variants:a=[]}=s;let o=(0,Fs.default)(s,D0);return a.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,Le.default)({ownerState:r},n,r)):Object.keys(l.props).forEach(d=>{(r==null?void 0:r[d])!==l.props[d]&&n[d]!==l.props[d]&&(u=!1)}),u&&(Array.isArray(o)||(o=[o]),o.push(typeof l.style=="function"?l.style((0,Le.default)({ownerState:r},n,r)):l.style))}),o}return s}function Y0(e={}){const{themeId:t,defaultTheme:r=C0,rootShouldForwardProp:n=un,slotShouldForwardProp:s=un}=e,a=i=>(0,E0.default)((0,Le.default)({},i,{theme:tn((0,Le.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,o={})=>{(0,ki.internal_processStyles)(i,x=>x.filter(A=>!(A!=null&&A.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:d,skipSx:h,overridesResolver:f=N0(L0(u))}=o,_=(0,Fs.default)(o,R0),p=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,m=h||!1;let R,Y=un;u==="Root"||u==="root"?Y=n:u?Y=s:I0(i)&&(Y=void 0);const z=(0,ki.default)(i,(0,Le.default)({shouldForwardProp:Y,label:R},_)),Z=x=>typeof x=="function"&&x.__emotion_real!==x||(0,k0.isPlainObject)(x)?A=>cn(x,(0,Le.default)({},A,{theme:tn({theme:A.theme,defaultTheme:r,themeId:t})})):x,D=(x,...A)=>{let P=Z(x);const C=A?A.map(Z):[];l&&f&&C.push(B=>{const q=tn((0,Le.default)({},B,{defaultTheme:r,themeId:t}));if(!q.components||!q.components[l]||!q.components[l].styleOverrides)return null;const oe=q.components[l].styleOverrides,se={};return Object.entries(oe).forEach(([ye,ke])=>{se[ye]=cn(ke,(0,Le.default)({},B,{theme:q}))}),f(B,se)}),l&&!p&&C.push(B=>{var q;const oe=tn((0,Le.default)({},B,{defaultTheme:r,themeId:t})),se=oe==null||(q=oe.components)==null||(q=q[l])==null?void 0:q.variants;return cn({variants:se},(0,Le.default)({},B,{theme:oe}))}),m||C.push(a);const J=C.length-A.length;if(Array.isArray(x)&&J>0){const B=new Array(J).fill("");P=[...x,...B],P.raw=[...x.raw,...B]}const b=z(P,...C);return i.muiName&&(b.muiName=i.muiName),b};return z.withConfig&&(D.withConfig=z.withConfig),D}}function F0(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const U0=e=>F0(e)&&e!=="classes",$0=U0,W0=O0({themeId:$o,defaultTheme:ll,rootShouldForwardProp:$0}),tt=W0,j0=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},xi=j0;function H0(e){return tr("MuiSvgIcon",e)}rr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const z0=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],B0=e=>{const{color:t,fontSize:r,classes:n}=e,s={root:["root",t!=="inherit"&&`color${Oe(t)}`,`fontSize${Oe(r)}`]};return Cr(s,H0,n)},V0=tt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Oe(r.color)}`],t[`fontSize${Oe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,s,a,i,o,l,u,d,h,f,_,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(s=e.transitions)==null||(s=s.duration)==null?void 0:s.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((o=e.typography)==null||(l=o.pxToRem)==null?void 0:l.call(o,24))||"1.5rem",large:((u=e.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:(h=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?h:{action:(_=(e.vars||e).palette)==null||(_=_.action)==null?void 0:_.active,disabled:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.disabled,inherit:void 0}[t.color]}}),cl=T.forwardRef(function(t,r){const n=sr({props:t,name:"MuiSvgIcon"}),{children:s,className:a,color:i="inherit",component:o="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:h,viewBox:f="0 0 24 24"}=n,_=Se(n,z0),p=T.isValidElement(s)&&s.type==="svg",m=k({},n,{color:i,component:o,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:f,hasSvgAsChild:p}),R={};d||(R.viewBox=f);const Y=B0(m);return W.jsxs(V0,k({as:o,className:Te(Y.root,a),focusable:"false",color:u,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:r},R,_,p&&s.props,{ownerState:m,children:[p?s.props.children:s,h?W.jsx("title",{children:h}):null]}))});cl.muiName="SvgIcon";const Ei=cl;function Nr(e,t){function r(n,s){return W.jsx(Ei,k({"data-testid":`${t}Icon`,ref:s},n,{children:e}))}return r.muiName=Ei.muiName,T.memo(T.forwardRef(r))}function G0(e){return sr}function q0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zl(e,t)}const Mi=Vt.createContext(null);function va(e,t){var r=function(a){return t&&T.isValidElement(a)?t(a):a},n=Object.create(null);return e&&T.Children.map(e,function(s){return s}).forEach(function(s){n[s.key]=r(s)}),n}function K0(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}var n=Object.create(null),s=[];for(var a in e)a in t?s.length&&(n[a]=s,s=[]):s.push(a);var i,o={};for(var l in t){if(n[l])for(i=0;i{const{square:t,elevation:r,variant:n,classes:s}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Cr(a,tg,s)},sg=tt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return k({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&k({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${yn("#fff",xi(t.elevation))}, ${yn("#fff",xi(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),ag=T.forwardRef(function(t,r){const n=sr({props:t,name:"MuiPaper"}),{className:s,component:a="div",elevation:i=1,square:o=!1,variant:l="elevation"}=n,u=Se(n,rg),d=k({},n,{component:a,elevation:i,square:o,variant:l}),h=ng(d);return W.jsx(sg,k({as:a,ownerState:d,className:Te(h.root,s),ref:r},u))}),ig=ag;function og(e){return typeof e=="string"}function lg(e,t,r){return e===void 0||og(e)?t:k({},t,{ownerState:k({},t.ownerState,r)})}function ug(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function cg(e,t,r){return typeof e=="function"?e(t,r):e}function Di(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function dg(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:s,className:a}=e;if(!t){const _=Te(r==null?void 0:r.className,a,s==null?void 0:s.className,n==null?void 0:n.className),p=k({},r==null?void 0:r.style,s==null?void 0:s.style,n==null?void 0:n.style),m=k({},r,s,n);return _.length>0&&(m.className=_),Object.keys(p).length>0&&(m.style=p),{props:m,internalRef:void 0}}const i=ug(k({},s,n)),o=Di(n),l=Di(s),u=t(i),d=Te(u==null?void 0:u.className,r==null?void 0:r.className,a,s==null?void 0:s.className,n==null?void 0:n.className),h=k({},u==null?void 0:u.style,r==null?void 0:r.style,s==null?void 0:s.style,n==null?void 0:n.style),f=k({},u,r,l,o);return d.length>0&&(f.className=d),Object.keys(h).length>0&&(f.style=h),{props:f,internalRef:u.ref}}const fg=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],hg=["component","slots","slotProps"],mg=["component"];function Ri(e,t){const{className:r,elementType:n,ownerState:s,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:o}=t,l=Se(t,fg),{component:u,slots:d={[e]:void 0},slotProps:h={[e]:void 0}}=a,f=Se(a,hg),_=d[e]||n,p=cg(h[e],s),m=dg(k({className:r},l,{externalForwardedProps:e==="root"?f:void 0,externalSlotProps:p})),{props:{component:R},internalRef:Y}=m,z=Se(m.props,mg),Z=Cs(Y,p==null?void 0:p.ref,t.ref),D=i?i(z):{},x=k({},s,D),A=e==="root"?R||u:R,P=lg(_,k({},e==="root"&&!u&&!d[e]&&o,e!=="root"&&!d[e]&&o,z,A&&{as:A},{ref:Z}),x);return Object.keys(D).forEach(C=>{delete P[C]}),[_,P]}function pg(e){const{className:t,classes:r,pulsate:n=!1,rippleX:s,rippleY:a,rippleSize:i,in:o,onExited:l,timeout:u}=e,[d,h]=T.useState(!1),f=Te(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),_={width:i,height:i,top:-(i/2)+a,left:-(i/2)+s},p=Te(r.child,d&&r.childLeaving,n&&r.childPulsate);return!o&&!d&&h(!0),T.useEffect(()=>{if(!o&&l!=null){const m=setTimeout(l,u);return()=>{clearTimeout(m)}}},[l,o,u]),W.jsx("span",{className:f,style:_,children:W.jsx("span",{className:p})})}const gg=rr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ne=gg,yg=["center","classes","className"];let $n=e=>e,Ai,Pi,Ii,Ci;const Us=550,_g=80,Sg=Sn(Ai||(Ai=$n` 0% { transform: scale(0); opacity: 0.1; @@ -92,4 +92,4 @@ S.version="2.30.1";ru(ee);S.fn=g;S.min=zc;S.max=Bc;S.now=Vc;S.utc=Qe;S.unix=vf;S rgba(85, 85, 85, 1) 0%, rgba(0, 0, 0, 1) 50%, rgba(73, 73, 73, 1) 100% - );display:flex;align-items:center;justify-content:center;transition:0.5s all;animation:rotation 3s infinite linear;p{color:white;font-size:12px;}img{height:60px;}`}),ky=e=>Wn("color:",e.contrast,";font-size:1em;display:flex;align-items:center;justify-content:flex-end;margin-top:15px;letter-spacing:2px;",""),xy=()=>K(vy,{height:"200px"});function Ey(){const e=yy();return K("div",{className:rn(Ty(e)),children:sn("div",{className:rn(wy),children:[K("div",{className:rn(Oy),children:K(xy,{})}),K("div",{className:rn(ky(e)),children:"Qryn"})]})})}function My({children:e}){const t=js(n=>n.currentUser.role);return T.useMemo(()=>{let n=!1,s="";try{const a=btoa("cookie-location"),i=localStorage.getItem(a),o=JSON.parse(atob(i));o&&(o!=null&&o.cookiesAvailable)?(n=o==null?void 0:o.cookiesAvailable,s="/"+(o==null?void 0:o.url)):n=!1}catch{n=!1}return{cookie:n,url:s}},[]).cookie||t!=="admin"&&t!=="superAdmin"?K(Gl,{to:""}):e}const Dy=T.lazy(()=>xr(()=>import("./App-9d4e9242.js"),["./App-9d4e9242.js","./consts-b1f58b04.js","./PluginManagerFactory-cd31b81c.js","./react-432945ee.js","./vendor-c662a477.js","./createSvgIcon-b33a10f9.js","./reactDnd-707fca38.js","./DeleteOutlineOutlined-90e52d8e.js","./reactSelect-ab0ea613.js","./memoize-acaceb73.js","./consts-220d68d1.css"],import.meta.url)),Ry=T.lazy(()=>xr(()=>import("./DataSources-47751bf7.js"),["./DataSources-47751bf7.js","./react-432945ee.js","./vendor-c662a477.js","./AddOutlined-395174d1.js","./DeleteOutlineOutlined-90e52d8e.js","./createSvgIcon-b33a10f9.js","./reactDnd-707fca38.js","./reactSelect-ab0ea613.js","./memoize-acaceb73.js"],import.meta.url)),$i=T.lazy(()=>xr(()=>import("./Main-062780d6.js"),["./Main-062780d6.js","./vendor-c662a477.js","./react-432945ee.js","./consts-b1f58b04.js","./PluginManagerFactory-cd31b81c.js","./createSvgIcon-b33a10f9.js","./reactDnd-707fca38.js","./DeleteOutlineOutlined-90e52d8e.js","./reactSelect-ab0ea613.js","./memoize-acaceb73.js","./consts-220d68d1.css","./lodash-fd695a79.js","./reactTable-6ad149f1.js","./slate-25e47886.js","./AddOutlined-395174d1.js","./actions-2742fbfc.js","./Main-5e5e7fe0.css"],import.meta.url)),Ay=T.lazy(()=>xr(()=>import("./Plugins-ba4b5aef.js"),["./Plugins-ba4b5aef.js","./react-432945ee.js","./PluginManagerFactory-cd31b81c.js","./createSvgIcon-b33a10f9.js","./vendor-c662a477.js","./reactDnd-707fca38.js","./reactSelect-ab0ea613.js","./memoize-acaceb73.js"],import.meta.url)),Py=T.lazy(()=>xr(()=>import("./UserRoles-ce4abc0a.js"),["./UserRoles-ce4abc0a.js","./react-432945ee.js","./vendor-c662a477.js","./createSvgIcon-b33a10f9.js","./reactDnd-707fca38.js","./actions-2742fbfc.js","./reactSelect-ab0ea613.js","./memoize-acaceb73.js"],import.meta.url));Ph(ql);Os.createRoot(document.getElementById("root")).render(K(Vt.StrictMode,{children:K(Kl,{children:sn(Jl,{store:_e,children:[K(Zl,{basename:"",children:K(T.Suspense,{fallback:K(Ey,{}),children:K(Xl,{children:sn(Yt,{path:"/",element:K(Dy,{}),children:[K(Yt,{index:!0,element:K($i,{})}),K(Yt,{path:"/search/*",index:!0,element:K($i,{})}),K(Yt,{path:"/plugins",element:K(Ay,{})}),K(Yt,{path:"/users",element:K(Py,{})}),K(Yt,{path:"/datasources/*",element:sn(My,{children:[" ",K(Ry,{})]})})]})})})}),K(ny,{})]})})}));export{ll as $,ba as A,Ig as B,Uo as C,_s as D,Uy as E,Fy as F,jy as G,zh as H,Hg as I,xh as J,Qh as K,pa as L,ep as M,ny as N,op as O,ig as P,vy as Q,em as R,ga as S,gt as T,Jm as U,hp as V,Bo as W,Ve as X,$y as Y,Pr as Z,$o as _,yn as a,q0 as a0,Mi as a1,cg as a2,dg as a3,Cs as a4,lg as a5,lp as a6,pp as a7,_p as a8,en as a9,ug as aa,_0 as ab,Nr as ac,Tp as ad,og as ae,Rp as af,Fn as ag,Ri as ah,G0 as ai,Ys as aj,Ns as ak,Cr as b,Te as c,K as d,Ut as e,yy as f,rn as g,Wn as h,tl as i,sn as j,qh as k,uh as l,rr as m,tr as n,Oe as o,Qo as p,np as q,$0 as r,tt as s,Wy as t,sr as u,dt as v,S as w,_e as x,hy as y,gy as z}; + );display:flex;align-items:center;justify-content:center;transition:0.5s all;animation:rotation 3s infinite linear;p{color:white;font-size:12px;}img{height:60px;}`}),ky=e=>Wn("color:",e.contrast,";font-size:1em;display:flex;align-items:center;justify-content:flex-end;margin-top:15px;letter-spacing:2px;",""),xy=()=>K(vy,{height:"200px"});function Ey(){const e=yy();return K("div",{className:rn(Ty(e)),children:sn("div",{className:rn(wy),children:[K("div",{className:rn(Oy),children:K(xy,{})}),K("div",{className:rn(ky(e)),children:"Qryn"})]})})}function My({children:e}){const t=js(n=>n.currentUser.role);return T.useMemo(()=>{let n=!1,s="";try{const a=btoa("cookie-location"),i=localStorage.getItem(a),o=JSON.parse(atob(i));o&&(o!=null&&o.cookiesAvailable)?(n=o==null?void 0:o.cookiesAvailable,s="/"+(o==null?void 0:o.url)):n=!1}catch{n=!1}return{cookie:n,url:s}},[]).cookie||t!=="admin"&&t!=="superAdmin"?K(Gl,{to:""}):e}const Dy=T.lazy(()=>xr(()=>import("./App-5b773dfd.js"),["./App-5b773dfd.js","./consts-a4ab3ea8.js","./PluginManagerFactory-a67ca61d.js","./react-432945ee.js","./vendor-c662a477.js","./createSvgIcon-453c5eac.js","./reactDnd-707fca38.js","./DeleteOutlineOutlined-c50f292a.js","./reactSelect-ab0ea613.js","./memoize-acaceb73.js","./consts-220d68d1.css"],import.meta.url)),Ry=T.lazy(()=>xr(()=>import("./DataSources-19590ba7.js"),["./DataSources-19590ba7.js","./react-432945ee.js","./vendor-c662a477.js","./AddOutlined-4fd97119.js","./DeleteOutlineOutlined-c50f292a.js","./createSvgIcon-453c5eac.js","./reactDnd-707fca38.js","./reactSelect-ab0ea613.js","./memoize-acaceb73.js"],import.meta.url)),$i=T.lazy(()=>xr(()=>import("./Main-b913847d.js"),["./Main-b913847d.js","./vendor-c662a477.js","./react-432945ee.js","./consts-a4ab3ea8.js","./PluginManagerFactory-a67ca61d.js","./createSvgIcon-453c5eac.js","./reactDnd-707fca38.js","./DeleteOutlineOutlined-c50f292a.js","./reactSelect-ab0ea613.js","./memoize-acaceb73.js","./consts-220d68d1.css","./lodash-fd695a79.js","./reactTable-6ad149f1.js","./slate-25e47886.js","./AddOutlined-4fd97119.js","./actions-2742fbfc.js","./Main-5e5e7fe0.css"],import.meta.url)),Ay=T.lazy(()=>xr(()=>import("./Plugins-57230a98.js"),["./Plugins-57230a98.js","./react-432945ee.js","./PluginManagerFactory-a67ca61d.js","./createSvgIcon-453c5eac.js","./vendor-c662a477.js","./reactDnd-707fca38.js","./reactSelect-ab0ea613.js","./memoize-acaceb73.js"],import.meta.url)),Py=T.lazy(()=>xr(()=>import("./UserRoles-654b75ab.js"),["./UserRoles-654b75ab.js","./react-432945ee.js","./vendor-c662a477.js","./createSvgIcon-453c5eac.js","./reactDnd-707fca38.js","./actions-2742fbfc.js","./reactSelect-ab0ea613.js","./memoize-acaceb73.js"],import.meta.url));Ph(ql);Os.createRoot(document.getElementById("root")).render(K(Vt.StrictMode,{children:K(Kl,{children:sn(Jl,{store:_e,children:[K(Zl,{basename:"",children:K(T.Suspense,{fallback:K(Ey,{}),children:K(Xl,{children:sn(Yt,{path:"/",element:K(Dy,{}),children:[K(Yt,{index:!0,element:K($i,{})}),K(Yt,{path:"/search/*",index:!0,element:K($i,{})}),K(Yt,{path:"/plugins",element:K(Ay,{})}),K(Yt,{path:"/users",element:K(Py,{})}),K(Yt,{path:"/datasources/*",element:sn(My,{children:[" ",K(Ry,{})]})})]})})})}),K(ny,{})]})})}));export{ll as $,ba as A,Ig as B,Uo as C,_s as D,Uy as E,Fy as F,jy as G,zh as H,Hg as I,xh as J,Qh as K,pa as L,ep as M,ny as N,op as O,ig as P,vy as Q,em as R,ga as S,gt as T,Jm as U,hp as V,Bo as W,Ve as X,$y as Y,Pr as Z,$o as _,yn as a,q0 as a0,Mi as a1,cg as a2,dg as a3,Cs as a4,lg as a5,lp as a6,pp as a7,_p as a8,en as a9,ug as aa,_0 as ab,Nr as ac,Tp as ad,og as ae,Rp as af,Fn as ag,Ri as ah,G0 as ai,Ys as aj,Ns as ak,Cr as b,Te as c,K as d,Ut as e,yy as f,rn as g,Wn as h,tl as i,sn as j,qh as k,uh as l,rr as m,tr as n,Oe as o,Qo as p,np as q,$0 as r,tt as s,Wy as t,sr as u,dt as v,S as w,_e as x,hy as y,gy as z}; diff --git a/index.html b/index.html index dc8b5db7..6cf7eda2 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Qryn View - +