/*! For license information please see diceComponents.js.LICENSE.txt */ import*as e from"react";import*as t from"@dndbeyond/dice";import*as n from"react-dom";import*as r from"jss";import*as o from"@mui/material";import*as i from"@mui/icons-material";import*as a from"jss-preset-default";var s={9721:(e,t,n)=>{n.d(t,{Z:()=>re});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?u(x,--y):0,g--,10===v&&(g=1,m--),v}function Z(){return v=y2||E(v)>3?"":" "}function N(e,t){for(;--t&&Z()&&!(v<48||v>102||v>57&&v<65||v>70&&v<97););return j(e,C()+(t<6&&32==O()&&32==Z()))}function A(e){for(;Z();)switch(v){case e:return y;case 34:case 39:34!==e&&39!==e&&A(v);break;case 40:41===e&&A(e);break;case 92:Z()}return y}function D(e,t){for(;Z()&&e+v!==57&&(e+v!==84||47!==O()););return"/*"+j(t,y-1)+"*"+i(47===e?e:Z())}function $(e){for(;!E(O());)Z();return j(e,y)}var L="-ms-",I="-moz-",z="-webkit-",_="comm",B="rule",F="decl",W="@keyframes";function V(e,t){for(var n="",r=f(e),o=0;o0&&p(I)-b&&h(v>32?Y(I+";",r,n,b-1):Y(l(I," ","")+";",r,n,b-2),f);break;case 59:I+=";";default:if(h(L=q(I,t,n,m,g,o,d,R,P=[],A=[],b),a),123===E)if(0===g)H(I,t,L,L,P,a,b,d,A);else switch(99===y&&110===u(I,3)?100:y){case 100:case 108:case 109:case 115:H(e,L,L,r&&h(q(e,L,L,0,0,o,d,R,o,P=[],b),A),o,A,b,d,r?P:A);break;default:H(I,L,L,L,[""],A,0,d,A)}}m=g=v=0,w=j=1,R=I="",b=s;break;case 58:b=1+p(I),v=x;default:if(w<1)if(123==E)--w;else if(125==E&&0==w++&&125==S())continue;switch(I+=i(E),E*w){case 38:j=g>0?1:(I+="\f",-1);break;case 44:d[m++]=(p(I)-1)*j,j=1;break;case 64:45===O()&&(I+=M(Z())),y=O(),g=b=p(R=I+=$(C())),E++;break;case 45:45===x&&2==p(I)&&(w=0)}}return a}function q(e,t,n,r,i,a,c,u,p,h,m){for(var g=i-1,b=0===i?a:[""],y=f(b),v=0,x=0,k=0;v0?b[S]+" "+Z:l(Z,/&\f/g,b[S])))&&(p[k++]=O);return w(e,t,n,0===i?B:u,p,h,m)}function G(e,t,n){return w(e,t,n,_,i(v),d(e,2,-2),0)}function Y(e,t,n,r){return w(e,t,n,F,d(e,0,r),d(e,r+1,-1),r)}var X=function(e,t,n){for(var r=0,o=0;r=o,o=O(),38===r&&12===o&&(t[n]=1),!E(o);)Z();return j(e,y)},J=new WeakMap,Q=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||J.get(n))&&!r){J.set(e,!0);for(var o=[],a=function(e,t){return P(function(e,t){var n=-1,r=44;do{switch(E(r)){case 0:38===r&&12===O()&&(t[n]=1),e[n]+=X(y-1,t,n);break;case 2:e[n]+=M(r);break;case 4:if(44===r){e[++n]=58===O()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=Z());return e}(R(e),t))}(t,o),s=n.props,l=0,c=0;l6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+I+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?te(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,p(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+z)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(45===u(e,14)?"inline-":"")+"box$3$1"+z+"$2$3$1"+L+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return z+e+L+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+L+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+L+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+L+e+e}return e}var ne=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case F:e.return=te(e.value,e.length);break;case W:return V([k(e,{value:l(e.value,"@","@"+z)})],r);case B:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return V([k(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return V([k(e,{props:[l(t,/:(plac\w+)/,":"+z+"input-$1")]}),k(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),k(e,{props:[l(t,/:(plac\w+)/,L+"input-$1")]})],r)}return""}))}}],re=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,i,a=e.stylisPlugins||ne,s={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n{function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{Z:()=>r})},9396:(e,t,n)=>{n.d(t,{T:()=>s,w:()=>a});var r=n(810),o=n(9721),i=(n(1245),n(2668),r.createContext("undefined"!=typeof HTMLElement?(0,o.Z)({key:"css"}):null));i.Provider;var a=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(i);return e(t,o,n)}))},s=r.createContext({})},1245:(e,t,n)=>{n.d(t,{O:()=>h});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=n(6894),i=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!=typeof e},c=(0,o.Z)((function(e){return s(e)?e:e.replace(i,"-$&").toLowerCase()})),u=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(a,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===r[e]||s(e)||"number"!=typeof t||0===t?t:t+"px"};function d(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)p={name:r.name,styles:r.styles,next:p},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:p}}},2668:(e,t,n)=>{n.d(t,{L:()=>i});var r=n(810),o=!!r.useInsertionEffect&&r.useInsertionEffect,i=o||function(e){return e()};o||r.useLayoutEffect},3655:(e,t,n)=>{var r=n(1600);t.Z=void 0;var o=r(n(8671)),i=n(2322),a=(0,o.default)((0,i.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");t.Z=a},8671:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(8757)},4380:(e,t,n)=>{n.d(t,{Z:()=>y});var r=n(7896),o=n(1461),i=n(810),a=n(8523),s=n(9075),l=n(7342),c=n(3995),u=n(7764),d=n(9222),p=n(5672);function f(e){return(0,p.Z)("MuiSvgIcon",e)}(0,d.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var h=n(2322);const m=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],g=(0,u.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,l.Z)(n.color)}`],t[`fontSize${(0,l.Z)(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,b,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(i=o.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(l=e.typography)||null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(p=null==(f=(e.vars||e).palette)||null==(h=f[t.color])?void 0:h.main)?p:{action:null==(m=(e.vars||e).palette)||null==(g=m.action)?void 0:g.active,disabled:null==(b=(e.vars||e).palette)||null==(y=b.action)?void 0:y.disabled,inherit:void 0}[t.color]}})),b=i.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiSvgIcon"}),{children:i,className:u,color:d="inherit",component:p="svg",fontSize:b="medium",htmlColor:y,inheritViewBox:v=!1,titleAccess:x,viewBox:w="0 0 24 24"}=n,k=(0,o.Z)(n,m),S=(0,r.Z)({},n,{color:d,component:p,fontSize:b,instanceFontSize:e.fontSize,inheritViewBox:v,viewBox:w}),Z={};v||(Z.viewBox=w);const O=(e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root","inherit"!==t&&`color${(0,l.Z)(t)}`,`fontSize${(0,l.Z)(n)}`]};return(0,s.Z)(o,f,r)})(S);return(0,h.jsxs)(g,(0,r.Z)({as:p,className:(0,a.Z)(O.root,u),focusable:"false",color:y,"aria-hidden":!x||void 0,role:x?"img":void 0,ref:t},Z,k,{ownerState:S,children:[i,x?(0,h.jsx)("title",{children:x}):null]}))}));b.muiName="SvgIcon";const y=b},8523:(e,t,n)=>{function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;to});const o=function(){for(var e,t,n=0,o="";n{n.d(t,{Z:()=>L});var r=n(7896),o=n(1461),i=n(1512),a=n(8970),s=n(9411),l=n(9795),c=n(7450),u=n(7591);const d={black:"#000",white:"#fff"},p={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},f={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},h={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},b={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},v=["mode","contrastThreshold","tonalOffset"],x={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:d.white,default:d.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}},w={text:{primary:d.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:d.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 k(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,u.$n)(e.main,o):"dark"===t&&(e.dark=(0,u._j)(e.main,i)))}const S=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],Z={textTransform:"uppercase"},O='"Roboto", "Helvetica", "Arial", sans-serif';function C(e,t){const n="function"==typeof t?t(e):t,{fontFamily:i=O,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:p=16,allVariants:f,pxToRem:h}=n,m=(0,o.Z)(n,S),g=s/14,b=h||(e=>e/p*g+"rem"),y=(e,t,n,o,a)=>{return(0,r.Z)({fontFamily:i,fontWeight:e,fontSize:b(t),lineHeight:n},i===O?{letterSpacing:(s=o/t,Math.round(1e5*s)/1e5+"em")}:{},a,f);var s},v={h1:y(l,96,1.167,-1.5),h2:y(l,60,1.2,-.5),h3:y(c,48,1.167,0),h4:y(c,34,1.235,.25),h5:y(c,24,1.334,0),h6:y(u,20,1.6,.15),subtitle1:y(c,16,1.75,.15),subtitle2:y(u,14,1.57,.1),body1:y(c,16,1.5,.15),body2:y(c,14,1.43,.15),button:y(u,14,1.75,.4,Z),caption:y(c,12,1.66,.4),overline:y(c,12,2.66,1,Z),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,a.Z)((0,r.Z)({htmlFontSize:p,pxToRem:b,fontFamily:i,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},v),m,{clone:!1})}function j(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const E=["none",j(0,2,1,-1,0,1,1,0,0,1,3,0),j(0,3,1,-2,0,2,2,0,0,1,5,0),j(0,3,3,-2,0,3,4,0,0,1,8,0),j(0,2,4,-1,0,4,5,0,0,1,10,0),j(0,3,5,-1,0,5,8,0,0,1,14,0),j(0,3,5,-1,0,6,10,0,0,1,18,0),j(0,4,5,-2,0,7,10,1,0,2,16,1),j(0,5,5,-3,0,8,10,1,0,3,14,2),j(0,5,6,-3,0,9,12,1,0,3,16,2),j(0,6,6,-3,0,10,14,1,0,4,18,3),j(0,6,7,-4,0,11,15,1,0,4,20,3),j(0,7,8,-4,0,12,17,2,0,5,22,4),j(0,7,8,-4,0,13,19,2,0,5,24,4),j(0,7,9,-4,0,14,21,2,0,5,26,4),j(0,8,9,-5,0,15,22,2,0,6,28,5),j(0,8,10,-5,0,16,24,2,0,6,30,5),j(0,8,11,-5,0,17,26,2,0,6,32,5),j(0,9,11,-5,0,18,28,2,0,7,34,6),j(0,9,12,-6,0,19,29,2,0,7,36,6),j(0,10,13,-6,0,20,31,3,0,8,38,7),j(0,10,13,-6,0,21,33,3,0,8,40,7),j(0,10,14,-6,0,22,35,3,0,8,42,7),j(0,11,14,-7,0,23,36,3,0,9,44,8),j(0,11,15,-7,0,24,38,3,0,9,46,8)],R=["duration","easing","delay"],P={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)"},M={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function T(e){return`${Math.round(e)}ms`}function N(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function A(e){const t=(0,r.Z)({},P,e.easing),n=(0,r.Z)({},M,e.duration);return(0,r.Z)({getAutoHeightDuration:N,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:a=t.easeInOut,delay:s=0}=r;return(0,o.Z)(r,R),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:T(i)} ${a} ${"string"==typeof s?s:T(s)}`)).join(",")}},e,{easing:t,duration:n})}const D={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},$=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const L=function(e={},...t){const{mixins:n={},palette:S={},transitions:Z={},typography:O={}}=e,j=(0,o.Z)(e,$);if(e.vars)throw new Error((0,i.Z)(18));const R=function(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:s=.2}=e,l=(0,o.Z)(e,v),c=e.primary||function(e="light"){return"dark"===e?{main:g[200],light:g[50],dark:g[400]}:{main:g[700],light:g[400],dark:g[800]}}(t),S=e.secondary||function(e="light"){return"dark"===e?{main:f[200],light:f[50],dark:f[400]}:{main:f[500],light:f[300],dark:f[700]}}(t),Z=e.error||function(e="light"){return"dark"===e?{main:h[500],light:h[300],dark:h[700]}:{main:h[700],light:h[400],dark:h[800]}}(t),O=e.info||function(e="light"){return"dark"===e?{main:b[400],light:b[300],dark:b[700]}:{main:b[700],light:b[500],dark:b[900]}}(t),C=e.success||function(e="light"){return"dark"===e?{main:y[400],light:y[300],dark:y[700]}:{main:y[800],light:y[500],dark:y[900]}}(t),j=e.warning||function(e="light"){return"dark"===e?{main:m[400],light:m[300],dark:m[700]}:{main:"#ed6c02",light:m[500],dark:m[900]}}(t);function E(e){return(0,u.mi)(e,w.text.primary)>=n?w.text.primary:x.text.primary}const R=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:a=700})=>{if(!(e=(0,r.Z)({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error((0,i.Z)(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error((0,i.Z)(12,t?` (${t})`:"",JSON.stringify(e.main)));return k(e,"light",o,s),k(e,"dark",a,s),e.contrastText||(e.contrastText=E(e.main)),e},P={dark:w,light:x};return(0,a.Z)((0,r.Z)({common:(0,r.Z)({},d),mode:t,primary:R({color:c,name:"primary"}),secondary:R({color:S,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:R({color:Z,name:"error"}),warning:R({color:j,name:"warning"}),info:R({color:O,name:"info"}),success:R({color:C,name:"success"}),grey:p,contrastThreshold:n,getContrastText:E,augmentColor:R,tonalOffset:s},P[t]),l)}(S),P=(0,s.Z)(e);let M=(0,a.Z)(P,{mixins:(T=P.breakpoints,N=n,(0,r.Z)({toolbar:{minHeight:56,[T.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[T.up("sm")]:{minHeight:64}}},N)),palette:R,shadows:E.slice(),typography:C(R,O),transitions:A(Z),zIndex:(0,r.Z)({},D)});var T,N;return M=(0,a.Z)(M,j),M=t.reduce(((e,t)=>(0,a.Z)(e,t)),M),M.unstable_sxConfig=(0,r.Z)({},l.Z,null==j?void 0:j.unstable_sxConfig),M.unstable_sx=function(e){return(0,c.Z)({sx:e,theme:this})},M}},9957:(e,t,n)=>{n.d(t,{Z:()=>r});const r=(0,n(4707).Z)()},6912:(e,t,n)=>{n.d(t,{Z:()=>r});const r="$$material"},7764:(e,t,n)=>{n.d(t,{ZP:()=>x,FO:()=>y});var r=n(1461),o=n(7896),i=n(9752),a=n(9411),s=n(1290);const l=["variant"];function c(e){return 0===e.length}function u(e){const{variant:t}=e,n=(0,r.Z)(e,l);let o=t||"";return Object.keys(n).sort().forEach((t=>{o+="color"===t?c(o)?e[t]:(0,s.Z)(e[t]):`${c(o)?t:(0,s.Z)(t)}${(0,s.Z)(e[t].toString())}`})),o}var d=n(7450);const p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function f(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const h=(0,a.Z)();function m({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}var g=n(9957),b=n(6912);const y=e=>f(e)&&"classes"!==e,v=function(e={}){const{themeId:t,defaultTheme:n=h,rootShouldForwardProp:a=f,slotShouldForwardProp:s=f}=e,l=e=>(0,d.Z)((0,o.Z)({},e,{theme:m((0,o.Z)({},e,{defaultTheme:n,themeId:t}))}));return l.__mui_systemSx=!0,(e,c={})=>{(0,i.Co)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:d,slot:h,skipVariantsResolver:g,skipSx:b,overridesResolver:y}=c,v=(0,r.Z)(c,p),x=void 0!==g?g:h&&"Root"!==h||!1,w=b||!1;let k=f;"Root"===h?k=a:h?k=s:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(k=void 0);const S=(0,i.ZP)(e,(0,o.Z)({shouldForwardProp:k,label:void 0},v)),Z=(r,...i)=>{const a=i?i.map((e=>"function"==typeof e&&e.__emotion_real!==e?r=>e((0,o.Z)({},r,{theme:m((0,o.Z)({},r,{defaultTheme:n,themeId:t}))})):e)):[];let s=r;d&&y&&a.push((e=>{const r=m((0,o.Z)({},e,{defaultTheme:n,themeId:t})),i=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(d,r);if(i){const t={};return Object.entries(i).forEach((([n,i])=>{t[n]="function"==typeof i?i((0,o.Z)({},e,{theme:r})):i})),y(e,t)}return null})),d&&!x&&a.push((e=>{const r=m((0,o.Z)({},e,{defaultTheme:n,themeId:t}));return((e,t,n,r)=>{var o,i;const{ownerState:a={}}=e,s=[],l=null==n||null==(o=n.components)||null==(i=o[r])?void 0:i.variants;return l&&l.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{a[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&s.push(t[u(n.props)])})),s})(e,((e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=u(e.props);r[t]=e.style})),r})(d,r),r,d)})),w||a.push(l);const c=a.length-i.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");s=[...r,...e],s.raw=[...r.raw,...e]}else"function"==typeof r&&r.__emotion_real!==r&&(s=e=>r((0,o.Z)({},e,{theme:m((0,o.Z)({},e,{defaultTheme:n,themeId:t}))})));const p=S(s,...a);return e.muiName&&(p.muiName=e.muiName),p};return S.withConfig&&(Z.withConfig=S.withConfig),Z}}({themeId:b.Z,defaultTheme:g.Z,rootShouldForwardProp:y}),x=v},3995:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(3022),o=n(7156);var i=n(9957),a=n(6912);function s({props:e,name:t}){return function({props:e,name:t,defaultTheme:n,themeId:i}){let a=(0,o.Z)(n);i&&(a=a[i]||a);const s=function(e){const{theme:t,name:n,props:o}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.Z)(t.components[n].defaultProps,o):o}({theme:a,name:t,props:e});return s}({props:e,name:t,defaultTheme:i.Z,themeId:a.Z})}},7342:(e,t,n)=>{n.d(t,{Z:()=>r});const r=n(1290).Z},3869:(e,t,n)=>{n.d(t,{Z:()=>r});const r=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}},8757:(e,t,n)=>{n.r(t),n.d(t,{capitalize:()=>o.Z,createChainedFunction:()=>i,createSvgIcon:()=>u,debounce:()=>d.Z,deprecatedPropType:()=>p,isMuiElement:()=>f,ownerDocument:()=>h.Z,ownerWindow:()=>m.Z,requirePropFactory:()=>g,setRef:()=>b,unstable_ClassNameGenerator:()=>j,unstable_useEnhancedEffect:()=>y,unstable_useId:()=>w,unsupportedProp:()=>k,useControlled:()=>S,useEventCallback:()=>Z.Z,useForkRef:()=>O.Z,useIsFocusVisible:()=>C.Z});var r=n(8542),o=n(7342);const i=n(8419).Z;var a=n(7896),s=n(810),l=n(4380),c=n(2322);function u(e,t){function n(n,r){return(0,c.jsx)(l.Z,(0,a.Z)({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=l.Z.muiName,s.memo(s.forwardRef(n))}var d=n(3869);const p=function(e,t){return()=>null},f=function(e,t){return s.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)};var h=n(6425),m=n(8043);const g=function(e,t){return()=>null},b=n(5377).Z,y=n(1399).Z;let v=0;const x=s.useId,w=function(e){if(void 0!==x){const t=x();return null!=e?e:t}return function(e){const[t,n]=s.useState(e),r=e||t;return s.useEffect((()=>{null==t&&(v+=1,n(`mui-${v}`))}),[t]),r}(e)},k=function(e,t,n,r,o){return null},S=function({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=s.useRef(void 0!==e),[i,a]=s.useState(t);return[o?e:i,s.useCallback((e=>{o||a(e)}),[])]};var Z=n(8647),O=n(8659),C=n(8926);const j={configure:e=>{r.Z.configure(e)}}},6425:(e,t,n)=>{n.d(t,{Z:()=>r});const r=n(6855).Z},8043:(e,t,n)=>{n.d(t,{Z:()=>r});const r=n(7270).Z},8647:(e,t,n)=>{n.d(t,{Z:()=>r});const r=n(7817).Z},8659:(e,t,n)=>{n.d(t,{Z:()=>r});const r=n(4501).Z},8926:(e,t,n)=>{n.d(t,{Z:()=>d});var r=n(810);let o,i=!0,a=!1;const s={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 l(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function c(){i=!1}function u(){"hidden"===this.visibilityState&&a&&(i=!0)}const d=function(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",l,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",u,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!function(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return i||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!s[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,window.clearTimeout(o),o=window.setTimeout((()=>{a=!1}),100),t.current=!1,!0)},ref:e}}},9752:(e,t,n)=>{n.d(t,{ZP:()=>y,Co:()=>v});var r=n(7896),o=n(810),i=n(6894),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(0,i.Z)((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(9396),c=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},u=n(1245),d=n(2668),p=s,f=function(e){return"theme"!==e},h=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?p:f},m=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return c(t,n,r),(0,d.L)((function(){return function(e,t,n){c(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)})),null},b=function e(t,n){var i,a,s=t.__emotion_real===t,c=s&&t.__emotion_base||t;void 0!==n&&(i=n.label,a=n.target);var d=m(t,n,s),p=d||h(c),f=!p("as");return function(){var b=arguments,y=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&y.push("label:"+i+";"),null==b[0]||void 0===b[0].raw)y.push.apply(y,b);else{y.push(b[0][0]);for(var v=b.length,x=1;x{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},9929:(e,t,n)=>{n.d(t,{L7:()=>s,VO:()=>r,W8:()=>a,k9:()=>i});const r={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${r[e]}px)`};function i(e,t,n){const i=e.theme||{};if(Array.isArray(t)){const e=i.breakpoints||o;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=i.breakpoints||o;return Object.keys(t).reduce(((o,i)=>{if(-1!==Object.keys(e.values||r).indexOf(i))o[e.up(i)]=n(t[i],i);else{const e=i;o[e]=t[e]}return o}),{})}return n(t)}function a(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function s(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}},7591:(e,t,n)=>{n.d(t,{$n:()=>d,Fq:()=>c,_j:()=>u,mi:()=>l});var r=n(1512);function o(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.Z)(9,e));let o,a=e.substring(t+1,e.length-1);if("color"===n){if(a=a.split(" "),o=a.shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error((0,r.Z)(10,o))}else a=a.split(",");return a=a.map((e=>parseFloat(e))),{type:n,values:a,colorSpace:o}}function a(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function s(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(function(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),l=(e,t=(e+n/30)%12)=>o-s*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),a({type:c,values:u})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l(e,t){const n=s(e),r=s(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function c(e,t){return e=i(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,a(e)}function u(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function d(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return a(e)}},9411:(e,t,n)=>{n.d(t,{Z:()=>p});var r=n(7896),o=n(1461),i=n(8970);const a=["values","unit","step"],s={borderRadius:4};var l=n(7649),c=n(7450),u=n(9795);const d=["breakpoints","palette","spacing","shape"],p=function(e={},...t){const{breakpoints:n={},palette:p={},spacing:f,shape:h={}}=e,m=(0,o.Z)(e,d),g=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:i=5}=e,s=(0,o.Z)(e,a),l=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,r.Z)({},e,{[t.key]:t.val})),{})})(t),c=Object.keys(l);function u(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function d(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-i/100}${n})`}function p(e,r){const o=c.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[c[o]]?t[c[o]]:r)-i/100}${n})`}return(0,r.Z)({keys:c,values:l,up:u,down:d,between:p,only:function(e){return c.indexOf(e)+1(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(f);let y=(0,i.Z)({breakpoints:g,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},p),spacing:b,shape:(0,r.Z)({},s,h)},m);return y=t.reduce(((e,t)=>(0,i.Z)(e,t)),y),y.unstable_sxConfig=(0,r.Z)({},u.Z,null==m?void 0:m.unstable_sxConfig),y.unstable_sx=function(e){return(0,c.Z)({sx:e,theme:this})},y}},8329:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(8970);const o=function(e,t){return t?(0,r.Z)(e,t,{clone:!1}):e}},7649:(e,t,n)=>{n.d(t,{hB:()=>h,eI:()=>f,NA:()=>m,e6:()=>b,o3:()=>y});var r=n(9929),o=n(2818),i=n(8329);const a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return e=>(void 0===t[e]&&(t[e]=(e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(""),r=a[t],o=s[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})(e)),t[e])}(),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[...u,...d];function f(e,t,n,r){var i;const a=null!=(i=(0,o.DW)(e,t,!1))?i:n;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>{}}function h(e){return f(e,"spacing",8)}function m(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function g(e,t){const n=h(e.theme);return Object.keys(e).map((o=>function(e,t,n,o){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=m(t,n),e)),{})}(c(n),o),a=e[n];return(0,r.k9)(e,a,i)}(e,t,o,n))).reduce(i.Z,{})}function b(e){return g(e,u)}function y(e){return g(e,d)}function v(e){return g(e,p)}b.propTypes={},b.filterProps=u,y.propTypes={},y.filterProps=d,v.propTypes={},v.filterProps=p},2818:(e,t,n)=>{n.d(t,{DW:()=>i,Jq:()=>a,ZP:()=>s});var r=n(1290),o=n(9929);function i(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function a(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:i(e,n)||r,t&&(o=t(o,r,e)),o}const s=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=i(e.theme,s)||{};return(0,o.k9)(e,c,(e=>{let o=a(u,l,e);return e===o&&"string"==typeof e&&(o=a(u,l,`${t}${"default"===e?"":(0,r.Z)(e)}`,e)),!1===n?o:{[n]:o}}))};return c.propTypes={},c.filterProps=[t],c}},9795:(e,t,n)=>{n.d(t,{Z:()=>M});var r=n(7649),o=n(2818),i=n(8329);const a=function(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?(0,i.Z)(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n};var s=n(9929);function l(e){return"number"!=typeof e?e:`${e}px solid`}const c=(0,o.ZP)({prop:"border",themeKey:"borders",transform:l}),u=(0,o.ZP)({prop:"borderTop",themeKey:"borders",transform:l}),d=(0,o.ZP)({prop:"borderRight",themeKey:"borders",transform:l}),p=(0,o.ZP)({prop:"borderBottom",themeKey:"borders",transform:l}),f=(0,o.ZP)({prop:"borderLeft",themeKey:"borders",transform:l}),h=(0,o.ZP)({prop:"borderColor",themeKey:"palette"}),m=(0,o.ZP)({prop:"borderTopColor",themeKey:"palette"}),g=(0,o.ZP)({prop:"borderRightColor",themeKey:"palette"}),b=(0,o.ZP)({prop:"borderBottomColor",themeKey:"palette"}),y=(0,o.ZP)({prop:"borderLeftColor",themeKey:"palette"}),v=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.eI)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r.NA)(t,e)});return(0,s.k9)(e,e.borderRadius,n)}return null};v.propTypes={},v.filterProps=["borderRadius"],a(c,u,d,p,f,h,m,g,b,y,v);const x=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.eI)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r.NA)(t,e)});return(0,s.k9)(e,e.gap,n)}return null};x.propTypes={},x.filterProps=["gap"];const w=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.eI)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r.NA)(t,e)});return(0,s.k9)(e,e.columnGap,n)}return null};w.propTypes={},w.filterProps=["columnGap"];const k=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.eI)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r.NA)(t,e)});return(0,s.k9)(e,e.rowGap,n)}return null};function S(e,t){return"grey"===t?t:e}function Z(e){return e<=1&&0!==e?100*e+"%":e}k.propTypes={},k.filterProps=["rowGap"],a(x,w,k,(0,o.ZP)({prop:"gridColumn"}),(0,o.ZP)({prop:"gridRow"}),(0,o.ZP)({prop:"gridAutoFlow"}),(0,o.ZP)({prop:"gridAutoColumns"}),(0,o.ZP)({prop:"gridAutoRows"}),(0,o.ZP)({prop:"gridTemplateColumns"}),(0,o.ZP)({prop:"gridTemplateRows"}),(0,o.ZP)({prop:"gridTemplateAreas"}),(0,o.ZP)({prop:"gridArea"})),a((0,o.ZP)({prop:"color",themeKey:"palette",transform:S}),(0,o.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:S}),(0,o.ZP)({prop:"backgroundColor",themeKey:"palette",transform:S}));const O=(0,o.ZP)({prop:"width",transform:Z}),C=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,o;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(o=r.values)?void 0:o[t])||s.VO[t]||Z(t)}};return(0,s.k9)(e,e.maxWidth,t)}return null};C.filterProps=["maxWidth"];const j=(0,o.ZP)({prop:"minWidth",transform:Z}),E=(0,o.ZP)({prop:"height",transform:Z}),R=(0,o.ZP)({prop:"maxHeight",transform:Z}),P=(0,o.ZP)({prop:"minHeight",transform:Z}),M=((0,o.ZP)({prop:"size",cssProperty:"width",transform:Z}),(0,o.ZP)({prop:"size",cssProperty:"height",transform:Z}),a(O,C,j,E,R,P,(0,o.ZP)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:v},color:{themeKey:"palette",transform:S},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:S},backgroundColor:{themeKey:"palette",transform:S},p:{style:r.o3},pt:{style:r.o3},pr:{style:r.o3},pb:{style:r.o3},pl:{style:r.o3},px:{style:r.o3},py:{style:r.o3},padding:{style:r.o3},paddingTop:{style:r.o3},paddingRight:{style:r.o3},paddingBottom:{style:r.o3},paddingLeft:{style:r.o3},paddingX:{style:r.o3},paddingY:{style:r.o3},paddingInline:{style:r.o3},paddingInlineStart:{style:r.o3},paddingInlineEnd:{style:r.o3},paddingBlock:{style:r.o3},paddingBlockStart:{style:r.o3},paddingBlockEnd:{style:r.o3},m:{style:r.e6},mt:{style:r.e6},mr:{style:r.e6},mb:{style:r.e6},ml:{style:r.e6},mx:{style:r.e6},my:{style:r.e6},margin:{style:r.e6},marginTop:{style:r.e6},marginRight:{style:r.e6},marginBottom:{style:r.e6},marginLeft:{style:r.e6},marginX:{style:r.e6},marginY:{style:r.e6},marginInline:{style:r.e6},marginInlineStart:{style:r.e6},marginInlineEnd:{style:r.e6},marginBlock:{style:r.e6},marginBlockStart:{style:r.e6},marginBlockEnd:{style:r.e6},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:x},rowGap:{style:k},columnGap:{style:w},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Z},maxWidth:{style:C},minWidth:{transform:Z},height:{transform:Z},maxHeight:{transform:Z},minHeight:{transform:Z},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},7450:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(1290),o=n(8329),i=n(2818),a=n(9929),s=n(9795);const l=function(){function e(e,t,n,o){const s={[e]:t,theme:n},l=o[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:d,style:p}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const f=(0,i.DW)(n,u)||{};return p?p(s):(0,a.k9)(s,t,(t=>{let n=(0,i.Jq)(f,d,t);return t===n&&"string"==typeof t&&(n=(0,i.Jq)(f,d,`${e}${"default"===t?"":(0,r.Z)(t)}`,t)),!1===c?n:{[c]:n}}))}return function t(n){var r;const{sx:i,theme:l={}}=n||{};if(!i)return null;const c=null!=(r=l.unstable_sxConfig)?r:s.Z;function u(n){let r=n;if("function"==typeof n)r=n(l);else if("object"!=typeof n)return n;if(!r)return null;const i=(0,a.W8)(l.breakpoints),s=Object.keys(i);let u=i;return Object.keys(r).forEach((n=>{const i="function"==typeof(s=r[n])?s(l):s;var s;if(null!=i)if("object"==typeof i)if(c[n])u=(0,o.Z)(u,e(n,i,l,c));else{const e=(0,a.k9)({theme:l},i,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,i)?u=(0,o.Z)(u,e):u[n]=t({sx:i,theme:l})}else u=(0,o.Z)(u,e(n,i,l,c))})),(0,a.L7)(s,u)}return Array.isArray(i)?i.map(u):u(i)}}();l.filterProps=["sx"];const c=l},7156:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(9411),o=n(810),i=n(9396);const a=(0,r.Z)(),s=function(e=a){return function(e=null){const t=o.useContext(i.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}(e)}},8542:(e,t,n)=>{n.d(t,{Z:()=>o});const r=e=>e,o=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})()},1290:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(1512);function o(e){if("string"!=typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},9075:(e,t,n)=>{function r(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}n.d(t,{Z:()=>r})},8419:(e,t,n)=>{function r(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}n.d(t,{Z:()=>r})},8970:(e,t,n)=>{n.d(t,{P:()=>o,Z:()=>a});var r=n(7896);function o(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function i(e){if(!o(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=i(e[n])})),t}function a(e,t,n={clone:!0}){const s=n.clone?(0,r.Z)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((r=>{"__proto__"!==r&&(o(t[r])&&r in e&&o(e[r])?s[r]=a(e[r],t[r],n):n.clone?s[r]=o(t[r])?i(t[r]):t[r]:s[r]=t[r])})),s}},1512:(e,t,n)=>{function r(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;er})},5672:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(8542);const o={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function i(e,t,n="Mui"){const i=o[t];return i?`${n}-${i}`:`${r.Z.generate(e)}-${t}`}},9222:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(5672);function o(e,t,n="Mui"){const o={};return t.forEach((t=>{o[t]=(0,r.Z)(e,t,n)})),o}},6855:(e,t,n)=>{function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:()=>r})},7270:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(6855);function o(e){return(0,r.Z)(e).defaultView||window}},3022:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(7896);function o(e,t){const n=(0,r.Z)({},t);return Object.keys(e).forEach((i=>{if(i.toString().match(/^(components|slots)$/))n[i]=(0,r.Z)({},e[i],n[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){const a=e[i]||{},s=t[i];n[i]={},s&&Object.keys(s)?a&&Object.keys(a)?(n[i]=(0,r.Z)({},s),Object.keys(a).forEach((e=>{n[i][e]=o(a[e],s[e])}))):n[i]=s:n[i]=a}else void 0===n[i]&&(n[i]=e[i])})),n}},5377:(e,t,n)=>{function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:()=>r})},1399:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(810);const o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},7817:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(810),o=n(1399);function i(e){const t=r.useRef(e);return(0,o.Z)((()=>{t.current=e})),r.useCallback(((...e)=>(0,t.current)(...e)),[])}},4501:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(810),o=n(5377);function i(...e){return r.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{(0,o.Z)(e,t)}))}),e)}},4959:(e,t,n)=>{const r=n(1103),o={};for(const e of Object.keys(r))o[r[e]]=e;const i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=i;for(const e of Object.keys(i)){if(!("channels"in i[e]))throw new Error("missing channels property: "+e);if(!("labels"in i[e]))throw new Error("missing channel labels property: "+e);if(i[e].labels.length!==i[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=i[e];delete i[e].channels,delete i[e].labels,Object.defineProperty(i[e],"channels",{value:t}),Object.defineProperty(i[e],"labels",{value:n})}i.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=i-o;let s,l;i===o?s=0:t===i?s=(n-r)/a:n===i?s=2+(r-t)/a:r===i&&(s=4+(t-n)/a),s=Math.min(60*s,360),s<0&&(s+=360);const c=(o+i)/2;return l=i===o?0:c<=.5?a/(i+o):a/(2-i-o),[s,100*l,100*c]},i.rgb.hsv=function(e){let t,n,r,o,i;const a=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(a,s,l),u=c-Math.min(a,s,l),d=function(e){return(c-e)/6/u+.5};return 0===u?(o=0,i=0):(i=u/c,t=d(a),n=d(s),r=d(l),a===c?o=r-n:s===c?o=1/3+t-r:l===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},i.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=i.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,100*a,100*r]},i.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r);return[100*((1-t-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*o]},i.rgb.keyword=function(e){const t=o[e];if(t)return t;let n,i=1/0;for(const t of Object.keys(r)){const o=(s=r[t],((a=e)[0]-s[0])**2+(a[1]-s[1])**2+(a[2]-s[2])**2);o.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},i.rgb.lab=function(e){const t=i.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];return n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,[116*r-16,500*(n-r),200*(r-o)]},i.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,i,a;if(0===n)return a=255*r,[a,a,a];o=r<.5?r*(1+n):r+n-r*n;const s=2*r-o,l=[0,0,0];for(let e=0;e<3;e++)i=t+1/3*-(e-1),i<0&&i++,i>1&&i--,a=6*i<1?s+6*(o-s)*i:2*i<1?o:3*i<2?s+(o-s)*(2/3-i)*6:s,l[e]=255*a;return l},i.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const i=Math.max(r,.01);return r*=2,n*=r<=1?r:2-r,o*=i<=1?i:2-i,[t,100*(0===r?2*o/(i+o):2*n/(r+n)),(r+n)/2*100]},i.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,i=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*i),l=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}},i.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let i,a;a=(2-n)*r;const s=(2-n)*o;return i=n*o,i/=s<=1?s:2-s,i=i||0,a/=2,[t,100*i,100*a]},i.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let i;o>1&&(n/=o,r/=o);const a=Math.floor(6*t),s=1-r;i=6*t-a,0!=(1&a)&&(i=1-i);const l=n+i*(s-n);let c,u,d;switch(a){default:case 6:case 0:c=s,u=l,d=n;break;case 1:c=l,u=s,d=n;break;case 2:c=n,u=s,d=l;break;case 3:c=n,u=l,d=s;break;case 4:c=l,u=n,d=s;break;case 5:c=s,u=n,d=l}return[255*c,255*u,255*d]},i.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},i.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,i,a;return o=3.2406*t+-1.5372*n+-.4986*r,i=-.9689*t+1.8758*n+.0415*r,a=.0557*t+-.204*n+1.057*r,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),[255*o,255*i,255*a]},i.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},i.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const o=n**3,i=t**3,a=r**3;return n=o>.008856?o:(n-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},i.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;return o=360*Math.atan2(r,n)/2/Math.PI,o<0&&(o+=360),[t,Math.sqrt(n*n+r*r),o]},i.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},i.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=null===t?i.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),0===a)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===a&&(s+=60),s},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},i.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},i.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},i.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},i.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),i=Math.min(Math.min(t,n),r),a=o-i;let s,l;return s=a<1?i/(1-a):0,l=a<=0?0:o===t?(n-r)/a%6:o===n?2+(r-t)/a:4+(t-n)/a,l/=6,l%=1,[360*l,100*a,100*s]},i.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},i.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},i.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const o=[0,0,0],i=t%1*6,a=i%1,s=1-a;let l=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return l=(1-n)*r,[255*(n*o[0]+l),255*(n*o[1]+l),255*(n*o[2]+l)]},i.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},i.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},i.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},i.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=function(e){return[0,0,e[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},841:(e,t,n)=>{const r=n(4959),o=n(9325),i={};Object.keys(r).forEach((e=>{i[e]={},Object.defineProperty(i[e],"channels",{value:r[e].channels}),Object.defineProperty(i[e],"labels",{value:r[e].labels});const t=o(e);Object.keys(t).forEach((n=>{const r=t[n];i[e][n]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=i},9325:(e,t,n)=>{const r=n(4959);function o(e,t){return function(n){return t(e(n))}}function i(e,t){const n=[t[e].parent,e];let i=r[t[e].parent][e],a=t[e].parent;for(;t[a].parent;)n.unshift(t[a].parent),i=o(r[t[a].parent][a],i),a=t[a].parent;return i.conversion=n,i}e.exports=function(e){const t=function(e){const t=function(){const e={},t=Object.keys(r);for(let n=t.length,r=0;r{e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},7804:(e,t,n)=>{var r=n(1103),o=n(6047),i=Object.hasOwnProperty,a=Object.create(null);for(var s in r)i.call(r,s)&&(a[r[s]]=s);var l=e.exports={to:{},get:{}};function c(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),n="hsl";break;case"hwb":t=l.get.hwb(e),n="hwb";break;default:t=l.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,n,o,a=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=t[2],t=t[1],n=0;n<3;n++){var s=2*n;a[n]=parseInt(t.slice(s,s+2),16)}o&&(a[3]=parseInt(o,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(o=(t=t[1])[3],n=0;n<3;n++)a[n]=parseInt(t[n]+t[n],16);o&&(a[3]=parseInt(o+o,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)a[n]=parseInt(t[n+1],0);t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:i.call(r,t[1])?((a=r[t[1]])[3]=1,a):null:null;for(n=0;n<3;n++)a[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}for(n=0;n<3;n++)a[n]=c(a[n],0,255);return a[3]=c(a[3],0,1),a},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},l.to.hex=function(){var e=o(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=o(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=o(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},l.to.hsl=function(){var e=o(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=o(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return a[e.slice(0,3)]}},1346:(e,t,n)=>{const r=n(7804),o=n(841),i=["keyword","gray","hex"],a={};for(const e of Object.keys(o))a[[...o[e].labels].sort().join("")]=e;const s={};function l(e,t){if(!(this instanceof l))return new l(e,t);if(t&&t in i&&(t=null),t&&!(t in o))throw new Error("Unknown model: "+t);let n,c;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof l)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=r.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,c=o[this.model].channels,this.color=t.value.slice(0,c),this.valpha="number"==typeof t.value[c]?t.value[c]:1}else if(e.length>0){this.model=t||"rgb",c=o[this.model].channels;const n=Array.prototype.slice.call(e,0,c);this.color=p(n,c),this.valpha="number"==typeof e[c]?e[c]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const r=t.sort().join("");if(!(r in a))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=a[r];const{labels:i}=o[this.model],s=[];for(n=0;n(e%360+360)%360)),saturationl:u("hsl",1,d(100)),lightness:u("hsl",2,d(100)),saturationv:u("hsv",1,d(100)),value:u("hsv",2,d(100)),chroma:u("hcg",1,d(100)),gray:u("hcg",2,d(100)),white:u("hwb",1,d(100)),wblack:u("hwb",2,d(100)),cyan:u("cmyk",0,d(100)),magenta:u("cmyk",1,d(100)),yellow:u("cmyk",2,d(100)),black:u("cmyk",3,d(100)),x:u("xyz",0,d(95.047)),y:u("xyz",1,d(100)),z:u("xyz",2,d(108.833)),l:u("lab",0,d(100)),a:u("lab",1),b:u("lab",2),keyword(e){return void 0!==e?new l(e):o[this.model].keyword(this.color)},hex(e){return void 0!==e?new l(e):r.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new l(e);const t=this.rgb().round().color;let n=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===n.length&&(n="0"+n),r.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const e=r/255;t[n]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return l.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),o=void 0===t?.5:t,i=2*o-1,a=n.alpha()-r.alpha(),s=((i*a==-1?i:(i+a)/(1+i*a))+1)/2,c=1-s;return l.rgb(s*n.red()+c*r.red(),s*n.green()+c*r.green(),s*n.blue()+c*r.blue(),n.alpha()*o+r.alpha()*(1-o))}};for(const e of Object.keys(o)){if(i.includes(e))continue;const{channels:t}=o[e];l.prototype[e]=function(...t){return this.model===e?new l(this):t.length>0?new l(t,e):new l([...(n=o[this.model][e].raw(this.color),Array.isArray(n)?n:[n]),this.valpha],e);var n},l[e]=function(...n){let r=n[0];return"number"==typeof r&&(r=p(n,t)),new l(r,e)}}function c(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function u(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(s[r]||(s[r]=[]))[t]=n;return e=e[0],function(r){let o;return void 0!==r?(n&&(r=n(r)),o=this[e](),o.color[t]=r,o):(o=this[e]().color[t],n&&(o=n(o)),o)}}function d(e){return function(t){return Math.max(0,Math.min(e,t))}}function p(e,t){for(let n=0;n{var r=n(3887),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g{var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case o:return t}}}function k(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return k(e)||w(e)===u},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===v||e.$$typeof===x||e.$$typeof===b)},t.typeOf=w},3887:(e,t,n)=>{e.exports=n(3459)},7320:e=>{var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l{n(7320);var r=n(810),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:a.current}}t.jsx=c,t.jsxs=c},2322:(e,t,n)=>{e.exports=n(1837)},6047:(e,t,n)=>{var r=n(905),o=Array.prototype.concat,i=Array.prototype.slice,a=e.exports=function(e){for(var t=[],n=0,a=e.length;n{e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},810:t=>{t.exports=e},1600:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},7609:(e,t,n)=>{var r=n(7425).default;function o(){e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),s=new E(r||[]);return a(i,"_invoke",{value:Z(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h={};function m(){}function g(){}function b(){}var y={};d(y,l,(function(){return this}));var v=Object.getPrototypeOf,x=v&&v(v(R([])));x&&x!==n&&i.call(x,l)&&(y=x);var w=b.prototype=m.prototype=Object.create(y);function k(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,a,s,l){var c=f(e[o],e,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,l)}))}l(c.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function Z(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=f(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function O(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,h;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function R(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(s&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:R(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},7425:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},2841:(e,t,n)=>{var r=n(7609)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},7896:(e,t,n)=>{function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;tr})},1461:(e,t,n)=>{function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}n.d(t,{Z:()=>r})}},l={};function c(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={exports:{}};return s[e](n,n.exports,c),n.exports}c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};(()=>{function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===s(t)?t:String(t)}function d(e,t){for(var n=0;nHi,xN:()=>Ai,tV:()=>Wi,Ff:()=>Ui});const v=(x={Analytics:()=>t.Analytics,DefaultDiceUserConfig:()=>t.DefaultDiceUserConfig,Dice:()=>t.Dice,DiceNotation:()=>t.DiceNotation,DiceType:()=>t.DiceType,DiceTypes:()=>t.DiceTypes,EventActions:()=>t.EventActions,EventCategories:()=>t.EventCategories,Logger:()=>t.Logger,RollKind:()=>t.RollKind,RollRequest:()=>t.RollRequest,RollRequestRoll:()=>t.RollRequestRoll,RollType:()=>t.RollType},w={},c.d(w,x),w);var x,w,k=c(810);function S(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Z(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){S(i,r,o,a,s,"next",e)}function s(e){S(i,r,o,a,s,"throw",e)}a(void 0)}))}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var B=c(7896);function F(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:H.Z;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return(0,U.P)(n)?(0,B.Z)({},r,n):r}:(0,B.Z)({},r,t),(0,B.Z)({},o,{sx:i})}var Y=c(7156);const X=["className","component"];var J=c(8542),Q=c(4707),ee=c(6912);const te=(0,Q.Z)(),ne=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=(0,V.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(K.Z);return k.forwardRef((function(e,a){const s=(0,Y.Z)(n),l=G(e),{className:c,component:u="div"}=l,d=(0,z.Z)(l,X);return(0,T.jsx)(i,(0,B.Z)({as:u,ref:a,className:W(c,o?o(r):r),theme:t&&s[t]||s},d))}))}({themeId:ee.Z,defaultTheme:te,defaultClassName:"MuiBox-root",generateClassName:J.Z.generate}),re=ne;var oe=c(8523),ie=c(3022),ae=c(9075),se=c(7591),le=c(7764),ce=c(3995),ue=c(8659),de=c(8647),pe=c(8926);function fe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,h(e,t)}const he=k.default.createContext(null);function me(e,t){var n=Object.create(null);return e&&k.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,k.isValidElement)(e)?t(e):e}(e)})),n}function ge(e,t,n){return null!=n[t]?n[t]:e.props[t]}function be(e,t,n){var r=me(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;re;const Te=Se(je||(je=Me` 0% { transform: scale(0); opacity: 0.1; } 100% { transform: scale(1); opacity: 0.3; } `)),Ne=Se(Ee||(Ee=Me` 0% { opacity: 1; } 100% { opacity: 0; } `)),Ae=Se(Re||(Re=Me` 0% { transform: scale(1); } 50% { transform: scale(0.92); } 100% { transform: scale(1); } `)),De=(0,le.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),$e=(0,le.ZP)((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=k.useState(!1),p=(0,oe.Z)(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=(0,oe.Z)(n.child,u&&n.childLeaving,r&&n.childPulsate);return s||u||d(!0),k.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,c);return()=>{clearTimeout(e)}}}),[l,s,c]),(0,T.jsx)("span",{className:p,style:f,children:(0,T.jsx)("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Pe||(Pe=Me` opacity: 0; position: absolute; &.${0} { opacity: 0.3; transform: scale(1); animation-name: ${0}; animation-duration: ${0}ms; animation-timing-function: ${0}; } &.${0} { animation-duration: ${0}ms; } & .${0} { opacity: 1; display: block; width: 100%; height: 100%; border-radius: 50%; background-color: currentColor; } & .${0} { opacity: 0; animation-name: ${0}; animation-duration: ${0}ms; animation-timing-function: ${0}; } & .${0} { position: absolute; /* @noflip */ left: 0px; top: 0; animation-name: ${0}; animation-duration: 2500ms; animation-timing-function: ${0}; animation-iteration-count: infinite; animation-delay: 200ms; } `),Oe.rippleVisible,Te,550,(({theme:e})=>e.transitions.easing.easeInOut),Oe.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Oe.child,Oe.childLeaving,Ne,550,(({theme:e})=>e.transitions.easing.easeInOut),Oe.childPulsate,Ae,(({theme:e})=>e.transitions.easing.easeInOut)),Le=k.forwardRef((function(e,t){const n=(0,ce.Z)({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=(0,z.Z)(n,Ce),[s,l]=k.useState([]),c=k.useRef(0),u=k.useRef(null);k.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=k.useRef(!1),p=k.useRef(null),f=k.useRef(null),h=k.useRef(null);k.useEffect((()=>()=>{clearTimeout(p.current)}),[]);const m=k.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l((e=>[...e,(0,T.jsx)($e,{classes:{ripple:(0,oe.Z)(o.ripple,Oe.ripple),rippleVisible:(0,oe.Z)(o.rippleVisible,Oe.rippleVisible),ripplePulsate:(0,oe.Z)(o.ripplePulsate,Oe.ripplePulsate),child:(0,oe.Z)(o.child,Oe.child),childLeaving:(0,oe.Z)(o.childLeaving,Oe.childLeaving),childPulsate:(0,oe.Z)(o.childPulsate,Oe.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)])),c.current+=1,u.current=a}),[o]),g=k.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m]),b=k.useCallback((()=>{g({},{pulsate:!0})}),[g]),y=k.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{y(e,t)})));f.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[]);return k.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:y})),[b,g,y]),(0,T.jsx)(De,(0,B.Z)({className:(0,oe.Z)(Oe.root,o.root,i),ref:h},a,{children:(0,T.jsx)(xe,{component:null,exit:!0,children:s})}))}));var Ie=c(5672);function ze(e){return(0,Ie.Z)("MuiButtonBase",e)}const _e=(0,Ze.Z)("MuiButtonBase",["root","disabled","focusVisible"]),Be=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Fe=(0,le.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${_e.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),We=k.forwardRef((function(e,t){const n=(0,ce.Z)({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:y,onKeyDown:v,onKeyUp:x,onMouseDown:w,onMouseLeave:S,onMouseUp:Z,onTouchEnd:O,onTouchMove:C,onTouchStart:j,tabIndex:E=0,TouchRippleProps:R,touchRippleRef:P,type:M}=n,N=(0,z.Z)(n,Be),A=k.useRef(null),D=k.useRef(null),$=(0,ue.Z)(D,P),{isFocusVisibleRef:L,onFocus:I,onBlur:_,ref:F}=(0,pe.Z)(),[W,V]=k.useState(!1);l&&W&&V(!1),k.useImperativeHandle(r,(()=>({focusVisible:()=>{V(!0),A.current.focus()}})),[]);const[K,U]=k.useState(!1);k.useEffect((()=>{U(!0)}),[]);const H=K&&!c&&!l;function q(e,t,n=u){return(0,de.Z)((r=>(t&&t(r),!n&&D.current&&D.current[e](r),!0)))}k.useEffect((()=>{W&&d&&!c&&K&&D.current.pulsate()}),[c,d,W,K]);const G=q("start",w),Y=q("stop",m),X=q("stop",g),J=q("stop",Z),Q=q("stop",(e=>{W&&e.preventDefault(),S&&S(e)})),ee=q("start",j),te=q("stop",O),ne=q("stop",C),re=q("stop",(e=>{_(e),!1===L.current&&V(!1),f&&f(e)}),!1),ie=(0,de.Z)((e=>{A.current||(A.current=e.currentTarget),I(e),!0===L.current&&(V(!0),y&&y(e)),b&&b(e)})),se=()=>{const e=A.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},le=k.useRef(!1),fe=(0,de.Z)((e=>{d&&!le.current&&W&&D.current&&" "===e.key&&(le.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&se()&&" "===e.key&&e.preventDefault(),v&&v(e),e.target===e.currentTarget&&se()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))})),he=(0,de.Z)((e=>{d&&" "===e.key&&D.current&&W&&!e.defaultPrevented&&(le.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&se()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let me=s;"button"===me&&(N.href||N.to)&&(me=p);const ge={};"button"===me?(ge.type=void 0===M?"button":M,ge.disabled=l):(N.href||N.to||(ge.role="button"),l&&(ge["aria-disabled"]=l));const be=(0,ue.Z)(t,F,A),ye=(0,B.Z)({},n,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:E,focusVisible:W}),ve=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i={root:["root",t&&"disabled",n&&"focusVisible"]},a=(0,ae.Z)(i,ze,o);return n&&r&&(a.root+=` ${r}`),a})(ye);return(0,T.jsxs)(Fe,(0,B.Z)({as:me,className:(0,oe.Z)(ve.root,a),ownerState:ye,onBlur:re,onClick:h,onContextMenu:Y,onFocus:ie,onKeyDown:fe,onKeyUp:he,onMouseDown:G,onMouseLeave:Q,onMouseUp:J,onDragLeave:X,onTouchEnd:te,onTouchMove:ne,onTouchStart:ee,ref:be,tabIndex:l?-1:E,type:M},ge,N,{children:[i,H?(0,T.jsx)(Le,(0,B.Z)({ref:$,center:o},R)):null]}))}));var Ve=c(7342);function Ke(e){return(0,Ie.Z)("MuiButton",e)}const Ue=(0,Ze.Z)("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),He=k.createContext({}),qe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ge=e=>(0,B.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Ye=(0,le.ZP)(We,{shouldForwardProp:e=>(0,le.FO)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,Ve.Z)(n.color)}`],t[`size${(0,Ve.Z)(n.size)}`],t[`${n.variant}Size${(0,Ve.Z)(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return(0,B.Z)({},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":(0,B.Z)({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,se.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,se.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{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})`:(0,se.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":(0,B.Z)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Ue.focusVisible}`]:(0,B.Z)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Ue.disabled}`]:(0,B.Z)({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${(0,se.Fq)(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ue.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ue.disabled}`]:{boxShadow:"none"}})),Xe=(0,le.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${(0,Ve.Z)(n.size)}`]]}})((({ownerState:e})=>(0,B.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Ge(e)))),Je=(0,le.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${(0,Ve.Z)(n.size)}`]]}})((({ownerState:e})=>(0,B.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Ge(e)))),Qe=k.forwardRef((function(e,t){const n=k.useContext(He),r=(0,ie.Z)(n,e),o=(0,ce.Z)({props:r,name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:y="text"}=o,v=(0,z.Z)(o,qe),x=(0,B.Z)({},o,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:y}),w=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${(0,Ve.Z)(t)}`,`size${(0,Ve.Z)(o)}`,`${i}Size${(0,Ve.Z)(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${(0,Ve.Z)(o)}`],endIcon:["endIcon",`iconSize${(0,Ve.Z)(o)}`]},l=(0,ae.Z)(s,Ke,a);return(0,B.Z)({},a,l)})(x),S=g&&(0,T.jsx)(Xe,{className:w.startIcon,ownerState:x,children:g}),Z=p&&(0,T.jsx)(Je,{className:w.endIcon,ownerState:x,children:p});return(0,T.jsxs)(Ye,(0,B.Z)({ownerState:x,className:(0,oe.Z)(n.className,w.root,l),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:(0,oe.Z)(w.focusVisible,f),ref:t,type:b},v,{classes:w,children:[S,i,Z]}))})),et=Qe;function tt(e){return(0,Ie.Z)("MuiDivider",e)}(0,Ze.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const nt=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],rt=(0,le.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,B.Z)({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)`:(0,se.Fq)(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>(0,B.Z)({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>(0,B.Z)({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>(0,B.Z)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>(0,B.Z)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),ot=(0,le.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,B.Z)({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),it=k.forwardRef((function(e,t){const n=(0,ce.Z)({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=(0,z.Z)(n,nt),h=(0,B.Z)({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e,c={root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]};return(0,ae.Z)(c,tt,r)})(h);return(0,T.jsx)(rt,(0,B.Z)({as:a,className:(0,oe.Z)(m.root,i),role:u,ref:t,ownerState:h},f,{children:o?(0,T.jsx)(ot,{className:m.wrapper,ownerState:h,children:o}):null}))})),at=k.createContext({});function st(e){return(0,Ie.Z)("MuiList",e)}(0,Ze.Z)("MuiList",["root","padding","dense","subheader"]);const lt=["children","className","component","dense","disablePadding","subheader"],ct=(0,le.ZP)("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})=>(0,B.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),ut=k.forwardRef((function(e,t){const n=(0,ce.Z)({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=(0,z.Z)(n,lt),u=k.useMemo((()=>({dense:a})),[a]),d=(0,B.Z)({},n,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e,i={root:["root",!n&&"padding",r&&"dense",o&&"subheader"]};return(0,ae.Z)(i,st,t)})(d);return(0,T.jsx)(at.Provider,{value:u,children:(0,T.jsxs)(ct,(0,B.Z)({as:i,className:(0,oe.Z)(p.root,o),ref:t,ownerState:d},c,{children:[l,r]}))})}));function dt(e){return(0,Ie.Z)("MuiListSubheader",e)}(0,Ze.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const pt=["className","color","component","disableGutters","disableSticky","inset"],ft=(0,le.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,Ve.Z)(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>(0,B.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}))),ht=k.forwardRef((function(e,t){const n=(0,ce.Z)({props:e,name:"MuiListSubheader"}),{className:r,color:o="default",component:i="li",disableGutters:a=!1,disableSticky:s=!1,inset:l=!1}=n,c=(0,z.Z)(n,pt),u=(0,B.Z)({},n,{color:o,component:i,disableGutters:a,disableSticky:s,inset:l}),d=(e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,a={root:["root","default"!==n&&`color${(0,Ve.Z)(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return(0,ae.Z)(a,dt,t)})(u);return(0,T.jsx)(ft,(0,B.Z)({as:i,className:(0,oe.Z)(d.root,r),ref:t,ownerState:u},c))}));ht.muiSkipListHighlight=!0;const mt=ht;var gt=c(3869),bt=c(6425),yt=c(8043);const vt=(e=>{var t={};return c.d(t,e),t})({createPortal:()=>n.createPortal,default:()=>n.default,findDOMNode:()=>n.findDOMNode});var xt="unmounted",wt="exited",kt="entering",St="entered",Zt="exiting",Ot=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=wt,r.appearStatus=kt):o=St:o=t.unmountOnExit||t.mountOnEnter?xt:wt,r.state={status:o},r.nextCallback=null,r}fe(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===xt?{status:wt}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==kt&&n!==St&&(t=kt):n!==kt&&n!==St||(t=Zt)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===kt){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:vt.default.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===wt&&this.setState({status:xt})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[vt.default.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;e||n?(this.props.onEnter(i,a),this.safeSetState({status:kt},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:St},(function(){t.props.onEntered(i,a)}))}))}))):this.safeSetState({status:St},(function(){t.props.onEntered(i)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:vt.default.findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:Zt},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:wt},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:wt},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:vt.default.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===xt)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,z.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return k.default.createElement(he.Provider,{value:null},"function"==typeof n?n(e,r):k.default.cloneElement(k.default.Children.only(n),r))},t}(k.default.Component);function Ct(){}Ot.contextType=he,Ot.propTypes={},Ot.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ct,onEntering:Ct,onEntered:Ct,onExit:Ct,onExiting:Ct,onExited:Ct},Ot.UNMOUNTED=xt,Ot.EXITED=wt,Ot.ENTERING=kt,Ot.ENTERED=St,Ot.EXITING=Zt;const jt=Ot;var Et=c(9957);function Rt(){const e=(0,Y.Z)(Et.Z);return e[ee.Z]||e}const Pt=e=>e.scrollTop;function Mt(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}const Tt=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Nt(e){return`scale(${e}, ${e**2})`}const At={entering:{opacity:1,transform:Nt(1)},entered:{opacity:1,transform:"none"}},Dt="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),$t=k.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=jt}=e,g=(0,z.Z)(e,Tt),b=k.useRef(),y=k.useRef(),v=Rt(),x=k.useRef(null),w=(0,ue.Z)(x,o.ref,t),S=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},Z=S(c),O=S(((e,t)=>{Pt(e);const{duration:n,delay:r,easing:o}=Mt({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=v.transitions.getAutoHeightDuration(e.clientHeight),y.current=a):a=n,e.style.transition=[v.transitions.create("opacity",{duration:a,delay:r}),v.transitions.create("transform",{duration:Dt?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)})),C=S(l),j=S(p),E=S((e=>{const{duration:t,delay:n,easing:r}=Mt({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=v.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[v.transitions.create("opacity",{duration:o,delay:n}),v.transitions.create("transform",{duration:Dt?o:.666*o,delay:Dt?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Nt(.75),u&&u(e)})),R=S(d);return k.useEffect((()=>()=>{clearTimeout(b.current)}),[]),(0,T.jsx)(m,(0,B.Z)({appear:r,in:a,nodeRef:x,onEnter:O,onEntered:C,onEntering:Z,onExit:E,onExited:R,onExiting:j,addEndListener:e=>{"auto"===h&&(b.current=setTimeout(e,y.current||0)),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>k.cloneElement(o,(0,B.Z)({style:(0,B.Z)({opacity:0,transform:Nt(.75),visibility:"exited"!==e||a?void 0:"hidden"},At[e],f,o.props.style),ref:w},t))}))}));$t.muiSupportAuto=!0;const Lt=$t;var It=c(4501),zt=c(6855),_t=c(7817),Bt=c(8419),Ft=c(1399),Wt=c(5377);const Vt=k.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=k.useState(null),s=(0,It.Z)(k.isValidElement(n)?n.ref:null,t);if((0,Ft.Z)((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),(0,Ft.Z)((()=>{if(i&&!o)return(0,Wt.Z)(t,i),()=>{(0,Wt.Z)(t,null)}}),[t,i,o]),o){if(k.isValidElement(n)){const e={ref:s};return k.cloneElement(n,e)}return(0,T.jsx)(k.Fragment,{children:n})}return(0,T.jsx)(k.Fragment,{children:i?vt.createPortal(n,i):i})}));var Kt=c(7270);function Ut(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ht(e){return parseInt((0,Kt.Z)(e).getComputedStyle(e).paddingRight,10)||0}function qt(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Ut(e,o)}))}function Gt(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}const Yt=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Xt(e){const t=[],n=[];return Array.from(e.querySelectorAll(Yt)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Jt(){return!0}const Qt=function(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Xt,isEnabled:a=Jt,open:s}=e,l=k.useRef(!1),c=k.useRef(null),u=k.useRef(null),d=k.useRef(null),p=k.useRef(null),f=k.useRef(!1),h=k.useRef(null),m=(0,It.Z)(t.ref,h),g=k.useRef(null);k.useEffect((()=>{s&&h.current&&(f.current=!n)}),[n,s]),k.useEffect((()=>{if(!s||!h.current)return;const e=(0,zt.Z)(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),k.useEffect((()=>{if(!s||!h.current)return;const e=(0,zt.Z)(h.current),t=t=>{const{current:n}=h;if(null!==n)if(e.hasFocus()&&!r&&a()&&!l.current){if(!n.contains(e.activeElement)){if(t&&p.current!==t.target||e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(r=i(h.current)),r.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else n.focus()}}else l.current=!1},n=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(l.current=!0,u.current&&u.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[n,r,o,a,s,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return(0,T.jsxs)(k.Fragment,{children:[(0,T.jsx)("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelStart"}),k.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,T.jsx)("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelEnd"})]})};function en(e){return(0,Ie.Z)("MuiModal",e)}function tn(e){return"string"==typeof e}function nn(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function an(e,t){return"function"==typeof e?e(t):e}const sn=["elementType","externalSlotProps","ownerState"];function ln(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=(0,z.Z)(e,sn),a=an(r,o),{props:s,internalRef:l}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=rn(null==o?void 0:o.className,null==r?void 0:r.className,i,null==n?void 0:n.className),t=(0,B.Z)({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=(0,B.Z)({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}((0,B.Z)({},o,r)),s=on(r),l=on(o),c=t(a),u=rn(null==c?void 0:c.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=(0,B.Z)({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=(0,B.Z)({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}((0,B.Z)({},i,{externalSlotProps:a})),c=(0,It.Z)(l,null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref),u=function(e,t,n){return void 0===e||tn(e)?t:(0,B.Z)({},t,{ownerState:(0,B.Z)({},t.ownerState,n)})}(n,(0,B.Z)({},s,{ref:c}),o);return u}const cn={disableDefaultClasses:!1},un=k.createContext(cn),dn=["children","closeAfterTransition","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],pn=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Ut(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);qt(t,e.mount,e.modalRef,r,!0);const o=Gt(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=Gt(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=function(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,zt.Z)(e);return t.body===e?(0,Kt.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}((0,zt.Z)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Ht(r)+e}px`;const t=(0,zt.Z)(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Ht(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=(0,zt.Z)(r).body;else{const t=r.parentElement,n=(0,Kt.Z)(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Gt(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Ut(e.modalRef,t),qt(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Ut(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},fn=k.forwardRef((function(e,t){var n,r;const{children:o,closeAfterTransition:i=!1,container:a,disableAutoFocus:s=!1,disableEnforceFocus:l=!1,disableEscapeKeyDown:c=!1,disablePortal:u=!1,disableRestoreFocus:d=!1,disableScrollLock:p=!1,hideBackdrop:f=!1,keepMounted:h=!1,manager:m=pn,onBackdropClick:g,onClose:b,onKeyDown:y,open:v,onTransitionEnter:x,onTransitionExited:w,slotProps:S={},slots:Z={}}=e,O=(0,z.Z)(e,dn),C=m,[j,E]=k.useState(!v),R=k.useRef({}),P=k.useRef(null),M=k.useRef(null),N=(0,It.Z)(M,t),A=function(e){return!!e&&e.props.hasOwnProperty("in")}(o),D=null==(n=e["aria-hidden"])||n,$=()=>(R.current.modalRef=M.current,R.current.mountNode=P.current,R.current),L=()=>{C.mount($(),{disableScrollLock:p}),M.current&&(M.current.scrollTop=0)},I=(0,_t.Z)((()=>{const e=function(e){return"function"==typeof e?e():e}(a)||(0,zt.Z)(P.current).body;C.add($(),e),M.current&&L()})),_=k.useCallback((()=>C.isTopModal($())),[C]),F=(0,_t.Z)((e=>{P.current=e,e&&M.current&&(v&&_()?L():Ut(M.current,D))})),W=k.useCallback((()=>{C.remove($(),D)}),[C,D]);k.useEffect((()=>()=>{W()}),[W]),k.useEffect((()=>{v?I():A&&i||W()}),[v,W,A,i,I]);const V=(0,B.Z)({},e,{closeAfterTransition:i,disableAutoFocus:s,disableEnforceFocus:l,disableEscapeKeyDown:c,disablePortal:u,disableRestoreFocus:d,disableScrollLock:p,exited:j,hideBackdrop:f,keepMounted:h}),K=(e=>{const{open:t,exited:n}=e,r={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,ae.Z)(r,function(e){const{disableDefaultClasses:t}=k.useContext(un);return n=>t?"":e(n)}(en))})(V),U={};void 0===o.props.tabIndex&&(U.tabIndex="-1"),A&&(U.onEnter=(0,Bt.Z)((()=>{E(!1),x&&x()}),o.props.onEnter),U.onExited=(0,Bt.Z)((()=>{E(!0),w&&w(),i&&W()}),o.props.onExited));const H=null!=(r=Z.root)?r:"div",q=ln({elementType:H,externalSlotProps:S.root,externalForwardedProps:O,additionalProps:{ref:N,role:"presentation",onKeyDown:e=>{y&&y(e),"Escape"===e.key&&_()&&(c||(e.stopPropagation(),b&&b(e,"escapeKeyDown")))}},className:K.root,ownerState:V}),G=Z.backdrop,Y=ln({elementType:G,externalSlotProps:S.backdrop,additionalProps:{"aria-hidden":!0,onClick:e=>{e.target===e.currentTarget&&(g&&g(e),b&&b(e,"backdropClick"))},open:v},className:K.backdrop,ownerState:V});return h||v||A&&!j?(0,T.jsx)(Vt,{ref:F,container:a,disablePortal:u,children:(0,T.jsxs)(H,(0,B.Z)({},q,{children:[!f&&G?(0,T.jsx)(G,(0,B.Z)({},Y)):null,(0,T.jsx)(Qt,{disableEnforceFocus:l,disableAutoFocus:s,disableRestoreFocus:d,isEnabled:_,open:v,children:k.cloneElement(o,U)})]}))}):null})),hn=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],mn={entering:{opacity:1},entered:{opacity:1}},gn=k.forwardRef((function(e,t){const n=Rt(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:b=jt}=e,y=(0,z.Z)(e,hn),v=k.useRef(null),x=(0,ue.Z)(v,a.ref,t),w=e=>t=>{if(e){const n=v.current;void 0===t?e(n):e(n,t)}},S=w(d),Z=w(((e,t)=>{Pt(e);const r=Mt({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),O=w(u),C=w(h),j=w((e=>{const t=Mt({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),E=w(f);return(0,T.jsx)(b,(0,B.Z)({appear:i,in:l,nodeRef:v,onEnter:Z,onEntered:O,onEntering:S,onExit:j,onExited:E,onExiting:C,addEndListener:e=>{o&&o(v.current,e)},timeout:g},y,{children:(e,t)=>k.cloneElement(a,(0,B.Z)({style:(0,B.Z)({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},mn[e],m,a.props.style),ref:x},t))}))})),bn=gn;function yn(e){return(0,Ie.Z)("MuiBackdrop",e)}(0,Ze.Z)("MuiBackdrop",["root","invisible"]);const vn=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],xn=(0,le.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>(0,B.Z)({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"}))),wn=k.forwardRef((function(e,t){var n,r,o;const i=(0,ce.Z)({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=bn,transitionDuration:g}=i,b=(0,z.Z)(i,vn),y=(0,B.Z)({},i,{component:l,invisible:d}),v=(e=>{const{classes:t,invisible:n}=e,r={root:["root",n&&"invisible"]};return(0,ae.Z)(r,yn,t)})(y),x=null!=(n=f.root)?n:u.root;return(0,T.jsx)(m,(0,B.Z)({in:p,timeout:g},b,{children:(0,T.jsx)(xn,(0,B.Z)({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:l,className:(0,oe.Z)(v.root,s,null==x?void 0:x.className),ownerState:(0,B.Z)({},y,null==x?void 0:x.ownerState),classes:v,ref:t,children:a}))}))})),kn=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","open","slotProps","slots","theme"],Sn=(0,le.ZP)("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})=>(0,B.Z)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Zn=(0,le.ZP)(wn,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),On=k.forwardRef((function(e,t){var n,r,o,i,a,s;const l=(0,ce.Z)({name:"MuiModal",props:e}),{BackdropComponent:c=Zn,BackdropProps:u,classes:d,className:p,closeAfterTransition:f=!1,children:h,container:m,component:g,components:b={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:w=!1,disablePortal:S=!1,disableRestoreFocus:Z=!1,disableScrollLock:O=!1,hideBackdrop:C=!1,keepMounted:j=!1,onBackdropClick:E,onClose:R,open:P,slotProps:M,slots:N,theme:A}=l,D=(0,z.Z)(l,kn),[$,L]=k.useState(!0),I={container:m,closeAfterTransition:f,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:w,disablePortal:S,disableRestoreFocus:Z,disableScrollLock:O,hideBackdrop:C,keepMounted:j,onBackdropClick:E,onClose:R,open:P},_=(0,B.Z)({},l,I,{exited:$}),F=null!=(n=null!=(r=null==N?void 0:N.root)?r:b.Root)?n:Sn,W=null!=(o=null!=(i=null==N?void 0:N.backdrop)?i:b.Backdrop)?o:c,V=null!=(a=null==M?void 0:M.root)?a:y.root,K=null!=(s=null==M?void 0:M.backdrop)?s:y.backdrop;return(0,T.jsx)(fn,(0,B.Z)({slots:{root:F,backdrop:W},slotProps:{root:()=>(0,B.Z)({},an(V,_),!tn(F)&&{as:g,theme:A},{className:(0,oe.Z)(p,null==V?void 0:V.className,null==d?void 0:d.root,!_.open&&_.exited&&(null==d?void 0:d.hidden))}),backdrop:()=>(0,B.Z)({},u,an(K,_),{className:(0,oe.Z)(null==K?void 0:K.className,null==d?void 0:d.backdrop)})},onTransitionEnter:()=>L(!1),onTransitionExited:()=>L(!0),ref:t},D,I,{children:h}))})),Cn=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function jn(e){return(0,Ie.Z)("MuiPaper",e)}(0,Ze.Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const En=["className","component","elevation","square","variant"],Rn=(0,le.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return(0,B.Z)({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},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&(0,B.Z)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,se.Fq)("#fff",Cn(t.elevation))}, ${(0,se.Fq)("#fff",Cn(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),Pn=k.forwardRef((function(e,t){const n=(0,ce.Z)({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=(0,z.Z)(n,En),c=(0,B.Z)({},n,{component:o,elevation:i,square:a,variant:s}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]};return(0,ae.Z)(i,jn,o)})(c);return(0,T.jsx)(Rn,(0,B.Z)({as:o,ownerState:c,className:(0,oe.Z)(u.root,r),ref:t},l))}));function Mn(e){return(0,Ie.Z)("MuiPopover",e)}(0,Ze.Z)("MuiPopover",["root","paper"]);const Tn=["onEntering"],Nn=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function An(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Dn(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function $n(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Ln(e){return"function"==typeof e?e():e}const In=(0,le.ZP)(On,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zn=(0,le.ZP)(Pn,{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}),_n=k.forwardRef((function(e,t){const n=(0,ce.Z)({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:s="anchorEl",children:l,className:c,container:u,elevation:d=8,marginThreshold:p=16,open:f,PaperProps:h={},transformOrigin:m={vertical:"top",horizontal:"left"},TransitionComponent:g=Lt,transitionDuration:b="auto",TransitionProps:{onEntering:y}={}}=n,v=(0,z.Z)(n.TransitionProps,Tn),x=(0,z.Z)(n,Nn),w=k.useRef(),S=(0,ue.Z)(w,h.ref),Z=(0,B.Z)({},n,{anchorOrigin:i,anchorReference:s,elevation:d,marginThreshold:p,PaperProps:h,transformOrigin:m,TransitionComponent:g,transitionDuration:b,TransitionProps:v}),O=(e=>{const{classes:t}=e;return(0,ae.Z)({root:["root"],paper:["paper"]},Mn,t)})(Z),C=k.useCallback((()=>{if("anchorPosition"===s)return a;const e=Ln(o),t=(e&&1===e.nodeType?e:(0,bt.Z)(w.current).body).getBoundingClientRect();return{top:t.top+An(t,i.vertical),left:t.left+Dn(t,i.horizontal)}}),[o,i.horizontal,i.vertical,a,s]),j=k.useCallback((e=>({vertical:An(e,m.vertical),horizontal:Dn(e,m.horizontal)})),[m.horizontal,m.vertical]),E=k.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=j(t);if("none"===s)return{top:null,left:null,transformOrigin:$n(n)};const r=C();let i=r.top-n.vertical,a=r.left-n.horizontal;const l=i+t.height,c=a+t.width,u=(0,yt.Z)(Ln(o)),d=u.innerHeight-p,f=u.innerWidth-p;if(id){const e=l-d;i-=e,n.vertical+=e}if(af){const e=c-f;a-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(a)}px`,transformOrigin:$n(n)}}),[o,s,C,j,p]),[R,P]=k.useState(f),M=k.useCallback((()=>{const e=w.current;if(!e)return;const t=E(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,P(!0)}),[E]);k.useEffect((()=>{f&&M()})),k.useImperativeHandle(r,(()=>f?{updatePosition:()=>{M()}}:null),[f,M]),k.useEffect((()=>{if(!f)return;const e=(0,gt.Z)((()=>{M()})),t=(0,yt.Z)(o);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[o,f,M]);let N=b;"auto"!==b||g.muiSupportAuto||(N=void 0);const A=u||(o?(0,bt.Z)(Ln(o)).body:void 0);return(0,T.jsx)(In,(0,B.Z)({BackdropProps:{invisible:!0},className:(0,oe.Z)(O.root,c),container:A,open:f,ref:t,ownerState:Z},x,{children:(0,T.jsx)(g,(0,B.Z)({appear:!0,in:f,onEntering:(e,t)=>{y&&y(e,t),M()},onExited:()=>{P(!1)},timeout:N},v,{children:(0,T.jsx)(zn,(0,B.Z)({elevation:d},h,{ref:S,className:(0,oe.Z)(O.paper,h.className)},R?void 0:{style:(0,B.Z)({},h.style,{opacity:0})},{ownerState:Z,children:l}))}))}))})),Bn=(e=>{var t={};return c.d(t,e),t})({RuleList:()=>r.RuleList,create:()=>r.create,createRule:()=>r.createRule,default:()=>r.default,getDynamicStyles:()=>r.getDynamicStyles,hasCSSTOMSupport:()=>r.hasCSSTOMSupport,toCssValue:()=>r.toCssValue});function Fn(e={}){const{baseClasses:t,newClasses:n,Component:r}=e;if(!n)return t;const o=(0,B.Z)({},t);return Object.keys(n).forEach((e=>{n[e]&&(o[e]=`${t[e]} ${n[e]}`)})),o}const Wn={set:(e,t,n,r)=>{let o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:(e,t,n)=>{const r=e.get(t);return r?r.get(n):void 0},delete:(e,t,n)=>{e.get(t).delete(n)}},Vn=Wn,Kn=k.createContext(null);const Un="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Hn=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var qn=Date.now(),Gn="fnValues"+qn,Yn="fnStyle"+ ++qn;var Xn="@global",Jn=function(){function e(e,t,n){for(var r in this.type="global",this.at=Xn,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Bn.RuleList((0,B.Z)({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Qn=function(){function e(e,t,n){this.type="global",this.at=Xn,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,(0,B.Z)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),er=/\s*,\s*/g;function tr(e,t){for(var n=e.split(er),r="",o=0;o-1){var o=Qr[e];if(!Array.isArray(o))return jr+Lr(o)in t&&Er+o;if(!r)return!1;for(var i=0;it?1:-1:e.length-t.length},{onProcessStyle:function(e,t){if("style"!==t.type)return e;for(var n={},r=Object.keys(e).sort(wo),o=0;o(i+=1,i);return(e,i)=>{const s=i.options.name;if(s&&0===s.indexOf("Mui")&&!i.options.link&&!t){if(-1!==Hn.indexOf(e.key))return`Mui-${e.key}`;const t=`${o}${s}-${e.key}`;return i.options.theme[Un]&&""===r?`${t}-${a()}`:t}return`${o}${n}${a()}`}}(),vo={disableGeneration:!1,generateClassName:yo,jss:bo,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},xo=k.createContext(vo);var wo;let ko=-1e9;var So=c(1290);const Zo=["variant"];function Oo(e){return 0===e.length}const Co={},jo=["name","classNamePrefix","Component","defaultTheme"];function Eo(e,t={}){const{name:n,classNamePrefix:r,Component:o,defaultTheme:i=Co}=t,a=(0,z.Z)(t,jo),s=function(e){const t="function"==typeof e;return{create:(n,r)=>{let o;try{o=t?e(n):e}catch(e){throw e}if(!r||!n.components||!n.components[r]||!n.components[r].styleOverrides&&!n.components[r].variants)return o;const i=n.components[r].styleOverrides||{},a=n.components[r].variants||[],s=(0,B.Z)({},o);return Object.keys(i).forEach((e=>{s[e]=(0,U.Z)(s[e]||{},i[e])})),a.forEach((e=>{const t=function(e){const{variant:t}=e,n=(0,z.Z)(e,Zo);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?Oo(r)?e[t]:(0,So.Z)(e[t]):`${Oo(r)?t:(0,So.Z)(t)}${(0,So.Z)(e[t].toString())}`})),r}(e.props);s[t]=(0,U.Z)(s[t]||{},e.style)})),s},options:{}}}(e),l=n||r||"makeStyles";return s.options={index:(ko+=1,ko),name:n,meta:l,classNamePrefix:l},(e={})=>{const t=function(){var e;const t=k.useContext(Kn);return null!=(e=null==t?void 0:t.$$material)?e:t}()||i,r=(0,B.Z)({},k.useContext(xo),a),l=k.useRef(),c=k.useRef();!function(o,i){const a=k.useRef([]);let u;const d=k.useMemo((()=>({})),i);a.current!==d&&(a.current=d,u=(()=>{const o={name:n,state:{},stylesCreator:s,stylesOptions:r,theme:t};return function({state:e,theme:t,stylesOptions:n,stylesCreator:r,name:o},i){if(n.disableGeneration)return;let a=Vn.get(n.sheetsManager,r,t);a||(a={refs:0,staticSheet:null,dynamicStyles:null},Vn.set(n.sheetsManager,r,t,a));const s=(0,B.Z)({},r.options,n,{theme:t,flip:"boolean"==typeof n.flip?n.flip:"rtl"===t.direction});s.generateId=s.serverGenerateClassName||s.generateClassName;const l=n.sheetsRegistry;if(0===a.refs){let e;n.sheetsCache&&(e=Vn.get(n.sheetsCache,r,t));const i=r.create(t,o);e||(e=n.jss.createStyleSheet(i,(0,B.Z)({link:!1},s)),e.attach(),n.sheetsCache&&Vn.set(n.sheetsCache,r,t,e)),l&&l.add(e),a.staticSheet=e,a.dynamicStyles=(0,Bn.getDynamicStyles)(i)}if(a.dynamicStyles){const t=n.jss.createStyleSheet(a.dynamicStyles,(0,B.Z)({link:!0},s));t.update(i),t.attach(),e.dynamicSheet=t,e.classes=Fn({baseClasses:a.staticSheet.classes,newClasses:t.classes}),l&&l.add(t)}else e.classes=a.staticSheet.classes;a.refs+=1}(o,e),c.current=!1,l.current=o,()=>{!function({state:e,theme:t,stylesOptions:n,stylesCreator:r}){if(n.disableGeneration)return;const o=Vn.get(n.sheetsManager,r,t);o.refs-=1;const i=n.sheetsRegistry;0===o.refs&&(Vn.delete(n.sheetsManager,r,t),n.jss.removeStyleSheet(o.staticSheet),i&&i.remove(o.staticSheet)),e.dynamicSheet&&(n.jss.removeStyleSheet(e.dynamicSheet),i&&i.remove(e.dynamicSheet))}(o)}})()),k.useEffect((()=>()=>{u&&u()}),[d])}(0,[t,s]),k.useEffect((()=>{c.current&&function({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}(l.current,e),c.current=!0}));const u=function({state:e,stylesOptions:t},n,r){if(t.disableGeneration)return n||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let o=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,o=!0),n!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=n,o=!0),o&&(e.cacheClasses.value=Fn({baseClasses:e.cacheClasses.lastJSS,newClasses:n,Component:r})),e.cacheClasses.value}(l.current,e.classes,o);return u}}function Ro(e){return(0,Ie.Z)("MuiListItemIcon",e)}(0,Ze.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);const Po=["className"],Mo=(0,le.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>(0,B.Z)({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),To=k.forwardRef((function(e,t){const n=(0,ce.Z)({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=(0,z.Z)(n,Po),i=k.useContext(at),a=(0,B.Z)({},n,{alignItems:i.alignItems}),s=(e=>{const{alignItems:t,classes:n}=e,r={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,ae.Z)(r,Ro,n)})(a);return(0,T.jsx)(Mo,(0,B.Z)({className:(0,oe.Z)(s.root,r),ownerState:a,ref:t},o))}));function No(e){return(0,Ie.Z)("MuiTypography",e)}(0,Ze.Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Ao=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Do=(0,le.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${(0,Ve.Z)(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>(0,B.Z)({margin:0},t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),$o={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Lo={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Io=k.forwardRef((function(e,t){const n=(0,ce.Z)({props:e,name:"MuiTypography"}),r=(e=>Lo[e]||e)(n.color),o=G((0,B.Z)({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=$o}=o,f=(0,z.Z)(o,Ao),h=(0,B.Z)({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=s||(u?"p":p[d]||$o[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,"inherit"!==e.align&&`align${(0,Ve.Z)(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return(0,ae.Z)(s,No,a)})(h);return(0,T.jsx)(Do,(0,B.Z)({as:m,ref:t,ownerState:h,className:(0,oe.Z)(g.root,a)},f))})),zo=Io;function _o(e){return(0,Ie.Z)("MuiListItemText",e)}const Bo=(0,Ze.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Fo=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Wo=(0,le.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Bo.primary}`]:t.primary},{[`& .${Bo.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((({ownerState:e})=>(0,B.Z)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),Vo=k.forwardRef((function(e,t){const n=(0,ce.Z)({props:e,name:"MuiListItemText"}),{children:r,className:o,disableTypography:i=!1,inset:a=!1,primary:s,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:u}=n,d=(0,z.Z)(n,Fo),{dense:p}=k.useContext(at);let f=null!=s?s:r,h=c;const m=(0,B.Z)({},n,{disableTypography:i,inset:a,primary:!!f,secondary:!!h,dense:p}),g=(e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e,a={root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,ae.Z)(a,_o,t)})(m);return null==f||f.type===zo||i||(f=(0,T.jsx)(zo,(0,B.Z)({variant:p?"body2":"body1",className:g.primary,component:null!=l&&l.variant?void 0:"span",display:"block"},l,{children:f}))),null==h||h.type===zo||i||(h=(0,T.jsx)(zo,(0,B.Z)({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},u,{children:h}))),(0,T.jsxs)(Wo,(0,B.Z)({className:(0,oe.Z)(g.root,o),ownerState:m,ref:t},d,{children:[f,h]}))})),Ko=(e=>{var t={};return c.d(t,e),t})({ListItem:()=>o.ListItem,ListItemIcon:()=>o.ListItemIcon,ListItemText:()=>o.ListItemText,ListSubheader:()=>o.ListSubheader,Switch:()=>o.Switch});var Uo=Eo((function(e){return{root:{"&.MuiListItem-root":{"@media (min-width: 1025px)":{paddingTop:2,paddingBottom:2}},"& .MuiTypography-body1":{fontSize:14}},listItemIcon:{minWidth:40}}}));const Ho=function(e){var t=e.groupIndex,n=e.itemIndex,r=e.label,o=e.selected,i=void 0!==o&&o,a=e.icon,s=e.onClick,l=Uo();return(0,T.jsxs)(Ko.ListItem,{button:!0,disableRipple:!0,className:l.root,onClick:function(e){return function(e,t,n){e.stopPropagation(),null==s||s(t,n)}(e,t,n)},children:[(0,T.jsx)(To,{className:l.listItemIcon,children:a}),(0,T.jsx)(Vo,{primary:r}),i&&(0,T.jsx)(A,{})]})};var qo=["optionGroups","onOptionClick","action","children","actionTitle"];function Go(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yo(e){for(var t=1;t{var t={};return c.d(t,e),t})({ExpandLessRounded:()=>i.ExpandLessRounded,ExpandMoreRounded:()=>i.ExpandMoreRounded,RestartAlt:()=>i.RestartAlt});var li=["diceNotation","onUpdate","className"];function ci(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ui(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0],t=j((0,k.useState)(1),2),n=t[0],r=t[1];return ni(ni({},(0,k.useMemo)((function(){var t=Object.keys(ei);return{maxDieSize:ri(ei[Object.keys(ei)[t.length-1]],e),minDieSize:ri(ei[Object.keys(ei)[0]],e)}}),[n])),{},{forceUpdate:function(){return r((function(e){return++e}))}})}(!0),w=x.minDieSize,S=x.maxDieSize;return!!u.length&&(0,T.jsxs)("div",ui(ui({className:ai([o,"customizer-container"])},i),{},{children:[(0,T.jsxs)(Ko.ListItem,{className:"customizer-header",children:[(0,T.jsx)(Ko.ListItemIcon,{children:(0,T.jsx)(si.RestartAlt,{className:(t=h,ai([t&&"customizer-disabled-icon","customizer-blue-control"])),onClick:b})}),(0,T.jsx)(Ko.ListItemText,{primary:"Adjust Dice"}),(0,T.jsx)("div",{className:"customizer-active-toggle",children:(0,T.jsx)(Ko.Switch,{onClick:function(e){e.stopPropagation();var t=a();f((function(e){return e||(t=l,b()),c(t),null==r||r(t),!e}))}})})]}),p&&(0,T.jsx)("ul",{className:"customizer-dice-sets",children:u.map((function(e,t){return function(e,t){var n=j(e.toString().split("d"),2),r=n[0],o=n[1],i=o===S,a=o===w,s="1"===r;return(0,T.jsxs)("div",{className:"set-customizer-dice-set",children:[(0,T.jsxs)("div",{className:"set-customizer-control",children:[(0,T.jsx)(si.ExpandLessRounded,{className:y(!1),onClick:function(){return m(t,1)}}),(0,T.jsx)(Ko.ListSubheader,{children:"Quantity"}),(0,T.jsx)(si.ExpandMoreRounded,{className:y(s),onClick:function(){return m(t,-1)}})]}),(0,T.jsx)(Ko.ListItemText,{className:"set-customizer-text",primary:e.toString()}),(0,T.jsxs)("div",{className:"set-customizer-control",children:[(0,T.jsx)(si.ExpandLessRounded,{className:y(i),onClick:function(){return g(t,1)}}),(0,T.jsx)(Ko.ListSubheader,{children:"Die Type"}),(0,T.jsx)(si.ExpandMoreRounded,{className:y(a),onClick:function(){return g(t,-1)}})]})]},"dice-set-".concat(t))}(e,t)}))})]}))};function pi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fi(e){for(var t=1;t0?[{label:"Send To:",options:e.map((function(e){var n;return{label:e.displayValue,icon:null!==(n=hi[e.displayValue])&&void 0!==n?n:null,selected:e.id===t.id}}))}]:[]),[n===v.RollType.Damage?{label:"Roll As:",options:[{label:"Crit Damage",icon:null,selected:r===v.RollKind.CriticalHit},{label:"Flat Roll",icon:null,selected:r===v.RollKind.None}]}:{label:"Roll With:",options:[{label:"Advantage",icon:(0,T.jsx)(N,{}),selected:r===v.RollKind.Advantage},{label:"Flat (One Die)",icon:(0,T.jsx)(I,{}),selected:r===v.RollKind.None},{label:"Disadvantage",icon:(0,T.jsx)(D,{}),selected:r===v.RollKind.Disadvantage}]}])}(i,g,s,x)}),[i,g,s,x]),M=(0,k.useCallback)((function(e,t){"Send To:"===R[e].label?b(i[t]):w((function(){switch(R[e].options[t].label){case"Advantage":return v.RollKind.Advantage;case"Disadvantage":return v.RollKind.Disadvantage;case"Crit Damage":return v.RollKind.CriticalHit;default:return v.RollKind.None}}))}),[R,b,i,w]),A=j((0,k.useState)(0),2),$=(A[0],A[1]),L=(0,k.useCallback)((function(e){n&&(C(e),$((function(e){return++e})))}),[n,C,$]),z=function(){p()},_=function(e){v.Analytics.log(v.EventCategories.DICE_Menu,v.EventActions.DICE_Menu_Roll);var t={action:c,rolls:[new v.RollRequestRoll(O,s,x)]};e.roll(t).then((function(e){d&&v.Dice.showDiceNotification(e,f),null==u||u(e)})).catch((function(e){return console.log(e)})),b(o),w(v.RollKind.None),z()},B=(0,k.useCallback)(Z(P().mark((function e(){var t,n,r;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.Dice.getRoller(fi(fi({},l),{},{messageScope:null!==(t=null==g?void 0:g.messageScope)&&void 0!==t?t:l.messageScope,messageTarget:null!==(n=null==g?void 0:g.messageTarget)&&void 0!==n?n:l.messageTarget}));case 2:r=e.sent,_(r),z();case 5:case"end":return e.stop()}}),e)}))),[l,g,_,z]),F=(0,k.useMemo)((function(){var e,t=O,n=O.set.length?(0,T.jsx)("div",{className:"dice-icon-box",children:(e=O,e.set.map((function(e){return ii(["final-notation-icon","dice-icon-die","dice-icon-die--".concat(e.dieType)])}))).map((function(e,t){return(0,T.jsx)("div",{className:e},"icon-class-".concat(t))}))}):null;switch(x){case v.RollKind.Advantage:n=(0,T.jsx)(N,{});break;case v.RollKind.Disadvantage:n=(0,T.jsx)(D,{});break;case v.RollKind.CriticalHit:t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=v.DiceNotation.parseDiceNotation(e.toDiceNotationString());return n.set.forEach((function(e){e.count*=t})),n}(O);break;case v.RollKind.None:s!==v.RollType.Damage&&(n=(0,T.jsx)(I,{}))}var r=t.toDiceNotationString().replace(/([+-])/g," $1 ");return(0,T.jsxs)("div",{className:"roll-box",children:[n,(0,T.jsx)("span",{className:"roll-label",children:"Roll"}),(0,T.jsx)("span",{className:"roll-notation",children:r})]})}),[O,x]);return(0,T.jsx)(Jo,{ref:t,id:"options-menu",open:!0,onClose:function(e,t){e.stopPropagation(),e.preventDefault(),p()},anchorEl:h,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},optionGroups:R,onOptionClick:M,action:B,disableScrollLock:!0,actionTitle:F,children:n&&(0,T.jsx)(di,{diceNotation:r,onUpdate:L})})}));function gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bi(e){for(var t=1;t{const{ownerState:n}=e;return[{[`& .${ki.grouped}`]:t.grouped},{[`& .${ki.grouped}`]:t[`grouped${(0,Ve.Z)(n.orientation)}`]},{[`& .${ki.grouped}`]:t[`grouped${(0,Ve.Z)(n.variant)}`]},{[`& .${ki.grouped}`]:t[`grouped${(0,Ve.Z)(n.variant)}${(0,Ve.Z)(n.orientation)}`]},{[`& .${ki.grouped}`]:t[`grouped${(0,Ve.Z)(n.variant)}${(0,Ve.Z)(n.color)}`]},t.root,t[n.variant],!0===n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,"vertical"===n.orientation&&t.vertical]}})((({theme:e,ownerState:t})=>(0,B.Z)({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[2]},t.disableElevation&&{boxShadow:"none"},t.fullWidth&&{width:"100%"},"vertical"===t.orientation&&{flexDirection:"column"},{[`& .${ki.grouped}`]:(0,B.Z)({minWidth:40,"&:not(:first-of-type)":(0,B.Z)({},"horizontal"===t.orientation&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},"vertical"===t.orientation&&{borderTopRightRadius:0,borderTopLeftRadius:0},"outlined"===t.variant&&"horizontal"===t.orientation&&{marginLeft:-1},"outlined"===t.variant&&"vertical"===t.orientation&&{marginTop:-1}),"&:not(:last-of-type)":(0,B.Z)({},"horizontal"===t.orientation&&{borderTopRightRadius:0,borderBottomRightRadius:0},"vertical"===t.orientation&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},"text"===t.variant&&"horizontal"===t.orientation&&{borderRight:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:"1px solid "+("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),[`&.${ki.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}},"text"===t.variant&&"vertical"===t.orientation&&{borderBottom:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:"1px solid "+("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),[`&.${ki.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}},"text"===t.variant&&"inherit"!==t.color&&{borderColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:(0,se.Fq)(e.palette[t.color].main,.5)},"outlined"===t.variant&&"horizontal"===t.orientation&&{borderRightColor:"transparent"},"outlined"===t.variant&&"vertical"===t.orientation&&{borderBottomColor:"transparent"},"contained"===t.variant&&"horizontal"===t.orientation&&{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${ki.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}},"contained"===t.variant&&"vertical"===t.orientation&&{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${ki.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}},"contained"===t.variant&&"inherit"!==t.color&&{borderColor:(e.vars||e).palette[t.color].dark},{"&:hover":(0,B.Z)({},"outlined"===t.variant&&"horizontal"===t.orientation&&{borderRightColor:"currentColor"},"outlined"===t.variant&&"vertical"===t.orientation&&{borderBottomColor:"currentColor"})}),"&:hover":(0,B.Z)({},"contained"===t.variant&&{boxShadow:"none"})},"contained"===t.variant&&{boxShadow:"none"})}))),Oi=k.forwardRef((function(e,t){const n=(0,ce.Z)({props:e,name:"MuiButtonGroup"}),{children:r,className:o,color:i="primary",component:a="div",disabled:s=!1,disableElevation:l=!1,disableFocusRipple:c=!1,disableRipple:u=!1,fullWidth:d=!1,orientation:p="horizontal",size:f="medium",variant:h="outlined"}=n,m=(0,z.Z)(n,Si),g=(0,B.Z)({},n,{color:i,component:a,disabled:s,disableElevation:l,disableFocusRipple:c,disableRipple:u,fullWidth:d,orientation:p,size:f,variant:h}),b=(e=>{const{classes:t,color:n,disabled:r,disableElevation:o,fullWidth:i,orientation:a,variant:s}=e,l={root:["root",s,"vertical"===a&&"vertical",i&&"fullWidth",o&&"disableElevation"],grouped:["grouped",`grouped${(0,Ve.Z)(a)}`,`grouped${(0,Ve.Z)(s)}`,`grouped${(0,Ve.Z)(s)}${(0,Ve.Z)(a)}`,`grouped${(0,Ve.Z)(s)}${(0,Ve.Z)(n)}`,r&&"disabled"]};return(0,ae.Z)(l,wi,t)})(g),y=k.useMemo((()=>({className:b.grouped,color:i,disabled:s,disableElevation:l,disableFocusRipple:c,disableRipple:u,fullWidth:d,size:f,variant:h})),[i,s,l,c,u,d,f,h,b.grouped]);return(0,T.jsx)(Zi,(0,B.Z)({as:a,role:"group",className:(0,oe.Z)(b.root,o),ref:t,ownerState:g},m,{children:(0,T.jsx)(He.Provider,{value:y,children:r})}))})),Ci=Oi;var ji=c(1346),Ei=c.n(ji);const Ri=(e=>{var t={};return c.d(t,e),t})({default:()=>a.default}),Pi=function(e){var t,n=e.onClick,r=e.onContextMenu,o=e.icon,i=e.count,a=e.selected;return(0,T.jsxs)("div",{className:(t=["dice-die-button"],a&&t.push("dice-die-button--selected"),t.join(" ")),"data-dice":"d".concat(o),onClick:function(){return n()},onContextMenu:function(e){e.preventDefault(),r()},onSelect:function(){},children:[(0,T.jsx)("span",{className:"dice-icon-die dice-icon-die--d".concat(o)}),0!==i?(0,T.jsx)("div",{className:"dice-die-button__count",children:i}):"",(0,T.jsxs)("div",{className:"dice-die-button__tooltip",children:[(0,T.jsx)("div",{className:"dice-die-button__tooltip__pip"}),"d".concat(o)]})]})},Mi=function(e){var t=e.className,n=e.onClick;return(0,T.jsx)("div",{className:"".concat(t," dice-toolbar__dropdown-die"),onClick:function(){return n()},children:(0,T.jsx)("span",{className:"dice-icon-die dice-icon-die--d20"})})};function Ti(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ni(e){for(var t=1;t0?"rollable":"",w?"dice-toolbar--hover":""].join(" "),ref:function(e){O=e},children:[(0,T.jsxs)("div",{className:["dice-toolbar__dropdown",u?"dice-toolbar__dropdown-selected":""].join(" "),children:[(0,T.jsx)(Mi,{className:w?"dice-toolbar--hover":"",onClick:function(){u?v.Analytics.log(v.EventCategories.DICE_Toolbar,v.EventActions.DICE_Toolbar_Close):v.Analytics.log(v.EventCategories.DICE_Toolbar,v.EventActions.DICE_Toolbar_Open),d((function(e){return!e}));var e=(0,vt.findDOMNode)(O).getBoundingClientRect();l(e.bottom+440>window.innerHeight),u&&M()}}),(0,T.jsxs)(Ci,{disableRipple:!0,className:"dice-toolbar__target","aria-label":"roll actions",children:[(0,T.jsx)(et,{onClick:function(){Z().then((function(e){return N(e)}))},onMouseEnter:z,onMouseLeave:z,children:(0,T.jsxs)(re,{display:"flex",flexDirection:"column",alignItems:"start",justifyContent:"start",children:[i&&(0,T.jsxs)(zo,{className:"dice-toolbar__target-user",children:["To: ",i.displayValue]}),(0,T.jsx)(zo,{className:"dice-toolbar__target-roll",children:"Roll"})]})}),(null==o?void 0:o.length)>0&&(0,T.jsx)(et,{size:"small","aria-controls":A?"roll-target-menu":void 0,"aria-expanded":A?"true":void 0,"aria-label":"select roll target","aria-haspopup":"menu",className:"dice-toolbar__target-menu-button",onClick:function(e){b(g?null:e.currentTarget)},children:(0,T.jsx)(xi.Z,{})})]}),(0,T.jsx)("div",{style:{display:u?"block":"none"},className:s?"dice-toolbar__dropdown-top":"",children:Object.entries(f).map((function(e){var t=j(e,2),n=t[0],r=t[1],o=parseInt(n.replace("d",""));return(0,T.jsx)(Pi,{icon:o,onClick:function(){return e=o,v.Analytics.log(v.EventCategories.DICE_Toolbar,v.EventActions["DICE_Custom_D".concat(e,"_Added")]),void h((function(t){return Ni(Ni({},t),{},y({},"d".concat(e),t["d".concat(e)]+1))}));var e},onContextMenu:function(){return e=o,v.Analytics.log(v.EventCategories.DICE_Toolbar,v.EventActions["DICE_Custom_D".concat(e,"_Removed")]),void(0!=f["d".concat(e)]&&h((function(t){return Ni(Ni({},t),{},y({},"d".concat(e),t["d".concat(e)]-1))})));var e},count:r},n)}))})]}),(null==o?void 0:o.length)>0&&(0,T.jsx)(Jo,{id:D,open:A,onClose:function(){b(null)},anchorEl:g,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"left"},optionGroups:[{label:"Send To:",options:null==o?void 0:o.map((function(e){return{label:e.displayValue,icon:I(e.displayValue),selected:e.id===(null==i?void 0:i.id)}}))}],onOptionClick:function(e,t){Z(o[t]).then((function(e){return N(e)})),b(null)},disableScrollLock:!0})]})},Di=function(e){var t=e.diceTypes,n=e.selectedDie,r=e.onClick;return(0,T.jsx)("div",{className:"dice-buttons",children:t.map((function(e){var t=parseInt(e.replace("d",""));return(0,T.jsx)(Pi,{icon:t,onClick:function(){return r(e)},onContextMenu:function(){},count:0,selected:e===n},e)}))})};var $i=[{eventName:"minRoll",label:"Min Roll"},{eventName:"maxRoll",label:"Max Roll"},{eventName:"collide",label:"Collision"},{eventName:"rollComplete",label:"Roll Complete"},{eventName:"dieRemoved",label:"Die Removed"},{eventName:"rollComplete",label:"1",value:1},{eventName:"rollComplete",label:"2",value:2},{eventName:"rollComplete",label:"3",value:3},{eventName:"rollComplete",label:"4",value:4},{eventName:"rollComplete",label:"20",value:20}];const Li=function(e){var t=e.events,n=void 0===t?$i:t;return(0,T.jsx)("div",{className:"dice-event-bar",children:n.map((function(e){return(0,T.jsx)("button",{className:"dice-event-button",onClick:function(){return v.Dice.previewEvent(e.eventName,e.value)},children:e.label},JSON.stringify(e))}))})};function Ii(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zi(e){for(var t=1;t30||i>30)&&R(!1)},z=function e(t){clearTimeout(D),document.body.style["-webkit-user-select"]="inherit",E&&(Z||(document.dispatchEvent(new Event("contextmenu")),L(t))),R(!1),document.removeEventListener("touchend",e),document.removeEventListener("touchmove",I)},_={diceNotation:r,rollAction:o,rollType:i,rollKind:a,themeColor:x,rollContext:s,userId:n,showDiceNotification:b,onRollResults:u,rollTargetOptions:c,rollTargetDefault:l,onClose:function(){O(!1)},anchorEl:w.current,useCustomizableDiceNotation:f},B={onContextMenu:L,onTouchStart:function(e){1==e.touches.length&&(e.preventDefault(),document.body.style["-webkit-user-select"]="none",N((function(t){return Ki(Ki({},t),{},{y:e.touches[0].clientY})})),$(setTimeout((function(){R(!0)}),650)),document.addEventListener("touchend",z),document.addEventListener("touchmove",I))},onTouchEnd:z,onKeyUp:function(e){var t=e.code,n=e.keyCode;switch(t||n){case"ArrowDown":case 40:case"ArrowUp":case 38:L(e)}},className:"integrated-dice__container",onClick:function(e){var t,c;if(d&&d(e),e.ctrlKey)e.preventDefault();else{e.stopPropagation();var p=new v.RollRequest(o);p.rolls.push(new v.RollRequestRoll(r,i,a)),v.Dice.getRoller(Ki(Ki({},s),{},{messageScope:null!==(t=null==l?void 0:l.messageScope)&&void 0!==t?t:s.messageScope,messageTarget:null!==(c=null==l?void 0:l.messageTarget)&&void 0!==c?c:s.messageTarget})).then((function(t){return t.roll(p,e.clientX,e.clientY).then((function(e){b&&v.Dice.showDiceNotification(e,n),u&&u(e)})).catch((function(e){return console.log(e)}))}))}},ref:w};return m?(0,T.jsxs)(T.Fragment,{children:[Z&&(0,T.jsx)(mi,Ki({},_)),(0,T.jsx)("button",Ki(Ki({"aria-haspopup":"menu"},B),{},{children:t}))]}):t};var Hi={withDiceRoll:function(t){var n;return n=function(n){m(a,n);var r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=b(r);if(o){var n=b(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return g(this,e)});function a(t){var n;return e(this,a),y(f(n=i.call(this,t)),"timerLongTouch",void 0),y(f(n),"touchStartX",void 0),y(f(n),"touchStartY",void 0),y(f(n),"element",(0,k.createRef)()),y(f(n),"state",void 0),y(f(n),"onContextMenu",(function(e){n.props.advMenu&&(e.stopPropagation(),e.preventDefault(),n.setState({menuOpen:!0}))})),y(f(n),"handleButtonKeyUp",(function(e){var t=e.code,r=e.keyCode;switch(t||r){case"ArrowDown":case 40:case"ArrowUp":case 38:n.onContextMenu(e)}})),y(f(n),"clickRoller",(function(e){var t,r,o=n.props,i=o.rollAction,a=o.rollType,s=o.rollKind,l=o.diceNotation,c=o.showDiceNotification,u=o.onRollResults,d=o.rollContext,p=o.rollTargetDefault,f=o.userId,h=o.onClick;if(h&&h(e),e.ctrlKey)e.preventDefault();else{e.stopPropagation();var m=new v.RollRequest(i);m.rolls.push(new v.RollRequestRoll(l,a,s)),v.Dice.getRoller(bi(bi({},d),{},{messageScope:null!==(t=null==p?void 0:p.messageScope)&&void 0!==t?t:d.messageScope,messageTarget:null!==(r=null==p?void 0:p.messageTarget)&&void 0!==r?r:d.messageTarget})).then((function(t){return t.roll(m,e.clientX,e.clientY).then((function(e){c&&v.Dice.showDiceNotification(e,f),u&&u(e)})).catch((function(e){return console.log(e)}))}))}})),y(f(n),"touchstart",(function(e){1==e.touches.length&&(e.preventDefault(),document.body.style["-webkit-user-select"]="none",n.touchStartY=e.touches[0].clientY,n.timerLongTouch=setTimeout((function(){n.setState({longTouch:!0})}),650),document.addEventListener("touchend",n.touchend),document.addEventListener("touchmove",n.touchmove))})),y(f(n),"touchmove",(function(e){clearTimeout(n.timerLongTouch);var t=Math.abs(n.touchStartX-e.touches[0].clientX),r=Math.abs(n.touchStartY-e.touches[0].clientY);n.state.longTouch&&(t>30||r>30)&&(n.state.longTouch=!1)})),y(f(n),"touchend",(function(e){clearTimeout(n.timerLongTouch),document.body.style["-webkit-user-select"]="inherit",n.state.longTouch&&(n.state.menuOpen||(document.dispatchEvent(new Event("contextmenu")),n.onContextMenu(e))),n.setState({longTouch:!1}),document.removeEventListener("touchend",n.touchend),document.removeEventListener("touchmove",n.touchmove)})),y(f(n),"handleMenuClose",(function(){n.setState({menuOpen:!1})})),n.state={menuOpen:!1,left:0,bottom:0,longTouch:!1},n}return p(a,[{key:"render",value:function(){var e=this.props,n=e.diceNotation,r=e.rollAction,o=e.diceEnabled,i=e.rollType,a=e.onRollResults,s=e.showDiceNotification,l=e.themeColor,c=e.rollContext,u=e.rollTargetOptions,d=e.rollTargetDefault,p=e.userId,f=e.rollKind;return o?(0,T.jsxs)(T.Fragment,{children:[this.state.menuOpen&&(0,T.jsx)(mi,{diceNotation:n,rollAction:r,rollType:i,rollKind:f,themeColor:l,rollContext:c,userId:p,showDiceNotification:s,onRollResults:a,rollTargetOptions:u,rollTargetDefault:d,onClose:this.handleMenuClose,anchorEl:this.element.current}),(0,T.jsx)("button",{"aria-haspopup":"menu",onContextMenu:this.onContextMenu,onTouchStart:this.touchstart,onTouchEnd:this.touchend,onKeyUp:this.handleButtonKeyUp,className:"integrated-dice__container",onClick:this.clickRoller,ref:this.element,children:(0,T.jsx)(t,bi({},this.props))})]}):(0,T.jsx)(t,bi({},this.props))}}]),a}(k.Component),y(n,"defaultProps",bi({diceEnabled:!0,advMenu:!1,themeColor:"#666666",showDiceNotification:!0},t.defaultProps)),n},withMultiRoll:function(t){var n;return n=function(n){m(a,n);var r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=b(r);if(o){var n=b(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return g(this,e)});function a(t){var n;return e(this,a),y(f(n=i.call(this,t)),"clickRoller",(function(e){var t=n.props,r=t.rollAction,o=t.rolls,i=t.showDiceNotification,a=t.onRollResults,s=t.rollContext,l=t.userId;e.stopPropagation();var c={action:r,rolls:o};v.Dice.getRoller(s).then((function(t){return t.roll(c,e.clientX,e.clientY).then((function(e){i&&v.Dice.showDiceNotification(e,l),a&&a(e)})).catch((function(e){return console.log(e)}))}))})),n}return p(a,[{key:"render",value:function(){return this.props.diceEnabled?(0,T.jsx)("div",{className:"integrated-dice__container",onClick:this.clickRoller,children:(0,T.jsx)(t,vi({},this.props))}):(0,T.jsx)(t,vi({},this.props))}}]),a}(k.Component),y(n,"defaultProps",vi({diceEnabled:!0,showDiceNotification:!0},t.defaultProps)),n}}})();var d=u.bl,p=u.xN,f=u.tV,h=u.Ff;export{d as DiceComponents,p as DiceToolbar,f as PreviewApp,h as WithDiceRollv2};