UNPKG

@fyno/inapp-react

Version:

React SDK for invoking Fyno inapp notifications center

1 lines 129 kB
function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t=require("react-hot-toast"),n=e(t),r=require("react"),o=e(r),i=e(require("socket.io-client")),a=e(require("use-sound")),l=require("react-intersection-observer"),c=require("goober"),s=require("@radix-ui/react-popover"),u=e(require("html-react-parser")),d=e(require("react-modal"));function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function f(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}var m=["children","component","sx","className"],g=o.forwardRef(function(e,t){var n=e.children,r=e.component,i=void 0===r?"div":r,a=e.sx,l=void 0===a?{}:a,c=e.className,s=void 0===c?"":c,u=f(e,m),d=function(e){var t={};return e&&Object.keys(e).forEach(function(n){var r=e[n];switch(n){case"display":t.display=r;break;case"flexDirection":t.flexDirection=r;break;case"justifyContent":t.justifyContent=r;break;case"alignItems":t.alignItems=r;break;case"gap":t.gap="number"==typeof r?8*r+"px":r;break;case"p":t.padding="number"==typeof r?8*r+"px":r;break;case"px":t.paddingLeft="number"==typeof r?8*r+"px":r,t.paddingRight="number"==typeof r?8*r+"px":r;break;case"py":t.paddingTop="number"==typeof r?8*r+"px":r,t.paddingBottom="number"==typeof r?8*r+"px":r;break;case"pl":t.paddingLeft="number"==typeof r?8*r+"px":r;break;case"pr":t.paddingRight="number"==typeof r?8*r+"px":r;break;case"pt":t.paddingTop="number"==typeof r?8*r+"px":r;break;case"pb":t.paddingBottom="number"==typeof r?8*r+"px":r;break;case"m":t.margin="number"==typeof r?8*r+"px":r;break;case"mx":t.marginLeft="number"==typeof r?8*r+"px":r,t.marginRight="number"==typeof r?8*r+"px":r;break;case"my":t.marginTop="number"==typeof r?8*r+"px":r,t.marginBottom="number"==typeof r?8*r+"px":r;break;case"ml":t.marginLeft="number"==typeof r?8*r+"px":r;break;case"mr":t.marginRight="number"==typeof r?8*r+"px":r;break;case"mt":t.marginTop="number"==typeof r?8*r+"px":r;break;case"mb":t.marginBottom="number"==typeof r?8*r+"px":r;break;case"width":t.width=r;break;case"height":t.height=r;break;case"minWidth":t.minWidth=r;break;case"maxWidth":t.maxWidth=r;break;case"minHeight":t.minHeight=r;break;case"maxHeight":t.maxHeight=r;break;case"position":t.position=r;break;case"top":t.top=r;break;case"right":t.right=r;break;case"bottom":t.bottom=r;break;case"left":t.left=r;break;case"zIndex":t.zIndex=r;break;case"overflow":t.overflow=r;break;case"overflowX":t.overflowX=r;break;case"overflowY":t.overflowY=r;break;case"background":t.background=r;break;case"backgroundColor":t.backgroundColor=r;break;case"color":t.color=r;break;case"border":t.border=r;break;case"borderRadius":t.borderRadius=r;break;case"boxShadow":t.boxShadow=r;break;case"cursor":t.cursor=r;break;case"textAlign":t.textAlign=r;break;case"fontSize":t.fontSize=r;break;case"fontWeight":t.fontWeight=r;break;case"lineHeight":t.lineHeight=r;break;case"textDecoration":t.textDecoration=r;break;case"flex":t.flex=r;break;case"flexGrow":t.flexGrow=r;break;case"flexShrink":t.flexShrink=r;break;case"flexBasis":t.flexBasis=r;break;case"order":t.order=r;break;case"alignSelf":t.alignSelf=r;break;case"justifySelf":t.justifySelf=r;break;case"gridArea":t.gridArea=r;break;case"gridColumn":t.gridColumn=r;break;case"gridRow":t.gridRow=r;break;case"opacity":t.opacity=r;break;case"transform":t.transform=r;break;case"transition":t.transition=r;break;case"visibility":t.visibility=r;break;default:"string"!=typeof r&&"number"!=typeof r||(t[n]=r)}}),t}(l);return o.createElement(i,p({ref:t,className:s,style:d},u),n)});g.displayName="Box";var h=["children","variant","component","sx","className","color","align","textAlign","gutterBottom","noWrap","paragraph"],v=["textAlign"];o.forwardRef(function(e,t){var n=e.children,r=e.variant,i=void 0===r?"body1":r,a=e.component,l=e.sx,c=void 0===l?{}:l,s=e.className,u=void 0===s?"":s,d=e.color,m=void 0===d?"inherit":d,g=e.align,b=void 0===g?"inherit":g,x=e.textAlign,y=e.gutterBottom,C=void 0!==y&&y,E=e.noWrap,k=void 0!==E&&E,w=e.paragraph,S=void 0!==w&&w,z=f(e,h),j=f(z,v),_=function(e){switch(e){case"h1":return{element:"h1",defaultStyles:{fontSize:"2.125rem",fontWeight:300,lineHeight:1.167,letterSpacing:"-0.01562em"}};case"h2":return{element:"h2",defaultStyles:{fontSize:"1.5rem",fontWeight:300,lineHeight:1.334,letterSpacing:"-0.00833em"}};case"h3":return{element:"h3",defaultStyles:{fontSize:"1.25rem",fontWeight:400,lineHeight:1.6,letterSpacing:"0em"}};case"h4":return{element:"h4",defaultStyles:{fontSize:"1.125rem",fontWeight:400,lineHeight:1.667,letterSpacing:"0.00735em"}};case"h5":return{element:"h5",defaultStyles:{fontSize:"1.0625rem",fontWeight:400,lineHeight:1.6,letterSpacing:"0em"}};case"h6":return{element:"h6",defaultStyles:{fontSize:"1rem",fontWeight:500,lineHeight:1.75,letterSpacing:"0.0075em"}};case"subtitle1":return{element:"h6",defaultStyles:{fontSize:"1rem",fontWeight:400,lineHeight:1.75,letterSpacing:"0.00938em"}};case"subtitle2":return{element:"h6",defaultStyles:{fontSize:"0.875rem",fontWeight:500,lineHeight:1.57,letterSpacing:"0.00714em"}};case"body1":return{element:"p",defaultStyles:{fontSize:"1rem",fontWeight:400,lineHeight:1.5,letterSpacing:"0.00938em"}};case"body2":return{element:"p",defaultStyles:{fontSize:"0.875rem",fontWeight:400,lineHeight:1.43,letterSpacing:"0.01071em"}};case"button":return{element:"span",defaultStyles:{fontSize:"0.875rem",fontWeight:500,lineHeight:1.75,letterSpacing:"0.02857em",textTransform:"uppercase"}};case"caption":return{element:"span",defaultStyles:{fontSize:"0.75rem",fontWeight:400,lineHeight:1.66,letterSpacing:"0.03333em"}};case"overline":return{element:"span",defaultStyles:{fontSize:"0.75rem",fontWeight:400,lineHeight:2.66,letterSpacing:"0.08333em",textTransform:"uppercase"}};default:return{element:"p",defaultStyles:{fontSize:"1rem",fontWeight:400,lineHeight:1.5,letterSpacing:"0.00938em"}}}}(i),P=a||_.element,A=p({},_.defaultStyles,{color:"inherit"!==m?m:void 0,textAlign:x||("inherit"!==b?b:void 0),marginBottom:S?"1em":C?"0.35em":void 0,whiteSpace:k?"nowrap":void 0,overflow:k?"hidden":void 0,textOverflow:k?"ellipsis":void 0},c);return o.createElement(P,p({ref:t,className:u,style:A},j),n)}).displayName="Typography";var b=r.createContext(),x=function(){var e=r.useContext(b);if(!e)throw new Error("useTheme must be used within a ThemeProvider");return e},y=["children","variant","size","color"],C=o.forwardRef(function(e,t){var n=e.children,r=e.variant,i=void 0===r?"outlined":r,a=e.color,l=void 0===a?"primary":a,c=f(e,y),s=x(),u=s.palette.primary.main||"#1976d2",d=s.palette.secondary.main||"#9c27b0",m="0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12)",g=p({},{outline:0,border:0,margin:0,cursor:"pointer",borderRadius:"4px",textTransform:"uppercase",transition:"background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"},{padding:"6px 10px",fontSize:"0.63rem",minWidth:"4rem",letterSpacing:"0.5px"},{outlined:{primary:{color:u,backgroundColor:"transparent",border:"1px solid "+(u||"rgba(25, 118, 210, 0.5)"),"&:hover":{backgroundColor:"rgba(25, 118, 210, 0.04)",border:"1px solid #1976d2"}},secondary:{color:d,border:"1px solid "+(d||"rgba(156, 39, 176, 0.5)"),"&:hover":{backgroundColor:"rgba(156, 39, 176, 0.04)",border:"1px solid #9c27b0"}}},contained:{primary:{color:"#fff",backgroundColor:u,boxShadow:m,"&:hover":{backgroundColor:"#1565c0",boxShadow:"0px 2px 4px -1px rgba(0,0,0,0.2),0px 4px 5px 0px rgba(0,0,0,0.14),0px 1px 10px 0px rgba(0,0,0,0.12)"}},secondary:{color:"#fff",backgroundColor:d,boxShadow:m,"&:hover":{backgroundColor:"#7b1fa2",boxShadow:"0px 2px 4px -1px rgba(0,0,0,0.2),0px 4px 5px 0px rgba(0,0,0,0.14),0px 1px 10px 0px rgba(0,0,0,0.12)"}}}}[i][l]);return o.createElement("button",p({ref:t,style:g,type:"button"},c),n)});C.displayName="Button";var E=["children","onClick","style","disabled"],k=function(e){var t=e.children,n=e.onClick,i=e.style,a=e.disabled,l=void 0!==a&&a,c=(f(e,E),r.useState(!1)),s=c[0],u=c[1],d=x(),m=p({},{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",outline:0,border:0,margin:0,padding:"7px",cursor:l?"not-allowed":"pointer",userSelect:"none",verticalAlign:"middle",textDecoration:"none",color:l?d.palette.action.disabled:"inherit",fontFamily:"inherit",fontSize:"inherit",fontWeight:400,lineHeight:1,letterSpacing:"0em",textTransform:"none",borderRadius:"50%",transition:"background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",backgroundColor:s?"rgba(0, 0, 0, 0.04)":"transparent"},i);return o.createElement("button",{onClick:n,type:"button",style:m,onMouseEnter:function(){return u(!0)},onMouseLeave:function(){return u(!1)}},t)};k.displayName="IconButton";var w=["children","badgeContent","color","max","showZero","variant","sx","invisible","className"],S=["invisible"],z=o.forwardRef(function(e,t){var n,r,i=e.children,a=e.badgeContent,l=e.color,c=void 0===l?"default":l,s=e.max,u=e.showZero,d=void 0!==u&&u,m=e.variant,g=void 0===m?"standard":m,h=e.sx,v=void 0===h?{}:h,b=e.invisible,x=void 0!==b&&b,y=e.className,C=void 0===y?"":y,E=f(e,w),k=f(E,S),z=function(){var e={position:"absolute",top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",height:"20px",minWidth:"20px",padding:"0 6px",fontSize:"0.75rem",fontWeight:500,lineHeight:"20px",whiteSpace:"nowrap",textAlign:"center",borderRadius:"10px",boxSizing:"border-box",zIndex:1,transition:"transform 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"},t={default:{backgroundColor:"#e0e0e0",color:"rgba(0, 0, 0, 0.87)"},primary:{backgroundColor:"#1976d2",color:"#fff"},secondary:{backgroundColor:"#9c27b0",color:"#fff"},error:{backgroundColor:"#d32f2f",color:"#fff"},warning:{backgroundColor:"#ed6c02",color:"#fff"},info:{backgroundColor:"#0288d1",color:"#fff"},success:{backgroundColor:"#2e7d32",color:"#fff"}};return p({},e,t[c]),p({},e,{height:"8px",minWidth:"8px",padding:0,borderRadius:"4px"},t[c]),p({},{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center"},v)}(),j={standard:p({},n={position:"absolute",top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",height:"20px",minWidth:"20px",padding:"0 6px",fontSize:"0.75rem",fontWeight:500,lineHeight:"20px",whiteSpace:"nowrap",textAlign:"center",borderRadius:"10px",boxSizing:"border-box",zIndex:1,transition:"transform 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"},(r={default:{backgroundColor:"#e0e0e0",color:"rgba(0, 0, 0, 0.87)"},primary:{backgroundColor:"#1976d2",color:"#fff"},secondary:{backgroundColor:"#9c27b0",color:"#fff"},error:{backgroundColor:"#d32f2f",color:"#fff"},warning:{backgroundColor:"#ed6c02",color:"#fff"},info:{backgroundColor:"#0288d1",color:"#fff"},success:{backgroundColor:"#2e7d32",color:"#fff"}})[c]),dot:p({},n,{height:"8px",minWidth:"8px",padding:0,borderRadius:"4px"},r[c])}[g],_=a;return void 0!==s&&"number"==typeof a&&a>s&&(_=s+"+"),(0!==a||d||x)&&(a||0===a||x)?x?o.createElement("span",p({ref:t,className:C,style:z},k),i):o.createElement("span",p({ref:t,className:C,style:z},k),i,o.createElement("span",{style:j},"dot"===g?"":_)):o.createElement("span",p({ref:t,className:C,style:z},k),i)});z.displayName="Badge";var j=["children","variant","color","size","disabled","clickable","deletable","onDelete","onClick","avatar","icon","label","sx","className"],_=o.forwardRef(function(e,t){var n,r,i,a=e.children,l=e.variant,c=void 0===l?"default":l,s=e.color,u=void 0===s?"default":s,d=e.size,m=void 0===d?"medium":d,g=e.disabled,h=void 0!==g&&g,v=e.clickable,b=void 0===v||v,x=e.deletable,y=void 0!==x&&x,C=e.onDelete,E=e.onClick,k=e.avatar,w=e.icon,S=e.label,z=e.sx,_=void 0===z?{}:z,P=e.className,A=void 0===P?"":P,N=f(e,j),R=(n={display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",outline:0,border:0,margin:0,cursor:b&&!h?"pointer":"default",userSelect:"none",verticalAlign:"middle",textDecoration:"none",fontFamily:"Roboto, Helvetica, Arial, sans-serif",fontWeight:400,lineHeight:1.2,letterSpacing:"0.01071em",borderRadius:"16px",transition:"all 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","&:hover":b&&!h?{backgroundColor:"rgba(0, 0, 0, 0.04)"}:{},"&:active":b&&!h?{boxShadow:"0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12)"}:{}},i={default:p({},(r={default:{backgroundColor:"#e0e0e0",color:"rgba(0, 0, 0, 0.87)"},primary:{backgroundColor:"#e3f2fd",color:"#1976d2"},secondary:{backgroundColor:"#f3e5f5",color:"#9c27b0"},error:{backgroundColor:"#ffebee",color:"#d32f2f"},warning:{backgroundColor:"#fff3e0",color:"#ed6c02"},info:{backgroundColor:"#e1f5fe",color:"#0288d1"},success:{backgroundColor:"#e8f5e8",color:"#2e7d32"}})[u]),outlined:{backgroundColor:"transparent",color:r[u].color,border:"1px solid "+r[u].color,"&:hover":b&&!h?{backgroundColor:r[u].backgroundColor}:{}},filled:p({},r[u])},p({},n,{small:{height:"24px",fontSize:"0.75rem",padding:"0 8px"},medium:{height:"32px",fontSize:"0.8125rem",padding:"0 12px"},large:{height:"40px",fontSize:"0.875rem",padding:"0 16px"}}[m],i[c],h?{opacity:.38,cursor:"default",pointerEvents:"none"}:{},_)),H=p({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",overflow:"hidden"},{small:{width:"18px",height:"18px",marginRight:"6px"},medium:{width:"24px",height:"24px",marginRight:"8px"},large:{width:"32px",height:"32px",marginRight:"12px"}}[m]),D=p({display:"flex",alignItems:"center",justifyContent:"center",color:"inherit"},{small:{width:"16px",height:"16px",marginRight:"6px"},medium:{width:"20px",height:"20px",marginRight:"8px"},large:{width:"24px",height:"24px",marginRight:"12px"}}[m]),O=p({display:"flex",alignItems:"center",justifyContent:"center",color:"inherit"},{small:{width:"16px",height:"16px",marginLeft:"6px",cursor:"pointer","&:hover":{color:"rgba(0, 0, 0, 0.6)"}},medium:{width:"18px",height:"18px",marginLeft:"8px",cursor:"pointer","&:hover":{color:"rgba(0, 0, 0, 0.6)"}},large:{width:"20px",height:"20px",marginLeft:"12px",cursor:"pointer","&:hover":{color:"rgba(0, 0, 0, 0.6)"}}}[m]),M=null!=S?S:a;return o.createElement("span",p({ref:t,className:A,style:R,onClick:function(e){b&&!h&&E&&E(e)},role:b?"button":void 0,tabIndex:b&&!h?0:void 0},N),k&&o.createElement("span",{style:H},k),w&&o.createElement("span",{style:D},w),o.createElement("span",{className:"chip-label"},M),y&&o.createElement("span",{style:O,onClick:function(e){e.stopPropagation(),y&&!h&&C&&C(e)},role:"button",tabIndex:0,"aria-label":"delete"},"×"))});_.displayName="Chip";var P=["checked","defaultChecked","disabled","color","size","sx","className","onChange"],A=o.forwardRef(function(e,t){var n=e.checked,i=void 0!==n&&n,a=e.defaultChecked,l=void 0!==a&&a,c=e.disabled,s=void 0!==c&&c,u=e.color,d=void 0===u?"primary":u,m=e.size,g=void 0===m?"medium":m,h=e.sx,v=void 0===h?{}:h,b=e.className,y=void 0===b?"":b,C=e.onChange,E=f(e,P),k=x(),w=r.useState(l||i),S=w[0],z=w[1],j=p({},{display:"inline-flex",alignItems:"center",position:"relative",cursor:"pointer",userSelect:"none",verticalAlign:"middle",WebkitTapHighlightColor:"transparent"},{small:{width:"40px",height:"15px"},medium:{width:"44px",height:"24px"},large:{width:"52px",height:"28px"}}[g],{primary:{"--switch-color":k.palette.primary.main||"#1976d2","--switch-color-disabled":"#bdbdbd"},secondary:{"--switch-color":k.palette.secondary.main||"#9c27b0","--switch-color-disabled":"#bdbdbd"},error:{"--switch-color":"#d32f2f","--switch-color-disabled":"#bdbdbd"},warning:{"--switch-color":"#ed6c02","--switch-color-disabled":"#bdbdbd"},info:{"--switch-color":"#0288d1","--switch-color-disabled":"#bdbdbd"},success:{"--switch-color":"#2e7d32","--switch-color-disabled":"#bdbdbd"}}[d],v),_=p({},{position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:"12px",backgroundColor:S?"var(--switch-color)":k.palette.text.disabled,transition:"background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",opacity:s?.38:1},{small:{borderRadius:"8px"},medium:{borderRadius:"12px"},large:{borderRadius:"14px"}}[g]),A=p({},{position:"absolute",borderRadius:"50%",backgroundColor:"#fff",boxShadow:"0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12)",transition:"left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"},{small:{top:"1px",left:S?"calc(100% - 12px - 1px)":"1px",width:"12px",height:"12px"},medium:{top:"2px",left:S?"calc(100% - 18px - 4px)":"2px",width:"18px",height:"18px"},large:{top:"2px",left:S?"calc(100% - 22px - 4px)":"2px",width:"22px",height:"22px"}}[g]);return o.createElement("span",p({ref:t,className:y,style:j,onClick:function(e){if(!s){var t=!S;z(t),C&&C(e,t)}},role:"switch","aria-checked":S,"aria-disabled":s,tabIndex:s?-1:0},E),o.createElement("span",{style:_}),o.createElement("span",{style:A}))});A.displayName="Switch";var N=function(e){var t=e.placement,n=void 0===t?"right":t,i=e.children,a=e.title,l=void 0===a?"":a,c=e.style,s=void 0===c?{}:c,u=r.useState(!1),d=u[0],f=u[1],m=x(),g="light"===m.palette.mode?"rgba(0, 0, 0, 0.9)":"#616161",h=p({position:"relative",display:"inline-block"},s),v=p({visibility:d?"visible":"hidden",width:"max-content",maxWidth:"150px",backgroundColor:"light"===m.palette.mode?m.palette.common.black:"#616161",color:m.palette.common.white,textAlign:"center",borderRadius:"5px",padding:"6px 8px",position:"absolute",zIndex:99999,opacity:d?1:0,transition:"opacity 0.3s, visibility 0.3s",fontSize:"11px",whiteSpace:"normal",wordWrap:"break-word"},"right"===n&&{top:"50%",left:"calc(100% + 10px)",transform:"translateY(-50%)"},"left"===n&&{top:"50%",right:"calc(100% + 10px)",transform:"translateY(-50%)"},"top"===n&&{bottom:"calc(100% + 10px)",left:"50%",transform:"translateX(-50%)"},"bottom"===n&&{top:"calc(100% + 10px)",left:"50%",transform:"translateX(-50%)"}),b=p({position:"absolute",width:0,height:0,borderStyle:"solid"},"right"===n&&{top:"50%",left:"-5px",marginTop:"-5px",borderWidth:"5px 5px 5px 0",borderColor:"transparent "+g+" transparent transparent"},"left"===n&&{top:"50%",right:"-5px",marginTop:"-5px",borderWidth:"5px 0 5px 5px",borderColor:"transparent transparent transparent "+g+" "},"top"===n&&{bottom:"-5px",left:"50%",marginLeft:"-5px",borderWidth:"5px 5px 0 5px",borderColor:g+" transparent transparent transparent"},"bottom"===n&&{top:"-5px",left:"50%",marginLeft:"-5px",borderWidth:"0 5px 5px 5px",borderColor:"transparent transparent "+g+" transparent"});return o.createElement("div",{style:h,onMouseEnter:function(){return f(!0)},onMouseLeave:function(){return f(!1)},role:"tooltip"},i,l&&o.createElement("span",{style:v},o.createElement("span",{style:b}),l))};N.displayName="TooltipComponent";var R=["children","href","target","rel","underline","color","variant","sx","className","onClick"];o.forwardRef(function(e,t){var n=e.children,r=e.href,i=e.target,a=e.rel,l=e.underline,c=void 0===l?"hover":l,s=e.color,u=void 0===s?"primary":s,d=e.variant,m=void 0===d?"inherit":d,g=e.sx,h=void 0===g?{}:g,v=e.className,b=void 0===v?"":v,x=e.onClick,y=f(e,R),C=p({},{color:"inherit",textDecoration:"none",backgroundColor:"transparent",outline:0,cursor:"pointer",transition:"color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","&:hover":{textDecoration:"underline"},"&:focus":{outline:"2px solid #1976d2",outlineOffset:"2px"}},{inherit:{color:"inherit"},primary:{color:"#1976d2","&:hover":{color:"#1565c0",textDecoration:"underline"}},secondary:{color:"#9c27b0","&:hover":{color:"#7b1fa2",textDecoration:"underline"}},error:{color:"#d32f2f","&:hover":{color:"#c62828",textDecoration:"underline"}},warning:{color:"#ed6c02","&:hover":{color:"#e65100",textDecoration:"underline"}},info:{color:"#0288d1","&:hover":{color:"#01579b",textDecoration:"underline"}},success:{color:"#2e7d32","&:hover":{color:"#1b5e20",textDecoration:"underline"}}}[u],{none:{textDecoration:"none","&:hover":{textDecoration:"none"}},hover:{textDecoration:"none","&:hover":{textDecoration:"underline"}},always:{textDecoration:"underline","&:hover":{textDecoration:"underline"}}}[c],{inherit:{fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit"},body1:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",fontSize:"1rem",fontWeight:400,lineHeight:1.5,letterSpacing:"0.00938em"},body2:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",fontSize:"0.875rem",fontWeight:400,lineHeight:1.43,letterSpacing:"0.01071em"},button:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",fontSize:"0.875rem",fontWeight:500,lineHeight:1.75,letterSpacing:"0.02857em",textTransform:"uppercase"},caption:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",fontSize:"0.75rem",fontWeight:400,lineHeight:1.66,letterSpacing:"0.03333em"},overline:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",fontSize:"0.75rem",fontWeight:400,lineHeight:2.66,letterSpacing:"0.08333em",textTransform:"uppercase"}}[m],h);return r?o.createElement("a",p({ref:t,href:r,target:i,rel:a,className:b,style:C,onClick:x},y),n):o.createElement("button",p({ref:t,className:b,style:C,onClick:x,type:"button"},y),n)}).displayName="Link";var H=["children","color","fontSize","sx","className"],D=o.forwardRef(function(e,t){var n=e.children,r=e.color,i=void 0===r?"inherit":r,a=e.fontSize,l=void 0===a?"default":a,c=e.sx,s=void 0===c?{}:c,u=e.className,d=void 0===u?"":u,m=f(e,H),g=p({},{display:"inline-block",fill:"currentColor",flexShrink:0,userSelect:"none",transition:"fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"},{inherit:{fontSize:"inherit"},small:{fontSize:"1.125rem"},default:{fontSize:"1.5rem"},large:{fontSize:"2.25rem"}}[l],{inherit:{color:"inherit"},action:{color:"rgba(0, 0, 0, 0.54)"},disabled:{color:"rgba(0, 0, 0, 0.38)"},primary:{color:"#1976d2"},secondary:{color:"#9c27b0"},error:{color:"#d32f2f"},warning:{color:"#ed6c02"},info:{color:"#0288d1"},success:{color:"#2e7d32"}}[i],s);return o.createElement("span",p({ref:t,className:d,style:g},m),n)});D.displayName="Icon";var O=["children","container","item","xs","sm","md","lg","xl","spacing","direction","justifyContent","alignItems","className","sx"];o.forwardRef(function(e,t){var n,r=e.children,i=e.container,a=void 0!==i&&i,l=e.item,c=void 0!==l&&l,s=e.xs,u=e.sm,d=e.md,m=e.lg,g=e.xl,h=e.spacing,v=void 0===h?0:h,b=e.direction,x=void 0===b?"row":b,y=e.justifyContent,C=void 0===y?"flex-start":y,E=e.alignItems,k=void 0===E?"stretch":E,w=e.className,S=void 0===w?"":w,z=e.sx,j=void 0===z?{}:z,_=f(e,O),P=(n={},a&&(n.display="flex",n.flexDirection=x,n.justifyContent=C,n.alignItems=k,v>0&&(n.gap=8*v+"px")),c&&(void 0!==s&&(n.flex="0 0 "+s/12*100+"%"),void 0!==u&&(n.flex="0 0 "+u/12*100+"%"),void 0!==d&&(n.flex="0 0 "+d/12*100+"%"),void 0!==m&&(n.flex="0 0 "+m/12*100+"%"),void 0!==g&&(n.flex="0 0 "+g/12*100+"%")),n);return o.createElement("div",p({ref:t,className:S,style:p({},P,j)},_),r)}).displayName="Grid";var M=["children","orientation","variant","flexItem","className","sx"];o.forwardRef(function(e,t){var n,r=e.children,i=e.orientation,a=void 0===i?"horizontal":i,l=e.variant,c=void 0===l?"fullWidth":l,s=e.flexItem,u=void 0!==s&&s,d=e.className,m=void 0===d?"":d,g=e.sx,h=void 0===g?{}:g,v=f(e,M),b=(n={border:"none",margin:0,flexShrink:0},"horizontal"===a?(n.borderTop="1px solid",n.borderTopColor="currentColor",n.width="fullWidth"===c?"100%":"auto",u&&(n.alignSelf="stretch")):(n.borderLeft="1px solid",n.borderLeftColor="currentColor",n.height="fullWidth"===c?"100%":"auto",u&&(n.alignSelf="stretch")),n);return r?o.createElement("div",p({ref:t,className:m,style:p({},b,h)},v),o.createElement("span",{style:{padding:"0 16px"}},r)):o.createElement("hr",p({ref:t,className:m,style:p({},b,h)},v))}).displayName="Divider";var T=["children","in","timeout","className","style"],I=function(e){var t=e.children,n=e.in,i=void 0!==n&&n,a=e.timeout,l=void 0===a?300:a,c=e.className,s=void 0===c?"":c,u=e.style,d=void 0===u?{}:u,m=f(e,T),g=r.useRef(null),h=r.useRef(null),v=r.useState(i?"auto":"0px"),b=v[0],x=v[1];return r.useEffect(function(){var e=g.current;if(h.current&&e){var t;if(i)x("0px"),requestAnimationFrame(function(){x(e.scrollHeight+"px"),t=setTimeout(function(){x("auto")},l)});else{var n=e.scrollHeight;t=setTimeout(function(){x(n+"px"),requestAnimationFrame(function(){x("0px")})},l)}return function(){t&&clearTimeout(t)}}},[i,l]),o.createElement("div",p({ref:h,className:s,style:p({height:b,overflow:"hidden",transition:"height "+l+"ms cubic-bezier(0.4, 0, 0.2, 1)",width:"100%"},d)},m),o.createElement("div",{ref:g},t))},B=["modal","children","onClose","onOpen","style","className","closeOnOutsideClick","closeOnEscape","position","offset"];r.forwardRef(function(e,t){var n=e.modal,i=void 0!==n&&n,a=e.children,l=e.onClose,c=e.onOpen,s=e.style,u=void 0===s?{}:s,d=e.className,m=void 0===d?"":d,g=e.closeOnOutsideClick,h=void 0===g||g,v=e.closeOnEscape,b=void 0===v||v,x=e.position,y=void 0===x?null:x,C=e.offset,E=void 0===C?8:C,k=f(e,B),w=r.useRef(null);r.useImperativeHandle(t,function(){return{open:function(e){return z(e)},close:j,toggle:function(e){return S()?j():z(e)},isOpen:S}});var S=function(){var e;return(null===(e=w.current)||void 0===e?void 0:e.open)||!1},z=function(e){void 0===e&&(e=null);var t=w.current;if(t){if(i)t.showModal();else{t.show();var n=e||(null==y?void 0:y.relativeTo);n&&_(n)}null==c||c()}},j=function(){var e=w.current;e&&e.open&&(e.close(),null==l||l())},_=function(e){if(e&&w.current){var t=w.current,n=e.getBoundingClientRect(),r=(null==y?void 0:y.placement)||"bottom-right";switch(t.style.position="absolute",t.style.top="auto",t.style.left="auto",t.style.right="auto",t.style.bottom="auto",r){case"bottom-right":t.style.top=n.bottom+E+"px",t.style.left=n.right-t.offsetWidth+"px";break;case"bottom-left":t.style.top=n.bottom+E+"px",t.style.left=n.left+"px";break;case"top-right":t.style.bottom=window.innerHeight-n.top+E+"px",t.style.left=n.right-t.offsetWidth+"px";break;case"top-left":t.style.bottom=window.innerHeight-n.top+E+"px",t.style.left=n.left+"px";break;case"right":t.style.top=n.top+"px",t.style.left=n.right+E+"px";break;case"left":t.style.top=n.top+"px",t.style.right=window.innerWidth-n.left+E+"px";break;default:t.style.top=n.bottom+E+"px",t.style.left=n.left+n.width/2-t.offsetWidth/2+"px"}P(t)}},P=function(e){var t=e.getBoundingClientRect();t.right>window.innerWidth&&(e.style.left=window.innerWidth-t.width-10+"px"),t.left<0&&(e.style.left="10px"),t.bottom>window.innerHeight&&(e.style.top=window.innerHeight-t.height-10+"px"),t.top<0&&(e.style.top="10px")};r.useEffect(function(){if(h&&!i){var e=function(e){var t=w.current;if(t&&t.open){var n=t.getBoundingClientRect();(e.clientX<n.left||e.clientX>n.right||e.clientY<n.top||e.clientY>n.bottom)&&j()}};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),function(){document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}}},[h,i]),r.useEffect(function(){if(b){var e=function(e){var t;"Escape"===e.key&&null!==(t=w.current)&&void 0!==t&&t.open&&j()};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}},[b]);var A=p({padding:0,border:"none",backgroundColor:"transparent",outline:"none"},u);return r.useEffect(function(){if(i){var e="dialog-backdrop-styles",t=document.getElementById(e);return t||((t=document.createElement("style")).id=e,document.head.appendChild(t)),t.textContent="\n dialog[open] {\n display: flex;\n flex-direction: column;\n animation: dialogFadeIn 0.15s ease-out;\n }\n dialog::backdrop {\n background-color: rgba(0, 0, 0, 0.5);\n backdrop-filter: blur(3px);\n animation: backdropFadeIn 0.15s ease-out;\n }\n /* Use browser's default centering for modal */\n dialog:modal {\n margin: auto;\n max-width: min(600px, 90vw);\n max-height: 80vh;\n }\n /* Prevent focus flickering */\n dialog[open] *:focus {\n outline: none;\n }\n dialog[open] *:focus-visible {\n outline: 2px solid currentColor;\n outline-offset: 2px;\n }\n @keyframes dialogFadeIn {\n from {\n opacity: 0;\n transform: scale(0.95);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n }\n @keyframes backdropFadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n ",function(){}}},[i]),o.createElement("dialog",p({ref:w,className:m,style:A,onClick:function(e){e.stopPropagation()}},k),a)}).displayName="Dialog";var F=["size","thickness","value","variant","className","sx"],L=function(e){var t=e.size,n=void 0===t?40:t,r=e.thickness,i=void 0===r?3.6:r,a=e.value,l=void 0===a?0:a,c=e.variant,s=void 0===c?"indeterminate":c,u=e.className,d=void 0===u?"":u,m=e.sx,g=void 0===m?{}:m,h=f(e,F),v=(n-i)/2,b=2*v*Math.PI,x=b,y="determinate"===s?b-l/100*b:void 0,C=p({display:"inline-block",position:"relative",width:n,height:n},g),E={transform:"rotate(-90deg)",width:n,height:n},k={stroke:"currentColor",strokeWidth:i,fill:"transparent",strokeLinecap:"round"};return"indeterminate"===s?o.createElement("div",p({className:d,style:C},h),o.createElement("svg",{style:E},o.createElement("circle",{cx:n/2,cy:n/2,r:v,style:p({},k,{strokeDasharray:x,animation:"circular-progress-spin 1.4s linear infinite"})})),o.createElement("style",null,"\n @keyframes circular-progress-spin {\n 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; }\n 50% { stroke-dasharray: 100px, 200px; stroke-dashoffset: -15px; }\n 100% { stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; }\n }\n ")):o.createElement("div",p({className:d,style:C},h),o.createElement("svg",{style:E},o.createElement("circle",{cx:n/2,cy:n/2,r:v,style:p({},k,{strokeDasharray:x,strokeDashoffset:y,transition:"stroke-dashoffset 0.35s cubic-bezier(0.4, 0, 0.2, 1)"})})))},W=["children","className","viewBox","fontSize","color","sx"],U=function(e){var t=e.children,n=e.className,r=void 0===n?"":n,i=e.viewBox,a=void 0===i?"0 0 24 24":i,l=e.fontSize,c=void 0===l?"medium":l,s=e.color,u=void 0===s?"inherit":s,d=e.sx,m=void 0===d?{}:d,g=f(e,W),h=function(){switch(c){case"small":return"20px";case"medium":return"24px";case"large":return"35px";default:return c}},v=p({display:"inline-block",width:h(),height:h(),color:u,fill:"currentColor"},m);return o.createElement("svg",p({className:r,viewBox:a,style:v},g),t)},V=["children","orientation","variant","scrollButtons","onChange","className","sx"],q=["children","value","label","disabled","disableRipple","icon","iconPosition","onChange","className","sx"],X=["disableRipple"],G=["children","value","index","className","sx"],Y=r.createContext(),Z=function(){var e=r.useContext(Y);if(!e)throw new Error("useTabContext must be used within a TabContext.Provider");return e};o.forwardRef(function(e,t){var n,r=e.children,i=e.orientation,a=void 0===i?"horizontal":i,l=e.className,c=void 0===l?"":l,s=e.sx,u=void 0===s?{}:s,d=f(e,V),m=(n={display:"flex",borderBottom:"horizontal"===a?"1px solid":"none",borderRight:"vertical"===a?"1px solid":"none",borderColor:"currentColor",minHeight:"48px"},"vertical"===a&&(n.flexDirection="column",n.borderRight="1px solid",n.borderRightColor="currentColor"),n);return o.createElement("div",p({ref:t,className:c,style:p({},m,u),role:"tablist"},d),o.Children.map(r,function(e){return o.isValidElement(e)?o.cloneElement(e):e}))}).displayName="TabList",o.forwardRef(function(e,t){var n,r=e.children,i=e.value,a=e.label,l=e.disabled,c=void 0!==l&&l,s=e.icon,u=e.iconPosition,d=void 0===u?"start":u,m=e.onChange,g=e.className,h=void 0===g?"":g,v=e.sx,b=void 0===v?{}:v,x=f(e,q),y=f(x,X),C=Z(),E=C.value===i,k=C.onChange||m,w=(n={padding:"12px 16px",minHeight:"48px",minWidth:"90px",textTransform:"none",fontWeight:E?"600":"500",fontSize:"0.875rem",lineHeight:"1.25rem",border:"none",background:"none",cursor:c?"default":"pointer",color:c?"rgba(0, 0, 0, 0.38)":"inherit",opacity:c?.38:1,transition:"all 0.2s ease-in-out",display:"flex",alignItems:"center",justifyContent:"center",textDecoration:"none",outline:"none",position:"relative"},E&&(n.borderBottom="2px solid currentColor",n.color="primary"),n);return o.createElement("button",p({ref:t,className:h,style:p({},w,b),onClick:function(e){!c&&k&&k(e,i)},disabled:c,role:"tab","aria-selected":E,"data-selected":E,"data-value":i},y),s&&"start"===d?o.createElement(o.Fragment,null,s,a||r):s&&"end"===d?o.createElement(o.Fragment,null,a||r,s):a||r)}).displayName="Tab",o.forwardRef(function(e,t){var n=e.children,r=e.value,i=e.className,a=void 0===i?"":i,l=e.sx,c=void 0===l?{}:l,s=f(e,G),u=Z().value===r;return u?o.createElement("div",p({ref:t,className:a,style:p({},{padding:"16px",display:"flex",flexDirection:"column",flex:1},c),role:"tabpanel",hidden:!u},s),n):null}).displayName="TabPanel";var $=["children","open","anchorEl","anchorOrigin","transformOrigin","className","sx","onClose"],K=function(e){var t=e.children,n=e.open,i=void 0!==n&&n,a=e.anchorEl,l=void 0===a?null:a,c=e.anchorOrigin,s=void 0===c?{vertical:"bottom",horizontal:"left"}:c,u=e.transformOrigin,d=void 0===u?{vertical:"top",horizontal:"left"}:u,m=e.className,g=void 0===m?"":m,h=e.sx,v=void 0===h?{}:h,b=e.onClose,x=f(e,$),y=xr().data,C=y.showConfig,E=y.preferenceMode,k=r.useRef(null),w=r.useState(!1),S=w[0],z=w[1],j=r.useState(!1)[1],_=r.useState(!1),P=_[0],A=_[1];if(r.useEffect(function(){if(i){A(!0);var e=setTimeout(function(){z(!0),j(!1)},10);return function(){return clearTimeout(e)}}if(P){z(!1),j(!0);var t=setTimeout(function(){A(!1),j(!1)},250);return function(){return clearTimeout(t)}}},[i,P]),r.useEffect(function(){if(i&&("modal"!==E||!C)){var e=function(e){var t=e.target,n=k.current,r=null==n?void 0:n.contains(t),o=null==l?void 0:l.contains(t),i=t.closest("[data-radix-popper-content-wrapper]")||t.closest('[data-slot="popover-content"]')||t.closest('[role="dialog"]')||t.closest("[data-radix-portal]");r||o||i||b(e,"backdropClick")},t=function(e){"Escape"===e.key&&b(e,"escapeKeyDown")};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("keydown",t),function(){document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("keydown",t)}}},[i,l,b]),!P)return null;var N,R,H=function(){var e={position:"fixed",zIndex:1300,outline:"none"};if(l){var t=l.getBoundingClientRect(),n=window.innerWidth,r=window.innerHeight,o=k.current,i=o?o.offsetWidth:200,a=o?o.offsetHeight:100,c=t.top,u=t.left;"bottom"===s.vertical?c=t.bottom:"center"===s.vertical&&(c=t.top+t.height/2),"right"===s.horizontal?u=t.right:"center"===s.horizontal&&(u=t.left+t.width/2);var p="0%",f="0%",m=u,g=c;"center"===d.horizontal?(p="-50%",u-i/2<0?(p="0%",m=8):u+i/2>n&&(p="-100%",m=n-8)):"right"===d.horizontal?(p="-100%",u-i<0&&(p="0%",m=8)):(p="0%",u+i>n&&(p="-100%",m=n-8)),"center"===d.vertical?(f="-50%",c-a/2<0?(f="0%",g=8):c+a/2>r&&(f="-100%",g=r-8)):"bottom"===d.vertical?(f="-100%",c-a<0&&(f="0%",g=8)):(f="0%",c+a>r&&(f="-100%",g=r-8)),e.top=g,e.left=m,e.transform="translate("+p+", "+f+")";var h="0%",v="0%";"center"===d.horizontal?h="50%":"right"===d.horizontal&&(h="100%"),"center"===d.vertical?v="50%":"bottom"===d.vertical&&(v="100%"),e.transformOrigin=h+" "+v}return e}(),D=p({},{transition:"opacity 250ms cubic-bezier(0.4, 0, 0.2, 1)",visibility:"visible"},S?{opacity:1}:{opacity:0}),O=(N="0%",R="0%","center"===d.horizontal?N="50%":"right"===d.horizontal&&(N="100%"),"center"===d.vertical?R="50%":"bottom"===d.vertical&&(R="100%"),p({},{transition:"transform 300ms cubic-bezier(0.4, 0, 0.2, 1)",transformOrigin:N+" "+R},S?{transform:"scale(1)"}:{transform:"scale(0.95)"}));return o.createElement("div",p({ref:k,className:g,style:p({},H,D,v),role:"menu"},x),o.createElement("div",{style:p({borderRadius:"10px"},O)},o.createElement("div",{style:{position:"relative"}},t)))},J=function(e,t){return e===t||e!=e&&t!=t},Q=function(e,t){for(var n=e.length;n--;)if(J(e[n][0],t))return n;return-1},ee=Array.prototype.splice;function te(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}te.prototype.clear=function(){this.__data__=[],this.size=0},te.prototype.delete=function(e){var t=this.__data__,n=Q(t,e);return!(n<0||(n==t.length-1?t.pop():ee.call(t,n,1),--this.size,0))},te.prototype.get=function(e){var t=this.__data__,n=Q(t,e);return n<0?void 0:t[n][1]},te.prototype.has=function(e){return Q(this.__data__,e)>-1},te.prototype.set=function(e,t){var n=this.__data__,r=Q(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var ne=te,re="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function oe(e,t){return e(t={exports:{}},t.exports),t.exports}var ie,ae="object"==typeof re&&re&&re.Object===Object&&re,le="object"==typeof self&&self&&self.Object===Object&&self,ce=ae||le||Function("return this")(),se=ce.Symbol,ue=Object.prototype,de=ue.hasOwnProperty,pe=ue.toString,fe=se?se.toStringTag:void 0,me=Object.prototype.toString,ge=se?se.toStringTag:void 0,he=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ge&&ge in Object(e)?function(e){var t=de.call(e,fe),n=e[fe];try{e[fe]=void 0;var r=!0}catch(e){}var o=pe.call(e);return r&&(t?e[fe]=n:delete e[fe]),o}(e):function(e){return me.call(e)}(e)},ve=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},be=function(e){if(!ve(e))return!1;var t=he(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},xe=ce["__core-js_shared__"],ye=(ie=/[^.]+$/.exec(xe&&xe.keys&&xe.keys.IE_PROTO||""))?"Symbol(src)_1."+ie:"",Ce=Function.prototype.toString,Ee=function(e){if(null!=e){try{return Ce.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ke=/^\[object .+?Constructor\]$/,we=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Se=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!ve(e)||(t=e,ye&&ye in t))&&(be(e)?we:ke).test(Ee(e));var t}(n)?n:void 0},ze=Se(ce,"Map"),je=Se(Object,"create"),_e=Object.prototype.hasOwnProperty,Pe=Object.prototype.hasOwnProperty;function Ae(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ae.prototype.clear=function(){this.__data__=je?je(null):{},this.size=0},Ae.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ae.prototype.get=function(e){var t=this.__data__;if(je){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return _e.call(t,e)?t[e]:void 0},Ae.prototype.has=function(e){var t=this.__data__;return je?void 0!==t[e]:Pe.call(t,e)},Ae.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=je&&void 0===t?"__lodash_hash_undefined__":t,this};var Ne=Ae,Re=function(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map};function He(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}He.prototype.clear=function(){this.size=0,this.__data__={hash:new Ne,map:new(ze||ne),string:new Ne}},He.prototype.delete=function(e){var t=Re(this,e).delete(e);return this.size-=t?1:0,t},He.prototype.get=function(e){return Re(this,e).get(e)},He.prototype.has=function(e){return Re(this,e).has(e)},He.prototype.set=function(e,t){var n=Re(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};var De=He;function Oe(e){var t=this.__data__=new ne(e);this.size=t.size}Oe.prototype.clear=function(){this.__data__=new ne,this.size=0},Oe.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Oe.prototype.get=function(e){return this.__data__.get(e)},Oe.prototype.has=function(e){return this.__data__.has(e)},Oe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ne){var r=n.__data__;if(!ze||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new De(r)}return n.set(e,t),this.size=n.size,this};var Me=Oe,Te=function(){try{var e=Se(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Ie=function(e,t,n){"__proto__"==t&&Te?Te(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Be=Object.prototype.hasOwnProperty,Fe=function(e,t,n){var r=e[t];Be.call(e,t)&&J(r,n)&&(void 0!==n||t in e)||Ie(e,t,n)},Le=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var l=t[i],c=r?r(n[l],e[l],l,n,e):void 0;void 0===c&&(c=e[l]),o?Ie(n,l,c):Fe(n,l,c)}return n},We=function(e){return null!=e&&"object"==typeof e},Ue=function(e){return We(e)&&"[object Arguments]"==he(e)},Ve=Object.prototype,qe=Ve.hasOwnProperty,Xe=Ve.propertyIsEnumerable,Ge=Ue(function(){return arguments}())?Ue:function(e){return We(e)&&qe.call(e,"callee")&&!Xe.call(e,"callee")},Ye=Array.isArray,Ze=function(){return!1},$e=oe(function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,o=r&&r.exports===n?ce.Buffer:void 0;e.exports=(o?o.isBuffer:void 0)||Ze}),Ke=/^(?:0|[1-9]\d*)$/,Je=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Ke.test(e))&&e>-1&&e%1==0&&e<t},Qe=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},et={};et["[object Float32Array]"]=et["[object Float64Array]"]=et["[object Int8Array]"]=et["[object Int16Array]"]=et["[object Int32Array]"]=et["[object Uint8Array]"]=et["[object Uint8ClampedArray]"]=et["[object Uint16Array]"]=et["[object Uint32Array]"]=!0,et["[object Arguments]"]=et["[object Array]"]=et["[object ArrayBuffer]"]=et["[object Boolean]"]=et["[object DataView]"]=et["[object Date]"]=et["[object Error]"]=et["[object Function]"]=et["[object Map]"]=et["[object Number]"]=et["[object Object]"]=et["[object RegExp]"]=et["[object Set]"]=et["[object String]"]=et["[object WeakMap]"]=!1;var tt=function(e){return function(t){return e(t)}},nt=oe(function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,o=r&&r.exports===n&&ae.process,i=function(){try{return r&&r.require&&r.require("util").types||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=i}),rt=nt&&nt.isTypedArray,ot=rt?tt(rt):function(e){return We(e)&&Qe(e.length)&&!!et[he(e)]},it=Object.prototype.hasOwnProperty,at=function(e,t){var n=Ye(e),r=!n&&Ge(e),o=!n&&!r&&$e(e),i=!n&&!r&&!o&&ot(e),a=n||r||o||i,l=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=l.length;for(var s in e)!t&&!it.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Je(s,c))||l.push(s);return l},lt=Object.prototype,ct=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||lt)},st=function(e,t){return function(n){return e(t(n))}},ut=st(Object.keys,Object),dt=Object.prototype.hasOwnProperty,pt=function(e){return null!=e&&Qe(e.length)&&!be(e)},ft=function(e){return pt(e)?at(e):function(e){if(!ct(e))return ut(e);var t=[];for(var n in Object(e))dt.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)},mt=Object.prototype.hasOwnProperty,gt=function(e){return pt(e)?at(e,!0):function(e){if(!ve(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ct(e),n=[];for(var r in e)("constructor"!=r||!t&&mt.call(e,r))&&n.push(r);return n}(e)},ht=oe(function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,o=r&&r.exports===n?ce.Buffer:void 0,i=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=i?i(n):new e.constructor(n);return e.copy(r),r}}),vt=function(){return[]},bt=Object.prototype.propertyIsEnumerable,xt=Object.getOwnPropertySymbols,yt=xt?function(e){return null==e?[]:(e=Object(e),function(t,n){for(var r=-1,o=null==t?0:t.length,i=0,a=[];++r<o;){var l=t[r];bt.call(e,l)&&(a[i++]=l)}return a}(xt(e)))}:vt,Ct=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},Et=st(Object.getPrototypeOf,Object),kt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Ct(t,yt(e)),e=Et(e);return t}:vt,wt=function(e,t,n){var r=t(e);return Ye(e)?r:Ct(r,n(e))},St=function(e){return wt(e,ft,yt)},zt=function(e){return wt(e,gt,kt)},jt=Se(ce,"DataView"),_t=Se(ce,"Promise"),Pt=Se(ce,"Set"),At=Se(ce,"WeakMap"),Nt=Ee(jt),Rt=Ee(ze),Ht=Ee(_t),Dt=Ee(Pt),Ot=Ee(At),Mt=he;(jt&&"[object DataView]"!=Mt(new jt(new ArrayBuffer(1)))||ze&&"[object Map]"!=Mt(new ze)||_t&&"[object Promise]"!=Mt(_t.resolve())||Pt&&"[object Set]"!=Mt(new Pt)||At&&"[object WeakMap]"!=Mt(new At))&&(Mt=function(e){var t=he(e),n="[object Object]"==t?e.constructor:void 0,r=n?Ee(n):"";if(r)switch(r){case Nt:return"[object DataView]";case Rt:return"[object Map]";case Ht:return"[object Promise]";case Dt:return"[object Set]";case Ot:return"[object WeakMap]"}return t});var Tt=Mt,It=Object.prototype.hasOwnProperty,Bt=ce.Uint8Array,Ft=function(e){var t=new e.constructor(e.byteLength);return new Bt(t).set(new Bt(e)),t},Lt=/\w*$/,Wt=se?se.prototype:void 0,Ut=Wt?Wt.valueOf:void 0,Vt=Object.create,qt=function(){function e(){}return function(t){if(!ve(t))return{};if(Vt)return Vt(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Xt=nt&&nt.isMap,Gt=Xt?tt(Xt):function(e){return We(e)&&"[object Map]"==Tt(e)},Yt=nt&&nt.isSet,Zt=Yt?tt(Yt):function(e){return We(e)&&"[object Set]"==Tt(e)},$t={};$t["[object Arguments]"]=$t["[object Array]"]=$t["[object ArrayBuffer]"]=$t["[object DataView]"]=$t["[object Boolean]"]=$t["[object Date]"]=$t["[object Float32Array]"]=$t["[object Float64Array]"]=$t["[object Int8Array]"]=$t["[object Int16Array]"]=$t["[object Int32Array]"]=$t["[object Map]"]=$t["[object Number]"]=$t["[object Object]"]=$t["[object RegExp]"]=$t["[object Set]"]=$t["[object String]"]=$t["[object Symbol]"]=$t["[object Uint8Array]"]=$t["[object Uint8ClampedArray]"]=$t["[object Uint16Array]"]=$t["[object Uint32Array]"]=!0,$t["[object Error]"]=$t["[object Function]"]=$t["[object WeakMap]"]=!1;var Kt=function e(t,n,r,o,i,a){var l,c=1&n,s=2&n,u=4&n;if(r&&(l=i?r(t,o,i,a):r(t)),void 0!==l)return l;if(!ve(t))return t;var d=Ye(t);if(d){if(l=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&It.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!c)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(t,l)}else{var p=Tt(t),f="[object Function]"==p||"[object GeneratorFunction]"==p;if($e(t))return ht(t,c);if("[object Object]"==p||"[object Arguments]"==p||f&&!i){if(l=s||f?{}:function(e){return"function"!=typeof e.constructor||ct(e)?{}:qt(Et(e))}(t),!c)return s?function(e,t){return Le(e,kt(e),t)}(t,function(e,t){return e&&Le(t,gt(t),e)}(l,t)):function(e,t){return Le(e,yt(e),t)}(t,function(e,t){return e&&Le(t,ft(t),e)}(l,t))}else{if(!$t[p])return i?t:{};l=function(e,t,n){var r,o,i=e.constructor;switch(t){case"[object ArrayBuffer]":return Ft(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return function(e,t){var n=t?Ft(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?Ft(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case"[object Map]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return(o=new(r=e).constructor(r.source,Lt.exec(r))).lastIndex=r.lastIndex,o;case"[object Set]":return new i;case"[object Symbol]":return Ut?Object(Ut.call(e)):{}}}(t,p,c)}}a||(a=new Me);var m=a.get(t);if(m)return m;a.set(t,l),Zt(t)?t.forEach(function(o){l.add(e(o,n,r,o,t,a))}):Gt(t)&&t.forEach(function(o,i){l.set(i,e(o,n,r,i,t,a))});var g=d?void 0:(u?s?zt:St:s?gt:ft)(t);return function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n););}(g||t,function(o,i){g&&(o=t[i=o]),Fe(l,i,e(o,n,r,i,t,a))}),l},Jt=function(e){return Kt(e,5)};function Qt(e){return r.createElement(U,p({className:"close-icon",viewBox:"0 0 24 24"},e),r.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.createElement("path",{d:"M19 6.41L17.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"}))}var en=r.memo(Qt);function tn(e){return r.createElement(U,p({className:"check-icon",viewBox:"0 0 24 24"},e),r.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}))}var nn=r.memo(tn);function rn(e){return r.createElement(U,p({className:"notifications-icon",viewBox:"0 0 24 24"},e),r.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"}),r.createElement("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5v6z"}))}var on=r.memo(rn),an=function(){var e=x();return{P:c.styled("p")({margin:0,padding:0}),CustomTypography:c.styled("p")(function(e){var t=p({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e));return p({margin:0,padding:0},t)}),FlexBox:c.styled("div")({display:"flex",alignItems:"center"}),CustomFlexBox:c.styled("div")(function(e){var t=e.justifyContent,n=e.gap,r=e.flexDire