From 3e8c8baf0147db991e7d6461ca0aceede95487f8 Mon Sep 17 00:00:00 2001 From: remarkablemark Date: Sat, 27 Jan 2024 17:09:54 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20remarkab?= =?UTF-8?q?legames/just-jokes@f77390484fa8c9ce412d6dd2940b1fcac65ea384=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 2 +- ...CardContent-dpCYL8Mf.js => CardContent-NFY9XfSV.js} | 2 +- ...rBoundary-J0VEI-Mo.js => ErrorBoundary-CvPPiDQJ.js} | 2 +- assets/{Home-g_xXNBgC.js => Home-jHcFiUPI.js} | 2 +- assets/{NotFound-IAqs8Vq9.js => NotFound-4CVTA1Ff.js} | 2 +- assets/Room-DiGSVbGm.js | 10 ++++++++++ assets/Room-UKXYDF5M.js | 10 ---------- assets/{index-Tolw1maY.js => index-Ly36R-YS.js} | 4 ++-- assets/useSetDocumentTitle-GBE0xs8I.js | 1 + assets/useSetDocumentTitle-Ksgo9PXo.js | 1 - index.html | 2 +- 11 files changed, 19 insertions(+), 19 deletions(-) rename assets/{CardContent-dpCYL8Mf.js => CardContent-NFY9XfSV.js} (99%) rename assets/{ErrorBoundary-J0VEI-Mo.js => ErrorBoundary-CvPPiDQJ.js} (97%) rename assets/{Home-g_xXNBgC.js => Home-jHcFiUPI.js} (95%) rename assets/{NotFound-IAqs8Vq9.js => NotFound-4CVTA1Ff.js} (65%) create mode 100644 assets/Room-DiGSVbGm.js delete mode 100644 assets/Room-UKXYDF5M.js rename assets/{index-Tolw1maY.js => index-Ly36R-YS.js} (99%) create mode 100644 assets/useSetDocumentTitle-GBE0xs8I.js delete mode 100644 assets/useSetDocumentTitle-Ksgo9PXo.js diff --git a/404.html b/404.html index 1dc8b7d0..74b16007 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -Just Jokes | remarkablegames
\ No newline at end of file +Just Jokes | remarkablegames
\ No newline at end of file diff --git a/assets/CardContent-dpCYL8Mf.js b/assets/CardContent-NFY9XfSV.js similarity index 99% rename from assets/CardContent-dpCYL8Mf.js rename to assets/CardContent-NFY9XfSV.js index 3d277c5f..a4e14b5d 100644 --- a/assets/CardContent-dpCYL8Mf.js +++ b/assets/CardContent-NFY9XfSV.js @@ -1 +1 @@ -import{g as z,a as y,r as p,s as g,M as H,N as F,b as l,_ as r,H as C,a1 as A,u as $,e as I,j as v,f,h as B,P as D}from"./index-Tolw1maY.js";const S="true";function Co(){return localStorage.getItem("host")===S}function bo(o){o?localStorage.setItem("host",S):localStorage.removeItem("host")}function fo(){return localStorage.getItem("nickname")||""}function zo(o){localStorage.setItem("nickname",o)}function q(o){return y("MuiButton",o)}const J=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"]),b=J,K=p.createContext({}),Q=K,X=p.createContext(void 0),Y=X,Z=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],w=o=>{const{color:a,disableElevation:t,fullWidth:n,size:i,variant:s,classes:e}=o,c={root:["root",s,`${s}${l(a)}`,`size${l(i)}`,`${s}Size${l(i)}`,a==="inherit"&&"colorInherit",t&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${l(i)}`],endIcon:["endIcon",`iconSize${l(i)}`]},d=B(c,q,e);return r({},e,d)},E=o=>r({},o.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},o.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},o.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),oo=g(H,{shouldForwardProp:o=>F(o)||o==="classes",name:"MuiButton",slot:"Root",overridesResolver:(o,a)=>{const{ownerState:t}=o;return[a.root,a[t.variant],a[`${t.variant}${l(t.color)}`],a[`size${l(t.size)}`],a[`${t.variant}Size${l(t.size)}`],t.color==="inherit"&&a.colorInherit,t.disableElevation&&a.disableElevation,t.fullWidth&&a.fullWidth]}})(({theme:o,ownerState:a})=>{var t,n;const i=o.palette.mode==="light"?o.palette.grey[300]:o.palette.grey[800],s=o.palette.mode==="light"?o.palette.grey.A100:o.palette.grey[700];return r({},o.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(o.vars||o).shape.borderRadius,transition:o.transitions.create(["background-color","box-shadow","border-color","color"],{duration:o.transitions.duration.short}),"&:hover":r({textDecoration:"none",backgroundColor:o.vars?`rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})`:C(o.palette.text.primary,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},a.variant==="text"&&a.color!=="inherit"&&{backgroundColor:o.vars?`rgba(${o.vars.palette[a.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:C(o.palette[a.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},a.variant==="outlined"&&a.color!=="inherit"&&{border:`1px solid ${(o.vars||o).palette[a.color].main}`,backgroundColor:o.vars?`rgba(${o.vars.palette[a.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:C(o.palette[a.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},a.variant==="contained"&&{backgroundColor:o.vars?o.vars.palette.Button.inheritContainedHoverBg:s,boxShadow:(o.vars||o).shadows[4],"@media (hover: none)":{boxShadow:(o.vars||o).shadows[2],backgroundColor:(o.vars||o).palette.grey[300]}},a.variant==="contained"&&a.color!=="inherit"&&{backgroundColor:(o.vars||o).palette[a.color].dark,"@media (hover: none)":{backgroundColor:(o.vars||o).palette[a.color].main}}),"&:active":r({},a.variant==="contained"&&{boxShadow:(o.vars||o).shadows[8]}),[`&.${b.focusVisible}`]:r({},a.variant==="contained"&&{boxShadow:(o.vars||o).shadows[6]}),[`&.${b.disabled}`]:r({color:(o.vars||o).palette.action.disabled},a.variant==="outlined"&&{border:`1px solid ${(o.vars||o).palette.action.disabledBackground}`},a.variant==="contained"&&{color:(o.vars||o).palette.action.disabled,boxShadow:(o.vars||o).shadows[0],backgroundColor:(o.vars||o).palette.action.disabledBackground})},a.variant==="text"&&{padding:"6px 8px"},a.variant==="text"&&a.color!=="inherit"&&{color:(o.vars||o).palette[a.color].main},a.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},a.variant==="outlined"&&a.color!=="inherit"&&{color:(o.vars||o).palette[a.color].main,border:o.vars?`1px solid rgba(${o.vars.palette[a.color].mainChannel} / 0.5)`:`1px solid ${C(o.palette[a.color].main,.5)}`},a.variant==="contained"&&{color:o.vars?o.vars.palette.text.primary:(t=(n=o.palette).getContrastText)==null?void 0:t.call(n,o.palette.grey[300]),backgroundColor:o.vars?o.vars.palette.Button.inheritContainedBg:i,boxShadow:(o.vars||o).shadows[2]},a.variant==="contained"&&a.color!=="inherit"&&{color:(o.vars||o).palette[a.color].contrastText,backgroundColor:(o.vars||o).palette[a.color].main},a.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},a.size==="small"&&a.variant==="text"&&{padding:"4px 5px",fontSize:o.typography.pxToRem(13)},a.size==="large"&&a.variant==="text"&&{padding:"8px 11px",fontSize:o.typography.pxToRem(15)},a.size==="small"&&a.variant==="outlined"&&{padding:"3px 9px",fontSize:o.typography.pxToRem(13)},a.size==="large"&&a.variant==="outlined"&&{padding:"7px 21px",fontSize:o.typography.pxToRem(15)},a.size==="small"&&a.variant==="contained"&&{padding:"4px 10px",fontSize:o.typography.pxToRem(13)},a.size==="large"&&a.variant==="contained"&&{padding:"8px 22px",fontSize:o.typography.pxToRem(15)},a.fullWidth&&{width:"100%"})},({ownerState:o})=>o.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${b.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${b.disabled}`]:{boxShadow:"none"}}),ao=g("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(o,a)=>{const{ownerState:t}=o;return[a.startIcon,a[`iconSize${l(t.size)}`]]}})(({ownerState:o})=>r({display:"inherit",marginRight:8,marginLeft:-4},o.size==="small"&&{marginLeft:-2},E(o))),to=g("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(o,a)=>{const{ownerState:t}=o;return[a.endIcon,a[`iconSize${l(t.size)}`]]}})(({ownerState:o})=>r({display:"inherit",marginRight:-4,marginLeft:8},o.size==="small"&&{marginRight:-2},E(o))),no=p.forwardRef(function(a,t){const n=p.useContext(Q),i=p.useContext(Y),s=A(n,a),e=$({props:s,name:"MuiButton"}),{children:c,color:d="primary",component:m="button",className:P,disabled:R=!1,disableElevation:L=!1,disableFocusRipple:h=!1,endIcon:k,focusVisibleClassName:W,fullWidth:T=!1,size:U="medium",startIcon:M,type:N,variant:j="text"}=e,_=I(e,Z),x=r({},e,{color:d,component:m,disabled:R,disableElevation:L,disableFocusRipple:h,fullWidth:T,size:U,type:N,variant:j}),u=w(x),V=M&&v.jsx(ao,{className:u.startIcon,ownerState:x,children:M}),O=k&&v.jsx(to,{className:u.endIcon,ownerState:x,children:k}),G=i||"";return v.jsxs(oo,r({ownerState:x,className:f(n.className,u.root,P,G),component:m,disabled:R,focusRipple:!h,focusVisibleClassName:f(u.focusVisible,W),ref:t,type:N},_,{classes:u,children:[V,c,O]}))}),yo=no;function ro(o){return y("MuiCard",o)}z("MuiCard",["root"]);const so=["className","raised"],io=o=>{const{classes:a}=o;return B({root:["root"]},ro,a)},eo=g(D,{name:"MuiCard",slot:"Root",overridesResolver:(o,a)=>a.root})(()=>({overflow:"hidden"})),lo=p.forwardRef(function(a,t){const n=$({props:a,name:"MuiCard"}),{className:i,raised:s=!1}=n,e=I(n,so),c=r({},n,{raised:s}),d=io(c);return v.jsx(eo,r({className:f(d.root,i),elevation:s?8:void 0,ref:t,ownerState:c},e))}),$o=lo;function co(o){return y("MuiCardContent",o)}z("MuiCardContent",["root"]);const po=["className","component"],uo=o=>{const{classes:a}=o;return B({root:["root"]},co,a)},vo=g("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(o,a)=>a.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),go=p.forwardRef(function(a,t){const n=$({props:a,name:"MuiCardContent"}),{className:i,component:s="div"}=n,e=I(n,po),c=r({},n,{component:s}),d=uo(c);return v.jsx(vo,r({as:s,className:f(d.root,i),ownerState:c,ref:t},e))}),Io=go;export{yo as B,$o as C,Io as a,fo as b,zo as c,Co as g,bo as s}; +import{g as z,a as y,r as p,s as g,M as H,N as F,b as l,_ as r,H as C,a1 as A,u as $,e as I,j as v,f,h as B,P as D}from"./index-Ly36R-YS.js";const S="true";function Co(){return localStorage.getItem("host")===S}function bo(o){o?localStorage.setItem("host",S):localStorage.removeItem("host")}function fo(){return localStorage.getItem("nickname")||""}function zo(o){localStorage.setItem("nickname",o)}function q(o){return y("MuiButton",o)}const J=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"]),b=J,K=p.createContext({}),Q=K,X=p.createContext(void 0),Y=X,Z=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],w=o=>{const{color:a,disableElevation:t,fullWidth:n,size:i,variant:s,classes:e}=o,c={root:["root",s,`${s}${l(a)}`,`size${l(i)}`,`${s}Size${l(i)}`,a==="inherit"&&"colorInherit",t&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${l(i)}`],endIcon:["endIcon",`iconSize${l(i)}`]},d=B(c,q,e);return r({},e,d)},E=o=>r({},o.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},o.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},o.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),oo=g(H,{shouldForwardProp:o=>F(o)||o==="classes",name:"MuiButton",slot:"Root",overridesResolver:(o,a)=>{const{ownerState:t}=o;return[a.root,a[t.variant],a[`${t.variant}${l(t.color)}`],a[`size${l(t.size)}`],a[`${t.variant}Size${l(t.size)}`],t.color==="inherit"&&a.colorInherit,t.disableElevation&&a.disableElevation,t.fullWidth&&a.fullWidth]}})(({theme:o,ownerState:a})=>{var t,n;const i=o.palette.mode==="light"?o.palette.grey[300]:o.palette.grey[800],s=o.palette.mode==="light"?o.palette.grey.A100:o.palette.grey[700];return r({},o.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(o.vars||o).shape.borderRadius,transition:o.transitions.create(["background-color","box-shadow","border-color","color"],{duration:o.transitions.duration.short}),"&:hover":r({textDecoration:"none",backgroundColor:o.vars?`rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})`:C(o.palette.text.primary,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},a.variant==="text"&&a.color!=="inherit"&&{backgroundColor:o.vars?`rgba(${o.vars.palette[a.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:C(o.palette[a.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},a.variant==="outlined"&&a.color!=="inherit"&&{border:`1px solid ${(o.vars||o).palette[a.color].main}`,backgroundColor:o.vars?`rgba(${o.vars.palette[a.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:C(o.palette[a.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},a.variant==="contained"&&{backgroundColor:o.vars?o.vars.palette.Button.inheritContainedHoverBg:s,boxShadow:(o.vars||o).shadows[4],"@media (hover: none)":{boxShadow:(o.vars||o).shadows[2],backgroundColor:(o.vars||o).palette.grey[300]}},a.variant==="contained"&&a.color!=="inherit"&&{backgroundColor:(o.vars||o).palette[a.color].dark,"@media (hover: none)":{backgroundColor:(o.vars||o).palette[a.color].main}}),"&:active":r({},a.variant==="contained"&&{boxShadow:(o.vars||o).shadows[8]}),[`&.${b.focusVisible}`]:r({},a.variant==="contained"&&{boxShadow:(o.vars||o).shadows[6]}),[`&.${b.disabled}`]:r({color:(o.vars||o).palette.action.disabled},a.variant==="outlined"&&{border:`1px solid ${(o.vars||o).palette.action.disabledBackground}`},a.variant==="contained"&&{color:(o.vars||o).palette.action.disabled,boxShadow:(o.vars||o).shadows[0],backgroundColor:(o.vars||o).palette.action.disabledBackground})},a.variant==="text"&&{padding:"6px 8px"},a.variant==="text"&&a.color!=="inherit"&&{color:(o.vars||o).palette[a.color].main},a.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},a.variant==="outlined"&&a.color!=="inherit"&&{color:(o.vars||o).palette[a.color].main,border:o.vars?`1px solid rgba(${o.vars.palette[a.color].mainChannel} / 0.5)`:`1px solid ${C(o.palette[a.color].main,.5)}`},a.variant==="contained"&&{color:o.vars?o.vars.palette.text.primary:(t=(n=o.palette).getContrastText)==null?void 0:t.call(n,o.palette.grey[300]),backgroundColor:o.vars?o.vars.palette.Button.inheritContainedBg:i,boxShadow:(o.vars||o).shadows[2]},a.variant==="contained"&&a.color!=="inherit"&&{color:(o.vars||o).palette[a.color].contrastText,backgroundColor:(o.vars||o).palette[a.color].main},a.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},a.size==="small"&&a.variant==="text"&&{padding:"4px 5px",fontSize:o.typography.pxToRem(13)},a.size==="large"&&a.variant==="text"&&{padding:"8px 11px",fontSize:o.typography.pxToRem(15)},a.size==="small"&&a.variant==="outlined"&&{padding:"3px 9px",fontSize:o.typography.pxToRem(13)},a.size==="large"&&a.variant==="outlined"&&{padding:"7px 21px",fontSize:o.typography.pxToRem(15)},a.size==="small"&&a.variant==="contained"&&{padding:"4px 10px",fontSize:o.typography.pxToRem(13)},a.size==="large"&&a.variant==="contained"&&{padding:"8px 22px",fontSize:o.typography.pxToRem(15)},a.fullWidth&&{width:"100%"})},({ownerState:o})=>o.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${b.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${b.disabled}`]:{boxShadow:"none"}}),ao=g("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(o,a)=>{const{ownerState:t}=o;return[a.startIcon,a[`iconSize${l(t.size)}`]]}})(({ownerState:o})=>r({display:"inherit",marginRight:8,marginLeft:-4},o.size==="small"&&{marginLeft:-2},E(o))),to=g("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(o,a)=>{const{ownerState:t}=o;return[a.endIcon,a[`iconSize${l(t.size)}`]]}})(({ownerState:o})=>r({display:"inherit",marginRight:-4,marginLeft:8},o.size==="small"&&{marginRight:-2},E(o))),no=p.forwardRef(function(a,t){const n=p.useContext(Q),i=p.useContext(Y),s=A(n,a),e=$({props:s,name:"MuiButton"}),{children:c,color:d="primary",component:m="button",className:P,disabled:R=!1,disableElevation:L=!1,disableFocusRipple:h=!1,endIcon:k,focusVisibleClassName:W,fullWidth:T=!1,size:U="medium",startIcon:M,type:N,variant:j="text"}=e,_=I(e,Z),x=r({},e,{color:d,component:m,disabled:R,disableElevation:L,disableFocusRipple:h,fullWidth:T,size:U,type:N,variant:j}),u=w(x),V=M&&v.jsx(ao,{className:u.startIcon,ownerState:x,children:M}),O=k&&v.jsx(to,{className:u.endIcon,ownerState:x,children:k}),G=i||"";return v.jsxs(oo,r({ownerState:x,className:f(n.className,u.root,P,G),component:m,disabled:R,focusRipple:!h,focusVisibleClassName:f(u.focusVisible,W),ref:t,type:N},_,{classes:u,children:[V,c,O]}))}),yo=no;function ro(o){return y("MuiCard",o)}z("MuiCard",["root"]);const so=["className","raised"],io=o=>{const{classes:a}=o;return B({root:["root"]},ro,a)},eo=g(D,{name:"MuiCard",slot:"Root",overridesResolver:(o,a)=>a.root})(()=>({overflow:"hidden"})),lo=p.forwardRef(function(a,t){const n=$({props:a,name:"MuiCard"}),{className:i,raised:s=!1}=n,e=I(n,so),c=r({},n,{raised:s}),d=io(c);return v.jsx(eo,r({className:f(d.root,i),elevation:s?8:void 0,ref:t,ownerState:c},e))}),$o=lo;function co(o){return y("MuiCardContent",o)}z("MuiCardContent",["root"]);const po=["className","component"],uo=o=>{const{classes:a}=o;return B({root:["root"]},co,a)},vo=g("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(o,a)=>a.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),go=p.forwardRef(function(a,t){const n=$({props:a,name:"MuiCardContent"}),{className:i,component:s="div"}=n,e=I(n,po),c=r({},n,{component:s}),d=uo(c);return v.jsx(vo,r({as:s,className:f(d.root,i),ownerState:c,ref:t},e))}),Io=go;export{yo as B,$o as C,Io as a,fo as b,zo as c,Co as g,bo as s}; diff --git a/assets/ErrorBoundary-J0VEI-Mo.js b/assets/ErrorBoundary-CvPPiDQJ.js similarity index 97% rename from assets/ErrorBoundary-J0VEI-Mo.js rename to assets/ErrorBoundary-CvPPiDQJ.js index 6a486749..e9474bdf 100644 --- a/assets/ErrorBoundary-J0VEI-Mo.js +++ b/assets/ErrorBoundary-CvPPiDQJ.js @@ -1 +1 @@ -import{g as B,a as P,c as d,j as t,s as u,P as K,b,d as R,l as L,_ as n,r as k,u as E,e as _,I as Q,f as N,h as W,T as A,i as X,L as Y,k as oo}from"./index-Tolw1maY.js";import{u as to}from"./useSetDocumentTitle-Ksgo9PXo.js";function so(o){return P("MuiAlert",o)}const eo=B("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),T=eo,ro=d(t.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),lo=d(t.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),no=d(t.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),ao=d(t.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),io=d(t.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),co=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],po=o=>{const{variant:s,color:r,severity:l,classes:e}=o,a={root:["root",`${s}${b(r||l)}`,`${s}`],icon:["icon"],message:["message"],action:["action"]};return W(a,so,e)},uo=u(K,{name:"MuiAlert",slot:"Root",overridesResolver:(o,s)=>{const{ownerState:r}=o;return[s.root,s[r.variant],s[`${r.variant}${b(r.color||r.severity)}`]]}})(({theme:o,ownerState:s})=>{const r=o.palette.mode==="light"?R:L,l=o.palette.mode==="light"?L:R,e=s.color||s.severity;return n({},o.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},e&&s.variant==="standard"&&{color:o.vars?o.vars.palette.Alert[`${e}Color`]:r(o.palette[e].light,.6),backgroundColor:o.vars?o.vars.palette.Alert[`${e}StandardBg`]:l(o.palette[e].light,.9),[`& .${T.icon}`]:o.vars?{color:o.vars.palette.Alert[`${e}IconColor`]}:{color:o.palette[e].main}},e&&s.variant==="outlined"&&{color:o.vars?o.vars.palette.Alert[`${e}Color`]:r(o.palette[e].light,.6),border:`1px solid ${(o.vars||o).palette[e].light}`,[`& .${T.icon}`]:o.vars?{color:o.vars.palette.Alert[`${e}IconColor`]}:{color:o.palette[e].main}},e&&s.variant==="filled"&&n({fontWeight:o.typography.fontWeightMedium},o.vars?{color:o.vars.palette.Alert[`${e}FilledColor`],backgroundColor:o.vars.palette.Alert[`${e}FilledBg`]}:{backgroundColor:o.palette.mode==="dark"?o.palette[e].dark:o.palette[e].main,color:o.palette.getContrastText(o.palette[e].main)}))}),go=u("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(o,s)=>s.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),vo=u("div",{name:"MuiAlert",slot:"Message",overridesResolver:(o,s)=>s.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),z=u("div",{name:"MuiAlert",slot:"Action",overridesResolver:(o,s)=>s.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),S={success:t.jsx(ro,{fontSize:"inherit"}),warning:t.jsx(lo,{fontSize:"inherit"}),error:t.jsx(no,{fontSize:"inherit"}),info:t.jsx(ao,{fontSize:"inherit"})},xo=k.forwardRef(function(s,r){var l,e,a,c,g,C;const v=E({props:s,name:"MuiAlert"}),{action:x,children:O,className:U,closeText:h="Close",color:H,components:m={},componentsProps:j={},icon:M,iconMapping:w=S,onClose:I,role:F="alert",severity:f="success",slotProps:y={},slots:$={},variant:V="standard"}=v,Z=_(v,co),i=n({},v,{color:H,severity:f,variant:V}),p=po(i),D=(l=(e=$.closeButton)!=null?e:m.CloseButton)!=null?l:Q,q=(a=(c=$.closeIcon)!=null?c:m.CloseIcon)!=null?a:io,G=(g=y.closeButton)!=null?g:j.closeButton,J=(C=y.closeIcon)!=null?C:j.closeIcon;return t.jsxs(uo,n({role:F,elevation:0,ownerState:i,className:N(p.root,U),ref:r},Z,{children:[M!==!1?t.jsx(go,{ownerState:i,className:p.icon,children:M||w[f]||S[f]}):null,t.jsx(vo,{ownerState:i,className:p.message,children:O}),x!=null?t.jsx(z,{ownerState:i,className:p.action,children:x}):null,x==null&&I?t.jsx(z,{ownerState:i,className:p.action,children:t.jsx(D,n({size:"small","aria-label":h,title:h,color:"inherit",onClick:I},G,{children:t.jsx(q,n({fontSize:"small"},J))}))}):null]}))}),fo=xo;function Ao(o){return P("MuiAlertTitle",o)}B("MuiAlertTitle",["root"]);const Co=["className"],ho=o=>{const{classes:s}=o;return W({root:["root"]},Ao,s)},mo=u(A,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(o,s)=>s.root})(({theme:o})=>({fontWeight:o.typography.fontWeightMedium,marginTop:-2})),jo=k.forwardRef(function(s,r){const l=E({props:s,name:"MuiAlertTitle"}),{className:e}=l,a=_(l,Co),c=l,g=ho(c);return t.jsx(mo,n({gutterBottom:!0,component:"div",ownerState:c,ref:r,className:N(g.root,e)},a))}),Mo=jo;function $o(){to("Error");const o=X();return console.error(o),t.jsxs(t.Fragment,{children:[t.jsx(A,{component:"h1",paragraph:!0,variant:"h4",children:"Error"}),t.jsxs(fo,{severity:"error",children:[t.jsx(Mo,{children:"Unexpected Application Error"}),t.jsx("pre",{children:t.jsx("code",{children:String(o)})})]}),t.jsx("br",{}),t.jsxs(A,{paragraph:!0,children:["Refresh the page or go to"," ",t.jsx(Y,{component:oo,to:"/",children:"home"}),"."]})]})}export{$o as default}; +import{g as B,a as P,c as d,j as t,s as u,P as K,b,d as R,l as L,_ as n,r as k,u as E,e as _,I as Q,f as N,h as W,T as A,i as X,L as Y,k as oo}from"./index-Ly36R-YS.js";import{u as to}from"./useSetDocumentTitle-GBE0xs8I.js";function so(o){return P("MuiAlert",o)}const eo=B("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),T=eo,ro=d(t.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),lo=d(t.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),no=d(t.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),ao=d(t.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),io=d(t.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),co=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],po=o=>{const{variant:s,color:r,severity:l,classes:e}=o,a={root:["root",`${s}${b(r||l)}`,`${s}`],icon:["icon"],message:["message"],action:["action"]};return W(a,so,e)},uo=u(K,{name:"MuiAlert",slot:"Root",overridesResolver:(o,s)=>{const{ownerState:r}=o;return[s.root,s[r.variant],s[`${r.variant}${b(r.color||r.severity)}`]]}})(({theme:o,ownerState:s})=>{const r=o.palette.mode==="light"?R:L,l=o.palette.mode==="light"?L:R,e=s.color||s.severity;return n({},o.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},e&&s.variant==="standard"&&{color:o.vars?o.vars.palette.Alert[`${e}Color`]:r(o.palette[e].light,.6),backgroundColor:o.vars?o.vars.palette.Alert[`${e}StandardBg`]:l(o.palette[e].light,.9),[`& .${T.icon}`]:o.vars?{color:o.vars.palette.Alert[`${e}IconColor`]}:{color:o.palette[e].main}},e&&s.variant==="outlined"&&{color:o.vars?o.vars.palette.Alert[`${e}Color`]:r(o.palette[e].light,.6),border:`1px solid ${(o.vars||o).palette[e].light}`,[`& .${T.icon}`]:o.vars?{color:o.vars.palette.Alert[`${e}IconColor`]}:{color:o.palette[e].main}},e&&s.variant==="filled"&&n({fontWeight:o.typography.fontWeightMedium},o.vars?{color:o.vars.palette.Alert[`${e}FilledColor`],backgroundColor:o.vars.palette.Alert[`${e}FilledBg`]}:{backgroundColor:o.palette.mode==="dark"?o.palette[e].dark:o.palette[e].main,color:o.palette.getContrastText(o.palette[e].main)}))}),go=u("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(o,s)=>s.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),vo=u("div",{name:"MuiAlert",slot:"Message",overridesResolver:(o,s)=>s.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),z=u("div",{name:"MuiAlert",slot:"Action",overridesResolver:(o,s)=>s.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),S={success:t.jsx(ro,{fontSize:"inherit"}),warning:t.jsx(lo,{fontSize:"inherit"}),error:t.jsx(no,{fontSize:"inherit"}),info:t.jsx(ao,{fontSize:"inherit"})},xo=k.forwardRef(function(s,r){var l,e,a,c,g,C;const v=E({props:s,name:"MuiAlert"}),{action:x,children:O,className:U,closeText:h="Close",color:H,components:m={},componentsProps:j={},icon:M,iconMapping:w=S,onClose:I,role:F="alert",severity:f="success",slotProps:y={},slots:$={},variant:V="standard"}=v,Z=_(v,co),i=n({},v,{color:H,severity:f,variant:V}),p=po(i),D=(l=(e=$.closeButton)!=null?e:m.CloseButton)!=null?l:Q,q=(a=(c=$.closeIcon)!=null?c:m.CloseIcon)!=null?a:io,G=(g=y.closeButton)!=null?g:j.closeButton,J=(C=y.closeIcon)!=null?C:j.closeIcon;return t.jsxs(uo,n({role:F,elevation:0,ownerState:i,className:N(p.root,U),ref:r},Z,{children:[M!==!1?t.jsx(go,{ownerState:i,className:p.icon,children:M||w[f]||S[f]}):null,t.jsx(vo,{ownerState:i,className:p.message,children:O}),x!=null?t.jsx(z,{ownerState:i,className:p.action,children:x}):null,x==null&&I?t.jsx(z,{ownerState:i,className:p.action,children:t.jsx(D,n({size:"small","aria-label":h,title:h,color:"inherit",onClick:I},G,{children:t.jsx(q,n({fontSize:"small"},J))}))}):null]}))}),fo=xo;function Ao(o){return P("MuiAlertTitle",o)}B("MuiAlertTitle",["root"]);const Co=["className"],ho=o=>{const{classes:s}=o;return W({root:["root"]},Ao,s)},mo=u(A,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(o,s)=>s.root})(({theme:o})=>({fontWeight:o.typography.fontWeightMedium,marginTop:-2})),jo=k.forwardRef(function(s,r){const l=E({props:s,name:"MuiAlertTitle"}),{className:e}=l,a=_(l,Co),c=l,g=ho(c);return t.jsx(mo,n({gutterBottom:!0,component:"div",ownerState:c,ref:r,className:N(g.root,e)},a))}),Mo=jo;function $o(){to("Error");const o=X();return console.error(o),t.jsxs(t.Fragment,{children:[t.jsx(A,{component:"h1",paragraph:!0,variant:"h4",children:"Error"}),t.jsxs(fo,{severity:"error",children:[t.jsx(Mo,{children:"Unexpected Application Error"}),t.jsx("pre",{children:t.jsx("code",{children:String(o)})})]}),t.jsx("br",{}),t.jsxs(A,{paragraph:!0,children:["Refresh the page or go to"," ",t.jsx(Y,{component:oo,to:"/",children:"home"}),"."]})]})}export{$o as default}; diff --git a/assets/Home-g_xXNBgC.js b/assets/Home-jHcFiUPI.js similarity index 95% rename from assets/Home-g_xXNBgC.js rename to assets/Home-jHcFiUPI.js index b5724d6b..7ad39c4f 100644 --- a/assets/Home-g_xXNBgC.js +++ b/assets/Home-jHcFiUPI.js @@ -1 +1 @@ -import{g as H,a as R,s as c,_ as l,r as T,u as P,e as M,T as t,j as e,f as N,h as k,B as A,k as B}from"./index-Tolw1maY.js";import{B as w,s as S,C as U,a as E}from"./CardContent-dpCYL8Mf.js";function L(s){return R("MuiCardHeader",s)}const _=H("MuiCardHeader",["root","avatar","action","content","title","subheader"]),g=_,$=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],J=s=>{const{classes:a}=s;return k({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},L,a)},O=c("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(s,a)=>l({[`& .${g.title}`]:a.title,[`& .${g.subheader}`]:a.subheader},a.root)})({display:"flex",alignItems:"center",padding:16}),W=c("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(s,a)=>a.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),z=c("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(s,a)=>a.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),I=c("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(s,a)=>a.content})({flex:"1 1 auto"}),q=T.forwardRef(function(a,u){const p=P({props:a,name:"MuiCardHeader"}),{action:m,avatar:d,className:C,component:x="div",disableTypography:h=!1,subheader:y,subheaderTypographyProps:v,title:j,titleTypographyProps:f}=p,b=M(p,$),o=l({},p,{component:x,disableTypography:h}),r=J(o);let n=j;n!=null&&n.type!==t&&!h&&(n=e.jsx(t,l({variant:d?"body2":"h5",className:r.title,component:"span",display:"block"},f,{children:n})));let i=y;return i!=null&&i.type!==t&&!h&&(i=e.jsx(t,l({variant:d?"body2":"body1",className:r.subheader,color:"text.secondary",component:"span",display:"block"},v,{children:i}))),e.jsxs(O,l({className:N(r.root,C),as:x,ref:u,ownerState:o},b,{children:[d&&e.jsx(W,{className:r.avatar,ownerState:o,children:d}),e.jsxs(I,{className:r.content,ownerState:o,children:[n,i]}),m&&e.jsx(z,{className:r.action,ownerState:o,children:m})]}))}),D=q;function K(){return e.jsxs(A,{sx:{textAlign:"center"},children:[e.jsx(t,{component:"h1",paragraph:!0,variant:"h2",children:"Just Jokes"}),e.jsx(t,{paragraph:!0,variant:"h5",children:"Play with your friends"}),e.jsx(t,{sx:{marginBottom:3},children:e.jsx(w,{component:B,onClick:()=>S(!0),size:"large",to:"/room",variant:"contained",children:"Create room"})}),e.jsxs(U,{sx:{margin:"0 auto",maxWidth:350},children:[e.jsx(D,{sx:{paddingBottom:0},title:"How to play"}),e.jsx(E,{children:e.jsxs(t,{component:"ol",sx:{textAlign:"left"},children:[e.jsxs(t,{component:"li",children:["Click the ",e.jsx("strong",{children:"CREATE ROOM"})," button"]}),e.jsx(t,{component:"li",children:"Select the settings and start the game"}),e.jsx(t,{component:"li",children:"Connect with your friends using audio/video chat"}),e.jsx(t,{component:"li",children:"Share the room URL"}),e.jsx(t,{component:"li",children:"Have fun! 🎉"})]})})]})]})}export{K as default}; +import{g as H,a as R,s as c,_ as l,r as T,u as P,e as M,T as t,j as e,f as N,h as k,B as A,k as B}from"./index-Ly36R-YS.js";import{B as w,s as S,C as U,a as E}from"./CardContent-NFY9XfSV.js";function L(s){return R("MuiCardHeader",s)}const _=H("MuiCardHeader",["root","avatar","action","content","title","subheader"]),g=_,$=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],J=s=>{const{classes:a}=s;return k({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},L,a)},O=c("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(s,a)=>l({[`& .${g.title}`]:a.title,[`& .${g.subheader}`]:a.subheader},a.root)})({display:"flex",alignItems:"center",padding:16}),W=c("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(s,a)=>a.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),z=c("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(s,a)=>a.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),I=c("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(s,a)=>a.content})({flex:"1 1 auto"}),q=T.forwardRef(function(a,u){const p=P({props:a,name:"MuiCardHeader"}),{action:m,avatar:d,className:C,component:x="div",disableTypography:h=!1,subheader:y,subheaderTypographyProps:v,title:j,titleTypographyProps:f}=p,b=M(p,$),o=l({},p,{component:x,disableTypography:h}),r=J(o);let n=j;n!=null&&n.type!==t&&!h&&(n=e.jsx(t,l({variant:d?"body2":"h5",className:r.title,component:"span",display:"block"},f,{children:n})));let i=y;return i!=null&&i.type!==t&&!h&&(i=e.jsx(t,l({variant:d?"body2":"body1",className:r.subheader,color:"text.secondary",component:"span",display:"block"},v,{children:i}))),e.jsxs(O,l({className:N(r.root,C),as:x,ref:u,ownerState:o},b,{children:[d&&e.jsx(W,{className:r.avatar,ownerState:o,children:d}),e.jsxs(I,{className:r.content,ownerState:o,children:[n,i]}),m&&e.jsx(z,{className:r.action,ownerState:o,children:m})]}))}),D=q;function K(){return e.jsxs(A,{sx:{textAlign:"center"},children:[e.jsx(t,{component:"h1",paragraph:!0,variant:"h2",children:"Just Jokes"}),e.jsx(t,{paragraph:!0,variant:"h5",children:"Play with your friends"}),e.jsx(t,{sx:{marginBottom:3},children:e.jsx(w,{component:B,onClick:()=>S(!0),size:"large",to:"/room",variant:"contained",children:"Create room"})}),e.jsxs(U,{sx:{margin:"0 auto",maxWidth:350},children:[e.jsx(D,{sx:{paddingBottom:0},title:"How to play"}),e.jsx(E,{children:e.jsxs(t,{component:"ol",sx:{textAlign:"left"},children:[e.jsxs(t,{component:"li",children:["Click the ",e.jsx("strong",{children:"CREATE ROOM"})," button"]}),e.jsx(t,{component:"li",children:"Select the settings and start the game"}),e.jsx(t,{component:"li",children:"Connect with your friends using audio/video chat"}),e.jsx(t,{component:"li",children:"Share the room URL"}),e.jsx(t,{component:"li",children:"Have fun! 🎉"})]})})]})]})}export{K as default}; diff --git a/assets/NotFound-IAqs8Vq9.js b/assets/NotFound-4CVTA1Ff.js similarity index 65% rename from assets/NotFound-IAqs8Vq9.js rename to assets/NotFound-4CVTA1Ff.js index d5e1343d..581cc9c9 100644 --- a/assets/NotFound-IAqs8Vq9.js +++ b/assets/NotFound-4CVTA1Ff.js @@ -1 +1 @@ -import{j as o,T as r,L as t,k as n}from"./index-Tolw1maY.js";import{u as e}from"./useSetDocumentTitle-Ksgo9PXo.js";function i(){return e("Not Found"),o.jsxs(o.Fragment,{children:[o.jsx(r,{component:"h1",paragraph:!0,variant:"h4",children:"Not Found"}),o.jsxs(r,{paragraph:!0,children:["Go"," ",o.jsx(t,{component:n,to:"/",children:"home"}),"."]})]})}export{i as default}; +import{j as o,T as r,L as t,k as n}from"./index-Ly36R-YS.js";import{u as e}from"./useSetDocumentTitle-GBE0xs8I.js";function i(){return e("Not Found"),o.jsxs(o.Fragment,{children:[o.jsx(r,{component:"h1",paragraph:!0,variant:"h4",children:"Not Found"}),o.jsxs(r,{paragraph:!0,children:["Go"," ",o.jsx(t,{component:n,to:"/",children:"home"}),"."]})]})}export{i as default}; diff --git a/assets/Room-DiGSVbGm.js b/assets/Room-DiGSVbGm.js new file mode 100644 index 00000000..8d164cd8 --- /dev/null +++ b/assets/Room-DiGSVbGm.js @@ -0,0 +1,10 @@ +import{r as c,m as he,o as be,j as u,n as Me,p as Yt,q as yo,t as Fe,v as Zt,w as Yo,_ as a,x as Qt,e as W,y as Co,z as Le,a as G,g as H,s as E,u as Z,A as dt,C as Zo,f as _,D as ut,E as jt,h as q,F as So,G as Ro,H as ke,J as it,K as tt,M as Io,T as Ne,N as ye,b as de,O as Qo,Q as $o,R as At,S as Jo,U as en,V as Jt,W as _e,P as Bt,X as tn,Y as on,Z as eo,$ as Dt,c as nn,a0 as rn}from"./index-Ly36R-YS.js";import{g as sn,s as an,C as Po,a as ln,B as Ot,b as cn,c as dn}from"./CardContent-NFY9XfSV.js";var K={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Wt=Symbol.for("react.element"),zt=Symbol.for("react.portal"),pt=Symbol.for("react.fragment"),ft=Symbol.for("react.strict_mode"),mt=Symbol.for("react.profiler"),gt=Symbol.for("react.provider"),bt=Symbol.for("react.context"),un=Symbol.for("react.server_context"),ht=Symbol.for("react.forward_ref"),vt=Symbol.for("react.suspense"),xt=Symbol.for("react.suspense_list"),yt=Symbol.for("react.memo"),Ct=Symbol.for("react.lazy"),pn=Symbol.for("react.offscreen"),ko;ko=Symbol.for("react.module.reference");function ve(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Wt:switch(e=e.type,e){case pt:case mt:case ft:case vt:case xt:return e;default:switch(e=e&&e.$$typeof,e){case un:case bt:case ht:case Ct:case yt:case gt:return e;default:return t}}case zt:return t}}}K.ContextConsumer=bt;K.ContextProvider=gt;K.Element=Wt;K.ForwardRef=ht;K.Fragment=pt;K.Lazy=Ct;K.Memo=yt;K.Portal=zt;K.Profiler=mt;K.StrictMode=ft;K.Suspense=vt;K.SuspenseList=xt;K.isAsyncMode=function(){return!1};K.isConcurrentMode=function(){return!1};K.isContextConsumer=function(e){return ve(e)===bt};K.isContextProvider=function(e){return ve(e)===gt};K.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Wt};K.isForwardRef=function(e){return ve(e)===ht};K.isFragment=function(e){return ve(e)===pt};K.isLazy=function(e){return ve(e)===Ct};K.isMemo=function(e){return ve(e)===yt};K.isPortal=function(e){return ve(e)===zt};K.isProfiler=function(e){return ve(e)===mt};K.isStrictMode=function(e){return ve(e)===ft};K.isSuspense=function(e){return ve(e)===vt};K.isSuspenseList=function(e){return ve(e)===xt};K.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===pt||e===mt||e===ft||e===vt||e===xt||e===pn||typeof e=="object"&&e!==null&&(e.$$typeof===Ct||e.$$typeof===yt||e.$$typeof===gt||e.$$typeof===bt||e.$$typeof===ht||e.$$typeof===ko||e.getModuleId!==void 0)};K.typeOf=ve;function Mo(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const fn=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function mn(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function gn(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let o=t(`[name="${e.name}"]:checked`);return o||(o=t(`[name="${e.name}"]`)),o!==e}function bn(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||gn(e))}function hn(e){const t=[],o=[];return Array.from(e.querySelectorAll(fn)).forEach((n,r)=>{const s=mn(n);s===-1||!bn(n)||(s===0?t.push(n):o.push({documentOrder:r,tabIndex:s,node:n}))}),o.sort((n,r)=>n.tabIndex===r.tabIndex?n.documentOrder-r.documentOrder:n.tabIndex-r.tabIndex).map(n=>n.node).concat(t)}function vn(){return!0}function xn(e){const{children:t,disableAutoFocus:o=!1,disableEnforceFocus:n=!1,disableRestoreFocus:r=!1,getTabbable:s=hn,isEnabled:i=vn,open:l}=e,d=c.useRef(!1),p=c.useRef(null),f=c.useRef(null),b=c.useRef(null),v=c.useRef(null),x=c.useRef(!1),h=c.useRef(null),P=he(t.ref,h),S=c.useRef(null);c.useEffect(()=>{!l||!h.current||(x.current=!o)},[o,l]),c.useEffect(()=>{if(!l||!h.current)return;const g=be(h.current);return h.current.contains(g.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),x.current&&h.current.focus()),()=>{r||(b.current&&b.current.focus&&(d.current=!0,b.current.focus()),b.current=null)}},[l]),c.useEffect(()=>{if(!l||!h.current)return;const g=be(h.current),m=C=>{S.current=C,!(n||!i()||C.key!=="Tab")&&g.activeElement===h.current&&C.shiftKey&&(d.current=!0,f.current&&f.current.focus())},I=()=>{const C=h.current;if(C===null)return;if(!g.hasFocus()||!i()||d.current){d.current=!1;return}if(C.contains(g.activeElement)||n&&g.activeElement!==p.current&&g.activeElement!==f.current)return;if(g.activeElement!==v.current)v.current=null;else if(v.current!==null)return;if(!x.current)return;let M=[];if((g.activeElement===p.current||g.activeElement===f.current)&&(M=s(h.current)),M.length>0){var j,T;const D=!!((j=S.current)!=null&&j.shiftKey&&((T=S.current)==null?void 0:T.key)==="Tab"),A=M[0],w=M[M.length-1];typeof A!="string"&&typeof w!="string"&&(D?w.focus():A.focus())}else C.focus()};g.addEventListener("focusin",I),g.addEventListener("keydown",m,!0);const R=setInterval(()=>{g.activeElement&&g.activeElement.tagName==="BODY"&&I()},50);return()=>{clearInterval(R),g.removeEventListener("focusin",I),g.removeEventListener("keydown",m,!0)}},[o,n,r,i,l,s]);const y=g=>{b.current===null&&(b.current=g.relatedTarget),x.current=!0,v.current=g.target;const m=t.props.onFocus;m&&m(g)},$=g=>{b.current===null&&(b.current=g.relatedTarget),x.current=!0};return u.jsxs(c.Fragment,{children:[u.jsx("div",{tabIndex:l?0:-1,onFocus:$,ref:p,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:P,onFocus:y}),u.jsx("div",{tabIndex:l?0:-1,onFocus:$,ref:f,"data-testid":"sentinelEnd"})]})}function yn(e){return typeof e=="function"?e():e}const Cn=c.forwardRef(function(t,o){const{children:n,container:r,disablePortal:s=!1}=t,[i,l]=c.useState(null),d=he(c.isValidElement(n)?n.ref:null,o);if(Me(()=>{s||l(yn(r)||document.body)},[r,s]),Me(()=>{if(i&&!s)return Yt(o,i),()=>{Yt(o,null)}},[o,i,s]),s){if(c.isValidElement(n)){const p={ref:d};return c.cloneElement(n,p)}return u.jsx(c.Fragment,{children:n})}return u.jsx(c.Fragment,{children:i&&yo.createPortal(n,i)})});function Sn(e){const t=be(e);return t.body===e?Fe(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Qe(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function to(e){return parseInt(Fe(e).getComputedStyle(e).paddingRight,10)||0}function Rn(e){const o=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return o||n}function oo(e,t,o,n,r){const s=[t,o,...n];[].forEach.call(e.children,i=>{const l=s.indexOf(i)===-1,d=!Rn(i);l&&d&&Qe(i,r)})}function wt(e,t){let o=-1;return e.some((n,r)=>t(n)?(o=r,!0):!1),o}function In(e,t){const o=[],n=e.container;if(!t.disableScrollLock){if(Sn(n)){const i=Mo(be(n));o.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${to(n)+i}px`;const l=be(n).querySelectorAll(".mui-fixed");[].forEach.call(l,d=>{o.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${to(d)+i}px`})}let s;if(n.parentNode instanceof DocumentFragment)s=be(n).body;else{const i=n.parentElement,l=Fe(n);s=(i==null?void 0:i.nodeName)==="HTML"&&l.getComputedStyle(i).overflowY==="scroll"?i:n}o.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{o.forEach(({value:s,el:i,property:l})=>{s?i.style.setProperty(l,s):i.style.removeProperty(l)})}}function $n(e){const t=[];return[].forEach.call(e.children,o=>{o.getAttribute("aria-hidden")==="true"&&t.push(o)}),t}class Pn{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,o){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Qe(t.modalRef,!1);const r=$n(o);oo(o,t.mount,t.modalRef,r,!0);const s=wt(this.containers,i=>i.container===o);return s!==-1?(this.containers[s].modals.push(t),n):(this.containers.push({modals:[t],container:o,restore:null,hiddenSiblings:r}),n)}mount(t,o){const n=wt(this.containers,s=>s.modals.indexOf(t)!==-1),r=this.containers[n];r.restore||(r.restore=In(r,o))}remove(t,o=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const r=wt(this.containers,i=>i.modals.indexOf(t)!==-1),s=this.containers[r];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(n,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&Qe(t.modalRef,o),oo(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(r,1);else{const i=s.modals[s.modals.length-1];i.modalRef&&Qe(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function kn(e){return typeof e=="function"?e():e}function Mn(e){return e?e.props.hasOwnProperty("in"):!1}const wn=new Pn;function Tn(e){const{container:t,disableEscapeKeyDown:o=!1,disableScrollLock:n=!1,manager:r=wn,closeAfterTransition:s=!1,onTransitionEnter:i,onTransitionExited:l,children:d,onClose:p,open:f,rootRef:b}=e,v=c.useRef({}),x=c.useRef(null),h=c.useRef(null),P=he(h,b),[S,y]=c.useState(!f),$=Mn(d);let g=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(g=!1);const m=()=>be(x.current),I=()=>(v.current.modalRef=h.current,v.current.mount=x.current,v.current),R=()=>{r.mount(I(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},C=Zt(()=>{const L=kn(t)||m().body;r.add(I(),L),h.current&&R()}),M=c.useCallback(()=>r.isTopModal(I()),[r]),j=Zt(L=>{x.current=L,L&&(f&&M()?R():h.current&&Qe(h.current,g))}),T=c.useCallback(()=>{r.remove(I(),g)},[g,r]);c.useEffect(()=>()=>{T()},[T]),c.useEffect(()=>{f?C():(!$||!s)&&T()},[f,T,$,s,C]);const D=L=>N=>{var B;(B=L.onKeyDown)==null||B.call(L,N),!(N.key!=="Escape"||N.which===229||!M())&&(o||(N.stopPropagation(),p&&p(N,"escapeKeyDown")))},A=L=>N=>{var B;(B=L.onClick)==null||B.call(L,N),N.target===N.currentTarget&&p&&p(N,"backdropClick")};return{getRootProps:(L={})=>{const N=Yo(e);delete N.onTransitionEnter,delete N.onTransitionExited;const B=a({},N,L);return a({role:"presentation"},B,{onKeyDown:D(B),ref:P})},getBackdropProps:(L={})=>{const N=L;return a({"aria-hidden":!0},N,{onClick:A(N),open:f})},getTransitionProps:()=>{const L=()=>{y(!1),i&&i()},N=()=>{y(!0),l&&l(),s&&T()};return{onEnter:Qt(L,d==null?void 0:d.props.onEnter),onExited:Qt(N,d==null?void 0:d.props.onExited)}},rootRef:P,portalRef:j,isTopModal:M,exited:S,hasTransition:$}}const En=["onChange","maxRows","minRows","style","value"];function rt(e){return parseInt(e,10)||0}const Nn={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function no(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const Fn=c.forwardRef(function(t,o){const{onChange:n,maxRows:r,minRows:s=1,style:i,value:l}=t,d=W(t,En),{current:p}=c.useRef(l!=null),f=c.useRef(null),b=he(o,f),v=c.useRef(null),x=c.useRef(0),[h,P]=c.useState({outerHeightStyle:0}),S=c.useCallback(()=>{const m=f.current,R=Fe(m).getComputedStyle(m);if(R.width==="0px")return{outerHeightStyle:0};const C=v.current;C.style.width=R.width,C.value=m.value||t.placeholder||"x",C.value.slice(-1)===` +`&&(C.value+=" ");const M=R.boxSizing,j=rt(R.paddingBottom)+rt(R.paddingTop),T=rt(R.borderBottomWidth)+rt(R.borderTopWidth),D=C.scrollHeight;C.value="x";const A=C.scrollHeight;let w=D;s&&(w=Math.max(Number(s)*A,w)),r&&(w=Math.min(Number(r)*A,w)),w=Math.max(w,A);const k=w+(M==="border-box"?j+T:0),O=Math.abs(w-D)<=1;return{outerHeightStyle:k,overflow:O}},[r,s,t.placeholder]),y=(m,I)=>{const{outerHeightStyle:R,overflow:C}=I;return x.current<20&&(R>0&&Math.abs((m.outerHeightStyle||0)-R)>1||m.overflow!==C)?(x.current+=1,{overflow:C,outerHeightStyle:R}):m},$=c.useCallback(()=>{const m=S();no(m)||P(I=>y(I,m))},[S]);Me(()=>{const m=()=>{const D=S();no(D)||yo.flushSync(()=>{P(A=>y(A,D))})},I=()=>{x.current=0,m()};let R;const C=Co(I),M=f.current,j=Fe(M);j.addEventListener("resize",C);let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(I),T.observe(M)),()=>{C.clear(),cancelAnimationFrame(R),j.removeEventListener("resize",C),T&&T.disconnect()}},[S]),Me(()=>{$()}),c.useEffect(()=>{x.current=0},[l]);const g=m=>{x.current=0,p||$(),n&&n(m)};return u.jsxs(c.Fragment,{children:[u.jsx("textarea",a({value:l,onChange:g,ref:b,rows:s,style:a({height:h.outerHeightStyle,overflow:h.overflow?"hidden":void 0},i)},d)),u.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:v,tabIndex:-1,style:a({},Nn.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function Ln(){const{debugUrl:e}=Le.useConnectionStatus();c.useEffect(()=>{},[e])}var St=(e=>(e.host="host",e.jokes="jokes",e.players="players",e.settings="settings",e))(St||{}),Ze=(e=>(e.players="players",e.rounds="rounds",e.timer="timer",e))(Ze||{}),Je=(e=>(e[e.players=4]="players",e[e.rounds=3]="rounds",e[e.timer=30]="timer",e))(Je||{});function wo(){const[e,t]=Le.useSharedState(St.host,"");return{host:e,setHost:t}}const ro={nickname:"",active:!1};function Rt(){const e=Le.useUniqueClientId(),[t,o]=c.useState(ro),n={[e]:ro},[r,s]=Le.useSharedReducer(St.players,(i,l)=>{const{payload:d,type:p}=l;i[d.playerId]=i[d.playerId]||{};const f=i[d.playerId];switch(p){case"active":return f.active=d.active,o(f),i;case"nickname":return f.nickname=d.nickname,o(f),i;default:return i}},n);return{player:t,playerId:e,players:r,activePlayersCount:Object.values(r).filter(({active:i})=>i).length,setPlayerActive:i=>s({type:"active",payload:{playerId:e,active:i}}),setPlayerNickname:i=>s({type:"nickname",payload:{playerId:e,nickname:i}})}}function On(){const{playerId:e}=Rt(),{host:t,setHost:o}=wo();c.useEffect(()=>{!t&&sn()&&(o(e),an(!1))},[])}const so="visibilitychange",jn="hidden";function An(){const{setPlayerActive:e}=Rt();c.useEffect(()=>{e(!0);function t(){e(document.visibilityState!==jn)}return document.addEventListener(so,t),function(){document.removeEventListener(so,t)}},[])}function Bn(){const[e,t]=Le.useSharedState(St.settings,Je);return{settings:e,setSettings:t}}const Dn=c.createContext(),io=Dn;function Wn(e){return G("MuiGrid",e)}const zn=[0,1,2,3,4,5,6,7,8,9,10],_n=["column-reverse","column","row-reverse","row"],Un=["nowrap","wrap-reverse","wrap"],Ge=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],ot=H("MuiGrid",["root","container","item","zeroMinWidth",...zn.map(e=>`spacing-xs-${e}`),..._n.map(e=>`direction-xs-${e}`),...Un.map(e=>`wrap-xs-${e}`),...Ge.map(e=>`grid-xs-${e}`),...Ge.map(e=>`grid-sm-${e}`),...Ge.map(e=>`grid-md-${e}`),...Ge.map(e=>`grid-lg-${e}`),...Ge.map(e=>`grid-xl-${e}`)]),Hn=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function ze(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function Vn({theme:e,ownerState:t}){let o;return e.breakpoints.keys.reduce((n,r)=>{let s={};if(t[r]&&(o=t[r]),!o)return n;if(o===!0)s={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(o==="auto")s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=ut({values:t.columns,breakpoints:e.breakpoints.values}),l=typeof i=="object"?i[r]:i;if(l==null)return n;const d=`${Math.round(o/l*1e8)/1e6}%`;let p={};if(t.container&&t.item&&t.columnSpacing!==0){const f=e.spacing(t.columnSpacing);if(f!=="0px"){const b=`calc(${d} + ${ze(f)})`;p={flexBasis:b,maxWidth:b}}}s=a({flexBasis:d,flexGrow:0,maxWidth:d},p)}return e.breakpoints.values[r]===0?Object.assign(n,s):n[e.breakpoints.up(r)]=s,n},{})}function Gn({theme:e,ownerState:t}){const o=ut({values:t.direction,breakpoints:e.breakpoints.values});return jt({theme:e},o,n=>{const r={flexDirection:n};return n.indexOf("column")===0&&(r[`& > .${ot.item}`]={maxWidth:"none"}),r})}function To({breakpoints:e,values:t}){let o="";Object.keys(t).forEach(r=>{o===""&&t[r]!==0&&(o=r)});const n=Object.keys(e).sort((r,s)=>e[r]-e[s]);return n.slice(0,n.indexOf(o))}function qn({theme:e,ownerState:t}){const{container:o,rowSpacing:n}=t;let r={};if(o&&n!==0){const s=ut({values:n,breakpoints:e.breakpoints.values});let i;typeof s=="object"&&(i=To({breakpoints:e.breakpoints.values,values:s})),r=jt({theme:e},s,(l,d)=>{var p;const f=e.spacing(l);return f!=="0px"?{marginTop:`-${ze(f)}`,[`& > .${ot.item}`]:{paddingTop:ze(f)}}:(p=i)!=null&&p.includes(d)?{}:{marginTop:0,[`& > .${ot.item}`]:{paddingTop:0}}})}return r}function Kn({theme:e,ownerState:t}){const{container:o,columnSpacing:n}=t;let r={};if(o&&n!==0){const s=ut({values:n,breakpoints:e.breakpoints.values});let i;typeof s=="object"&&(i=To({breakpoints:e.breakpoints.values,values:s})),r=jt({theme:e},s,(l,d)=>{var p;const f=e.spacing(l);return f!=="0px"?{width:`calc(100% + ${ze(f)})`,marginLeft:`-${ze(f)}`,[`& > .${ot.item}`]:{paddingLeft:ze(f)}}:(p=i)!=null&&p.includes(d)?{}:{width:"100%",marginLeft:0,[`& > .${ot.item}`]:{paddingLeft:0}}})}return r}function Xn(e,t,o={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[o[`spacing-xs-${String(e)}`]];const n=[];return t.forEach(r=>{const s=e[r];Number(s)>0&&n.push(o[`spacing-${r}-${String(s)}`])}),n}const Yn=E("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e,{container:n,direction:r,item:s,spacing:i,wrap:l,zeroMinWidth:d,breakpoints:p}=o;let f=[];n&&(f=Xn(i,p,t));const b=[];return p.forEach(v=>{const x=o[v];x&&b.push(t[`grid-${v}-${String(x)}`])}),[t.root,n&&t.container,s&&t.item,d&&t.zeroMinWidth,...f,r!=="row"&&t[`direction-xs-${String(r)}`],l!=="wrap"&&t[`wrap-xs-${String(l)}`],...b]}})(({ownerState:e})=>a({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),Gn,qn,Kn,Vn);function Zn(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const o=[];return t.forEach(n=>{const r=e[n];if(Number(r)>0){const s=`spacing-${n}-${String(r)}`;o.push(s)}}),o}const Qn=e=>{const{classes:t,container:o,direction:n,item:r,spacing:s,wrap:i,zeroMinWidth:l,breakpoints:d}=e;let p=[];o&&(p=Zn(s,d));const f=[];d.forEach(v=>{const x=e[v];x&&f.push(`grid-${v}-${String(x)}`)});const b={root:["root",o&&"container",r&&"item",l&&"zeroMinWidth",...p,n!=="row"&&`direction-xs-${String(n)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...f]};return q(b,Wn,t)},Jn=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiGrid"}),{breakpoints:r}=dt(),s=Zo(n),{className:i,columns:l,columnSpacing:d,component:p="div",container:f=!1,direction:b="row",item:v=!1,rowSpacing:x,spacing:h=0,wrap:P="wrap",zeroMinWidth:S=!1}=s,y=W(s,Hn),$=x||h,g=d||h,m=c.useContext(io),I=f?l||12:m,R={},C=a({},y);r.keys.forEach(T=>{y[T]!=null&&(R[T]=y[T],delete C[T])});const M=a({},s,{columns:I,container:f,direction:b,item:v,rowSpacing:$,columnSpacing:g,wrap:P,zeroMinWidth:S,spacing:h},R,{breakpoints:r.keys}),j=Qn(M);return u.jsx(io.Provider,{value:I,children:u.jsx(Yn,a({ownerState:M,className:_(j.root,i),as:p,ref:o},C))})}),Tt=Jn;var _t={},er=Ro;Object.defineProperty(_t,"__esModule",{value:!0});var Eo=_t.default=void 0,tr=er(So()),or=u;Eo=_t.default=(0,tr.default)((0,or.jsx)("path",{d:"M9 11.75c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25m6 0c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8 0-.29.02-.58.05-.86 2.36-1.05 4.23-2.98 5.21-5.37C11.07 8.33 14.05 10 17.42 10c.78 0 1.53-.09 2.25-.26.21.71.33 1.47.33 2.26 0 4.41-3.59 8-8 8"}),"Face");var Ut={},nr=Ro;Object.defineProperty(Ut,"__esModule",{value:!0});var No=Ut.default=void 0,rr=nr(So()),st=u;No=Ut.default=(0,rr.default)([(0,st.jsx)("circle",{cx:"9",cy:"13",r:"1.25"},"0"),(0,st.jsx)("path",{d:"m20.77 8.58-.92 2.01c.09.46.15.93.15 1.41 0 4.41-3.59 8-8 8s-8-3.59-8-8c0-.05.01-.1 0-.14 2.6-.98 4.69-2.99 5.74-5.55C11.58 8.56 14.37 10 17.5 10c.45 0 .89-.04 1.33-.1l-.6-1.32-.88-1.93-1.93-.88-2.79-1.27 2.79-1.27.71-.32C14.87 2.33 13.47 2 12 2 6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-1.47-.33-2.87-.9-4.13z"},"1"),(0,st.jsx)("circle",{cx:"15",cy:"13",r:"1.25"},"2"),(0,st.jsx)("path",{d:"M20.6 5.6 19.5 8l-1.1-2.4L16 4.5l2.4-1.1L19.5 1l1.1 2.4L23 4.5z"},"3")],"FaceRetouchingNatural");const sr=c.createContext({}),Ie=sr;function ir(e){return G("MuiList",e)}H("MuiList",["root","padding","dense","subheader"]);const ar=["children","className","component","dense","disablePadding","subheader"],lr=e=>{const{classes:t,disablePadding:o,dense:n,subheader:r}=e;return q({root:["root",!o&&"padding",n&&"dense",r&&"subheader"]},ir,t)},cr=E("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disablePadding&&t.padding,o.dense&&t.dense,o.subheader&&t.subheader]}})(({ownerState:e})=>a({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),dr=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiList"}),{children:r,className:s,component:i="ul",dense:l=!1,disablePadding:d=!1,subheader:p}=n,f=W(n,ar),b=c.useMemo(()=>({dense:l}),[l]),v=a({},n,{component:i,dense:l,disablePadding:d}),x=lr(v);return u.jsx(Ie.Provider,{value:b,children:u.jsxs(cr,a({as:i,className:_(x.root,s),ref:o,ownerState:v},f,{children:[p,r]}))})}),Fo=dr;function ur(e){return G("MuiListItem",e)}const pr=H("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),We=pr,fr=H("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),mr=fr;function gr(e){return G("MuiListItemSecondaryAction",e)}H("MuiListItemSecondaryAction",["root","disableGutters"]);const br=["className"],hr=e=>{const{disableGutters:t,classes:o}=e;return q({root:["root",t&&"disableGutters"]},gr,o)},vr=E("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.disableGutters&&t.disableGutters]}})(({ownerState:e})=>a({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Lo=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiListItemSecondaryAction"}),{className:r}=n,s=W(n,br),i=c.useContext(Ie),l=a({},n,{disableGutters:i.disableGutters}),d=hr(l);return u.jsx(vr,a({className:_(d.root,r),ownerState:l,ref:o},s))});Lo.muiName="ListItemSecondaryAction";const xr=Lo,yr=["className"],Cr=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Sr=(e,t)=>{const{ownerState:o}=e;return[t.root,o.dense&&t.dense,o.alignItems==="flex-start"&&t.alignItemsFlexStart,o.divider&&t.divider,!o.disableGutters&&t.gutters,!o.disablePadding&&t.padding,o.button&&t.button,o.hasSecondaryAction&&t.secondaryAction]},Rr=e=>{const{alignItems:t,button:o,classes:n,dense:r,disabled:s,disableGutters:i,disablePadding:l,divider:d,hasSecondaryAction:p,selected:f}=e;return q({root:["root",r&&"dense",!i&&"gutters",!l&&"padding",d&&"divider",s&&"disabled",o&&"button",t==="flex-start"&&"alignItemsFlexStart",p&&"secondaryAction",f&&"selected"],container:["container"]},ur,n)},Ir=E("div",{name:"MuiListItem",slot:"Root",overridesResolver:Sr})(({theme:e,ownerState:t})=>a({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&a({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${mr.root}`]:{paddingRight:48}},{[`&.${We.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${We.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ke(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${We.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ke(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${We.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${We.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ke(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ke(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),$r=E("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Pr=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiListItem"}),{alignItems:r="center",autoFocus:s=!1,button:i=!1,children:l,className:d,component:p,components:f={},componentsProps:b={},ContainerComponent:v="li",ContainerProps:{className:x}={},dense:h=!1,disabled:P=!1,disableGutters:S=!1,disablePadding:y=!1,divider:$=!1,focusVisibleClassName:g,secondaryAction:m,selected:I=!1,slotProps:R={},slots:C={}}=n,M=W(n.ContainerProps,yr),j=W(n,Cr),T=c.useContext(Ie),D=c.useMemo(()=>({dense:h||T.dense||!1,alignItems:r,disableGutters:S}),[r,T.dense,h,S]),A=c.useRef(null);Me(()=>{s&&A.current&&A.current.focus()},[s]);const w=c.Children.toArray(l),k=w.length&&it(w[w.length-1],["ListItemSecondaryAction"]),O=a({},n,{alignItems:r,autoFocus:s,button:i,dense:D.dense,disabled:P,disableGutters:S,disablePadding:y,divider:$,hasSecondaryAction:k,selected:I}),L=Rr(O),N=he(A,o),B=C.root||f.Root||Ir,U=R.root||b.root||{},X=a({className:_(L.root,U.className,d),disabled:P},j);let ne=p||"li";return i&&(X.component=p||"div",X.focusVisibleClassName=_(We.focusVisible,g),ne=Io),k?(ne=!X.component&&!p?"div":ne,v==="li"&&(ne==="li"?ne="div":X.component==="li"&&(X.component="div")),u.jsx(Ie.Provider,{value:D,children:u.jsxs($r,a({as:v,className:_(L.container,x),ref:N,ownerState:O},M,{children:[u.jsx(B,a({},U,!tt(B)&&{as:ne,ownerState:a({},O,U.ownerState)},X,{children:w})),w.pop()]}))})):u.jsx(Ie.Provider,{value:D,children:u.jsxs(B,a({},U,{as:ne,ref:N},!tt(B)&&{ownerState:a({},O,U.ownerState)},X,{children:[w,m&&u.jsx(xr,{children:m})]}))})}),kr=Pr;function Mr(e){return G("MuiListItemIcon",e)}const wr=H("MuiListItemIcon",["root","alignItemsFlexStart"]),ao=wr,Tr=["className"],Er=e=>{const{alignItems:t,classes:o}=e;return q({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Mr,o)},Nr=E("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>a({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Fr=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiListItemIcon"}),{className:r}=n,s=W(n,Tr),i=c.useContext(Ie),l=a({},n,{alignItems:i.alignItems}),d=Er(l);return u.jsx(Nr,a({className:_(d.root,r),ownerState:l,ref:o},s))}),Lr=Fr;function Or(e){return G("MuiListItemText",e)}const jr=H("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),lt=jr,Ar=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Br=e=>{const{classes:t,inset:o,primary:n,secondary:r,dense:s}=e;return q({root:["root",o&&"inset",s&&"dense",n&&r&&"multiline"],primary:["primary"],secondary:["secondary"]},Or,t)},Dr=E("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${lt.primary}`]:t.primary},{[`& .${lt.secondary}`]:t.secondary},t.root,o.inset&&t.inset,o.primary&&o.secondary&&t.multiline,o.dense&&t.dense]}})(({ownerState:e})=>a({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Wr=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiListItemText"}),{children:r,className:s,disableTypography:i=!1,inset:l=!1,primary:d,primaryTypographyProps:p,secondary:f,secondaryTypographyProps:b}=n,v=W(n,Ar),{dense:x}=c.useContext(Ie);let h=d??r,P=f;const S=a({},n,{disableTypography:i,inset:l,primary:!!h,secondary:!!P,dense:x}),y=Br(S);return h!=null&&h.type!==Ne&&!i&&(h=u.jsx(Ne,a({variant:x?"body2":"body1",className:y.primary,component:p!=null&&p.variant?void 0:"span",display:"block"},p,{children:h}))),P!=null&&P.type!==Ne&&!i&&(P=u.jsx(Ne,a({variant:"body2",className:y.secondary,color:"text.secondary",display:"block"},b,{children:P}))),u.jsxs(Dr,a({className:_(y.root,s),ownerState:S,ref:o},v,{children:[h,P]}))}),zr=Wr;function _r(){const{host:e}=wo(),{players:t}=Rt();return u.jsx(Fo,{component:Po,children:Object.entries(t).map(([o,n])=>{const r=n.active?"inherit":"disabled";return u.jsxs(kr,{children:[u.jsx(Lr,{children:o===e?u.jsx(No,{color:r}):u.jsx(Eo,{color:r})}),u.jsx(zr,{primary:n.nickname})]},o)})})}function Ur(e){return G("MuiCardActions",e)}H("MuiCardActions",["root","spacing"]);const Hr=["disableSpacing","className"],Vr=e=>{const{classes:t,disableSpacing:o}=e;return q({root:["root",!o&&"spacing"]},Ur,t)},Gr=E("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disableSpacing&&t.spacing]}})(({ownerState:e})=>a({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),qr=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiCardActions"}),{disableSpacing:r=!1,className:s}=n,i=W(n,Hr),l=a({},n,{disableSpacing:r}),d=Vr(l);return u.jsx(Gr,a({className:_(d.root,s),ownerState:l,ref:o},i))}),Kr=qr,Xr=H("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),lo=Xr;function Yr(e){return G("MuiMenuItem",e)}const Zr=H("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),qe=Zr,Qr=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Jr=(e,t)=>{const{ownerState:o}=e;return[t.root,o.dense&&t.dense,o.divider&&t.divider,!o.disableGutters&&t.gutters]},es=e=>{const{disabled:t,dense:o,divider:n,disableGutters:r,selected:s,classes:i}=e,d=q({root:["root",o&&"dense",t&&"disabled",!r&&"gutters",n&&"divider",s&&"selected"]},Yr,i);return a({},i,d)},ts=E(Io,{shouldForwardProp:e=>ye(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Jr})(({theme:e,ownerState:t})=>a({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${qe.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ke(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${qe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ke(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${qe.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ke(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ke(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${qe.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${qe.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${lo.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${lo.inset}`]:{marginLeft:52},[`& .${lt.root}`]:{marginTop:0,marginBottom:0},[`& .${lt.inset}`]:{paddingLeft:36},[`& .${ao.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&a({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${ao.root} svg`]:{fontSize:"1.25rem"}}))),os=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiMenuItem"}),{autoFocus:r=!1,component:s="li",dense:i=!1,divider:l=!1,disableGutters:d=!1,focusVisibleClassName:p,role:f="menuitem",tabIndex:b,className:v}=n,x=W(n,Qr),h=c.useContext(Ie),P=c.useMemo(()=>({dense:i||h.dense||!1,disableGutters:d}),[h.dense,i,d]),S=c.useRef(null);Me(()=>{r&&S.current&&S.current.focus()},[r]);const y=a({},n,{dense:P.dense,divider:l,disableGutters:d}),$=es(n),g=he(S,o);let m;return n.disabled||(m=b!==void 0?b:-1),u.jsx(Ie.Provider,{value:P,children:u.jsx(ts,a({ref:g,role:f,tabIndex:m,component:s,focusVisibleClassName:_($.focusVisible,p),className:_($.root,v)},x,{ownerState:y,classes:$}))})}),Et=os;function He({props:e,states:t,muiFormControl:o}){return t.reduce((n,r)=>(n[r]=e[r],o&&typeof e[r]>"u"&&(n[r]=o[r]),n),{})}const ns=c.createContext(void 0),Ht=ns;function Ve(){return c.useContext(Ht)}function co(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ct(e,t=!1){return e&&(co(e.value)&&e.value!==""||t&&co(e.defaultValue)&&e.defaultValue!=="")}function rs(e){return e.startAdornment}function ss(e){return G("MuiInputBase",e)}const is=H("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ue=is,as=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],It=(e,t)=>{const{ownerState:o}=e;return[t.root,o.formControl&&t.formControl,o.startAdornment&&t.adornedStart,o.endAdornment&&t.adornedEnd,o.error&&t.error,o.size==="small"&&t.sizeSmall,o.multiline&&t.multiline,o.color&&t[`color${de(o.color)}`],o.fullWidth&&t.fullWidth,o.hiddenLabel&&t.hiddenLabel]},$t=(e,t)=>{const{ownerState:o}=e;return[t.input,o.size==="small"&&t.inputSizeSmall,o.multiline&&t.inputMultiline,o.type==="search"&&t.inputTypeSearch,o.startAdornment&&t.inputAdornedStart,o.endAdornment&&t.inputAdornedEnd,o.hiddenLabel&&t.inputHiddenLabel]},ls=e=>{const{classes:t,color:o,disabled:n,error:r,endAdornment:s,focused:i,formControl:l,fullWidth:d,hiddenLabel:p,multiline:f,readOnly:b,size:v,startAdornment:x,type:h}=e,P={root:["root",`color${de(o)}`,n&&"disabled",r&&"error",d&&"fullWidth",i&&"focused",l&&"formControl",v&&v!=="medium"&&`size${de(v)}`,f&&"multiline",x&&"adornedStart",s&&"adornedEnd",p&&"hiddenLabel",b&&"readOnly"],input:["input",n&&"disabled",h==="search"&&"inputTypeSearch",f&&"inputMultiline",v==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",x&&"inputAdornedStart",s&&"inputAdornedEnd",b&&"readOnly"]};return q(P,ss,t)},Pt=E("div",{name:"MuiInputBase",slot:"Root",overridesResolver:It})(({theme:e,ownerState:t})=>a({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ue.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&a({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),kt=E("input",{name:"MuiInputBase",slot:"Input",overridesResolver:$t})(({theme:e,ownerState:t})=>{const o=e.palette.mode==="light",n=a({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),r={opacity:"0 !important"},s=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5};return a({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ue.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${Ue.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),cs=u.jsx(Qo,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),ds=c.forwardRef(function(t,o){var n;const r=Z({props:t,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:i,autoFocus:l,className:d,components:p={},componentsProps:f={},defaultValue:b,disabled:v,disableInjectingGlobalStyles:x,endAdornment:h,fullWidth:P=!1,id:S,inputComponent:y="input",inputProps:$={},inputRef:g,maxRows:m,minRows:I,multiline:R=!1,name:C,onBlur:M,onChange:j,onClick:T,onFocus:D,onKeyDown:A,onKeyUp:w,placeholder:k,readOnly:O,renderSuffix:L,rows:N,slotProps:B={},slots:U={},startAdornment:X,type:ne="text",value:ie}=r,re=W(r,as),Y=$.value!=null?$.value:ie,{current:ae}=c.useRef(Y!=null),se=c.useRef(),fe=c.useCallback(ee=>{},[]),pe=he(se,g,$.ref,fe),[xe,me]=c.useState(!1),V=Ve(),oe=He({props:r,muiFormControl:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});oe.focused=V?V.focused:xe,c.useEffect(()=>{!V&&v&&xe&&(me(!1),M&&M())},[V,v,xe,M]);const z=V&&V.onFilled,Q=V&&V.onEmpty,te=c.useCallback(ee=>{ct(ee)?z&&z():Q&&Q()},[z,Q]);Me(()=>{ae&&te({value:Y})},[Y,te,ae]);const Oe=ee=>{if(oe.disabled){ee.stopPropagation();return}D&&D(ee),$.onFocus&&$.onFocus(ee),V&&V.onFocus?V.onFocus(ee):me(!0)},Ce=ee=>{M&&M(ee),$.onBlur&&$.onBlur(ee),V&&V.onBlur?V.onBlur(ee):me(!1)},Se=(ee,...Te)=>{if(!ae){const Be=ee.target||se.current;if(Be==null)throw new Error($o(1));te({value:Be.value})}$.onChange&&$.onChange(ee,...Te),j&&j(ee,...Te)};c.useEffect(()=>{te(se.current)},[]);const Re=ee=>{se.current&&ee.currentTarget===ee.target&&se.current.focus(),T&&T(ee)};let $e=y,le=$;R&&$e==="input"&&(N?le=a({type:void 0,minRows:N,maxRows:N},le):le=a({type:void 0,maxRows:m,minRows:I},le),$e=Fn);const we=ee=>{te(ee.animationName==="mui-auto-fill-cancel"?se.current:{value:"x"})};c.useEffect(()=>{V&&V.setAdornedStart(!!X)},[V,X]);const ge=a({},r,{color:oe.color||"primary",disabled:oe.disabled,endAdornment:h,error:oe.error,focused:oe.focused,formControl:V,fullWidth:P,hiddenLabel:oe.hiddenLabel,multiline:R,size:oe.size,startAdornment:X,type:ne}),ce=ls(ge),nt=U.root||p.Root||Pt,je=B.root||f.root||{},Ae=U.input||p.Input||kt;return le=a({},le,(n=B.input)!=null?n:f.input),u.jsxs(c.Fragment,{children:[!x&&cs,u.jsxs(nt,a({},je,!tt(nt)&&{ownerState:a({},ge,je.ownerState)},{ref:o,onClick:Re},re,{className:_(ce.root,je.className,d,O&&"MuiInputBase-readOnly"),children:[X,u.jsx(Ht.Provider,{value:null,children:u.jsx(Ae,a({ownerState:ge,"aria-invalid":oe.error,"aria-describedby":s,autoComplete:i,autoFocus:l,defaultValue:b,disabled:oe.disabled,id:S,onAnimationStart:we,name:C,placeholder:k,readOnly:O,required:oe.required,rows:N,value:Y,onKeyDown:A,onKeyUp:w,type:ne},le,!tt(Ae)&&{as:$e,ownerState:a({},ge,le.ownerState)},{ref:pe,className:_(ce.input,le.className,O&&"MuiInputBase-readOnly"),onBlur:Ce,onChange:Se,onFocus:Oe}))}),h,L?L(a({},oe,{startAdornment:X})):null]}))]})}),Vt=ds;function us(e){return G("MuiInput",e)}const ps=a({},Ue,H("MuiInput",["root","underline","input"])),Ke=ps,fs=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],ms=e=>{const{classes:t,disableUnderline:o}=e,r=q({root:["root",!o&&"underline"],input:["input"]},us,t);return a({},t,r)},gs=E(Pt,{shouldForwardProp:e=>ye(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...It(e,t),!o.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),a({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ke.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ke.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ke.disabled}, .${Ke.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Ke.disabled}:before`]:{borderBottomStyle:"dotted"}})}),bs=E(kt,{name:"MuiInput",slot:"Input",overridesResolver:$t})({}),Oo=c.forwardRef(function(t,o){var n,r,s,i;const l=Z({props:t,name:"MuiInput"}),{disableUnderline:d,components:p={},componentsProps:f,fullWidth:b=!1,inputComponent:v="input",multiline:x=!1,slotProps:h,slots:P={},type:S="text"}=l,y=W(l,fs),$=ms(l),m={root:{ownerState:{disableUnderline:d}}},I=h??f?At(h??f,m):m,R=(n=(r=P.root)!=null?r:p.Root)!=null?n:gs,C=(s=(i=P.input)!=null?i:p.Input)!=null?s:bs;return u.jsx(Vt,a({slots:{root:R,input:C},slotProps:I,fullWidth:b,inputComponent:v,multiline:x,ref:o,type:S},y,{classes:$}))});Oo.muiName="Input";const jo=Oo;function hs(e){return G("MuiFilledInput",e)}const vs=a({},Ue,H("MuiFilledInput",["root","underline","input"])),Ee=vs,xs=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],ys=e=>{const{classes:t,disableUnderline:o}=e,r=q({root:["root",!o&&"underline"],input:["input"]},hs,t);return a({},t,r)},Cs=E(Pt,{shouldForwardProp:e=>ye(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...It(e,t),!o.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var o;const n=e.palette.mode==="light",r=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return a({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s}},[`&.${Ee.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s},[`&.${Ee.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(o=(e.vars||e).palette[t.color||"primary"])==null?void 0:o.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ee.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ee.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ee.disabled}, .${Ee.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ee.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&a({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),Ss=E(kt,{name:"MuiFilledInput",slot:"Input",overridesResolver:$t})(({theme:e,ownerState:t})=>a({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Ao=c.forwardRef(function(t,o){var n,r,s,i;const l=Z({props:t,name:"MuiFilledInput"}),{components:d={},componentsProps:p,fullWidth:f=!1,inputComponent:b="input",multiline:v=!1,slotProps:x,slots:h={},type:P="text"}=l,S=W(l,xs),y=a({},l,{fullWidth:f,inputComponent:b,multiline:v,type:P}),$=ys(l),g={root:{ownerState:y},input:{ownerState:y}},m=x??p?At(g,x??p):g,I=(n=(r=h.root)!=null?r:d.Root)!=null?n:Cs,R=(s=(i=h.input)!=null?i:d.Input)!=null?s:Ss;return u.jsx(Vt,a({slots:{root:I,input:R},componentsProps:m,fullWidth:f,inputComponent:b,multiline:v,ref:o,type:P},S,{classes:$}))});Ao.muiName="Input";const Bo=Ao;var uo;const Rs=["children","classes","className","label","notched"],Is=E("fieldset",{shouldForwardProp:ye})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),$s=E("legend",{shouldForwardProp:ye})(({ownerState:e,theme:t})=>a({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&a({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function Ps(e){const{className:t,label:o,notched:n}=e,r=W(e,Rs),s=o!=null&&o!=="",i=a({},e,{notched:n,withLabel:s});return u.jsx(Is,a({"aria-hidden":!0,className:t,ownerState:i},r,{children:u.jsx($s,{ownerState:i,children:s?u.jsx("span",{children:o}):uo||(uo=u.jsx("span",{className:"notranslate",children:"​"}))})}))}function ks(e){return G("MuiOutlinedInput",e)}const Ms=a({},Ue,H("MuiOutlinedInput",["root","notchedOutline","input"])),Pe=Ms,ws=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Ts=e=>{const{classes:t}=e,n=q({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},ks,t);return a({},t,n)},Es=E(Pt,{shouldForwardProp:e=>ye(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:It})(({theme:e,ownerState:t})=>{const o=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return a({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Pe.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Pe.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:o}},[`&.${Pe.focused} .${Pe.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Pe.error} .${Pe.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Pe.disabled} .${Pe.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&a({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Ns=E(Ps,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Fs=E(kt,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:$t})(({theme:e,ownerState:t})=>a({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),Do=c.forwardRef(function(t,o){var n,r,s,i,l;const d=Z({props:t,name:"MuiOutlinedInput"}),{components:p={},fullWidth:f=!1,inputComponent:b="input",label:v,multiline:x=!1,notched:h,slots:P={},type:S="text"}=d,y=W(d,ws),$=Ts(d),g=Ve(),m=He({props:d,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),I=a({},d,{color:m.color||"primary",disabled:m.disabled,error:m.error,focused:m.focused,formControl:g,fullWidth:f,hiddenLabel:m.hiddenLabel,multiline:x,size:m.size,type:S}),R=(n=(r=P.root)!=null?r:p.Root)!=null?n:Es,C=(s=(i=P.input)!=null?i:p.Input)!=null?s:Fs;return u.jsx(Vt,a({slots:{root:R,input:C},renderSuffix:M=>u.jsx(Ns,{ownerState:I,className:$.notchedOutline,label:v!=null&&v!==""&&m.required?l||(l=u.jsxs(c.Fragment,{children:[v," ","*"]})):v,notched:typeof h<"u"?h:!!(M.startAdornment||M.filled||M.focused)}),fullWidth:f,inputComponent:b,multiline:x,ref:o,type:S},y,{classes:a({},$,{notchedOutline:null})}))});Do.muiName="Input";const Wo=Do;function Ls(e){return G("MuiFormLabel",e)}const Os=H("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),et=Os,js=["children","className","color","component","disabled","error","filled","focused","required"],As=e=>{const{classes:t,color:o,focused:n,disabled:r,error:s,filled:i,required:l}=e,d={root:["root",`color${de(o)}`,r&&"disabled",s&&"error",i&&"filled",n&&"focused",l&&"required"],asterisk:["asterisk",s&&"error"]};return q(d,Ls,t)},Bs=E("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>a({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>a({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${et.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${et.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${et.error}`]:{color:(e.vars||e).palette.error.main}})),Ds=E("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${et.error}`]:{color:(e.vars||e).palette.error.main}})),Ws=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiFormLabel"}),{children:r,className:s,component:i="label"}=n,l=W(n,js),d=Ve(),p=He({props:n,muiFormControl:d,states:["color","required","focused","disabled","error","filled"]}),f=a({},n,{color:p.color||"primary",component:i,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),b=As(f);return u.jsxs(Bs,a({as:i,ownerState:f,className:_(b.root,s),ref:o},l,{children:[r,p.required&&u.jsxs(Ds,{ownerState:f,"aria-hidden":!0,className:b.asterisk,children:[" ","*"]})]}))}),zs=Ws;function _s(e){return G("MuiInputLabel",e)}H("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Us=["disableAnimation","margin","shrink","variant","className"],Hs=e=>{const{classes:t,formControl:o,size:n,shrink:r,disableAnimation:s,variant:i,required:l}=e,d={root:["root",o&&"formControl",!s&&"animated",r&&"shrink",n&&n!=="normal"&&`size${de(n)}`,i],asterisk:[l&&"asterisk"]},p=q(d,_s,t);return a({},t,p)},Vs=E(zs,{shouldForwardProp:e=>ye(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${et.asterisk}`]:t.asterisk},t.root,o.formControl&&t.formControl,o.size==="small"&&t.sizeSmall,o.shrink&&t.shrink,!o.disableAnimation&&t.animated,o.focused&&t.focused,t[o.variant]]}})(({theme:e,ownerState:t})=>a({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&a({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&a({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&a({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Gs=c.forwardRef(function(t,o){const n=Z({name:"MuiInputLabel",props:t}),{disableAnimation:r=!1,shrink:s,className:i}=n,l=W(n,Us),d=Ve();let p=s;typeof p>"u"&&d&&(p=d.filled||d.focused||d.adornedStart);const f=He({props:n,muiFormControl:d,states:["size","variant","required","focused"]}),b=a({},n,{disableAnimation:r,formControl:d,shrink:p,size:f.size,variant:f.variant,required:f.required,focused:f.focused}),v=Hs(b);return u.jsx(Vs,a({"data-shrink":p,ownerState:b,ref:o,className:_(v.root,i)},l,{classes:v}))}),qs=Gs;function Ks(e){return G("MuiFormControl",e)}H("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Xs=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Ys=e=>{const{classes:t,margin:o,fullWidth:n}=e,r={root:["root",o!=="none"&&`margin${de(o)}`,n&&"fullWidth"]};return q(r,Ks,t)},Zs=E("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>a({},t.root,t[`margin${de(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>a({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Qs=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiFormControl"}),{children:r,className:s,color:i="primary",component:l="div",disabled:d=!1,error:p=!1,focused:f,fullWidth:b=!1,hiddenLabel:v=!1,margin:x="none",required:h=!1,size:P="medium",variant:S="outlined"}=n,y=W(n,Xs),$=a({},n,{color:i,component:l,disabled:d,error:p,fullWidth:b,hiddenLabel:v,margin:x,required:h,size:P,variant:S}),g=Ys($),[m,I]=c.useState(()=>{let w=!1;return r&&c.Children.forEach(r,k=>{if(!it(k,["Input","Select"]))return;const O=it(k,["Select"])?k.props.input:k;O&&rs(O.props)&&(w=!0)}),w}),[R,C]=c.useState(()=>{let w=!1;return r&&c.Children.forEach(r,k=>{it(k,["Input","Select"])&&(ct(k.props,!0)||ct(k.props.inputProps,!0))&&(w=!0)}),w}),[M,j]=c.useState(!1);d&&M&&j(!1);const T=f!==void 0&&!d?f:M;let D;const A=c.useMemo(()=>({adornedStart:m,setAdornedStart:I,color:i,disabled:d,error:p,filled:R,focused:T,fullWidth:b,hiddenLabel:v,size:P,onBlur:()=>{j(!1)},onEmpty:()=>{C(!1)},onFilled:()=>{C(!0)},onFocus:()=>{j(!0)},registerEffect:D,required:h,variant:S}),[m,i,d,p,R,T,b,v,D,h,P,S]);return u.jsx(Ht.Provider,{value:A,children:u.jsx(Zs,a({as:l,ownerState:$,className:_(g.root,s),ref:o},y,{children:r}))})}),Js=Qs;function ei(e){return G("MuiFormHelperText",e)}const ti=H("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),po=ti;var fo;const oi=["children","className","component","disabled","error","filled","focused","margin","required","variant"],ni=e=>{const{classes:t,contained:o,size:n,disabled:r,error:s,filled:i,focused:l,required:d}=e,p={root:["root",r&&"disabled",s&&"error",n&&`size${de(n)}`,o&&"contained",l&&"focused",i&&"filled",d&&"required"]};return q(p,ei,t)},ri=E("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.size&&t[`size${de(o.size)}`],o.contained&&t.contained,o.filled&&t.filled]}})(({theme:e,ownerState:t})=>a({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${po.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${po.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),si=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiFormHelperText"}),{children:r,className:s,component:i="p"}=n,l=W(n,oi),d=Ve(),p=He({props:n,muiFormControl:d,states:["variant","size","disabled","error","filled","focused","required"]}),f=a({},n,{component:i,contained:p.variant==="filled"||p.variant==="outlined",variant:p.variant,size:p.size,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),b=ni(f);return u.jsx(ri,a({as:i,ownerState:f,className:_(b.root,s),ref:o},l,{children:r===" "?fo||(fo=u.jsx("span",{className:"notranslate",children:"​"})):r}))}),ii=si,ai=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Nt(e,t,o){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:o?null:e.firstChild}function mo(e,t,o){return e===t?o?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:o?null:e.lastChild}function zo(e,t){if(t===void 0)return!0;let o=e.innerText;return o===void 0&&(o=e.textContent),o=o.trim().toLowerCase(),o.length===0?!1:t.repeating?o[0]===t.keys[0]:o.indexOf(t.keys.join(""))===0}function Xe(e,t,o,n,r,s){let i=!1,l=r(e,t,t?o:!1);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const d=n?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!zo(l,s)||d)l=r(e,l,o);else return l.focus(),!0}return!1}const li=c.forwardRef(function(t,o){const{actions:n,autoFocus:r=!1,autoFocusItem:s=!1,children:i,className:l,disabledItemsFocusable:d=!1,disableListWrap:p=!1,onKeyDown:f,variant:b="selectedMenu"}=t,v=W(t,ai),x=c.useRef(null),h=c.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Me(()=>{r&&x.current.focus()},[r]),c.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(g,m)=>{const I=!x.current.style.width;if(g.clientHeight{const m=x.current,I=g.key,R=be(m).activeElement;if(I==="ArrowDown")g.preventDefault(),Xe(m,R,p,d,Nt);else if(I==="ArrowUp")g.preventDefault(),Xe(m,R,p,d,mo);else if(I==="Home")g.preventDefault(),Xe(m,null,p,d,Nt);else if(I==="End")g.preventDefault(),Xe(m,null,p,d,mo);else if(I.length===1){const C=h.current,M=I.toLowerCase(),j=performance.now();C.keys.length>0&&(j-C.lastTime>500?(C.keys=[],C.repeating=!0,C.previousKeyMatched=!0):C.repeating&&M!==C.keys[0]&&(C.repeating=!1)),C.lastTime=j,C.keys.push(M);const T=R&&!C.repeating&&zo(R,C);C.previousKeyMatched&&(T||Xe(m,R,!1,d,Nt,C))?g.preventDefault():C.previousKeyMatched=!1}f&&f(g)},S=he(x,o);let y=-1;c.Children.forEach(i,(g,m)=>{if(!c.isValidElement(g)){y===m&&(y+=1,y>=i.length&&(y=-1));return}g.props.disabled||(b==="selectedMenu"&&g.props.selected||y===-1)&&(y=m),y===m&&(g.props.disabled||g.props.muiSkipListHighlight||g.type.muiSkipListHighlight)&&(y+=1,y>=i.length&&(y=-1))});const $=c.Children.map(i,(g,m)=>{if(m===y){const I={};return s&&(I.autoFocus=!0),g.props.tabIndex===void 0&&b==="selectedMenu"&&(I.tabIndex=0),c.cloneElement(g,I)}return g});return u.jsx(Fo,a({role:"menu",ref:S,className:l,onKeyDown:P,tabIndex:r?0:-1},v,{children:$}))}),ci=li,di=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ui={entering:{opacity:1},entered:{opacity:1}},pi=c.forwardRef(function(t,o){const n=dt(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:s,appear:i=!0,children:l,easing:d,in:p,onEnter:f,onEntered:b,onEntering:v,onExit:x,onExited:h,onExiting:P,style:S,timeout:y=r,TransitionComponent:$=Jo}=t,g=W(t,di),m=c.useRef(null),I=he(m,l.ref,o),R=k=>O=>{if(k){const L=m.current;O===void 0?k(L):k(L,O)}},C=R(v),M=R((k,O)=>{en(k);const L=Jt({style:S,timeout:y,easing:d},{mode:"enter"});k.style.webkitTransition=n.transitions.create("opacity",L),k.style.transition=n.transitions.create("opacity",L),f&&f(k,O)}),j=R(b),T=R(P),D=R(k=>{const O=Jt({style:S,timeout:y,easing:d},{mode:"exit"});k.style.webkitTransition=n.transitions.create("opacity",O),k.style.transition=n.transitions.create("opacity",O),x&&x(k)}),A=R(h),w=k=>{s&&s(m.current,k)};return u.jsx($,a({appear:i,in:p,nodeRef:m,onEnter:M,onEntered:j,onEntering:C,onExit:D,onExited:A,onExiting:T,addEndListener:w,timeout:y},g,{children:(k,O)=>c.cloneElement(l,a({style:a({opacity:0,visibility:k==="exited"&&!p?"hidden":void 0},ui[k],S,l.props.style),ref:I},O))}))}),_o=pi;function fi(e){return G("MuiBackdrop",e)}H("MuiBackdrop",["root","invisible"]);const mi=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],gi=e=>{const{classes:t,invisible:o}=e;return q({root:["root",o&&"invisible"]},fi,t)},bi=E("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.invisible&&t.invisible]}})(({ownerState:e})=>a({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"})),hi=c.forwardRef(function(t,o){var n,r,s;const i=Z({props:t,name:"MuiBackdrop"}),{children:l,className:d,component:p="div",components:f={},componentsProps:b={},invisible:v=!1,open:x,slotProps:h={},slots:P={},TransitionComponent:S=_o,transitionDuration:y}=i,$=W(i,mi),g=a({},i,{component:p,invisible:v}),m=gi(g),I=(n=h.root)!=null?n:b.root;return u.jsx(S,a({in:x,timeout:y},$,{children:u.jsx(bi,a({"aria-hidden":!0},I,{as:(r=(s=P.root)!=null?s:f.Root)!=null?r:p,className:_(m.root,d,I==null?void 0:I.className),ownerState:a({},g,I==null?void 0:I.ownerState),classes:m,ref:o,children:l}))}))}),Uo=hi;function vi(e){return G("MuiModal",e)}H("MuiModal",["root","hidden","backdrop"]);const xi=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],yi=e=>{const{open:t,exited:o,classes:n}=e;return q({root:["root",!t&&o&&"hidden"],backdrop:["backdrop"]},vi,n)},Ci=E("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.open&&o.exited&&t.hidden]}})(({theme:e,ownerState:t})=>a({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Si=E(Uo,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Ri=c.forwardRef(function(t,o){var n,r,s,i,l,d;const p=Z({name:"MuiModal",props:t}),{BackdropComponent:f=Si,BackdropProps:b,className:v,closeAfterTransition:x=!1,children:h,container:P,component:S,components:y={},componentsProps:$={},disableAutoFocus:g=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:I=!1,disablePortal:R=!1,disableRestoreFocus:C=!1,disableScrollLock:M=!1,hideBackdrop:j=!1,keepMounted:T=!1,onBackdropClick:D,open:A,slotProps:w,slots:k}=p,O=W(p,xi),L=a({},p,{closeAfterTransition:x,disableAutoFocus:g,disableEnforceFocus:m,disableEscapeKeyDown:I,disablePortal:R,disableRestoreFocus:C,disableScrollLock:M,hideBackdrop:j,keepMounted:T}),{getRootProps:N,getBackdropProps:B,getTransitionProps:U,portalRef:X,isTopModal:ne,exited:ie,hasTransition:re}=Tn(a({},L,{rootRef:o})),Y=a({},L,{exited:ie}),ae=yi(Y),se={};if(h.props.tabIndex===void 0&&(se.tabIndex="-1"),re){const{onEnter:z,onExited:Q}=U();se.onEnter=z,se.onExited=Q}const fe=(n=(r=k==null?void 0:k.root)!=null?r:y.Root)!=null?n:Ci,pe=(s=(i=k==null?void 0:k.backdrop)!=null?i:y.Backdrop)!=null?s:f,xe=(l=w==null?void 0:w.root)!=null?l:$.root,me=(d=w==null?void 0:w.backdrop)!=null?d:$.backdrop,V=_e({elementType:fe,externalSlotProps:xe,externalForwardedProps:O,getSlotProps:N,additionalProps:{ref:o,as:S},ownerState:Y,className:_(v,xe==null?void 0:xe.className,ae==null?void 0:ae.root,!Y.open&&Y.exited&&(ae==null?void 0:ae.hidden))}),oe=_e({elementType:pe,externalSlotProps:me,additionalProps:b,getSlotProps:z=>B(a({},z,{onClick:Q=>{D&&D(Q),z!=null&&z.onClick&&z.onClick(Q)}})),className:_(me==null?void 0:me.className,b==null?void 0:b.className,ae==null?void 0:ae.backdrop),ownerState:Y});return!T&&!A&&(!re||ie)?null:u.jsx(Cn,{ref:X,container:P,disablePortal:R,children:u.jsxs(fe,a({},V,{children:[!j&&f?u.jsx(pe,a({},oe)):null,u.jsx(xn,{disableEnforceFocus:m,disableAutoFocus:g,disableRestoreFocus:C,isEnabled:ne,open:A,children:c.cloneElement(h,se)})]}))})}),Ho=Ri;function Ii(e){return G("MuiPopover",e)}H("MuiPopover",["root","paper"]);const $i=["onEntering"],Pi=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],ki=["slotProps"];function go(e,t){let o=0;return typeof t=="number"?o=t:t==="center"?o=e.height/2:t==="bottom"&&(o=e.height),o}function bo(e,t){let o=0;return typeof t=="number"?o=t:t==="center"?o=e.width/2:t==="right"&&(o=e.width),o}function ho(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ft(e){return typeof e=="function"?e():e}const Mi=e=>{const{classes:t}=e;return q({root:["root"],paper:["paper"]},Ii,t)},wi=E(Ho,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Vo=E(Bt,{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}),Ti=c.forwardRef(function(t,o){var n,r,s;const i=Z({props:t,name:"MuiPopover"}),{action:l,anchorEl:d,anchorOrigin:p={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:b="anchorEl",children:v,className:x,container:h,elevation:P=8,marginThreshold:S=16,open:y,PaperProps:$={},slots:g,slotProps:m,transformOrigin:I={vertical:"top",horizontal:"left"},TransitionComponent:R=tn,transitionDuration:C="auto",TransitionProps:{onEntering:M}={},disableScrollLock:j=!1}=i,T=W(i.TransitionProps,$i),D=W(i,Pi),A=(n=m==null?void 0:m.paper)!=null?n:$,w=c.useRef(),k=he(w,A.ref),O=a({},i,{anchorOrigin:p,anchorReference:b,elevation:P,marginThreshold:S,externalPaperSlotProps:A,transformOrigin:I,TransitionComponent:R,transitionDuration:C,TransitionProps:T}),L=Mi(O),N=c.useCallback(()=>{if(b==="anchorPosition")return f;const z=Ft(d),te=(z&&z.nodeType===1?z:be(w.current).body).getBoundingClientRect();return{top:te.top+go(te,p.vertical),left:te.left+bo(te,p.horizontal)}},[d,p.horizontal,p.vertical,f,b]),B=c.useCallback(z=>({vertical:go(z,I.vertical),horizontal:bo(z,I.horizontal)}),[I.horizontal,I.vertical]),U=c.useCallback(z=>{const Q={width:z.offsetWidth,height:z.offsetHeight},te=B(Q);if(b==="none")return{top:null,left:null,transformOrigin:ho(te)};const Oe=N();let Ce=Oe.top-te.vertical,Se=Oe.left-te.horizontal;const Re=Ce+Q.height,$e=Se+Q.width,le=Fe(Ft(d)),we=le.innerHeight-S,ge=le.innerWidth-S;if(S!==null&&Cewe){const ce=Re-we;Ce-=ce,te.vertical+=ce}if(S!==null&&Sege){const ce=$e-ge;Se-=ce,te.horizontal+=ce}return{top:`${Math.round(Ce)}px`,left:`${Math.round(Se)}px`,transformOrigin:ho(te)}},[d,b,N,B,S]),[X,ne]=c.useState(y),ie=c.useCallback(()=>{const z=w.current;if(!z)return;const Q=U(z);Q.top!==null&&(z.style.top=Q.top),Q.left!==null&&(z.style.left=Q.left),z.style.transformOrigin=Q.transformOrigin,ne(!0)},[U]);c.useEffect(()=>(j&&window.addEventListener("scroll",ie),()=>window.removeEventListener("scroll",ie)),[d,j,ie]);const re=(z,Q)=>{M&&M(z,Q),ie()},Y=()=>{ne(!1)};c.useEffect(()=>{y&&ie()}),c.useImperativeHandle(l,()=>y?{updatePosition:()=>{ie()}}:null,[y,ie]),c.useEffect(()=>{if(!y)return;const z=Co(()=>{ie()}),Q=Fe(d);return Q.addEventListener("resize",z),()=>{z.clear(),Q.removeEventListener("resize",z)}},[d,y,ie]);let ae=C;C==="auto"&&!R.muiSupportAuto&&(ae=void 0);const se=h||(d?be(Ft(d)).body:void 0),fe=(r=g==null?void 0:g.root)!=null?r:wi,pe=(s=g==null?void 0:g.paper)!=null?s:Vo,xe=_e({elementType:pe,externalSlotProps:a({},A,{style:X?A.style:a({},A.style,{opacity:0})}),additionalProps:{elevation:P,ref:k},ownerState:O,className:_(L.paper,A==null?void 0:A.className)}),me=_e({elementType:fe,externalSlotProps:(m==null?void 0:m.root)||{},externalForwardedProps:D,additionalProps:{ref:o,slotProps:{backdrop:{invisible:!0}},container:se,open:y},ownerState:O,className:_(L.root,x)}),{slotProps:V}=me,oe=W(me,ki);return u.jsx(fe,a({},oe,!tt(fe)&&{slotProps:V,disableScrollLock:j},{children:u.jsx(R,a({appear:!0,in:y,onEntering:re,onExited:Y,timeout:ae},T,{children:u.jsx(pe,a({},xe,{children:v}))}))}))}),Ei=Ti;function Ni(e){return G("MuiMenu",e)}H("MuiMenu",["root","paper","list"]);const Fi=["onEntering"],Li=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Oi={vertical:"top",horizontal:"right"},ji={vertical:"top",horizontal:"left"},Ai=e=>{const{classes:t}=e;return q({root:["root"],paper:["paper"],list:["list"]},Ni,t)},Bi=E(Ei,{shouldForwardProp:e=>ye(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Di=E(Vo,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Wi=E(ci,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),zi=c.forwardRef(function(t,o){var n,r;const s=Z({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:l,className:d,disableAutoFocusItem:p=!1,MenuListProps:f={},onClose:b,open:v,PaperProps:x={},PopoverClasses:h,transitionDuration:P="auto",TransitionProps:{onEntering:S}={},variant:y="selectedMenu",slots:$={},slotProps:g={}}=s,m=W(s.TransitionProps,Fi),I=W(s,Li),R=dt(),C=R.direction==="rtl",M=a({},s,{autoFocus:i,disableAutoFocusItem:p,MenuListProps:f,onEntering:S,PaperProps:x,transitionDuration:P,TransitionProps:m,variant:y}),j=Ai(M),T=i&&!p&&v,D=c.useRef(null),A=(U,X)=>{D.current&&D.current.adjustStyleForScrollbar(U,R),S&&S(U,X)},w=U=>{U.key==="Tab"&&(U.preventDefault(),b&&b(U,"tabKeyDown"))};let k=-1;c.Children.map(l,(U,X)=>{c.isValidElement(U)&&(U.props.disabled||(y==="selectedMenu"&&U.props.selected||k===-1)&&(k=X))});const O=(n=$.paper)!=null?n:Di,L=(r=g.paper)!=null?r:x,N=_e({elementType:$.root,externalSlotProps:g.root,ownerState:M,className:[j.root,d]}),B=_e({elementType:O,externalSlotProps:L,ownerState:M,className:j.paper});return u.jsx(Bi,a({onClose:b,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Oi:ji,slots:{paper:O,root:$.root},slotProps:{root:N,paper:B},open:v,ref:o,transitionDuration:P,TransitionProps:a({onEntering:A},m),ownerState:M},I,{classes:h,children:u.jsx(Wi,a({onKeyDown:w,actions:D,autoFocus:i&&(k===-1||p),autoFocusItem:T,variant:y},f,{className:_(j.list,f.className),children:l}))}))}),_i=zi;function Ui(e){return G("MuiNativeSelect",e)}const Hi=H("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Gt=Hi,Vi=["className","disabled","error","IconComponent","inputRef","variant"],Gi=e=>{const{classes:t,variant:o,disabled:n,multiple:r,open:s,error:i}=e,l={select:["select",o,n&&"disabled",r&&"multiple",i&&"error"],icon:["icon",`icon${de(o)}`,s&&"iconOpen",n&&"disabled"]};return q(l,Ui,t)},Go=({ownerState:e,theme:t})=>a({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":a({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Gt.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),qi=E("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ye,overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.select,t[o.variant],o.error&&t.error,{[`&.${Gt.multiple}`]:t.multiple}]}})(Go),qo=({ownerState:e,theme:t})=>a({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Gt.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Ki=E("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${de(o.variant)}`],o.open&&t.iconOpen]}})(qo),Xi=c.forwardRef(function(t,o){const{className:n,disabled:r,error:s,IconComponent:i,inputRef:l,variant:d="standard"}=t,p=W(t,Vi),f=a({},t,{disabled:r,variant:d,error:s}),b=Gi(f);return u.jsxs(c.Fragment,{children:[u.jsx(qi,a({ownerState:f,className:_(b.select,n),disabled:r,ref:l||o},p)),t.multiple?null:u.jsx(Ki,{as:i,ownerState:f,className:b.icon})]})}),Yi=Xi;function Zi(e){return G("MuiSelect",e)}const Qi=H("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Ye=Qi;var vo;const Ji=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],ea=E("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`&.${Ye.select}`]:t.select},{[`&.${Ye.select}`]:t[o.variant]},{[`&.${Ye.error}`]:t.error},{[`&.${Ye.multiple}`]:t.multiple}]}})(Go,{[`&.${Ye.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ta=E("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${de(o.variant)}`],o.open&&t.iconOpen]}})(qo),oa=E("input",{shouldForwardProp:e=>on(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function xo(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function na(e){return e==null||typeof e=="string"&&!e.trim()}const ra=e=>{const{classes:t,variant:o,disabled:n,multiple:r,open:s,error:i}=e,l={select:["select",o,n&&"disabled",r&&"multiple",i&&"error"],icon:["icon",`icon${de(o)}`,s&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return q(l,Zi,t)},sa=c.forwardRef(function(t,o){var n;const{"aria-describedby":r,"aria-label":s,autoFocus:i,autoWidth:l,children:d,className:p,defaultOpen:f,defaultValue:b,disabled:v,displayEmpty:x,error:h=!1,IconComponent:P,inputRef:S,labelId:y,MenuProps:$={},multiple:g,name:m,onBlur:I,onChange:R,onClose:C,onFocus:M,onOpen:j,open:T,readOnly:D,renderValue:A,SelectDisplayProps:w={},tabIndex:k,value:O,variant:L="standard"}=t,N=W(t,Ji),[B,U]=eo({controlled:O,default:b,name:"Select"}),[X,ne]=eo({controlled:T,default:f,name:"Select"}),ie=c.useRef(null),re=c.useRef(null),[Y,ae]=c.useState(null),{current:se}=c.useRef(T!=null),[fe,pe]=c.useState(),xe=he(o,S),me=c.useCallback(F=>{re.current=F,F&&ae(F)},[]),V=Y==null?void 0:Y.parentNode;c.useImperativeHandle(xe,()=>({focus:()=>{re.current.focus()},node:ie.current,value:B}),[B]),c.useEffect(()=>{f&&X&&Y&&!se&&(pe(l?null:V.clientWidth),re.current.focus())},[Y,l]),c.useEffect(()=>{i&&re.current.focus()},[i]),c.useEffect(()=>{if(!y)return;const F=be(re.current).getElementById(y);if(F){const J=()=>{getSelection().isCollapsed&&re.current.focus()};return F.addEventListener("click",J),()=>{F.removeEventListener("click",J)}}},[y]);const oe=(F,J)=>{F?j&&j(J):C&&C(J),se||(pe(l?null:V.clientWidth),ne(F))},z=F=>{F.button===0&&(F.preventDefault(),re.current.focus(),oe(!0,F))},Q=F=>{oe(!1,F)},te=c.Children.toArray(d),Oe=F=>{const J=te.find(ue=>ue.props.value===F.target.value);J!==void 0&&(U(J.props.value),R&&R(F,J))},Ce=F=>J=>{let ue;if(J.currentTarget.hasAttribute("tabindex")){if(g){ue=Array.isArray(B)?B.slice():[];const De=B.indexOf(F.props.value);De===-1?ue.push(F.props.value):ue.splice(De,1)}else ue=F.props.value;if(F.props.onClick&&F.props.onClick(J),B!==ue&&(U(ue),R)){const De=J.nativeEvent||J,Xt=new De.constructor(De.type,De);Object.defineProperty(Xt,"target",{writable:!0,value:{value:ue,name:m}}),R(Xt,F)}g||oe(!1,J)}},Se=F=>{D||[" ","ArrowUp","ArrowDown","Enter"].indexOf(F.key)!==-1&&(F.preventDefault(),oe(!0,F))},Re=Y!==null&&X,$e=F=>{!Re&&I&&(Object.defineProperty(F,"target",{writable:!0,value:{value:B,name:m}}),I(F))};delete N["aria-invalid"];let le,we;const ge=[];let ce=!1;(ct({value:B})||x)&&(A?le=A(B):ce=!0);const nt=te.map(F=>{if(!c.isValidElement(F))return null;let J;if(g){if(!Array.isArray(B))throw new Error($o(2));J=B.some(ue=>xo(ue,F.props.value)),J&&ce&&ge.push(F.props.children)}else J=xo(B,F.props.value),J&&ce&&(we=F.props.children);return c.cloneElement(F,{"aria-selected":J?"true":"false",onClick:Ce(F),onKeyUp:ue=>{ue.key===" "&&ue.preventDefault(),F.props.onKeyUp&&F.props.onKeyUp(ue)},role:"option",selected:J,value:void 0,"data-value":F.props.value})});ce&&(g?ge.length===0?le=null:le=ge.reduce((F,J,ue)=>(F.push(J),ue{const{classes:t}=e;return t},qt={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ye(e)&&e!=="variant",slot:"Root"},ua=E(jo,qt)(""),pa=E(Wo,qt)(""),fa=E(Bo,qt)(""),Ko=c.forwardRef(function(t,o){const n=Z({name:"MuiSelect",props:t}),{autoWidth:r=!1,children:s,classes:i={},className:l,defaultOpen:d=!1,displayEmpty:p=!1,IconComponent:f=aa,id:b,input:v,inputProps:x,label:h,labelId:P,MenuProps:S,multiple:y=!1,native:$=!1,onClose:g,onOpen:m,open:I,renderValue:R,SelectDisplayProps:C,variant:M="outlined"}=n,j=W(n,la),T=$?Yi:ia,D=Ve(),A=He({props:n,muiFormControl:D,states:["variant","error"]}),w=A.variant||M,k=a({},n,{variant:w,classes:i}),O=da(k),L=W(O,ca),N=v||{standard:u.jsx(ua,{ownerState:k}),outlined:u.jsx(pa,{label:h,ownerState:k}),filled:u.jsx(fa,{ownerState:k})}[w],B=he(o,N.ref);return u.jsx(c.Fragment,{children:c.cloneElement(N,a({inputComponent:T,inputProps:a({children:s,error:A.error,IconComponent:f,variant:w,type:void 0,multiple:y},$?{id:b}:{autoWidth:r,defaultOpen:d,displayEmpty:p,labelId:P,MenuProps:S,onClose:g,onOpen:m,open:I,renderValue:R,SelectDisplayProps:a({id:b},C)},x,{classes:x?At(L,x.classes):L},v?v.props.inputProps:{})},y&&$&&w==="outlined"?{notched:!0}:{},{ref:B,className:_(N.props.className,l,O.root)},!v&&{variant:w},j))})});Ko.muiName="Select";const ma=Ko;function ga(e){return G("MuiTextField",e)}H("MuiTextField",["root"]);const ba=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],ha={standard:jo,filled:Bo,outlined:Wo},va=e=>{const{classes:t}=e;return q({root:["root"]},ga,t)},xa=E(Js,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ya=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:s=!1,children:i,className:l,color:d="primary",defaultValue:p,disabled:f=!1,error:b=!1,FormHelperTextProps:v,fullWidth:x=!1,helperText:h,id:P,InputLabelProps:S,inputProps:y,InputProps:$,inputRef:g,label:m,maxRows:I,minRows:R,multiline:C=!1,name:M,onBlur:j,onChange:T,onFocus:D,placeholder:A,required:w=!1,rows:k,select:O=!1,SelectProps:L,type:N,value:B,variant:U="outlined"}=n,X=W(n,ba),ne=a({},n,{autoFocus:s,color:d,disabled:f,error:b,fullWidth:x,multiline:C,required:w,select:O,variant:U}),ie=va(ne),re={};U==="outlined"&&(S&&typeof S.shrink<"u"&&(re.notched=S.shrink),re.label=m),O&&((!L||!L.native)&&(re.id=void 0),re["aria-describedby"]=void 0);const Y=Dt(P),ae=h&&Y?`${Y}-helper-text`:void 0,se=m&&Y?`${Y}-label`:void 0,fe=ha[U],pe=u.jsx(fe,a({"aria-describedby":ae,autoComplete:r,autoFocus:s,defaultValue:p,fullWidth:x,multiline:C,name:M,rows:k,maxRows:I,minRows:R,type:N,value:B,id:Y,inputRef:g,onBlur:j,onChange:T,onFocus:D,placeholder:A,inputProps:y},re,$));return u.jsxs(xa,a({className:_(ie.root,l),disabled:f,error:b,fullWidth:x,ref:o,required:w,color:d,variant:U,ownerState:ne},X,{children:[m!=null&&m!==""&&u.jsx(qs,a({htmlFor:Y,id:se},S,{children:m})),O?u.jsx(ma,a({"aria-describedby":ae,id:Y,labelId:se,value:B,input:pe},L,{children:i})):pe,h&&u.jsx(ii,a({id:ae},v,{children:h}))]}))}),at=ya,Ca=[1,2,3,4,5],Sa=[1,2,3,4,5,6,7,8,9,10],Ra=[10,20,30,40,50,60,70,80,90,100];function Ia(){const{setSettings:e}=Bn();function t(o){o.preventDefault();const n=new FormData(o.target);e(Object.values(Ze).reduce((r,s)=>(r[s]=Number(n.get(s)),r),{}))}return u.jsxs(Po,{component:"form",onSubmit:t,sx:{padding:1},children:[u.jsxs(ln,{children:[u.jsx(at,{defaultValue:Je.players,helperText:"Number of players",label:"Players",name:Ze.players,select:!0,children:Sa.map(o=>u.jsx(Et,{value:o,children:o},o))}),u.jsx("br",{}),u.jsx("br",{}),u.jsx(at,{defaultValue:Je.rounds,helperText:"Number of rounds",label:"Rounds",name:Ze.rounds,select:!0,children:Ca.map(o=>u.jsx(Et,{value:o,children:o},o))}),u.jsx("br",{}),u.jsx("br",{}),u.jsx(at,{defaultValue:Je.timer,helperText:"Seconds per round",label:"Timer",name:Ze.timer,select:!0,children:Ra.map(o=>u.jsx(Et,{value:o,children:o},o))})]}),u.jsx(Kr,{children:u.jsx(Ot,{type:"submit",variant:"contained",children:"Start"})})]})}function $a(){return Ln(),On(),An(),u.jsxs(u.Fragment,{children:[u.jsx(Ne,{component:"h1",paragraph:!0,variant:"h4",children:"Room"}),u.jsxs(Tt,{container:!0,spacing:2,children:[u.jsx(Tt,{item:!0,xs:4,children:u.jsx(_r,{})}),u.jsx(Tt,{item:!0,xs:8,children:u.jsx(Ia,{})})]}),u.jsx("br",{}),u.jsxs("details",{children:[u.jsx("summary",{children:"QR Code"}),u.jsx(Le.RoomQRCode,{})]})]})}function Pa(e){return G("MuiDialog",e)}const ka=H("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Lt=ka,Ma=c.createContext({}),Xo=Ma,wa=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Ta=E(Uo,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Ea=e=>{const{classes:t,scroll:o,maxWidth:n,fullWidth:r,fullScreen:s}=e,i={root:["root"],container:["container",`scroll${de(o)}`],paper:["paper",`paperScroll${de(o)}`,`paperWidth${de(String(n))}`,r&&"paperFullWidth",s&&"paperFullScreen"]};return q(i,Pa,t)},Na=E(Ho,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Fa=E("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.container,t[`scroll${de(o.scroll)}`]]}})(({ownerState:e})=>a({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),La=E(Bt,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.paper,t[`scrollPaper${de(o.scroll)}`],t[`paperWidth${de(String(o.maxWidth))}`],o.fullWidth&&t.paperFullWidth,o.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>a({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Lt.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Lt.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Lt.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Oa=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiDialog"}),r=dt(),s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":l,BackdropComponent:d,BackdropProps:p,children:f,className:b,disableEscapeKeyDown:v=!1,fullScreen:x=!1,fullWidth:h=!1,maxWidth:P="sm",onBackdropClick:S,onClose:y,open:$,PaperComponent:g=Bt,PaperProps:m={},scroll:I="paper",TransitionComponent:R=_o,transitionDuration:C=s,TransitionProps:M}=n,j=W(n,wa),T=a({},n,{disableEscapeKeyDown:v,fullScreen:x,fullWidth:h,maxWidth:P,scroll:I}),D=Ea(T),A=c.useRef(),w=N=>{A.current=N.target===N.currentTarget},k=N=>{A.current&&(A.current=null,S&&S(N),y&&y(N,"backdropClick"))},O=Dt(l),L=c.useMemo(()=>({titleId:O}),[O]);return u.jsx(Na,a({className:_(D.root,b),closeAfterTransition:!0,components:{Backdrop:Ta},componentsProps:{backdrop:a({transitionDuration:C,as:d},p)},disableEscapeKeyDown:v,onClose:y,open:$,ref:o,onClick:k,ownerState:T},j,{children:u.jsx(R,a({appear:!0,in:$,timeout:C,role:"presentation"},M,{children:u.jsx(Fa,{className:_(D.container),onMouseDown:w,ownerState:T,children:u.jsx(La,a({as:g,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":O},m,{className:_(D.paper,m.className),ownerState:T,children:u.jsx(Xo.Provider,{value:L,children:f})}))})}))}))}),ja=Oa;function Aa(e){return G("MuiDialogActions",e)}H("MuiDialogActions",["root","spacing"]);const Ba=["className","disableSpacing"],Da=e=>{const{classes:t,disableSpacing:o}=e;return q({root:["root",!o&&"spacing"]},Aa,t)},Wa=E("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disableSpacing&&t.spacing]}})(({ownerState:e})=>a({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),za=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:s=!1}=n,i=W(n,Ba),l=a({},n,{disableSpacing:s}),d=Da(l);return u.jsx(Wa,a({className:_(d.root,r),ownerState:l,ref:o},i))}),_a=za;function Ua(e){return G("MuiDialogContent",e)}H("MuiDialogContent",["root","dividers"]);function Ha(e){return G("MuiDialogTitle",e)}const Va=H("MuiDialogTitle",["root"]),Ga=Va,qa=["className","dividers"],Ka=e=>{const{classes:t,dividers:o}=e;return q({root:["root",o&&"dividers"]},Ua,t)},Xa=E("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>a({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${Ga.root} + &`]:{paddingTop:0}})),Ya=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiDialogContent"}),{className:r,dividers:s=!1}=n,i=W(n,qa),l=a({},n,{dividers:s}),d=Ka(l);return u.jsx(Xa,a({className:_(d.root,r),ownerState:l,ref:o},i))}),Za=Ya;function Qa(e){return G("MuiDialogContentText",e)}H("MuiDialogContentText",["root"]);const Ja=["children","className"],el=e=>{const{classes:t}=e,n=q({root:["root"]},Qa,t);return a({},t,n)},tl=E(Ne,{shouldForwardProp:e=>ye(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ol=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiDialogContentText"}),{className:r}=n,s=W(n,Ja),i=el(s);return u.jsx(tl,a({component:"p",variant:"body1",color:"text.secondary",ref:o,ownerState:s,className:_(i.root,r)},n,{classes:i}))}),nl=ol,rl=["className","id"],sl=e=>{const{classes:t}=e;return q({root:["root"]},Ha,t)},il=E(Ne,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),al=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiDialogTitle"}),{className:r,id:s}=n,i=W(n,rl),l=n,d=sl(l),{titleId:p=s}=c.useContext(Xo);return u.jsx(il,a({component:"h2",className:_(d.root,r),ownerState:l,ref:o,variant:"h6",id:s??p},i))}),ll=al;function cl(e){const t=`dialog-title-${e.id}`,o=`dialog-content-${e.id}`;return u.jsxs(ja,{"aria-describedby":o,"aria-labelledby":t,onClose:e.onClose,open:!!e.open,children:[u.jsx(ll,{id:t,children:e.title}),u.jsx(Za,{children:u.jsx(nl,{component:"div",id:o,children:e.children})}),u.jsxs(_a,{children:[e.onClose&&u.jsx(Ot,{onClick:e.onClose,children:"Cancel"}),u.jsx(Ot,{onClick:e.onSave,variant:"contained",children:"Save"})]})]})}function dl(){const[e,t]=c.useState(!0),[o,n]=c.useState(!1),[r,s]=c.useState(cn()),{setPlayerNickname:i}=Rt();function l(f){const{value:b}=f.target;n(!b),s(b)}function d(f){f.preventDefault(),p()}function p(){if(!r)return n(!0);i(r),dn(r),t(!1)}return u.jsx(cl,{open:e,id:"nickname",onSave:p,title:"Choose a nickname",children:u.jsx("form",{onSubmit:d,children:u.jsx(at,{autoFocus:!0,error:o,label:"Enter your nickname",margin:"dense",onChange:l,placeholder:r||"Nickname",required:!0,value:r,variant:"outlined"})})})}function fl(){return u.jsxs(Le.DriftDBProvider,{api:rn,children:[u.jsx($a,{}),u.jsx(dl,{})]})}export{fl as default}; diff --git a/assets/Room-UKXYDF5M.js b/assets/Room-UKXYDF5M.js deleted file mode 100644 index 9d975f88..00000000 --- a/assets/Room-UKXYDF5M.js +++ /dev/null @@ -1,10 +0,0 @@ -import{r as c,m as he,o as be,j as u,n as Me,p as Yt,q as yo,t as Le,v as Zt,w as Yo,_ as a,x as Qt,e as W,y as Co,z as _e,a as G,g as H,s as E,u as Z,A as dt,C as Zo,f as _,D as ut,E as Ot,h as q,F as So,G as Ro,H as ke,J as st,K as et,M as Io,T as Fe,N as ye,b as de,O as Qo,Q as $o,R as jt,S as Jo,U as en,V as Jt,W as Ue,P as At,X as tn,Y as on,Z as eo,$ as Bt,c as nn,a0 as rn}from"./index-Tolw1maY.js";import{g as sn,s as an,C as Po,a as ln,B as Lt,b as cn,c as dn}from"./CardContent-dpCYL8Mf.js";var K={};/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Dt=Symbol.for("react.element"),Wt=Symbol.for("react.portal"),pt=Symbol.for("react.fragment"),ft=Symbol.for("react.strict_mode"),mt=Symbol.for("react.profiler"),gt=Symbol.for("react.provider"),bt=Symbol.for("react.context"),un=Symbol.for("react.server_context"),ht=Symbol.for("react.forward_ref"),vt=Symbol.for("react.suspense"),xt=Symbol.for("react.suspense_list"),yt=Symbol.for("react.memo"),Ct=Symbol.for("react.lazy"),pn=Symbol.for("react.offscreen"),ko;ko=Symbol.for("react.module.reference");function ve(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Dt:switch(e=e.type,e){case pt:case mt:case ft:case vt:case xt:return e;default:switch(e=e&&e.$$typeof,e){case un:case bt:case ht:case Ct:case yt:case gt:return e;default:return t}}case Wt:return t}}}K.ContextConsumer=bt;K.ContextProvider=gt;K.Element=Dt;K.ForwardRef=ht;K.Fragment=pt;K.Lazy=Ct;K.Memo=yt;K.Portal=Wt;K.Profiler=mt;K.StrictMode=ft;K.Suspense=vt;K.SuspenseList=xt;K.isAsyncMode=function(){return!1};K.isConcurrentMode=function(){return!1};K.isContextConsumer=function(e){return ve(e)===bt};K.isContextProvider=function(e){return ve(e)===gt};K.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Dt};K.isForwardRef=function(e){return ve(e)===ht};K.isFragment=function(e){return ve(e)===pt};K.isLazy=function(e){return ve(e)===Ct};K.isMemo=function(e){return ve(e)===yt};K.isPortal=function(e){return ve(e)===Wt};K.isProfiler=function(e){return ve(e)===mt};K.isStrictMode=function(e){return ve(e)===ft};K.isSuspense=function(e){return ve(e)===vt};K.isSuspenseList=function(e){return ve(e)===xt};K.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===pt||e===mt||e===ft||e===vt||e===xt||e===pn||typeof e=="object"&&e!==null&&(e.$$typeof===Ct||e.$$typeof===yt||e.$$typeof===gt||e.$$typeof===bt||e.$$typeof===ht||e.$$typeof===ko||e.getModuleId!==void 0)};K.typeOf=ve;function Mo(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const fn=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function mn(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function gn(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let o=t(`[name="${e.name}"]:checked`);return o||(o=t(`[name="${e.name}"]`)),o!==e}function bn(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||gn(e))}function hn(e){const t=[],o=[];return Array.from(e.querySelectorAll(fn)).forEach((n,r)=>{const s=mn(n);s===-1||!bn(n)||(s===0?t.push(n):o.push({documentOrder:r,tabIndex:s,node:n}))}),o.sort((n,r)=>n.tabIndex===r.tabIndex?n.documentOrder-r.documentOrder:n.tabIndex-r.tabIndex).map(n=>n.node).concat(t)}function vn(){return!0}function xn(e){const{children:t,disableAutoFocus:o=!1,disableEnforceFocus:n=!1,disableRestoreFocus:r=!1,getTabbable:s=hn,isEnabled:i=vn,open:l}=e,d=c.useRef(!1),p=c.useRef(null),f=c.useRef(null),b=c.useRef(null),v=c.useRef(null),x=c.useRef(!1),h=c.useRef(null),P=he(t.ref,h),S=c.useRef(null);c.useEffect(()=>{!l||!h.current||(x.current=!o)},[o,l]),c.useEffect(()=>{if(!l||!h.current)return;const g=be(h.current);return h.current.contains(g.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),x.current&&h.current.focus()),()=>{r||(b.current&&b.current.focus&&(d.current=!0,b.current.focus()),b.current=null)}},[l]),c.useEffect(()=>{if(!l||!h.current)return;const g=be(h.current),m=C=>{S.current=C,!(n||!i()||C.key!=="Tab")&&g.activeElement===h.current&&C.shiftKey&&(d.current=!0,f.current&&f.current.focus())},I=()=>{const C=h.current;if(C===null)return;if(!g.hasFocus()||!i()||d.current){d.current=!1;return}if(C.contains(g.activeElement)||n&&g.activeElement!==p.current&&g.activeElement!==f.current)return;if(g.activeElement!==v.current)v.current=null;else if(v.current!==null)return;if(!x.current)return;let M=[];if((g.activeElement===p.current||g.activeElement===f.current)&&(M=s(h.current)),M.length>0){var j,T;const D=!!((j=S.current)!=null&&j.shiftKey&&((T=S.current)==null?void 0:T.key)==="Tab"),A=M[0],w=M[M.length-1];typeof A!="string"&&typeof w!="string"&&(D?w.focus():A.focus())}else C.focus()};g.addEventListener("focusin",I),g.addEventListener("keydown",m,!0);const R=setInterval(()=>{g.activeElement&&g.activeElement.tagName==="BODY"&&I()},50);return()=>{clearInterval(R),g.removeEventListener("focusin",I),g.removeEventListener("keydown",m,!0)}},[o,n,r,i,l,s]);const y=g=>{b.current===null&&(b.current=g.relatedTarget),x.current=!0,v.current=g.target;const m=t.props.onFocus;m&&m(g)},$=g=>{b.current===null&&(b.current=g.relatedTarget),x.current=!0};return u.jsxs(c.Fragment,{children:[u.jsx("div",{tabIndex:l?0:-1,onFocus:$,ref:p,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:P,onFocus:y}),u.jsx("div",{tabIndex:l?0:-1,onFocus:$,ref:f,"data-testid":"sentinelEnd"})]})}function yn(e){return typeof e=="function"?e():e}const Cn=c.forwardRef(function(t,o){const{children:n,container:r,disablePortal:s=!1}=t,[i,l]=c.useState(null),d=he(c.isValidElement(n)?n.ref:null,o);if(Me(()=>{s||l(yn(r)||document.body)},[r,s]),Me(()=>{if(i&&!s)return Yt(o,i),()=>{Yt(o,null)}},[o,i,s]),s){if(c.isValidElement(n)){const p={ref:d};return c.cloneElement(n,p)}return u.jsx(c.Fragment,{children:n})}return u.jsx(c.Fragment,{children:i&&yo.createPortal(n,i)})});function Sn(e){const t=be(e);return t.body===e?Le(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Qe(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function to(e){return parseInt(Le(e).getComputedStyle(e).paddingRight,10)||0}function Rn(e){const o=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return o||n}function oo(e,t,o,n,r){const s=[t,o,...n];[].forEach.call(e.children,i=>{const l=s.indexOf(i)===-1,d=!Rn(i);l&&d&&Qe(i,r)})}function Mt(e,t){let o=-1;return e.some((n,r)=>t(n)?(o=r,!0):!1),o}function In(e,t){const o=[],n=e.container;if(!t.disableScrollLock){if(Sn(n)){const i=Mo(be(n));o.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${to(n)+i}px`;const l=be(n).querySelectorAll(".mui-fixed");[].forEach.call(l,d=>{o.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${to(d)+i}px`})}let s;if(n.parentNode instanceof DocumentFragment)s=be(n).body;else{const i=n.parentElement,l=Le(n);s=(i==null?void 0:i.nodeName)==="HTML"&&l.getComputedStyle(i).overflowY==="scroll"?i:n}o.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{o.forEach(({value:s,el:i,property:l})=>{s?i.style.setProperty(l,s):i.style.removeProperty(l)})}}function $n(e){const t=[];return[].forEach.call(e.children,o=>{o.getAttribute("aria-hidden")==="true"&&t.push(o)}),t}class Pn{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,o){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Qe(t.modalRef,!1);const r=$n(o);oo(o,t.mount,t.modalRef,r,!0);const s=Mt(this.containers,i=>i.container===o);return s!==-1?(this.containers[s].modals.push(t),n):(this.containers.push({modals:[t],container:o,restore:null,hiddenSiblings:r}),n)}mount(t,o){const n=Mt(this.containers,s=>s.modals.indexOf(t)!==-1),r=this.containers[n];r.restore||(r.restore=In(r,o))}remove(t,o=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const r=Mt(this.containers,i=>i.modals.indexOf(t)!==-1),s=this.containers[r];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(n,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&Qe(t.modalRef,o),oo(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(r,1);else{const i=s.modals[s.modals.length-1];i.modalRef&&Qe(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function kn(e){return typeof e=="function"?e():e}function Mn(e){return e?e.props.hasOwnProperty("in"):!1}const wn=new Pn;function Tn(e){const{container:t,disableEscapeKeyDown:o=!1,disableScrollLock:n=!1,manager:r=wn,closeAfterTransition:s=!1,onTransitionEnter:i,onTransitionExited:l,children:d,onClose:p,open:f,rootRef:b}=e,v=c.useRef({}),x=c.useRef(null),h=c.useRef(null),P=he(h,b),[S,y]=c.useState(!f),$=Mn(d);let g=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(g=!1);const m=()=>be(x.current),I=()=>(v.current.modalRef=h.current,v.current.mount=x.current,v.current),R=()=>{r.mount(I(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},C=Zt(()=>{const L=kn(t)||m().body;r.add(I(),L),h.current&&R()}),M=c.useCallback(()=>r.isTopModal(I()),[r]),j=Zt(L=>{x.current=L,L&&(f&&M()?R():h.current&&Qe(h.current,g))}),T=c.useCallback(()=>{r.remove(I(),g)},[g,r]);c.useEffect(()=>()=>{T()},[T]),c.useEffect(()=>{f?C():(!$||!s)&&T()},[f,T,$,s,C]);const D=L=>N=>{var B;(B=L.onKeyDown)==null||B.call(L,N),!(N.key!=="Escape"||N.which===229||!M())&&(o||(N.stopPropagation(),p&&p(N,"escapeKeyDown")))},A=L=>N=>{var B;(B=L.onClick)==null||B.call(L,N),N.target===N.currentTarget&&p&&p(N,"backdropClick")};return{getRootProps:(L={})=>{const N=Yo(e);delete N.onTransitionEnter,delete N.onTransitionExited;const B=a({},N,L);return a({role:"presentation"},B,{onKeyDown:D(B),ref:P})},getBackdropProps:(L={})=>{const N=L;return a({"aria-hidden":!0},N,{onClick:A(N),open:f})},getTransitionProps:()=>{const L=()=>{y(!1),i&&i()},N=()=>{y(!0),l&&l(),s&&T()};return{onEnter:Qt(L,d==null?void 0:d.props.onEnter),onExited:Qt(N,d==null?void 0:d.props.onExited)}},rootRef:P,portalRef:j,isTopModal:M,exited:S,hasTransition:$}}const En=["onChange","maxRows","minRows","style","value"];function nt(e){return parseInt(e,10)||0}const Nn={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function no(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const Fn=c.forwardRef(function(t,o){const{onChange:n,maxRows:r,minRows:s=1,style:i,value:l}=t,d=W(t,En),{current:p}=c.useRef(l!=null),f=c.useRef(null),b=he(o,f),v=c.useRef(null),x=c.useRef(0),[h,P]=c.useState({outerHeightStyle:0}),S=c.useCallback(()=>{const m=f.current,R=Le(m).getComputedStyle(m);if(R.width==="0px")return{outerHeightStyle:0};const C=v.current;C.style.width=R.width,C.value=m.value||t.placeholder||"x",C.value.slice(-1)===` -`&&(C.value+=" ");const M=R.boxSizing,j=nt(R.paddingBottom)+nt(R.paddingTop),T=nt(R.borderBottomWidth)+nt(R.borderTopWidth),D=C.scrollHeight;C.value="x";const A=C.scrollHeight;let w=D;s&&(w=Math.max(Number(s)*A,w)),r&&(w=Math.min(Number(r)*A,w)),w=Math.max(w,A);const k=w+(M==="border-box"?j+T:0),O=Math.abs(w-D)<=1;return{outerHeightStyle:k,overflow:O}},[r,s,t.placeholder]),y=(m,I)=>{const{outerHeightStyle:R,overflow:C}=I;return x.current<20&&(R>0&&Math.abs((m.outerHeightStyle||0)-R)>1||m.overflow!==C)?(x.current+=1,{overflow:C,outerHeightStyle:R}):m},$=c.useCallback(()=>{const m=S();no(m)||P(I=>y(I,m))},[S]);Me(()=>{const m=()=>{const D=S();no(D)||yo.flushSync(()=>{P(A=>y(A,D))})},I=()=>{x.current=0,m()};let R;const C=Co(I),M=f.current,j=Le(M);j.addEventListener("resize",C);let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(I),T.observe(M)),()=>{C.clear(),cancelAnimationFrame(R),j.removeEventListener("resize",C),T&&T.disconnect()}},[S]),Me(()=>{$()}),c.useEffect(()=>{x.current=0},[l]);const g=m=>{x.current=0,p||$(),n&&n(m)};return u.jsxs(c.Fragment,{children:[u.jsx("textarea",a({value:l,onChange:g,ref:b,rows:s,style:a({height:h.outerHeightStyle,overflow:h.overflow?"hidden":void 0},i)},d)),u.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:v,tabIndex:-1,style:a({},Nn.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function Ln(){const{debugUrl:e}=_e.useConnectionStatus();c.useEffect(()=>{},[e])}var zt=(e=>(e.host="host",e.jokes="jokes",e.players="players",e.settings="settings",e))(zt||{}),Ne=(e=>(e.players="players",e.rounds="rounds",e.timer="timer",e))(Ne||{}),it=(e=>(e[e.players=4]="players",e[e.rounds=3]="rounds",e[e.timer=30]="timer",e))(it||{});function wo(){const[e,t]=_e.useSharedState(zt.host,"");return{host:e,setHost:t}}const ro={nickname:"",active:!1};function St(){const e=_e.useUniqueClientId(),[t,o]=c.useState(ro),n={[e]:ro},[r,s]=_e.useSharedReducer(zt.players,(i,l)=>{const{payload:d,type:p}=l;i[d.playerId]=i[d.playerId]||{};const f=i[d.playerId];switch(p){case"active":return f.active=d.active,o(f),i;case"nickname":return f.nickname=d.nickname,o(f),i;default:return i}},n);return{player:t,playerId:e,players:r,activePlayersCount:Object.values(r).filter(({active:i})=>i).length,setPlayerActive:i=>s({type:"active",payload:{playerId:e,active:i}}),setPlayerNickname:i=>s({type:"nickname",payload:{playerId:e,nickname:i}})}}function On(){const{playerId:e}=St(),{host:t,setHost:o}=wo();c.useEffect(()=>{!t&&sn()&&(o(e),an(!1))},[])}const so="visibilitychange",jn="hidden";function An(){const{setPlayerActive:e}=St();c.useEffect(()=>{e(!0);function t(){e(document.visibilityState!==jn)}return document.addEventListener(so,t),function(){document.removeEventListener(so,t)}},[])}const Bn=c.createContext(),io=Bn;function Dn(e){return G("MuiGrid",e)}const Wn=[0,1,2,3,4,5,6,7,8,9,10],zn=["column-reverse","column","row-reverse","row"],_n=["nowrap","wrap-reverse","wrap"],qe=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],tt=H("MuiGrid",["root","container","item","zeroMinWidth",...Wn.map(e=>`spacing-xs-${e}`),...zn.map(e=>`direction-xs-${e}`),..._n.map(e=>`wrap-xs-${e}`),...qe.map(e=>`grid-xs-${e}`),...qe.map(e=>`grid-sm-${e}`),...qe.map(e=>`grid-md-${e}`),...qe.map(e=>`grid-lg-${e}`),...qe.map(e=>`grid-xl-${e}`)]),Un=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function ze(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function Hn({theme:e,ownerState:t}){let o;return e.breakpoints.keys.reduce((n,r)=>{let s={};if(t[r]&&(o=t[r]),!o)return n;if(o===!0)s={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(o==="auto")s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=ut({values:t.columns,breakpoints:e.breakpoints.values}),l=typeof i=="object"?i[r]:i;if(l==null)return n;const d=`${Math.round(o/l*1e8)/1e6}%`;let p={};if(t.container&&t.item&&t.columnSpacing!==0){const f=e.spacing(t.columnSpacing);if(f!=="0px"){const b=`calc(${d} + ${ze(f)})`;p={flexBasis:b,maxWidth:b}}}s=a({flexBasis:d,flexGrow:0,maxWidth:d},p)}return e.breakpoints.values[r]===0?Object.assign(n,s):n[e.breakpoints.up(r)]=s,n},{})}function Vn({theme:e,ownerState:t}){const o=ut({values:t.direction,breakpoints:e.breakpoints.values});return Ot({theme:e},o,n=>{const r={flexDirection:n};return n.indexOf("column")===0&&(r[`& > .${tt.item}`]={maxWidth:"none"}),r})}function To({breakpoints:e,values:t}){let o="";Object.keys(t).forEach(r=>{o===""&&t[r]!==0&&(o=r)});const n=Object.keys(e).sort((r,s)=>e[r]-e[s]);return n.slice(0,n.indexOf(o))}function Gn({theme:e,ownerState:t}){const{container:o,rowSpacing:n}=t;let r={};if(o&&n!==0){const s=ut({values:n,breakpoints:e.breakpoints.values});let i;typeof s=="object"&&(i=To({breakpoints:e.breakpoints.values,values:s})),r=Ot({theme:e},s,(l,d)=>{var p;const f=e.spacing(l);return f!=="0px"?{marginTop:`-${ze(f)}`,[`& > .${tt.item}`]:{paddingTop:ze(f)}}:(p=i)!=null&&p.includes(d)?{}:{marginTop:0,[`& > .${tt.item}`]:{paddingTop:0}}})}return r}function qn({theme:e,ownerState:t}){const{container:o,columnSpacing:n}=t;let r={};if(o&&n!==0){const s=ut({values:n,breakpoints:e.breakpoints.values});let i;typeof s=="object"&&(i=To({breakpoints:e.breakpoints.values,values:s})),r=Ot({theme:e},s,(l,d)=>{var p;const f=e.spacing(l);return f!=="0px"?{width:`calc(100% + ${ze(f)})`,marginLeft:`-${ze(f)}`,[`& > .${tt.item}`]:{paddingLeft:ze(f)}}:(p=i)!=null&&p.includes(d)?{}:{width:"100%",marginLeft:0,[`& > .${tt.item}`]:{paddingLeft:0}}})}return r}function Kn(e,t,o={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[o[`spacing-xs-${String(e)}`]];const n=[];return t.forEach(r=>{const s=e[r];Number(s)>0&&n.push(o[`spacing-${r}-${String(s)}`])}),n}const Xn=E("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e,{container:n,direction:r,item:s,spacing:i,wrap:l,zeroMinWidth:d,breakpoints:p}=o;let f=[];n&&(f=Kn(i,p,t));const b=[];return p.forEach(v=>{const x=o[v];x&&b.push(t[`grid-${v}-${String(x)}`])}),[t.root,n&&t.container,s&&t.item,d&&t.zeroMinWidth,...f,r!=="row"&&t[`direction-xs-${String(r)}`],l!=="wrap"&&t[`wrap-xs-${String(l)}`],...b]}})(({ownerState:e})=>a({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),Vn,Gn,qn,Hn);function Yn(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const o=[];return t.forEach(n=>{const r=e[n];if(Number(r)>0){const s=`spacing-${n}-${String(r)}`;o.push(s)}}),o}const Zn=e=>{const{classes:t,container:o,direction:n,item:r,spacing:s,wrap:i,zeroMinWidth:l,breakpoints:d}=e;let p=[];o&&(p=Yn(s,d));const f=[];d.forEach(v=>{const x=e[v];x&&f.push(`grid-${v}-${String(x)}`)});const b={root:["root",o&&"container",r&&"item",l&&"zeroMinWidth",...p,n!=="row"&&`direction-xs-${String(n)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...f]};return q(b,Dn,t)},Qn=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiGrid"}),{breakpoints:r}=dt(),s=Zo(n),{className:i,columns:l,columnSpacing:d,component:p="div",container:f=!1,direction:b="row",item:v=!1,rowSpacing:x,spacing:h=0,wrap:P="wrap",zeroMinWidth:S=!1}=s,y=W(s,Un),$=x||h,g=d||h,m=c.useContext(io),I=f?l||12:m,R={},C=a({},y);r.keys.forEach(T=>{y[T]!=null&&(R[T]=y[T],delete C[T])});const M=a({},s,{columns:I,container:f,direction:b,item:v,rowSpacing:$,columnSpacing:g,wrap:P,zeroMinWidth:S,spacing:h},R,{breakpoints:r.keys}),j=Zn(M);return u.jsx(io.Provider,{value:I,children:u.jsx(Xn,a({ownerState:M,className:_(j.root,i),as:p,ref:o},C))})}),wt=Qn;var _t={},Jn=Ro;Object.defineProperty(_t,"__esModule",{value:!0});var Eo=_t.default=void 0,er=Jn(So()),tr=u;Eo=_t.default=(0,er.default)((0,tr.jsx)("path",{d:"M9 11.75c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25m6 0c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8 0-.29.02-.58.05-.86 2.36-1.05 4.23-2.98 5.21-5.37C11.07 8.33 14.05 10 17.42 10c.78 0 1.53-.09 2.25-.26.21.71.33 1.47.33 2.26 0 4.41-3.59 8-8 8"}),"Face");var Ut={},or=Ro;Object.defineProperty(Ut,"__esModule",{value:!0});var No=Ut.default=void 0,nr=or(So()),rt=u;No=Ut.default=(0,nr.default)([(0,rt.jsx)("circle",{cx:"9",cy:"13",r:"1.25"},"0"),(0,rt.jsx)("path",{d:"m20.77 8.58-.92 2.01c.09.46.15.93.15 1.41 0 4.41-3.59 8-8 8s-8-3.59-8-8c0-.05.01-.1 0-.14 2.6-.98 4.69-2.99 5.74-5.55C11.58 8.56 14.37 10 17.5 10c.45 0 .89-.04 1.33-.1l-.6-1.32-.88-1.93-1.93-.88-2.79-1.27 2.79-1.27.71-.32C14.87 2.33 13.47 2 12 2 6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-1.47-.33-2.87-.9-4.13z"},"1"),(0,rt.jsx)("circle",{cx:"15",cy:"13",r:"1.25"},"2"),(0,rt.jsx)("path",{d:"M20.6 5.6 19.5 8l-1.1-2.4L16 4.5l2.4-1.1L19.5 1l1.1 2.4L23 4.5z"},"3")],"FaceRetouchingNatural");const rr=c.createContext({}),Ie=rr;function sr(e){return G("MuiList",e)}H("MuiList",["root","padding","dense","subheader"]);const ir=["children","className","component","dense","disablePadding","subheader"],ar=e=>{const{classes:t,disablePadding:o,dense:n,subheader:r}=e;return q({root:["root",!o&&"padding",n&&"dense",r&&"subheader"]},sr,t)},lr=E("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disablePadding&&t.padding,o.dense&&t.dense,o.subheader&&t.subheader]}})(({ownerState:e})=>a({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),cr=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiList"}),{children:r,className:s,component:i="ul",dense:l=!1,disablePadding:d=!1,subheader:p}=n,f=W(n,ir),b=c.useMemo(()=>({dense:l}),[l]),v=a({},n,{component:i,dense:l,disablePadding:d}),x=ar(v);return u.jsx(Ie.Provider,{value:b,children:u.jsxs(lr,a({as:i,className:_(x.root,s),ref:o,ownerState:v},f,{children:[p,r]}))})}),Fo=cr;function dr(e){return G("MuiListItem",e)}const ur=H("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),We=ur,pr=H("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),fr=pr;function mr(e){return G("MuiListItemSecondaryAction",e)}H("MuiListItemSecondaryAction",["root","disableGutters"]);const gr=["className"],br=e=>{const{disableGutters:t,classes:o}=e;return q({root:["root",t&&"disableGutters"]},mr,o)},hr=E("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.disableGutters&&t.disableGutters]}})(({ownerState:e})=>a({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Lo=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiListItemSecondaryAction"}),{className:r}=n,s=W(n,gr),i=c.useContext(Ie),l=a({},n,{disableGutters:i.disableGutters}),d=br(l);return u.jsx(hr,a({className:_(d.root,r),ownerState:l,ref:o},s))});Lo.muiName="ListItemSecondaryAction";const vr=Lo,xr=["className"],yr=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Cr=(e,t)=>{const{ownerState:o}=e;return[t.root,o.dense&&t.dense,o.alignItems==="flex-start"&&t.alignItemsFlexStart,o.divider&&t.divider,!o.disableGutters&&t.gutters,!o.disablePadding&&t.padding,o.button&&t.button,o.hasSecondaryAction&&t.secondaryAction]},Sr=e=>{const{alignItems:t,button:o,classes:n,dense:r,disabled:s,disableGutters:i,disablePadding:l,divider:d,hasSecondaryAction:p,selected:f}=e;return q({root:["root",r&&"dense",!i&&"gutters",!l&&"padding",d&&"divider",s&&"disabled",o&&"button",t==="flex-start"&&"alignItemsFlexStart",p&&"secondaryAction",f&&"selected"],container:["container"]},dr,n)},Rr=E("div",{name:"MuiListItem",slot:"Root",overridesResolver:Cr})(({theme:e,ownerState:t})=>a({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&a({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${fr.root}`]:{paddingRight:48}},{[`&.${We.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${We.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ke(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${We.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ke(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${We.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${We.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ke(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ke(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Ir=E("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),$r=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiListItem"}),{alignItems:r="center",autoFocus:s=!1,button:i=!1,children:l,className:d,component:p,components:f={},componentsProps:b={},ContainerComponent:v="li",ContainerProps:{className:x}={},dense:h=!1,disabled:P=!1,disableGutters:S=!1,disablePadding:y=!1,divider:$=!1,focusVisibleClassName:g,secondaryAction:m,selected:I=!1,slotProps:R={},slots:C={}}=n,M=W(n.ContainerProps,xr),j=W(n,yr),T=c.useContext(Ie),D=c.useMemo(()=>({dense:h||T.dense||!1,alignItems:r,disableGutters:S}),[r,T.dense,h,S]),A=c.useRef(null);Me(()=>{s&&A.current&&A.current.focus()},[s]);const w=c.Children.toArray(l),k=w.length&&st(w[w.length-1],["ListItemSecondaryAction"]),O=a({},n,{alignItems:r,autoFocus:s,button:i,dense:D.dense,disabled:P,disableGutters:S,disablePadding:y,divider:$,hasSecondaryAction:k,selected:I}),L=Sr(O),N=he(A,o),B=C.root||f.Root||Rr,U=R.root||b.root||{},X=a({className:_(L.root,U.className,d),disabled:P},j);let ne=p||"li";return i&&(X.component=p||"div",X.focusVisibleClassName=_(We.focusVisible,g),ne=Io),k?(ne=!X.component&&!p?"div":ne,v==="li"&&(ne==="li"?ne="div":X.component==="li"&&(X.component="div")),u.jsx(Ie.Provider,{value:D,children:u.jsxs(Ir,a({as:v,className:_(L.container,x),ref:N,ownerState:O},M,{children:[u.jsx(B,a({},U,!et(B)&&{as:ne,ownerState:a({},O,U.ownerState)},X,{children:w})),w.pop()]}))})):u.jsx(Ie.Provider,{value:D,children:u.jsxs(B,a({},U,{as:ne,ref:N},!et(B)&&{ownerState:a({},O,U.ownerState)},X,{children:[w,m&&u.jsx(vr,{children:m})]}))})}),Pr=$r;function kr(e){return G("MuiListItemIcon",e)}const Mr=H("MuiListItemIcon",["root","alignItemsFlexStart"]),ao=Mr,wr=["className"],Tr=e=>{const{alignItems:t,classes:o}=e;return q({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},kr,o)},Er=E("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>a({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Nr=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiListItemIcon"}),{className:r}=n,s=W(n,wr),i=c.useContext(Ie),l=a({},n,{alignItems:i.alignItems}),d=Tr(l);return u.jsx(Er,a({className:_(d.root,r),ownerState:l,ref:o},s))}),Fr=Nr;function Lr(e){return G("MuiListItemText",e)}const Or=H("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),lt=Or,jr=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Ar=e=>{const{classes:t,inset:o,primary:n,secondary:r,dense:s}=e;return q({root:["root",o&&"inset",s&&"dense",n&&r&&"multiline"],primary:["primary"],secondary:["secondary"]},Lr,t)},Br=E("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${lt.primary}`]:t.primary},{[`& .${lt.secondary}`]:t.secondary},t.root,o.inset&&t.inset,o.primary&&o.secondary&&t.multiline,o.dense&&t.dense]}})(({ownerState:e})=>a({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Dr=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiListItemText"}),{children:r,className:s,disableTypography:i=!1,inset:l=!1,primary:d,primaryTypographyProps:p,secondary:f,secondaryTypographyProps:b}=n,v=W(n,jr),{dense:x}=c.useContext(Ie);let h=d??r,P=f;const S=a({},n,{disableTypography:i,inset:l,primary:!!h,secondary:!!P,dense:x}),y=Ar(S);return h!=null&&h.type!==Fe&&!i&&(h=u.jsx(Fe,a({variant:x?"body2":"body1",className:y.primary,component:p!=null&&p.variant?void 0:"span",display:"block"},p,{children:h}))),P!=null&&P.type!==Fe&&!i&&(P=u.jsx(Fe,a({variant:"body2",className:y.secondary,color:"text.secondary",display:"block"},b,{children:P}))),u.jsxs(Br,a({className:_(y.root,s),ownerState:S,ref:o},v,{children:[h,P]}))}),Wr=Dr;function zr(){const{host:e}=wo(),{players:t}=St();return u.jsx(Fo,{component:Po,children:Object.entries(t).map(([o,n])=>{const r=n.active?"inherit":"disabled";return u.jsxs(Pr,{children:[u.jsx(Fr,{children:o===e?u.jsx(No,{color:r}):u.jsx(Eo,{color:r})}),u.jsx(Wr,{primary:n.nickname})]},o)})})}function _r(e){return G("MuiCardActions",e)}H("MuiCardActions",["root","spacing"]);const Ur=["disableSpacing","className"],Hr=e=>{const{classes:t,disableSpacing:o}=e;return q({root:["root",!o&&"spacing"]},_r,t)},Vr=E("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disableSpacing&&t.spacing]}})(({ownerState:e})=>a({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Gr=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiCardActions"}),{disableSpacing:r=!1,className:s}=n,i=W(n,Ur),l=a({},n,{disableSpacing:r}),d=Hr(l);return u.jsx(Vr,a({className:_(d.root,s),ownerState:l,ref:o},i))}),qr=Gr,Kr=H("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),lo=Kr;function Xr(e){return G("MuiMenuItem",e)}const Yr=H("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Ke=Yr,Zr=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Qr=(e,t)=>{const{ownerState:o}=e;return[t.root,o.dense&&t.dense,o.divider&&t.divider,!o.disableGutters&&t.gutters]},Jr=e=>{const{disabled:t,dense:o,divider:n,disableGutters:r,selected:s,classes:i}=e,d=q({root:["root",o&&"dense",t&&"disabled",!r&&"gutters",n&&"divider",s&&"selected"]},Xr,i);return a({},i,d)},es=E(Io,{shouldForwardProp:e=>ye(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Qr})(({theme:e,ownerState:t})=>a({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ke.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ke(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ke.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ke(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ke.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ke(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ke(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ke.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ke.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${lo.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${lo.inset}`]:{marginLeft:52},[`& .${lt.root}`]:{marginTop:0,marginBottom:0},[`& .${lt.inset}`]:{paddingLeft:36},[`& .${ao.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&a({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${ao.root} svg`]:{fontSize:"1.25rem"}}))),ts=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiMenuItem"}),{autoFocus:r=!1,component:s="li",dense:i=!1,divider:l=!1,disableGutters:d=!1,focusVisibleClassName:p,role:f="menuitem",tabIndex:b,className:v}=n,x=W(n,Zr),h=c.useContext(Ie),P=c.useMemo(()=>({dense:i||h.dense||!1,disableGutters:d}),[h.dense,i,d]),S=c.useRef(null);Me(()=>{r&&S.current&&S.current.focus()},[r]);const y=a({},n,{dense:P.dense,divider:l,disableGutters:d}),$=Jr(n),g=he(S,o);let m;return n.disabled||(m=b!==void 0?b:-1),u.jsx(Ie.Provider,{value:P,children:u.jsx(es,a({ref:g,role:f,tabIndex:m,component:s,focusVisibleClassName:_($.focusVisible,p),className:_($.root,v)},x,{ownerState:y,classes:$}))})}),Tt=ts;function Ve({props:e,states:t,muiFormControl:o}){return t.reduce((n,r)=>(n[r]=e[r],o&&typeof e[r]>"u"&&(n[r]=o[r]),n),{})}const os=c.createContext(void 0),Ht=os;function Ge(){return c.useContext(Ht)}function co(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ct(e,t=!1){return e&&(co(e.value)&&e.value!==""||t&&co(e.defaultValue)&&e.defaultValue!=="")}function ns(e){return e.startAdornment}function rs(e){return G("MuiInputBase",e)}const ss=H("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),He=ss,is=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Rt=(e,t)=>{const{ownerState:o}=e;return[t.root,o.formControl&&t.formControl,o.startAdornment&&t.adornedStart,o.endAdornment&&t.adornedEnd,o.error&&t.error,o.size==="small"&&t.sizeSmall,o.multiline&&t.multiline,o.color&&t[`color${de(o.color)}`],o.fullWidth&&t.fullWidth,o.hiddenLabel&&t.hiddenLabel]},It=(e,t)=>{const{ownerState:o}=e;return[t.input,o.size==="small"&&t.inputSizeSmall,o.multiline&&t.inputMultiline,o.type==="search"&&t.inputTypeSearch,o.startAdornment&&t.inputAdornedStart,o.endAdornment&&t.inputAdornedEnd,o.hiddenLabel&&t.inputHiddenLabel]},as=e=>{const{classes:t,color:o,disabled:n,error:r,endAdornment:s,focused:i,formControl:l,fullWidth:d,hiddenLabel:p,multiline:f,readOnly:b,size:v,startAdornment:x,type:h}=e,P={root:["root",`color${de(o)}`,n&&"disabled",r&&"error",d&&"fullWidth",i&&"focused",l&&"formControl",v&&v!=="medium"&&`size${de(v)}`,f&&"multiline",x&&"adornedStart",s&&"adornedEnd",p&&"hiddenLabel",b&&"readOnly"],input:["input",n&&"disabled",h==="search"&&"inputTypeSearch",f&&"inputMultiline",v==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",x&&"inputAdornedStart",s&&"inputAdornedEnd",b&&"readOnly"]};return q(P,rs,t)},$t=E("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Rt})(({theme:e,ownerState:t})=>a({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${He.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&a({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Pt=E("input",{name:"MuiInputBase",slot:"Input",overridesResolver:It})(({theme:e,ownerState:t})=>{const o=e.palette.mode==="light",n=a({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),r={opacity:"0 !important"},s=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5};return a({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${He.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${He.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),ls=u.jsx(Qo,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),cs=c.forwardRef(function(t,o){var n;const r=Z({props:t,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:i,autoFocus:l,className:d,components:p={},componentsProps:f={},defaultValue:b,disabled:v,disableInjectingGlobalStyles:x,endAdornment:h,fullWidth:P=!1,id:S,inputComponent:y="input",inputProps:$={},inputRef:g,maxRows:m,minRows:I,multiline:R=!1,name:C,onBlur:M,onChange:j,onClick:T,onFocus:D,onKeyDown:A,onKeyUp:w,placeholder:k,readOnly:O,renderSuffix:L,rows:N,slotProps:B={},slots:U={},startAdornment:X,type:ne="text",value:ie}=r,re=W(r,is),Y=$.value!=null?$.value:ie,{current:ae}=c.useRef(Y!=null),se=c.useRef(),fe=c.useCallback(ee=>{},[]),pe=he(se,g,$.ref,fe),[xe,me]=c.useState(!1),V=Ge(),oe=Ve({props:r,muiFormControl:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});oe.focused=V?V.focused:xe,c.useEffect(()=>{!V&&v&&xe&&(me(!1),M&&M())},[V,v,xe,M]);const z=V&&V.onFilled,Q=V&&V.onEmpty,te=c.useCallback(ee=>{ct(ee)?z&&z():Q&&Q()},[z,Q]);Me(()=>{ae&&te({value:Y})},[Y,te,ae]);const Oe=ee=>{if(oe.disabled){ee.stopPropagation();return}D&&D(ee),$.onFocus&&$.onFocus(ee),V&&V.onFocus?V.onFocus(ee):me(!0)},Ce=ee=>{M&&M(ee),$.onBlur&&$.onBlur(ee),V&&V.onBlur?V.onBlur(ee):me(!1)},Se=(ee,...Te)=>{if(!ae){const Be=ee.target||se.current;if(Be==null)throw new Error($o(1));te({value:Be.value})}$.onChange&&$.onChange(ee,...Te),j&&j(ee,...Te)};c.useEffect(()=>{te(se.current)},[]);const Re=ee=>{se.current&&ee.currentTarget===ee.target&&se.current.focus(),T&&T(ee)};let $e=y,le=$;R&&$e==="input"&&(N?le=a({type:void 0,minRows:N,maxRows:N},le):le=a({type:void 0,maxRows:m,minRows:I},le),$e=Fn);const we=ee=>{te(ee.animationName==="mui-auto-fill-cancel"?se.current:{value:"x"})};c.useEffect(()=>{V&&V.setAdornedStart(!!X)},[V,X]);const ge=a({},r,{color:oe.color||"primary",disabled:oe.disabled,endAdornment:h,error:oe.error,focused:oe.focused,formControl:V,fullWidth:P,hiddenLabel:oe.hiddenLabel,multiline:R,size:oe.size,startAdornment:X,type:ne}),ce=as(ge),ot=U.root||p.Root||$t,je=B.root||f.root||{},Ae=U.input||p.Input||Pt;return le=a({},le,(n=B.input)!=null?n:f.input),u.jsxs(c.Fragment,{children:[!x&&ls,u.jsxs(ot,a({},je,!et(ot)&&{ownerState:a({},ge,je.ownerState)},{ref:o,onClick:Re},re,{className:_(ce.root,je.className,d,O&&"MuiInputBase-readOnly"),children:[X,u.jsx(Ht.Provider,{value:null,children:u.jsx(Ae,a({ownerState:ge,"aria-invalid":oe.error,"aria-describedby":s,autoComplete:i,autoFocus:l,defaultValue:b,disabled:oe.disabled,id:S,onAnimationStart:we,name:C,placeholder:k,readOnly:O,required:oe.required,rows:N,value:Y,onKeyDown:A,onKeyUp:w,type:ne},le,!et(Ae)&&{as:$e,ownerState:a({},ge,le.ownerState)},{ref:pe,className:_(ce.input,le.className,O&&"MuiInputBase-readOnly"),onBlur:Ce,onChange:Se,onFocus:Oe}))}),h,L?L(a({},oe,{startAdornment:X})):null]}))]})}),Vt=cs;function ds(e){return G("MuiInput",e)}const us=a({},He,H("MuiInput",["root","underline","input"])),Xe=us,ps=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],fs=e=>{const{classes:t,disableUnderline:o}=e,r=q({root:["root",!o&&"underline"],input:["input"]},ds,t);return a({},t,r)},ms=E($t,{shouldForwardProp:e=>ye(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...Rt(e,t),!o.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),a({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Xe.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xe.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Xe.disabled}, .${Xe.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Xe.disabled}:before`]:{borderBottomStyle:"dotted"}})}),gs=E(Pt,{name:"MuiInput",slot:"Input",overridesResolver:It})({}),Oo=c.forwardRef(function(t,o){var n,r,s,i;const l=Z({props:t,name:"MuiInput"}),{disableUnderline:d,components:p={},componentsProps:f,fullWidth:b=!1,inputComponent:v="input",multiline:x=!1,slotProps:h,slots:P={},type:S="text"}=l,y=W(l,ps),$=fs(l),m={root:{ownerState:{disableUnderline:d}}},I=h??f?jt(h??f,m):m,R=(n=(r=P.root)!=null?r:p.Root)!=null?n:ms,C=(s=(i=P.input)!=null?i:p.Input)!=null?s:gs;return u.jsx(Vt,a({slots:{root:R,input:C},slotProps:I,fullWidth:b,inputComponent:v,multiline:x,ref:o,type:S},y,{classes:$}))});Oo.muiName="Input";const jo=Oo;function bs(e){return G("MuiFilledInput",e)}const hs=a({},He,H("MuiFilledInput",["root","underline","input"])),Ee=hs,vs=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],xs=e=>{const{classes:t,disableUnderline:o}=e,r=q({root:["root",!o&&"underline"],input:["input"]},bs,t);return a({},t,r)},ys=E($t,{shouldForwardProp:e=>ye(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...Rt(e,t),!o.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var o;const n=e.palette.mode==="light",r=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return a({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s}},[`&.${Ee.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s},[`&.${Ee.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(o=(e.vars||e).palette[t.color||"primary"])==null?void 0:o.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ee.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ee.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ee.disabled}, .${Ee.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ee.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&a({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),Cs=E(Pt,{name:"MuiFilledInput",slot:"Input",overridesResolver:It})(({theme:e,ownerState:t})=>a({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Ao=c.forwardRef(function(t,o){var n,r,s,i;const l=Z({props:t,name:"MuiFilledInput"}),{components:d={},componentsProps:p,fullWidth:f=!1,inputComponent:b="input",multiline:v=!1,slotProps:x,slots:h={},type:P="text"}=l,S=W(l,vs),y=a({},l,{fullWidth:f,inputComponent:b,multiline:v,type:P}),$=xs(l),g={root:{ownerState:y},input:{ownerState:y}},m=x??p?jt(g,x??p):g,I=(n=(r=h.root)!=null?r:d.Root)!=null?n:ys,R=(s=(i=h.input)!=null?i:d.Input)!=null?s:Cs;return u.jsx(Vt,a({slots:{root:I,input:R},componentsProps:m,fullWidth:f,inputComponent:b,multiline:v,ref:o,type:P},S,{classes:$}))});Ao.muiName="Input";const Bo=Ao;var uo;const Ss=["children","classes","className","label","notched"],Rs=E("fieldset",{shouldForwardProp:ye})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Is=E("legend",{shouldForwardProp:ye})(({ownerState:e,theme:t})=>a({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&a({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function $s(e){const{className:t,label:o,notched:n}=e,r=W(e,Ss),s=o!=null&&o!=="",i=a({},e,{notched:n,withLabel:s});return u.jsx(Rs,a({"aria-hidden":!0,className:t,ownerState:i},r,{children:u.jsx(Is,{ownerState:i,children:s?u.jsx("span",{children:o}):uo||(uo=u.jsx("span",{className:"notranslate",children:"​"}))})}))}function Ps(e){return G("MuiOutlinedInput",e)}const ks=a({},He,H("MuiOutlinedInput",["root","notchedOutline","input"])),Pe=ks,Ms=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],ws=e=>{const{classes:t}=e,n=q({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Ps,t);return a({},t,n)},Ts=E($t,{shouldForwardProp:e=>ye(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Rt})(({theme:e,ownerState:t})=>{const o=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return a({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Pe.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Pe.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:o}},[`&.${Pe.focused} .${Pe.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Pe.error} .${Pe.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Pe.disabled} .${Pe.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&a({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Es=E($s,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Ns=E(Pt,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:It})(({theme:e,ownerState:t})=>a({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),Do=c.forwardRef(function(t,o){var n,r,s,i,l;const d=Z({props:t,name:"MuiOutlinedInput"}),{components:p={},fullWidth:f=!1,inputComponent:b="input",label:v,multiline:x=!1,notched:h,slots:P={},type:S="text"}=d,y=W(d,Ms),$=ws(d),g=Ge(),m=Ve({props:d,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),I=a({},d,{color:m.color||"primary",disabled:m.disabled,error:m.error,focused:m.focused,formControl:g,fullWidth:f,hiddenLabel:m.hiddenLabel,multiline:x,size:m.size,type:S}),R=(n=(r=P.root)!=null?r:p.Root)!=null?n:Ts,C=(s=(i=P.input)!=null?i:p.Input)!=null?s:Ns;return u.jsx(Vt,a({slots:{root:R,input:C},renderSuffix:M=>u.jsx(Es,{ownerState:I,className:$.notchedOutline,label:v!=null&&v!==""&&m.required?l||(l=u.jsxs(c.Fragment,{children:[v," ","*"]})):v,notched:typeof h<"u"?h:!!(M.startAdornment||M.filled||M.focused)}),fullWidth:f,inputComponent:b,multiline:x,ref:o,type:S},y,{classes:a({},$,{notchedOutline:null})}))});Do.muiName="Input";const Wo=Do;function Fs(e){return G("MuiFormLabel",e)}const Ls=H("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Je=Ls,Os=["children","className","color","component","disabled","error","filled","focused","required"],js=e=>{const{classes:t,color:o,focused:n,disabled:r,error:s,filled:i,required:l}=e,d={root:["root",`color${de(o)}`,r&&"disabled",s&&"error",i&&"filled",n&&"focused",l&&"required"],asterisk:["asterisk",s&&"error"]};return q(d,Fs,t)},As=E("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>a({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>a({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Je.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Je.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Je.error}`]:{color:(e.vars||e).palette.error.main}})),Bs=E("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Je.error}`]:{color:(e.vars||e).palette.error.main}})),Ds=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiFormLabel"}),{children:r,className:s,component:i="label"}=n,l=W(n,Os),d=Ge(),p=Ve({props:n,muiFormControl:d,states:["color","required","focused","disabled","error","filled"]}),f=a({},n,{color:p.color||"primary",component:i,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),b=js(f);return u.jsxs(As,a({as:i,ownerState:f,className:_(b.root,s),ref:o},l,{children:[r,p.required&&u.jsxs(Bs,{ownerState:f,"aria-hidden":!0,className:b.asterisk,children:[" ","*"]})]}))}),Ws=Ds;function zs(e){return G("MuiInputLabel",e)}H("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const _s=["disableAnimation","margin","shrink","variant","className"],Us=e=>{const{classes:t,formControl:o,size:n,shrink:r,disableAnimation:s,variant:i,required:l}=e,d={root:["root",o&&"formControl",!s&&"animated",r&&"shrink",n&&n!=="normal"&&`size${de(n)}`,i],asterisk:[l&&"asterisk"]},p=q(d,zs,t);return a({},t,p)},Hs=E(Ws,{shouldForwardProp:e=>ye(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${Je.asterisk}`]:t.asterisk},t.root,o.formControl&&t.formControl,o.size==="small"&&t.sizeSmall,o.shrink&&t.shrink,!o.disableAnimation&&t.animated,o.focused&&t.focused,t[o.variant]]}})(({theme:e,ownerState:t})=>a({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&a({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&a({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&a({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Vs=c.forwardRef(function(t,o){const n=Z({name:"MuiInputLabel",props:t}),{disableAnimation:r=!1,shrink:s,className:i}=n,l=W(n,_s),d=Ge();let p=s;typeof p>"u"&&d&&(p=d.filled||d.focused||d.adornedStart);const f=Ve({props:n,muiFormControl:d,states:["size","variant","required","focused"]}),b=a({},n,{disableAnimation:r,formControl:d,shrink:p,size:f.size,variant:f.variant,required:f.required,focused:f.focused}),v=Us(b);return u.jsx(Hs,a({"data-shrink":p,ownerState:b,ref:o,className:_(v.root,i)},l,{classes:v}))}),Gs=Vs;function qs(e){return G("MuiFormControl",e)}H("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Ks=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Xs=e=>{const{classes:t,margin:o,fullWidth:n}=e,r={root:["root",o!=="none"&&`margin${de(o)}`,n&&"fullWidth"]};return q(r,qs,t)},Ys=E("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>a({},t.root,t[`margin${de(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>a({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Zs=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiFormControl"}),{children:r,className:s,color:i="primary",component:l="div",disabled:d=!1,error:p=!1,focused:f,fullWidth:b=!1,hiddenLabel:v=!1,margin:x="none",required:h=!1,size:P="medium",variant:S="outlined"}=n,y=W(n,Ks),$=a({},n,{color:i,component:l,disabled:d,error:p,fullWidth:b,hiddenLabel:v,margin:x,required:h,size:P,variant:S}),g=Xs($),[m,I]=c.useState(()=>{let w=!1;return r&&c.Children.forEach(r,k=>{if(!st(k,["Input","Select"]))return;const O=st(k,["Select"])?k.props.input:k;O&&ns(O.props)&&(w=!0)}),w}),[R,C]=c.useState(()=>{let w=!1;return r&&c.Children.forEach(r,k=>{st(k,["Input","Select"])&&(ct(k.props,!0)||ct(k.props.inputProps,!0))&&(w=!0)}),w}),[M,j]=c.useState(!1);d&&M&&j(!1);const T=f!==void 0&&!d?f:M;let D;const A=c.useMemo(()=>({adornedStart:m,setAdornedStart:I,color:i,disabled:d,error:p,filled:R,focused:T,fullWidth:b,hiddenLabel:v,size:P,onBlur:()=>{j(!1)},onEmpty:()=>{C(!1)},onFilled:()=>{C(!0)},onFocus:()=>{j(!0)},registerEffect:D,required:h,variant:S}),[m,i,d,p,R,T,b,v,D,h,P,S]);return u.jsx(Ht.Provider,{value:A,children:u.jsx(Ys,a({as:l,ownerState:$,className:_(g.root,s),ref:o},y,{children:r}))})}),Qs=Zs;function Js(e){return G("MuiFormHelperText",e)}const ei=H("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),po=ei;var fo;const ti=["children","className","component","disabled","error","filled","focused","margin","required","variant"],oi=e=>{const{classes:t,contained:o,size:n,disabled:r,error:s,filled:i,focused:l,required:d}=e,p={root:["root",r&&"disabled",s&&"error",n&&`size${de(n)}`,o&&"contained",l&&"focused",i&&"filled",d&&"required"]};return q(p,Js,t)},ni=E("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.size&&t[`size${de(o.size)}`],o.contained&&t.contained,o.filled&&t.filled]}})(({theme:e,ownerState:t})=>a({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${po.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${po.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),ri=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiFormHelperText"}),{children:r,className:s,component:i="p"}=n,l=W(n,ti),d=Ge(),p=Ve({props:n,muiFormControl:d,states:["variant","size","disabled","error","filled","focused","required"]}),f=a({},n,{component:i,contained:p.variant==="filled"||p.variant==="outlined",variant:p.variant,size:p.size,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),b=oi(f);return u.jsx(ni,a({as:i,ownerState:f,className:_(b.root,s),ref:o},l,{children:r===" "?fo||(fo=u.jsx("span",{className:"notranslate",children:"​"})):r}))}),si=ri,ii=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Et(e,t,o){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:o?null:e.firstChild}function mo(e,t,o){return e===t?o?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:o?null:e.lastChild}function zo(e,t){if(t===void 0)return!0;let o=e.innerText;return o===void 0&&(o=e.textContent),o=o.trim().toLowerCase(),o.length===0?!1:t.repeating?o[0]===t.keys[0]:o.indexOf(t.keys.join(""))===0}function Ye(e,t,o,n,r,s){let i=!1,l=r(e,t,t?o:!1);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const d=n?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!zo(l,s)||d)l=r(e,l,o);else return l.focus(),!0}return!1}const ai=c.forwardRef(function(t,o){const{actions:n,autoFocus:r=!1,autoFocusItem:s=!1,children:i,className:l,disabledItemsFocusable:d=!1,disableListWrap:p=!1,onKeyDown:f,variant:b="selectedMenu"}=t,v=W(t,ii),x=c.useRef(null),h=c.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Me(()=>{r&&x.current.focus()},[r]),c.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(g,m)=>{const I=!x.current.style.width;if(g.clientHeight{const m=x.current,I=g.key,R=be(m).activeElement;if(I==="ArrowDown")g.preventDefault(),Ye(m,R,p,d,Et);else if(I==="ArrowUp")g.preventDefault(),Ye(m,R,p,d,mo);else if(I==="Home")g.preventDefault(),Ye(m,null,p,d,Et);else if(I==="End")g.preventDefault(),Ye(m,null,p,d,mo);else if(I.length===1){const C=h.current,M=I.toLowerCase(),j=performance.now();C.keys.length>0&&(j-C.lastTime>500?(C.keys=[],C.repeating=!0,C.previousKeyMatched=!0):C.repeating&&M!==C.keys[0]&&(C.repeating=!1)),C.lastTime=j,C.keys.push(M);const T=R&&!C.repeating&&zo(R,C);C.previousKeyMatched&&(T||Ye(m,R,!1,d,Et,C))?g.preventDefault():C.previousKeyMatched=!1}f&&f(g)},S=he(x,o);let y=-1;c.Children.forEach(i,(g,m)=>{if(!c.isValidElement(g)){y===m&&(y+=1,y>=i.length&&(y=-1));return}g.props.disabled||(b==="selectedMenu"&&g.props.selected||y===-1)&&(y=m),y===m&&(g.props.disabled||g.props.muiSkipListHighlight||g.type.muiSkipListHighlight)&&(y+=1,y>=i.length&&(y=-1))});const $=c.Children.map(i,(g,m)=>{if(m===y){const I={};return s&&(I.autoFocus=!0),g.props.tabIndex===void 0&&b==="selectedMenu"&&(I.tabIndex=0),c.cloneElement(g,I)}return g});return u.jsx(Fo,a({role:"menu",ref:S,className:l,onKeyDown:P,tabIndex:r?0:-1},v,{children:$}))}),li=ai,ci=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],di={entering:{opacity:1},entered:{opacity:1}},ui=c.forwardRef(function(t,o){const n=dt(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:s,appear:i=!0,children:l,easing:d,in:p,onEnter:f,onEntered:b,onEntering:v,onExit:x,onExited:h,onExiting:P,style:S,timeout:y=r,TransitionComponent:$=Jo}=t,g=W(t,ci),m=c.useRef(null),I=he(m,l.ref,o),R=k=>O=>{if(k){const L=m.current;O===void 0?k(L):k(L,O)}},C=R(v),M=R((k,O)=>{en(k);const L=Jt({style:S,timeout:y,easing:d},{mode:"enter"});k.style.webkitTransition=n.transitions.create("opacity",L),k.style.transition=n.transitions.create("opacity",L),f&&f(k,O)}),j=R(b),T=R(P),D=R(k=>{const O=Jt({style:S,timeout:y,easing:d},{mode:"exit"});k.style.webkitTransition=n.transitions.create("opacity",O),k.style.transition=n.transitions.create("opacity",O),x&&x(k)}),A=R(h),w=k=>{s&&s(m.current,k)};return u.jsx($,a({appear:i,in:p,nodeRef:m,onEnter:M,onEntered:j,onEntering:C,onExit:D,onExited:A,onExiting:T,addEndListener:w,timeout:y},g,{children:(k,O)=>c.cloneElement(l,a({style:a({opacity:0,visibility:k==="exited"&&!p?"hidden":void 0},di[k],S,l.props.style),ref:I},O))}))}),_o=ui;function pi(e){return G("MuiBackdrop",e)}H("MuiBackdrop",["root","invisible"]);const fi=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],mi=e=>{const{classes:t,invisible:o}=e;return q({root:["root",o&&"invisible"]},pi,t)},gi=E("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.invisible&&t.invisible]}})(({ownerState:e})=>a({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"})),bi=c.forwardRef(function(t,o){var n,r,s;const i=Z({props:t,name:"MuiBackdrop"}),{children:l,className:d,component:p="div",components:f={},componentsProps:b={},invisible:v=!1,open:x,slotProps:h={},slots:P={},TransitionComponent:S=_o,transitionDuration:y}=i,$=W(i,fi),g=a({},i,{component:p,invisible:v}),m=mi(g),I=(n=h.root)!=null?n:b.root;return u.jsx(S,a({in:x,timeout:y},$,{children:u.jsx(gi,a({"aria-hidden":!0},I,{as:(r=(s=P.root)!=null?s:f.Root)!=null?r:p,className:_(m.root,d,I==null?void 0:I.className),ownerState:a({},g,I==null?void 0:I.ownerState),classes:m,ref:o,children:l}))}))}),Uo=bi;function hi(e){return G("MuiModal",e)}H("MuiModal",["root","hidden","backdrop"]);const vi=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],xi=e=>{const{open:t,exited:o,classes:n}=e;return q({root:["root",!t&&o&&"hidden"],backdrop:["backdrop"]},hi,n)},yi=E("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.open&&o.exited&&t.hidden]}})(({theme:e,ownerState:t})=>a({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Ci=E(Uo,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Si=c.forwardRef(function(t,o){var n,r,s,i,l,d;const p=Z({name:"MuiModal",props:t}),{BackdropComponent:f=Ci,BackdropProps:b,className:v,closeAfterTransition:x=!1,children:h,container:P,component:S,components:y={},componentsProps:$={},disableAutoFocus:g=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:I=!1,disablePortal:R=!1,disableRestoreFocus:C=!1,disableScrollLock:M=!1,hideBackdrop:j=!1,keepMounted:T=!1,onBackdropClick:D,open:A,slotProps:w,slots:k}=p,O=W(p,vi),L=a({},p,{closeAfterTransition:x,disableAutoFocus:g,disableEnforceFocus:m,disableEscapeKeyDown:I,disablePortal:R,disableRestoreFocus:C,disableScrollLock:M,hideBackdrop:j,keepMounted:T}),{getRootProps:N,getBackdropProps:B,getTransitionProps:U,portalRef:X,isTopModal:ne,exited:ie,hasTransition:re}=Tn(a({},L,{rootRef:o})),Y=a({},L,{exited:ie}),ae=xi(Y),se={};if(h.props.tabIndex===void 0&&(se.tabIndex="-1"),re){const{onEnter:z,onExited:Q}=U();se.onEnter=z,se.onExited=Q}const fe=(n=(r=k==null?void 0:k.root)!=null?r:y.Root)!=null?n:yi,pe=(s=(i=k==null?void 0:k.backdrop)!=null?i:y.Backdrop)!=null?s:f,xe=(l=w==null?void 0:w.root)!=null?l:$.root,me=(d=w==null?void 0:w.backdrop)!=null?d:$.backdrop,V=Ue({elementType:fe,externalSlotProps:xe,externalForwardedProps:O,getSlotProps:N,additionalProps:{ref:o,as:S},ownerState:Y,className:_(v,xe==null?void 0:xe.className,ae==null?void 0:ae.root,!Y.open&&Y.exited&&(ae==null?void 0:ae.hidden))}),oe=Ue({elementType:pe,externalSlotProps:me,additionalProps:b,getSlotProps:z=>B(a({},z,{onClick:Q=>{D&&D(Q),z!=null&&z.onClick&&z.onClick(Q)}})),className:_(me==null?void 0:me.className,b==null?void 0:b.className,ae==null?void 0:ae.backdrop),ownerState:Y});return!T&&!A&&(!re||ie)?null:u.jsx(Cn,{ref:X,container:P,disablePortal:R,children:u.jsxs(fe,a({},V,{children:[!j&&f?u.jsx(pe,a({},oe)):null,u.jsx(xn,{disableEnforceFocus:m,disableAutoFocus:g,disableRestoreFocus:C,isEnabled:ne,open:A,children:c.cloneElement(h,se)})]}))})}),Ho=Si;function Ri(e){return G("MuiPopover",e)}H("MuiPopover",["root","paper"]);const Ii=["onEntering"],$i=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Pi=["slotProps"];function go(e,t){let o=0;return typeof t=="number"?o=t:t==="center"?o=e.height/2:t==="bottom"&&(o=e.height),o}function bo(e,t){let o=0;return typeof t=="number"?o=t:t==="center"?o=e.width/2:t==="right"&&(o=e.width),o}function ho(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Nt(e){return typeof e=="function"?e():e}const ki=e=>{const{classes:t}=e;return q({root:["root"],paper:["paper"]},Ri,t)},Mi=E(Ho,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Vo=E(At,{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}),wi=c.forwardRef(function(t,o){var n,r,s;const i=Z({props:t,name:"MuiPopover"}),{action:l,anchorEl:d,anchorOrigin:p={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:b="anchorEl",children:v,className:x,container:h,elevation:P=8,marginThreshold:S=16,open:y,PaperProps:$={},slots:g,slotProps:m,transformOrigin:I={vertical:"top",horizontal:"left"},TransitionComponent:R=tn,transitionDuration:C="auto",TransitionProps:{onEntering:M}={},disableScrollLock:j=!1}=i,T=W(i.TransitionProps,Ii),D=W(i,$i),A=(n=m==null?void 0:m.paper)!=null?n:$,w=c.useRef(),k=he(w,A.ref),O=a({},i,{anchorOrigin:p,anchorReference:b,elevation:P,marginThreshold:S,externalPaperSlotProps:A,transformOrigin:I,TransitionComponent:R,transitionDuration:C,TransitionProps:T}),L=ki(O),N=c.useCallback(()=>{if(b==="anchorPosition")return f;const z=Nt(d),te=(z&&z.nodeType===1?z:be(w.current).body).getBoundingClientRect();return{top:te.top+go(te,p.vertical),left:te.left+bo(te,p.horizontal)}},[d,p.horizontal,p.vertical,f,b]),B=c.useCallback(z=>({vertical:go(z,I.vertical),horizontal:bo(z,I.horizontal)}),[I.horizontal,I.vertical]),U=c.useCallback(z=>{const Q={width:z.offsetWidth,height:z.offsetHeight},te=B(Q);if(b==="none")return{top:null,left:null,transformOrigin:ho(te)};const Oe=N();let Ce=Oe.top-te.vertical,Se=Oe.left-te.horizontal;const Re=Ce+Q.height,$e=Se+Q.width,le=Le(Nt(d)),we=le.innerHeight-S,ge=le.innerWidth-S;if(S!==null&&Cewe){const ce=Re-we;Ce-=ce,te.vertical+=ce}if(S!==null&&Sege){const ce=$e-ge;Se-=ce,te.horizontal+=ce}return{top:`${Math.round(Ce)}px`,left:`${Math.round(Se)}px`,transformOrigin:ho(te)}},[d,b,N,B,S]),[X,ne]=c.useState(y),ie=c.useCallback(()=>{const z=w.current;if(!z)return;const Q=U(z);Q.top!==null&&(z.style.top=Q.top),Q.left!==null&&(z.style.left=Q.left),z.style.transformOrigin=Q.transformOrigin,ne(!0)},[U]);c.useEffect(()=>(j&&window.addEventListener("scroll",ie),()=>window.removeEventListener("scroll",ie)),[d,j,ie]);const re=(z,Q)=>{M&&M(z,Q),ie()},Y=()=>{ne(!1)};c.useEffect(()=>{y&&ie()}),c.useImperativeHandle(l,()=>y?{updatePosition:()=>{ie()}}:null,[y,ie]),c.useEffect(()=>{if(!y)return;const z=Co(()=>{ie()}),Q=Le(d);return Q.addEventListener("resize",z),()=>{z.clear(),Q.removeEventListener("resize",z)}},[d,y,ie]);let ae=C;C==="auto"&&!R.muiSupportAuto&&(ae=void 0);const se=h||(d?be(Nt(d)).body:void 0),fe=(r=g==null?void 0:g.root)!=null?r:Mi,pe=(s=g==null?void 0:g.paper)!=null?s:Vo,xe=Ue({elementType:pe,externalSlotProps:a({},A,{style:X?A.style:a({},A.style,{opacity:0})}),additionalProps:{elevation:P,ref:k},ownerState:O,className:_(L.paper,A==null?void 0:A.className)}),me=Ue({elementType:fe,externalSlotProps:(m==null?void 0:m.root)||{},externalForwardedProps:D,additionalProps:{ref:o,slotProps:{backdrop:{invisible:!0}},container:se,open:y},ownerState:O,className:_(L.root,x)}),{slotProps:V}=me,oe=W(me,Pi);return u.jsx(fe,a({},oe,!et(fe)&&{slotProps:V,disableScrollLock:j},{children:u.jsx(R,a({appear:!0,in:y,onEntering:re,onExited:Y,timeout:ae},T,{children:u.jsx(pe,a({},xe,{children:v}))}))}))}),Ti=wi;function Ei(e){return G("MuiMenu",e)}H("MuiMenu",["root","paper","list"]);const Ni=["onEntering"],Fi=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Li={vertical:"top",horizontal:"right"},Oi={vertical:"top",horizontal:"left"},ji=e=>{const{classes:t}=e;return q({root:["root"],paper:["paper"],list:["list"]},Ei,t)},Ai=E(Ti,{shouldForwardProp:e=>ye(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Bi=E(Vo,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Di=E(li,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Wi=c.forwardRef(function(t,o){var n,r;const s=Z({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:l,className:d,disableAutoFocusItem:p=!1,MenuListProps:f={},onClose:b,open:v,PaperProps:x={},PopoverClasses:h,transitionDuration:P="auto",TransitionProps:{onEntering:S}={},variant:y="selectedMenu",slots:$={},slotProps:g={}}=s,m=W(s.TransitionProps,Ni),I=W(s,Fi),R=dt(),C=R.direction==="rtl",M=a({},s,{autoFocus:i,disableAutoFocusItem:p,MenuListProps:f,onEntering:S,PaperProps:x,transitionDuration:P,TransitionProps:m,variant:y}),j=ji(M),T=i&&!p&&v,D=c.useRef(null),A=(U,X)=>{D.current&&D.current.adjustStyleForScrollbar(U,R),S&&S(U,X)},w=U=>{U.key==="Tab"&&(U.preventDefault(),b&&b(U,"tabKeyDown"))};let k=-1;c.Children.map(l,(U,X)=>{c.isValidElement(U)&&(U.props.disabled||(y==="selectedMenu"&&U.props.selected||k===-1)&&(k=X))});const O=(n=$.paper)!=null?n:Bi,L=(r=g.paper)!=null?r:x,N=Ue({elementType:$.root,externalSlotProps:g.root,ownerState:M,className:[j.root,d]}),B=Ue({elementType:O,externalSlotProps:L,ownerState:M,className:j.paper});return u.jsx(Ai,a({onClose:b,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Li:Oi,slots:{paper:O,root:$.root},slotProps:{root:N,paper:B},open:v,ref:o,transitionDuration:P,TransitionProps:a({onEntering:A},m),ownerState:M},I,{classes:h,children:u.jsx(Di,a({onKeyDown:w,actions:D,autoFocus:i&&(k===-1||p),autoFocusItem:T,variant:y},f,{className:_(j.list,f.className),children:l}))}))}),zi=Wi;function _i(e){return G("MuiNativeSelect",e)}const Ui=H("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Gt=Ui,Hi=["className","disabled","error","IconComponent","inputRef","variant"],Vi=e=>{const{classes:t,variant:o,disabled:n,multiple:r,open:s,error:i}=e,l={select:["select",o,n&&"disabled",r&&"multiple",i&&"error"],icon:["icon",`icon${de(o)}`,s&&"iconOpen",n&&"disabled"]};return q(l,_i,t)},Go=({ownerState:e,theme:t})=>a({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":a({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Gt.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Gi=E("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ye,overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.select,t[o.variant],o.error&&t.error,{[`&.${Gt.multiple}`]:t.multiple}]}})(Go),qo=({ownerState:e,theme:t})=>a({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Gt.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),qi=E("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${de(o.variant)}`],o.open&&t.iconOpen]}})(qo),Ki=c.forwardRef(function(t,o){const{className:n,disabled:r,error:s,IconComponent:i,inputRef:l,variant:d="standard"}=t,p=W(t,Hi),f=a({},t,{disabled:r,variant:d,error:s}),b=Vi(f);return u.jsxs(c.Fragment,{children:[u.jsx(Gi,a({ownerState:f,className:_(b.select,n),disabled:r,ref:l||o},p)),t.multiple?null:u.jsx(qi,{as:i,ownerState:f,className:b.icon})]})}),Xi=Ki;function Yi(e){return G("MuiSelect",e)}const Zi=H("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Ze=Zi;var vo;const Qi=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Ji=E("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`&.${Ze.select}`]:t.select},{[`&.${Ze.select}`]:t[o.variant]},{[`&.${Ze.error}`]:t.error},{[`&.${Ze.multiple}`]:t.multiple}]}})(Go,{[`&.${Ze.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ea=E("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${de(o.variant)}`],o.open&&t.iconOpen]}})(qo),ta=E("input",{shouldForwardProp:e=>on(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function xo(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function oa(e){return e==null||typeof e=="string"&&!e.trim()}const na=e=>{const{classes:t,variant:o,disabled:n,multiple:r,open:s,error:i}=e,l={select:["select",o,n&&"disabled",r&&"multiple",i&&"error"],icon:["icon",`icon${de(o)}`,s&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return q(l,Yi,t)},ra=c.forwardRef(function(t,o){var n;const{"aria-describedby":r,"aria-label":s,autoFocus:i,autoWidth:l,children:d,className:p,defaultOpen:f,defaultValue:b,disabled:v,displayEmpty:x,error:h=!1,IconComponent:P,inputRef:S,labelId:y,MenuProps:$={},multiple:g,name:m,onBlur:I,onChange:R,onClose:C,onFocus:M,onOpen:j,open:T,readOnly:D,renderValue:A,SelectDisplayProps:w={},tabIndex:k,value:O,variant:L="standard"}=t,N=W(t,Qi),[B,U]=eo({controlled:O,default:b,name:"Select"}),[X,ne]=eo({controlled:T,default:f,name:"Select"}),ie=c.useRef(null),re=c.useRef(null),[Y,ae]=c.useState(null),{current:se}=c.useRef(T!=null),[fe,pe]=c.useState(),xe=he(o,S),me=c.useCallback(F=>{re.current=F,F&&ae(F)},[]),V=Y==null?void 0:Y.parentNode;c.useImperativeHandle(xe,()=>({focus:()=>{re.current.focus()},node:ie.current,value:B}),[B]),c.useEffect(()=>{f&&X&&Y&&!se&&(pe(l?null:V.clientWidth),re.current.focus())},[Y,l]),c.useEffect(()=>{i&&re.current.focus()},[i]),c.useEffect(()=>{if(!y)return;const F=be(re.current).getElementById(y);if(F){const J=()=>{getSelection().isCollapsed&&re.current.focus()};return F.addEventListener("click",J),()=>{F.removeEventListener("click",J)}}},[y]);const oe=(F,J)=>{F?j&&j(J):C&&C(J),se||(pe(l?null:V.clientWidth),ne(F))},z=F=>{F.button===0&&(F.preventDefault(),re.current.focus(),oe(!0,F))},Q=F=>{oe(!1,F)},te=c.Children.toArray(d),Oe=F=>{const J=te.find(ue=>ue.props.value===F.target.value);J!==void 0&&(U(J.props.value),R&&R(F,J))},Ce=F=>J=>{let ue;if(J.currentTarget.hasAttribute("tabindex")){if(g){ue=Array.isArray(B)?B.slice():[];const De=B.indexOf(F.props.value);De===-1?ue.push(F.props.value):ue.splice(De,1)}else ue=F.props.value;if(F.props.onClick&&F.props.onClick(J),B!==ue&&(U(ue),R)){const De=J.nativeEvent||J,Xt=new De.constructor(De.type,De);Object.defineProperty(Xt,"target",{writable:!0,value:{value:ue,name:m}}),R(Xt,F)}g||oe(!1,J)}},Se=F=>{D||[" ","ArrowUp","ArrowDown","Enter"].indexOf(F.key)!==-1&&(F.preventDefault(),oe(!0,F))},Re=Y!==null&&X,$e=F=>{!Re&&I&&(Object.defineProperty(F,"target",{writable:!0,value:{value:B,name:m}}),I(F))};delete N["aria-invalid"];let le,we;const ge=[];let ce=!1;(ct({value:B})||x)&&(A?le=A(B):ce=!0);const ot=te.map(F=>{if(!c.isValidElement(F))return null;let J;if(g){if(!Array.isArray(B))throw new Error($o(2));J=B.some(ue=>xo(ue,F.props.value)),J&&ce&&ge.push(F.props.children)}else J=xo(B,F.props.value),J&&ce&&(we=F.props.children);return c.cloneElement(F,{"aria-selected":J?"true":"false",onClick:Ce(F),onKeyUp:ue=>{ue.key===" "&&ue.preventDefault(),F.props.onKeyUp&&F.props.onKeyUp(ue)},role:"option",selected:J,value:void 0,"data-value":F.props.value})});ce&&(g?ge.length===0?le=null:le=ge.reduce((F,J,ue)=>(F.push(J),ue{const{classes:t}=e;return t},qt={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ye(e)&&e!=="variant",slot:"Root"},da=E(jo,qt)(""),ua=E(Wo,qt)(""),pa=E(Bo,qt)(""),Ko=c.forwardRef(function(t,o){const n=Z({name:"MuiSelect",props:t}),{autoWidth:r=!1,children:s,classes:i={},className:l,defaultOpen:d=!1,displayEmpty:p=!1,IconComponent:f=ia,id:b,input:v,inputProps:x,label:h,labelId:P,MenuProps:S,multiple:y=!1,native:$=!1,onClose:g,onOpen:m,open:I,renderValue:R,SelectDisplayProps:C,variant:M="outlined"}=n,j=W(n,aa),T=$?Xi:sa,D=Ge(),A=Ve({props:n,muiFormControl:D,states:["variant","error"]}),w=A.variant||M,k=a({},n,{variant:w,classes:i}),O=ca(k),L=W(O,la),N=v||{standard:u.jsx(da,{ownerState:k}),outlined:u.jsx(ua,{label:h,ownerState:k}),filled:u.jsx(pa,{ownerState:k})}[w],B=he(o,N.ref);return u.jsx(c.Fragment,{children:c.cloneElement(N,a({inputComponent:T,inputProps:a({children:s,error:A.error,IconComponent:f,variant:w,type:void 0,multiple:y},$?{id:b}:{autoWidth:r,defaultOpen:d,displayEmpty:p,labelId:P,MenuProps:S,onClose:g,onOpen:m,open:I,renderValue:R,SelectDisplayProps:a({id:b},C)},x,{classes:x?jt(L,x.classes):L},v?v.props.inputProps:{})},y&&$&&w==="outlined"?{notched:!0}:{},{ref:B,className:_(N.props.className,l,O.root)},!v&&{variant:w},j))})});Ko.muiName="Select";const fa=Ko;function ma(e){return G("MuiTextField",e)}H("MuiTextField",["root"]);const ga=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],ba={standard:jo,filled:Bo,outlined:Wo},ha=e=>{const{classes:t}=e;return q({root:["root"]},ma,t)},va=E(Qs,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xa=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:s=!1,children:i,className:l,color:d="primary",defaultValue:p,disabled:f=!1,error:b=!1,FormHelperTextProps:v,fullWidth:x=!1,helperText:h,id:P,InputLabelProps:S,inputProps:y,InputProps:$,inputRef:g,label:m,maxRows:I,minRows:R,multiline:C=!1,name:M,onBlur:j,onChange:T,onFocus:D,placeholder:A,required:w=!1,rows:k,select:O=!1,SelectProps:L,type:N,value:B,variant:U="outlined"}=n,X=W(n,ga),ne=a({},n,{autoFocus:s,color:d,disabled:f,error:b,fullWidth:x,multiline:C,required:w,select:O,variant:U}),ie=ha(ne),re={};U==="outlined"&&(S&&typeof S.shrink<"u"&&(re.notched=S.shrink),re.label=m),O&&((!L||!L.native)&&(re.id=void 0),re["aria-describedby"]=void 0);const Y=Bt(P),ae=h&&Y?`${Y}-helper-text`:void 0,se=m&&Y?`${Y}-label`:void 0,fe=ba[U],pe=u.jsx(fe,a({"aria-describedby":ae,autoComplete:r,autoFocus:s,defaultValue:p,fullWidth:x,multiline:C,name:M,rows:k,maxRows:I,minRows:R,type:N,value:B,id:Y,inputRef:g,onBlur:j,onChange:T,onFocus:D,placeholder:A,inputProps:y},re,$));return u.jsxs(va,a({className:_(ie.root,l),disabled:f,error:b,fullWidth:x,ref:o,required:w,color:d,variant:U,ownerState:ne},X,{children:[m!=null&&m!==""&&u.jsx(Gs,a({htmlFor:Y,id:se},S,{children:m})),O?u.jsx(fa,a({"aria-describedby":ae,id:Y,labelId:se,value:B,input:pe},L,{children:i})):pe,h&&u.jsx(si,a({id:ae},v,{children:h}))]}))}),at=xa,ya=[1,2,3,4,5],Ca=[1,2,3,4,5,6,7,8,9,10],Sa=[10,20,30,40,50,60,70,80,90,100];function Ra(){function e(t){t.preventDefault();const o=new FormData(t.target);Number(o.get(Ne.players)),Number(o.get(Ne.rounds)),Number(o.get(Ne.timer))}return u.jsxs(Po,{component:"form",onSubmit:e,sx:{padding:1},children:[u.jsxs(ln,{children:[u.jsx(at,{defaultValue:it.players,helperText:"Number of players",label:"Players",name:Ne.players,select:!0,children:Ca.map(t=>u.jsx(Tt,{value:t,children:t},t))}),u.jsx("br",{}),u.jsx("br",{}),u.jsx(at,{defaultValue:it.rounds,helperText:"Number of rounds",label:"Rounds",name:Ne.rounds,select:!0,children:ya.map(t=>u.jsx(Tt,{value:t,children:t},t))}),u.jsx("br",{}),u.jsx("br",{}),u.jsx(at,{defaultValue:it.timer,helperText:"Seconds per round",label:"Timer",name:Ne.timer,select:!0,children:Sa.map(t=>u.jsx(Tt,{value:t,children:t},t))})]}),u.jsx(qr,{children:u.jsx(Lt,{type:"submit",variant:"contained",children:"Start"})})]})}function Ia(){return Ln(),On(),An(),u.jsxs(u.Fragment,{children:[u.jsx(Fe,{component:"h1",paragraph:!0,variant:"h4",children:"Room"}),u.jsxs(wt,{container:!0,spacing:2,children:[u.jsx(wt,{item:!0,xs:4,children:u.jsx(zr,{})}),u.jsx(wt,{item:!0,xs:8,children:u.jsx(Ra,{})})]}),u.jsx("br",{}),u.jsxs("details",{children:[u.jsx("summary",{children:"QR Code"}),u.jsx(_e.RoomQRCode,{})]})]})}function $a(e){return G("MuiDialog",e)}const Pa=H("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Ft=Pa,ka=c.createContext({}),Xo=ka,Ma=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],wa=E(Uo,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Ta=e=>{const{classes:t,scroll:o,maxWidth:n,fullWidth:r,fullScreen:s}=e,i={root:["root"],container:["container",`scroll${de(o)}`],paper:["paper",`paperScroll${de(o)}`,`paperWidth${de(String(n))}`,r&&"paperFullWidth",s&&"paperFullScreen"]};return q(i,$a,t)},Ea=E(Ho,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Na=E("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.container,t[`scroll${de(o.scroll)}`]]}})(({ownerState:e})=>a({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),Fa=E(At,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.paper,t[`scrollPaper${de(o.scroll)}`],t[`paperWidth${de(String(o.maxWidth))}`],o.fullWidth&&t.paperFullWidth,o.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>a({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Ft.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Ft.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Ft.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),La=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiDialog"}),r=dt(),s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":l,BackdropComponent:d,BackdropProps:p,children:f,className:b,disableEscapeKeyDown:v=!1,fullScreen:x=!1,fullWidth:h=!1,maxWidth:P="sm",onBackdropClick:S,onClose:y,open:$,PaperComponent:g=At,PaperProps:m={},scroll:I="paper",TransitionComponent:R=_o,transitionDuration:C=s,TransitionProps:M}=n,j=W(n,Ma),T=a({},n,{disableEscapeKeyDown:v,fullScreen:x,fullWidth:h,maxWidth:P,scroll:I}),D=Ta(T),A=c.useRef(),w=N=>{A.current=N.target===N.currentTarget},k=N=>{A.current&&(A.current=null,S&&S(N),y&&y(N,"backdropClick"))},O=Bt(l),L=c.useMemo(()=>({titleId:O}),[O]);return u.jsx(Ea,a({className:_(D.root,b),closeAfterTransition:!0,components:{Backdrop:wa},componentsProps:{backdrop:a({transitionDuration:C,as:d},p)},disableEscapeKeyDown:v,onClose:y,open:$,ref:o,onClick:k,ownerState:T},j,{children:u.jsx(R,a({appear:!0,in:$,timeout:C,role:"presentation"},M,{children:u.jsx(Na,{className:_(D.container),onMouseDown:w,ownerState:T,children:u.jsx(Fa,a({as:g,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":O},m,{className:_(D.paper,m.className),ownerState:T,children:u.jsx(Xo.Provider,{value:L,children:f})}))})}))}))}),Oa=La;function ja(e){return G("MuiDialogActions",e)}H("MuiDialogActions",["root","spacing"]);const Aa=["className","disableSpacing"],Ba=e=>{const{classes:t,disableSpacing:o}=e;return q({root:["root",!o&&"spacing"]},ja,t)},Da=E("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disableSpacing&&t.spacing]}})(({ownerState:e})=>a({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Wa=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:s=!1}=n,i=W(n,Aa),l=a({},n,{disableSpacing:s}),d=Ba(l);return u.jsx(Da,a({className:_(d.root,r),ownerState:l,ref:o},i))}),za=Wa;function _a(e){return G("MuiDialogContent",e)}H("MuiDialogContent",["root","dividers"]);function Ua(e){return G("MuiDialogTitle",e)}const Ha=H("MuiDialogTitle",["root"]),Va=Ha,Ga=["className","dividers"],qa=e=>{const{classes:t,dividers:o}=e;return q({root:["root",o&&"dividers"]},_a,t)},Ka=E("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>a({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${Va.root} + &`]:{paddingTop:0}})),Xa=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiDialogContent"}),{className:r,dividers:s=!1}=n,i=W(n,Ga),l=a({},n,{dividers:s}),d=qa(l);return u.jsx(Ka,a({className:_(d.root,r),ownerState:l,ref:o},i))}),Ya=Xa;function Za(e){return G("MuiDialogContentText",e)}H("MuiDialogContentText",["root"]);const Qa=["children","className"],Ja=e=>{const{classes:t}=e,n=q({root:["root"]},Za,t);return a({},t,n)},el=E(Fe,{shouldForwardProp:e=>ye(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tl=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiDialogContentText"}),{className:r}=n,s=W(n,Qa),i=Ja(s);return u.jsx(el,a({component:"p",variant:"body1",color:"text.secondary",ref:o,ownerState:s,className:_(i.root,r)},n,{classes:i}))}),ol=tl,nl=["className","id"],rl=e=>{const{classes:t}=e;return q({root:["root"]},Ua,t)},sl=E(Fe,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),il=c.forwardRef(function(t,o){const n=Z({props:t,name:"MuiDialogTitle"}),{className:r,id:s}=n,i=W(n,nl),l=n,d=rl(l),{titleId:p=s}=c.useContext(Xo);return u.jsx(sl,a({component:"h2",className:_(d.root,r),ownerState:l,ref:o,variant:"h6",id:s??p},i))}),al=il;function ll(e){const t=`dialog-title-${e.id}`,o=`dialog-content-${e.id}`;return u.jsxs(Oa,{"aria-describedby":o,"aria-labelledby":t,onClose:e.onClose,open:!!e.open,children:[u.jsx(al,{id:t,children:e.title}),u.jsx(Ya,{children:u.jsx(ol,{component:"div",id:o,children:e.children})}),u.jsxs(za,{children:[e.onClose&&u.jsx(Lt,{onClick:e.onClose,children:"Cancel"}),u.jsx(Lt,{onClick:e.onSave,variant:"contained",children:"Save"})]})]})}function cl(){const[e,t]=c.useState(!0),[o,n]=c.useState(!1),[r,s]=c.useState(cn()),{setPlayerNickname:i}=St();function l(f){const{value:b}=f.target;n(!b),s(b)}function d(f){f.preventDefault(),p()}function p(){if(!r)return n(!0);i(r),dn(r),t(!1)}return u.jsx(ll,{open:e,id:"nickname",onSave:p,title:"Choose a nickname",children:u.jsx("form",{onSubmit:d,children:u.jsx(at,{autoFocus:!0,error:o,label:"Enter your nickname",margin:"dense",onChange:l,placeholder:r||"Nickname",required:!0,value:r,variant:"outlined"})})})}function pl(){return u.jsxs(_e.DriftDBProvider,{api:rn,children:[u.jsx(Ia,{}),u.jsx(cl,{})]})}export{pl as default}; diff --git a/assets/index-Tolw1maY.js b/assets/index-Ly36R-YS.js similarity index 99% rename from assets/index-Tolw1maY.js rename to assets/index-Ly36R-YS.js index 6eab7fb3..b15c9e16 100644 --- a/assets/index-Tolw1maY.js +++ b/assets/index-Ly36R-YS.js @@ -180,7 +180,7 @@ Error generating stack: `+o.message+` animation: ${0} 1.4s linear infinite; `),fT)),mT=wt("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),yT=wt("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Te(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>X({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&nd($p||($p=Bl` animation: ${0} 1.4s ease-in-out infinite; - `),dT)),gT=A.forwardRef(function(t,n){const r=zt({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:s=!1,size:a=40,style:l,thickness:c=3.6,value:f=0,variant:p="indeterminate"}=r,b=Be(r,cT),S=X({},r,{color:o,disableShrink:s,size:a,thickness:c,value:f,variant:p}),u=hT(S),m={},_={},g={};if(p==="determinate"){const y=2*Math.PI*((nr-c)/2);m.strokeDasharray=y.toFixed(3),g["aria-valuenow"]=Math.round(f),m.strokeDashoffset=`${((100-f)/100*y).toFixed(3)}px`,_.transform="rotate(-90deg)"}return oe.jsx(pT,X({className:Qe(u.root,i),style:X({width:a,height:a},_,l),ownerState:S,ref:n,role:"progressbar"},g,b,{children:oe.jsx(mT,{className:u.svg,ownerState:S,viewBox:`${nr/2} ${nr/2} ${nr} ${nr}`,children:oe.jsx(yT,{className:u.circle,style:m,ownerState:S,cx:nr,cy:nr,r:(nr-c)/2,fill:"none",strokeWidth:c})})}))}),Dl=gT,vT=A.lazy(()=>Nl(()=>import("./ErrorBoundary-J0VEI-Mo.js"),__vite__mapDeps([0,1])));function wT(){return oe.jsx(A.Suspense,{fallback:oe.jsx(Dl,{}),children:oe.jsx(vT,{})})}const bT=A.lazy(()=>Nl(()=>import("./Home-g_xXNBgC.js"),__vite__mapDeps([2,3])));function ST(){return oe.jsx(A.Suspense,{fallback:oe.jsx(Dl,{}),children:oe.jsx(bT,{})})}const ET=A.lazy(()=>Nl(()=>import("./NotFound-IAqs8Vq9.js"),__vite__mapDeps([4,1])));function _T(){return oe.jsx(A.Suspense,{fallback:oe.jsx(Dl,{}),children:oe.jsx(ET,{})})}const xT=A.lazy(()=>Nl(()=>import("./Room-UKXYDF5M.js"),__vite__mapDeps([5,3])));function kT(){return oe.jsx(A.Suspense,{fallback:oe.jsx(Dl,{}),children:oe.jsx(xT,{})})}const TT=oe.jsx(fi,{path:"/",element:oe.jsx(sT,{}),children:oe.jsxs(fi,{errorElement:oe.jsx(wT,{}),children:[oe.jsx(fi,{index:!0,element:oe.jsx(ST,{})}),oe.jsx(fi,{path:"/room",element:oe.jsx(kT,{})}),oe.jsx(fi,{path:"*",element:oe.jsx(_T,{})})]})});function St(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var RT=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")(),Fp=RT,Lu=()=>Math.random().toString(36).substring(7).split("").join("."),CT={INIT:`@@redux/INIT${Lu()}`,REPLACE:`@@redux/REPLACE${Lu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Lu()}`},Ua=CT;function vd(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function A0(e,t,n){if(typeof e!="function")throw new Error(St(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(St(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(St(1));return n(A0)(e,t)}let r=e,i=t,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((_,g)=>{s.set(g,_)}))}function f(){if(l)throw new Error(St(3));return i}function p(_){if(typeof _!="function")throw new Error(St(4));if(l)throw new Error(St(5));let g=!0;c();const y=a++;return s.set(y,_),function(){if(g){if(l)throw new Error(St(6));g=!1,c(),s.delete(y),o=null}}}function b(_){if(!vd(_))throw new Error(St(7));if(typeof _.type>"u")throw new Error(St(8));if(typeof _.type!="string")throw new Error(St(17));if(l)throw new Error(St(9));try{l=!0,i=r(i,_)}finally{l=!1}return(o=s).forEach(y=>{y()}),_}function S(_){if(typeof _!="function")throw new Error(St(10));r=_,b({type:Ua.REPLACE})}function u(){const _=p;return{subscribe(g){if(typeof g!="object"||g===null)throw new Error(St(11));function y(){const v=g;v.next&&v.next(f())}return y(),{unsubscribe:_(y)}},[Fp](){return this}}}return b({type:Ua.INIT}),{dispatch:b,subscribe:p,getState:f,replaceReducer:S,[Fp]:u}}function PT(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Ua.INIT})>"u")throw new Error(St(12));if(typeof n(void 0,{type:Ua.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(St(13))})}function IT(e){const t=Object.keys(e),n={};for(let o=0;o"u")throw a&&a.type,new Error(St(14));c[p]=u,l=l||u!==S}return l=l||r.length!==Object.keys(s).length,l?c:s}}function ja(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function OT(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(St(15))};const s={getState:i.getState,dispatch:(l,...c)=>o(l,...c)},a=e.map(l=>l(s));return o=ja(...a)(i.dispatch),{...i,dispatch:o}}}function MT(e){return vd(e)&&"type"in e&&typeof e.type=="string"}var N0=Symbol.for("immer-nothing"),zp=Symbol.for("immer-draftable"),Qt=Symbol.for("immer-state");function En(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Gi=Object.getPrototypeOf;function Er(e){return!!e&&!!e[Qt]}function Qn(e){var t;return e?B0(e)||Array.isArray(e)||!!e[zp]||!!((t=e.constructor)!=null&&t[zp])||jl(e)||$l(e):!1}var LT=Object.prototype.constructor.toString();function B0(e){if(!e||typeof e!="object")return!1;const t=Gi(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===LT}function ls(e,t){Ul(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function Ul(e){const t=e[Qt];return t?t.type_:Array.isArray(e)?1:jl(e)?2:$l(e)?3:0}function zc(e,t){return Ul(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function D0(e,t,n){const r=Ul(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function AT(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function jl(e){return e instanceof Map}function $l(e){return e instanceof Set}function Mr(e){return e.copy_||e.base_}function Wc(e,t){if(jl(e))return new Map(e);if($l(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&B0(e))return Gi(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Qt];let r=Reflect.ownKeys(n);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=NT),Object.freeze(e),t&&ls(e,(n,r)=>wd(r,!0))),e}function NT(){En(2)}function Fl(e){return Object.isFrozen(e)}var BT={};function Qr(e){const t=BT[e];return t||En(0,e),t}var us;function U0(){return us}function DT(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Wp(e,t){t&&(Qr("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Hc(e){Vc(e),e.drafts_.forEach(UT),e.drafts_=null}function Vc(e){e===us&&(us=e.parent_)}function Hp(e){return us=DT(us,e)}function UT(e){const t=e[Qt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Vp(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Qt].modified_&&(Hc(t),En(4)),Qn(e)&&(e=$a(t,e),t.parent_||Fa(t,e)),t.patches_&&Qr("Patches").generateReplacementPatches_(n[Qt].base_,e,t.patches_,t.inversePatches_)):e=$a(t,n,[]),Hc(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==N0?e:void 0}function $a(e,t,n){if(Fl(t))return t;const r=t[Qt];if(!r)return ls(t,(i,o)=>Gp(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Fa(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,s=!1;r.type_===3&&(o=new Set(i),i.clear(),s=!0),ls(o,(a,l)=>Gp(e,r,i,a,l,n,s)),Fa(e,i,!1),n&&e.patches_&&Qr("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Gp(e,t,n,r,i,o,s){if(Er(i)){const a=o&&t&&t.type_!==3&&!zc(t.assigned_,r)?o.concat(r):void 0,l=$a(e,i,a);if(D0(n,r,l),Er(l))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(Qn(i)&&!Fl(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;$a(e,i),(!t||!t.scope_.parent_)&&Fa(e,i)}}function Fa(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&wd(t,n)}function jT(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:U0(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=bd;n&&(i=[r],o=cs);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=s,a}var bd={get(e,t){if(t===Qt)return e;const n=Mr(e);if(!zc(n,t))return $T(e,n,t);const r=n[t];return e.finalized_||!Qn(r)?r:r===Au(e.base_,t)?(Nu(e),e.copy_[t]=Kc(r,e)):r},has(e,t){return t in Mr(e)},ownKeys(e){return Reflect.ownKeys(Mr(e))},set(e,t,n){const r=j0(Mr(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Au(Mr(e),t),o=i==null?void 0:i[Qt];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(AT(n,i)&&(n!==void 0||zc(e.base_,t)))return!0;Nu(e),Gc(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Au(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Nu(e),Gc(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Mr(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){En(11)},getPrototypeOf(e){return Gi(e.base_)},setPrototypeOf(){En(12)}},cs={};ls(bd,(e,t)=>{cs[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});cs.deleteProperty=function(e,t){return cs.set.call(this,e,t,void 0)};cs.set=function(e,t,n){return bd.set.call(this,e[0],t,n,e[0])};function Au(e,t){const n=e[Qt];return(n?Mr(n):e)[t]}function $T(e,t,n){var i;const r=j0(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function j0(e,t){if(!(t in e))return;let n=Gi(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Gi(n)}}function Gc(e){e.modified_||(e.modified_=!0,e.parent_&&Gc(e.parent_))}function Nu(e){e.copy_||(e.copy_=Wc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var FT=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const s=this;return function(l=o,...c){return s.produce(l,f=>n.call(this,f,...c))}}typeof n!="function"&&En(6),r!==void 0&&typeof r!="function"&&En(7);let i;if(Qn(t)){const o=Hp(this),s=Kc(t,void 0);let a=!0;try{i=n(s),a=!1}finally{a?Hc(o):Vc(o)}return Wp(o,r),Vp(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===N0&&(i=void 0),this.autoFreeze_&&wd(i,!0),r){const o=[],s=[];Qr("Patches").generateReplacementPatches_(t,i,o,s),r(o,s)}return i}else En(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let r,i;return[this.produce(t,n,(s,a)=>{r=s,i=a}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Qn(e)||En(8),Er(e)&&(e=$0(e));const t=Hp(this),n=Kc(e,void 0);return n[Qt].isManual_=!0,Vc(t),n}finishDraft(e,t){const n=e&&e[Qt];(!n||!n.isManual_)&&En(9);const{scope_:r}=n;return Wp(r,t),Vp(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Qr("Patches").applyPatches_;return Er(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Kc(e,t){const n=jl(e)?Qr("MapSet").proxyMap_(e,t):$l(e)?Qr("MapSet").proxySet_(e,t):jT(e,t);return(t?t.scope_:U0()).drafts_.push(n),n}function $0(e){return Er(e)||En(10,e),F0(e)}function F0(e){if(!Qn(e)||Fl(e))return e;const t=e[Qt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Wc(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Wc(e,!0);return ls(n,(r,i)=>{D0(n,r,F0(i))}),t&&(t.finalized_=!1),n}var Xt=new FT,z0=Xt.produce;Xt.produceWithPatches.bind(Xt);Xt.setAutoFreeze.bind(Xt);Xt.setUseStrictShallowCopy.bind(Xt);Xt.applyPatches.bind(Xt);Xt.createDraft.bind(Xt);Xt.finishDraft.bind(Xt);function zT(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function WT(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Kp=e=>Array.isArray(e)?e:[e];function HT(e){const t=Array.isArray(e[0])?e[0]:e;return WT(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function VT(e,t){const n=[],{length:r}=e;for(let i=0;i{n=Hs(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function qT(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e;return(...i)=>{let o=0,s=0,a,l={},c=i.pop();typeof c=="object"&&(l=c,c=i.pop()),zT(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const f={...n,...l},{memoize:p,memoizeOptions:b=[],argsMemoize:S=W0,argsMemoizeOptions:u=[],devModeChecks:m={}}=f,_=Kp(b),g=Kp(u),y=HT(i),h=p(function(){return o++,c.apply(null,arguments)},..._),v=S(function(){s++;const w=VT(y,arguments);return a=h.apply(null,w),a},...g);return Object.assign(v,{resultFunc:c,memoizedResultFunc:h,dependencies:y,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:p,argsMemoize:S})}}function H0(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var QT=H0(),XT=H0,JT=(...e)=>{const t=qT(...e),n=Object.assign((...r)=>{const i=t(...r),o=(s,...a)=>i(Er(s)?$0(s):s,...a);return Object.assign(o,i),o},{withTypes:()=>n});return n};JT(W0);var ZT=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ja:ja.apply(null,arguments)};function Ki(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error($t(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>MT(r)&&r.type===e,n}var V0=class _o extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,_o.prototype)}static get[Symbol.species](){return _o}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new _o(...t[0].concat(this)):new _o(...t.concat(this))}};function qp(e){return Qn(e)?z0(e,()=>{}):e}function Qp(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error($t(10));const r=n.insert(t,e);return e.set(t,r),r}function eR(e){return typeof e=="boolean"}var tR=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let s=new V0;return n&&(eR(n)?s.push(QT):s.push(XT(n.extraArgument))),s},nR="RTK_autoBatch",G0=e=>t=>{setTimeout(t,e)},rR=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:G0(10),iR=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,s=!1;const a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?rR:e.type==="callback"?e.queueNotification:G0(e.timeout),c=()=>{s=!1,o&&(o=!1,a.forEach(f=>f()))};return Object.assign({},r,{subscribe(f){const p=()=>i&&f(),b=r.subscribe(p);return a.add(f),()=>{b(),a.delete(f)}},dispatch(f){var p;try{return i=!((p=f==null?void 0:f.meta)!=null&&p[nR]),o=!i,o&&(s||(s=!0,l(c))),r.dispatch(f)}finally{i=!0}}})},oR=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new V0(e);return r&&i.push(iR(typeof r=="object"?r:void 0)),i},sR=!0;function aR(e){const t=tR(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(vd(n))a=IT(n);else throw new Error($t(1));let l;typeof r=="function"?l=r(t):l=t();let c=ja;i&&(c=ZT({trace:!sR,...typeof i=="object"&&i}));const f=OT(...l),p=oR(f);let b=typeof s=="function"?s(p):p();const S=c(...b);return A0(a,o,S)}function K0(e){const t={},n=[];let r;const i={addCase(o,s){const a=typeof o=="string"?o:o.type;if(!a)throw new Error($t(28));if(a in t)throw new Error($t(29));return t[a]=s,i},addMatcher(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function lR(e){return typeof e=="function"}function uR(e,t){let[n,r,i]=K0(t),o;if(lR(e))o=()=>qp(e());else{const a=qp(e);o=()=>a}function s(a=o(),l){let c=[n[l.type],...r.filter(({matcher:f})=>f(l)).map(({reducer:f})=>f)];return c.filter(f=>!!f).length===0&&(c=[i]),c.reduce((f,p)=>{if(p)if(Er(f)){const S=p(f,l);return S===void 0?f:S}else{if(Qn(f))return z0(f,b=>p(b,l));{const b=p(f,l);if(b===void 0){if(f===null)return f;throw new Error($t(9))}return b}}return f},a)}return s.getInitialState=o,s}var cR="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",fR=(e=21)=>{let t="",n=e;for(;n--;)t+=cR[Math.random()*64|0];return t},dR=Symbol.for("rtk-slice-createasyncthunk");function hR(e,t){return`${e}/${t}`}function pR({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[dR];return function(i){const{name:o,reducerPath:s=o}=i;if(!o)throw new Error($t(11));typeof process<"u";const a=(typeof i.reducers=="function"?i.reducers(yR()):i.reducers)||{},l=Object.keys(a),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(h,v){const x=typeof h=="string"?h:h.type;if(!x)throw new Error($t(12));if(x in c.sliceCaseReducersByType)throw new Error($t(13));return c.sliceCaseReducersByType[x]=v,f},addMatcher(h,v){return c.sliceMatchers.push({matcher:h,reducer:v}),f},exposeAction(h,v){return c.actionCreators[h]=v,f},exposeCaseReducer(h,v){return c.sliceCaseReducersByName[h]=v,f}};l.forEach(h=>{const v=a[h],x={reducerName:h,type:hR(o,h),createNotation:typeof i.reducers=="function"};vR(v)?bR(x,v,f,t):gR(x,v,f)});function p(){const[h={},v=[],x=void 0]=typeof i.extraReducers=="function"?K0(i.extraReducers):[i.extraReducers],w={...h,...c.sliceCaseReducersByType};return uR(i.initialState,k=>{for(let R in w)k.addCase(R,w[R]);for(let R of c.sliceMatchers)k.addMatcher(R.matcher,R.reducer);for(let R of v)k.addMatcher(R.matcher,R.reducer);x&&k.addDefaultCase(x)})}const b=h=>h,S=new Map;let u;function m(h,v){return u||(u=p()),u(h,v)}function _(){return u||(u=p()),u.getInitialState()}function g(h,v=!1){function x(k){let R=k[h];return typeof R>"u"&&v&&(R=_()),R}function w(k=b){const R=Qp(S,v,{insert:()=>new WeakMap});return Qp(R,k,{insert:()=>{const M={};for(const[B,$]of Object.entries(i.selectors??{}))M[B]=mR($,k,_,v);return M}})}return{reducerPath:h,getSelectors:w,get selectors(){return w(x)},selectSlice:x}}const y={name:o,reducer:m,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:_,...g(s),injectInto(h,{reducerPath:v,...x}={}){const w=v??s;return h.inject({reducerPath:w,reducer:m},x),{...y,...g(w,!0)}}};return y}}function mR(e,t,n,r){function i(o,...s){let a=t(o);return typeof a>"u"&&r&&(a=n()),e(a,...s)}return i.unwrapped=e,i}var Y0=pR();function yR(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function gR({type:e,reducerName:t,createNotation:n},r,i){let o,s;if("reducer"in r){if(n&&!wR(r))throw new Error($t(17));o=r.reducer,s=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?Ki(e,s):Ki(e))}function vR(e){return e._reducerDefinitionType==="asyncThunk"}function wR(e){return e._reducerDefinitionType==="reducerWithPrepare"}function bR({type:e,reducerName:t},n,r,i){if(!i)throw new Error($t(18));const{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:c,options:f}=n,p=i(e,o,f);r.exposeAction(t,p),s&&r.addCase(p.fulfilled,s),a&&r.addCase(p.pending,a),l&&r.addCase(p.rejected,l),c&&r.addMatcher(p.settled,c),r.exposeCaseReducer(t,{fulfilled:s||Vs,pending:a||Vs,rejected:l||Vs,settled:c||Vs})}function Vs(){}var SR=(e,t)=>{if(typeof e!="function")throw new Error($t(32))},Sd="listenerMiddleware",ER=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=Ki(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error($t(21));return SR(o),{predicate:i,type:t,effect:o}},_R=Object.assign(e=>{const{type:t,predicate:n,effect:r}=ER(e);return{id:fR(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error($t(22))}}},{withTypes:()=>_R}),xR=Object.assign(Ki(`${Sd}/add`),{withTypes:()=>xR});Ki(`${Sd}/removeAll`);var kR=Object.assign(Ki(`${Sd}/remove`),{withTypes:()=>kR});function $t(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const Xp={anchorOrigin:{horizontal:"center",vertical:"top"},autoHideDuration:6e3,message:"",open:!1},Yc=Y0({name:"snackbar",initialState:Xp,reducers:{resetSnackbar:()=>Xp,setSnackbar:(e,t)=>{Object.assign(e,t.payload)}}}),Jp={email:"",id:""},qc=Y0({name:"user",initialState:Jp,reducers:{resetUser:()=>Jp,setUser:(e,t)=>{const n=t.payload;Object.assign(e,n)}}}),za={...Yc.actions,...qc.actions};za.resetSnackbar,za.resetUser;const TR=aR({reducer:{[Yc.name]:Yc.reducer,[qc.name]:qc.reducer},devTools:S2});var Ed={},RR=x0;Object.defineProperty(Ed,"__esModule",{value:!0});var q0=Ed.default=void 0,CR=RR(T0()),PR=oe;q0=Ed.default=(0,CR.default)((0,PR.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function IR(e){return typeof e=="string"}function OR(e,t,n){return e===void 0||IR(e)?t:X({},t,{ownerState:X({},t.ownerState,n)})}function Qc(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function MR(e,t,n){return typeof e=="function"?e(t,n):e}function Zp(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function LR(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const S=Qe(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),u=X({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),m=X({},n,i,r);return S.length>0&&(m.className=S),Object.keys(u).length>0&&(m.style=u),{props:m,internalRef:void 0}}const s=Qc(X({},i,r)),a=Zp(r),l=Zp(i),c=t(s),f=Qe(c==null?void 0:c.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),p=X({},c==null?void 0:c.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),b=X({},c,n,l,a);return f.length>0&&(b.className=f),Object.keys(p).length>0&&(b.style=p),{props:b,internalRef:c.ref}}const AR=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function NR(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,s=Be(e,AR),a=o?{}:MR(r,i),{props:l,internalRef:c}=LR(X({},s,{externalSlotProps:a})),f=Gr(c,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return OR(n,X({},l,{ref:f}),i)}function em(e){return e.substring(2).toLowerCase()}function BR(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const f=Gr(t.ref,a),p=cr(u=>{const m=c.current;c.current=!1;const _=Lo(a.current);if(!l.current||!a.current||"clientX"in u&&BR(u,_))return;if(s.current){s.current=!1;return}let g;u.composedPath?g=u.composedPath().indexOf(a.current)>-1:g=!_.documentElement.contains(u.target)||a.current.contains(u.target),!g&&(n||!m)&&i(u)}),b=u=>m=>{c.current=!0;const _=t.props[u];_&&_(m)},S={ref:f};return o!==!1&&(S[o]=b(o)),A.useEffect(()=>{if(o!==!1){const u=em(o),m=Lo(a.current),_=()=>{s.current=!0};return m.addEventListener(u,p),m.addEventListener("touchmove",_),()=>{m.removeEventListener(u,p),m.removeEventListener("touchmove",_)}}},[p,o]),r!==!1&&(S[r]=b(r)),A.useEffect(()=>{if(r!==!1){const u=em(r),m=Lo(a.current);return m.addEventListener(u,p),()=>{m.removeEventListener(u,p)}}},[p,r]),oe.jsx(A.Fragment,{children:A.cloneElement(t,S)})}function UR(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:o}=e,s=A.useRef();A.useEffect(()=>{if(!i)return;function g(y){y.defaultPrevented||(y.key==="Escape"||y.key==="Esc")&&(r==null||r(y,"escapeKeyDown"))}return document.addEventListener("keydown",g),()=>{document.removeEventListener("keydown",g)}},[i,r]);const a=cr((g,y)=>{r==null||r(g,y)}),l=cr(g=>{!r||g==null||(clearTimeout(s.current),s.current=setTimeout(()=>{a(null,"timeout")},g))});A.useEffect(()=>(i&&l(t),()=>{clearTimeout(s.current)}),[i,t,l]);const c=g=>{r==null||r(g,"clickaway")},f=()=>{clearTimeout(s.current)},p=A.useCallback(()=>{t!=null&&l(o??t*.5)},[t,o,l]),b=g=>y=>{const h=g.onBlur;h==null||h(y),p()},S=g=>y=>{const h=g.onFocus;h==null||h(y),f()},u=g=>y=>{const h=g.onMouseEnter;h==null||h(y),f()},m=g=>y=>{const h=g.onMouseLeave;h==null||h(y),p()};return A.useEffect(()=>{if(!n&&i)return window.addEventListener("focus",p),window.addEventListener("blur",f),()=>{window.removeEventListener("focus",p),window.removeEventListener("blur",f)}},[n,p,i]),{getRootProps:(g={})=>{const y=X({},Qc(e),Qc(g));return X({role:"presentation"},g,y,{onBlur:b(y),onFocus:S(y),onMouseEnter:u(y),onMouseLeave:m(y)})},onClickAway:c}}const jR=e=>e.scrollTop;function tm(e,t){var n,r;const{timeout:i,easing:o,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:s.transitionDelay}}const $R=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Xc(e){return`scale(${e}, ${e**2})`}const FR={entering:{opacity:1,transform:Xc(1)},entered:{opacity:1,transform:"none"}},Bu=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Q0=A.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:s,in:a,onEnter:l,onEntered:c,onEntering:f,onExit:p,onExited:b,onExiting:S,style:u,timeout:m="auto",TransitionComponent:_=tk}=t,g=Be(t,$R),y=A.useRef(),h=A.useRef(),v=P0(),x=A.useRef(null),w=Gr(x,o.ref,n),k=W=>Y=>{if(W){const se=x.current;Y===void 0?W(se):W(se,Y)}},R=k(f),M=k((W,Y)=>{jR(W);const{duration:se,delay:V,easing:G}=tm({style:u,timeout:m,easing:s},{mode:"enter"});let te;m==="auto"?(te=v.transitions.getAutoHeightDuration(W.clientHeight),h.current=te):te=se,W.style.transition=[v.transitions.create("opacity",{duration:te,delay:V}),v.transitions.create("transform",{duration:Bu?te:te*.666,delay:V,easing:G})].join(","),l&&l(W,Y)}),B=k(c),$=k(S),z=k(W=>{const{duration:Y,delay:se,easing:V}=tm({style:u,timeout:m,easing:s},{mode:"exit"});let G;m==="auto"?(G=v.transitions.getAutoHeightDuration(W.clientHeight),h.current=G):G=Y,W.style.transition=[v.transitions.create("opacity",{duration:G,delay:se}),v.transitions.create("transform",{duration:Bu?G:G*.666,delay:Bu?se:se||G*.333,easing:V})].join(","),W.style.opacity=0,W.style.transform=Xc(.75),p&&p(W)}),ee=k(b),F=W=>{m==="auto"&&(y.current=setTimeout(W,h.current||0)),r&&r(x.current,W)};return A.useEffect(()=>()=>{clearTimeout(y.current)},[]),oe.jsx(_,X({appear:i,in:a,nodeRef:x,onEnter:M,onEntered:B,onEntering:R,onExit:z,onExited:ee,onExiting:$,addEndListener:F,timeout:m==="auto"?null:m},g,{children:(W,Y)=>A.cloneElement(o,X({style:X({opacity:0,transform:Xc(.75),visibility:W==="exited"&&!a?"hidden":void 0},FR[W],u,o.props.style),ref:w},Y))}))});Q0.muiSupportAuto=!0;const zR=Q0;function WR(e){return tn("MuiSnackbarContent",e)}nn("MuiSnackbarContent",["root","message","action"]);const HR=["action","className","message","role"],VR=e=>{const{classes:t}=e;return pn({root:["root"],action:["action"],message:["message"]},WR,t)},GR=wt(I0,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=RE(e.palette.background.default,t);return X({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),KR=wt("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),YR=wt("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),qR=A.forwardRef(function(t,n){const r=zt({props:t,name:"MuiSnackbarContent"}),{action:i,className:o,message:s,role:a="alert"}=r,l=Be(r,HR),c=r,f=VR(c);return oe.jsxs(GR,X({role:a,square:!0,elevation:6,className:Qe(f.root,o),ownerState:c,ref:n},l,{children:[oe.jsx(KR,{className:f.message,ownerState:c,children:s}),i?oe.jsx(YR,{className:f.action,ownerState:c,children:i}):null]}))}),QR=qR;function XR(e){return tn("MuiSnackbar",e)}nn("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const JR=["onEnter","onExited"],ZR=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],eC=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Te(n.vertical)}${Te(n.horizontal)}`]};return pn(r,XR,t)},nm=wt("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Te(n.anchorOrigin.vertical)}${Te(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return X({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:X({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),tC=A.forwardRef(function(t,n){const r=zt({props:t,name:"MuiSnackbar"}),i=P0(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:a,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:f,className:p,ClickAwayListenerProps:b,ContentProps:S,disableWindowBlurListener:u=!1,message:m,open:_,TransitionComponent:g=zR,transitionDuration:y=o,TransitionProps:{onEnter:h,onExited:v}={}}=r,x=Be(r.TransitionProps,JR),w=Be(r,ZR),k=X({},r,{anchorOrigin:{vertical:a,horizontal:l},autoHideDuration:c,disableWindowBlurListener:u,TransitionComponent:g,transitionDuration:y}),R=eC(k),{getRootProps:M,onClickAway:B}=UR(X({},k)),[$,z]=A.useState(!0),ee=NR({elementType:nm,getSlotProps:M,externalForwardedProps:w,ownerState:k,additionalProps:{ref:n},className:[R.root,p]}),F=Y=>{z(!0),v&&v(Y)},W=(Y,se)=>{z(!1),h&&h(Y,se)};return!_&&$?null:oe.jsx(DR,X({onClickAway:B},b,{children:oe.jsx(nm,X({},ee,{children:oe.jsx(g,X({appear:!0,in:_,timeout:y,direction:a==="top"?"down":"up",onEnter:W,onExited:F},x,{children:f||oe.jsx(QR,X({message:m,action:s},S))}))}))}))}),nC=tC;var X0={},J0={exports:{}};/*! For license information please see cbor.js.LICENSE.txt */(function(e,t){(function(n,r){e.exports=r()})(dt,function(){return(()=>{var n={742:(s,a)=>{a.byteLength=function(_){var g=u(_),y=g[0],h=g[1];return 3*(y+h)/4-h},a.toByteArray=function(_){var g,y,h=u(_),v=h[0],x=h[1],w=new f(function(M,B,$){return 3*(B+$)/4-$}(0,v,x)),k=0,R=x>0?v-4:v;for(y=0;y>16&255,w[k++]=g>>8&255,w[k++]=255&g;return x===2&&(g=c[_.charCodeAt(y)]<<2|c[_.charCodeAt(y+1)]>>4,w[k++]=255&g),x===1&&(g=c[_.charCodeAt(y)]<<10|c[_.charCodeAt(y+1)]<<4|c[_.charCodeAt(y+2)]>>2,w[k++]=g>>8&255,w[k++]=255&g),w},a.fromByteArray=function(_){for(var g,y=_.length,h=y%3,v=[],x=16383,w=0,k=y-h;wk?k:w+x));return h===1?(g=_[y-1],v.push(l[g>>2]+l[g<<4&63]+"==")):h===2&&(g=(_[y-2]<<8)+_[y-1],v.push(l[g>>10]+l[g>>4&63]+l[g<<2&63]+"=")),v.join("")};for(var l=[],c=[],f=typeof Uint8Array<"u"?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=0,S=p.length;b0)throw new Error("Invalid string. Length must be a multiple of 4");var y=_.indexOf("=");return y===-1&&(y=g),[y,y===g?0:4-y%4]}function m(_,g,y){for(var h,v,x=[],w=g;w>18&63]+l[v>>12&63]+l[v>>6&63]+l[63&v]);return x.join("")}c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},764:(s,a,l)=>{const c=l(742),f=l(645),p=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;a.Buffer=u,a.SlowBuffer=function(d){return+d!=d&&(d=0),u.alloc(+d)},a.INSPECT_MAX_BYTES=50;const b=2147483647;function S(d){if(d>b)throw new RangeError('The value "'+d+'" is invalid for option "size"');const E=new Uint8Array(d);return Object.setPrototypeOf(E,u.prototype),E}function u(d,E,T){if(typeof d=="number"){if(typeof E=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(d)}return m(d,E,T)}function m(d,E,T){if(typeof d=="string")return function(N,J){if(typeof J=="string"&&J!==""||(J="utf8"),!u.isEncoding(J))throw new TypeError("Unknown encoding: "+J);const ge=0|x(N,J);let Ee=S(ge);const Ve=Ee.write(N,J);return Ve!==ge&&(Ee=Ee.slice(0,Ve)),Ee}(d,E);if(ArrayBuffer.isView(d))return function(N){if(De(N,Uint8Array)){const J=new Uint8Array(N);return h(J.buffer,J.byteOffset,J.byteLength)}return y(N)}(d);if(d==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof d);if(De(d,ArrayBuffer)||d&&De(d.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(De(d,SharedArrayBuffer)||d&&De(d.buffer,SharedArrayBuffer)))return h(d,E,T);if(typeof d=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const L=d.valueOf&&d.valueOf();if(L!=null&&L!==d)return u.from(L,E,T);const U=function(N){if(u.isBuffer(N)){const J=0|v(N.length),ge=S(J);return ge.length===0||N.copy(ge,0,0,J),ge}return N.length!==void 0?typeof N.length!="number"||Re(N.length)?S(0):y(N):N.type==="Buffer"&&Array.isArray(N.data)?y(N.data):void 0}(d);if(U)return U;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof d[Symbol.toPrimitive]=="function")return u.from(d[Symbol.toPrimitive]("string"),E,T);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof d)}function _(d){if(typeof d!="number")throw new TypeError('"size" argument must be of type number');if(d<0)throw new RangeError('The value "'+d+'" is invalid for option "size"')}function g(d){return _(d),S(d<0?0:0|v(d))}function y(d){const E=d.length<0?0:0|v(d.length),T=S(E);for(let L=0;L=b)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b.toString(16)+" bytes");return 0|d}function x(d,E){if(u.isBuffer(d))return d.length;if(ArrayBuffer.isView(d)||De(d,ArrayBuffer))return d.byteLength;if(typeof d!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof d);const T=d.length,L=arguments.length>2&&arguments[2]===!0;if(!L&&T===0)return 0;let U=!1;for(;;)switch(E){case"ascii":case"latin1":case"binary":return T;case"utf8":case"utf-8":return Ie(d).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*T;case"hex":return T>>>1;case"base64":return Ne(d).length;default:if(U)return L?-1:Ie(d).length;E=(""+E).toLowerCase(),U=!0}}function w(d,E,T){let L=!1;if((E===void 0||E<0)&&(E=0),E>this.length||((T===void 0||T>this.length)&&(T=this.length),T<=0)||(T>>>=0)<=(E>>>=0))return"";for(d||(d="utf8");;)switch(d){case"hex":return te(this,E,T);case"utf8":case"utf-8":return Y(this,E,T);case"ascii":return V(this,E,T);case"latin1":case"binary":return G(this,E,T);case"base64":return W(this,E,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,E,T);default:if(L)throw new TypeError("Unknown encoding: "+d);d=(d+"").toLowerCase(),L=!0}}function k(d,E,T){const L=d[E];d[E]=d[T],d[T]=L}function R(d,E,T,L,U){if(d.length===0)return-1;if(typeof T=="string"?(L=T,T=0):T>2147483647?T=2147483647:T<-2147483648&&(T=-2147483648),Re(T=+T)&&(T=U?0:d.length-1),T<0&&(T=d.length+T),T>=d.length){if(U)return-1;T=d.length-1}else if(T<0){if(!U)return-1;T=0}if(typeof E=="string"&&(E=u.from(E,L)),u.isBuffer(E))return E.length===0?-1:M(d,E,T,L,U);if(typeof E=="number")return E&=255,typeof Uint8Array.prototype.indexOf=="function"?U?Uint8Array.prototype.indexOf.call(d,E,T):Uint8Array.prototype.lastIndexOf.call(d,E,T):M(d,[E],T,L,U);throw new TypeError("val must be string, number or Buffer")}function M(d,E,T,L,U){let N,J=1,ge=d.length,Ee=E.length;if(L!==void 0&&((L=String(L).toLowerCase())==="ucs2"||L==="ucs-2"||L==="utf16le"||L==="utf-16le")){if(d.length<2||E.length<2)return-1;J=2,ge/=2,Ee/=2,T/=2}function Ve(Ce,ze){return J===1?Ce[ze]:Ce.readUInt16BE(ze*J)}if(U){let Ce=-1;for(N=T;Nge&&(T=ge-Ee),N=T;N>=0;N--){let Ce=!0;for(let ze=0;zeU&&(L=U):L=U;const N=E.length;let J;for(L>N/2&&(L=N/2),J=0;J>8,Ee=J%256,Ve.push(Ee),Ve.push(ge);return Ve}(E,d.length-T),d,T,L)}function W(d,E,T){return E===0&&T===d.length?c.fromByteArray(d):c.fromByteArray(d.slice(E,T))}function Y(d,E,T){T=Math.min(d.length,T);const L=[];let U=E;for(;U239?4:N>223?3:N>191?2:1;if(U+ge<=T){let Ee,Ve,Ce,ze;switch(ge){case 1:N<128&&(J=N);break;case 2:Ee=d[U+1],(192&Ee)==128&&(ze=(31&N)<<6|63&Ee,ze>127&&(J=ze));break;case 3:Ee=d[U+1],Ve=d[U+2],(192&Ee)==128&&(192&Ve)==128&&(ze=(15&N)<<12|(63&Ee)<<6|63&Ve,ze>2047&&(ze<55296||ze>57343)&&(J=ze));break;case 4:Ee=d[U+1],Ve=d[U+2],Ce=d[U+3],(192&Ee)==128&&(192&Ve)==128&&(192&Ce)==128&&(ze=(15&N)<<18|(63&Ee)<<12|(63&Ve)<<6|63&Ce,ze>65535&&ze<1114112&&(J=ze))}}J===null?(J=65533,ge=1):J>65535&&(J-=65536,L.push(J>>>10&1023|55296),J=56320|1023&J),L.push(J),U+=ge}return function(N){const J=N.length;if(J<=se)return String.fromCharCode.apply(String,N);let ge="",Ee=0;for(;Ee"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(d,E,T){return m(d,E,T)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(d,E,T){return function(L,U,N){return _(L),L<=0?S(L):U!==void 0?typeof N=="string"?S(L).fill(U,N):S(L).fill(U):S(L)}(d,E,T)},u.allocUnsafe=function(d){return g(d)},u.allocUnsafeSlow=function(d){return g(d)},u.isBuffer=function(d){return d!=null&&d._isBuffer===!0&&d!==u.prototype},u.compare=function(d,E){if(De(d,Uint8Array)&&(d=u.from(d,d.offset,d.byteLength)),De(E,Uint8Array)&&(E=u.from(E,E.offset,E.byteLength)),!u.isBuffer(d)||!u.isBuffer(E))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(d===E)return 0;let T=d.length,L=E.length;for(let U=0,N=Math.min(T,L);UL.length?(u.isBuffer(N)||(N=u.from(N)),N.copy(L,U)):Uint8Array.prototype.set.call(L,N,U);else{if(!u.isBuffer(N))throw new TypeError('"list" argument must be an Array of Buffers');N.copy(L,U)}U+=N.length}return L},u.byteLength=x,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const d=this.length;if(d%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let E=0;EE&&(d+=" ... "),""},p&&(u.prototype[p]=u.prototype.inspect),u.prototype.compare=function(d,E,T,L,U){if(De(d,Uint8Array)&&(d=u.from(d,d.offset,d.byteLength)),!u.isBuffer(d))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof d);if(E===void 0&&(E=0),T===void 0&&(T=d?d.length:0),L===void 0&&(L=0),U===void 0&&(U=this.length),E<0||T>d.length||L<0||U>this.length)throw new RangeError("out of range index");if(L>=U&&E>=T)return 0;if(L>=U)return-1;if(E>=T)return 1;if(this===d)return 0;let N=(U>>>=0)-(L>>>=0),J=(T>>>=0)-(E>>>=0);const ge=Math.min(N,J),Ee=this.slice(L,U),Ve=d.slice(E,T);for(let Ce=0;Ce>>=0,isFinite(T)?(T>>>=0,L===void 0&&(L="utf8")):(L=T,T=void 0)}const U=this.length-E;if((T===void 0||T>U)&&(T=U),d.length>0&&(T<0||E<0)||E>this.length)throw new RangeError("Attempt to write outside buffer bounds");L||(L="utf8");let N=!1;for(;;)switch(L){case"hex":return B(this,d,E,T);case"utf8":case"utf-8":return $(this,d,E,T);case"ascii":case"latin1":case"binary":return z(this,d,E,T);case"base64":return ee(this,d,E,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,d,E,T);default:if(N)throw new TypeError("Unknown encoding: "+L);L=(""+L).toLowerCase(),N=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const se=4096;function V(d,E,T){let L="";T=Math.min(d.length,T);for(let U=E;UL)&&(T=L);let U="";for(let N=E;NT)throw new RangeError("Trying to access beyond buffer length")}function D(d,E,T,L,U,N){if(!u.isBuffer(d))throw new TypeError('"buffer" argument must be a Buffer instance');if(E>U||Ed.length)throw new RangeError("Index out of range")}function K(d,E,T,L,U){O(E,L,U,d,T,7);let N=Number(E&BigInt(4294967295));d[T++]=N,N>>=8,d[T++]=N,N>>=8,d[T++]=N,N>>=8,d[T++]=N;let J=Number(E>>BigInt(32)&BigInt(4294967295));return d[T++]=J,J>>=8,d[T++]=J,J>>=8,d[T++]=J,J>>=8,d[T++]=J,T}function Q(d,E,T,L,U){O(E,L,U,d,T,7);let N=Number(E&BigInt(4294967295));d[T+7]=N,N>>=8,d[T+6]=N,N>>=8,d[T+5]=N,N>>=8,d[T+4]=N;let J=Number(E>>BigInt(32)&BigInt(4294967295));return d[T+3]=J,J>>=8,d[T+2]=J,J>>=8,d[T+1]=J,J>>=8,d[T]=J,T+8}function ne(d,E,T,L,U,N){if(T+L>d.length)throw new RangeError("Index out of range");if(T<0)throw new RangeError("Index out of range")}function ie(d,E,T,L,U){return E=+E,T>>>=0,U||ne(d,0,T,4),f.write(d,E,T,L,23,4),T+4}function pe(d,E,T,L,U){return E=+E,T>>>=0,U||ne(d,0,T,8),f.write(d,E,T,L,52,8),T+8}u.prototype.slice=function(d,E){const T=this.length;(d=~~d)<0?(d+=T)<0&&(d=0):d>T&&(d=T),(E=E===void 0?T:~~E)<0?(E+=T)<0&&(E=0):E>T&&(E=T),E>>=0,E>>>=0,T||C(d,E,this.length);let L=this[d],U=1,N=0;for(;++N>>=0,E>>>=0,T||C(d,E,this.length);let L=this[d+--E],U=1;for(;E>0&&(U*=256);)L+=this[d+--E]*U;return L},u.prototype.readUint8=u.prototype.readUInt8=function(d,E){return d>>>=0,E||C(d,1,this.length),this[d]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(d,E){return d>>>=0,E||C(d,2,this.length),this[d]|this[d+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(d,E){return d>>>=0,E||C(d,2,this.length),this[d]<<8|this[d+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(d,E){return d>>>=0,E||C(d,4,this.length),(this[d]|this[d+1]<<8|this[d+2]<<16)+16777216*this[d+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(d,E){return d>>>=0,E||C(d,4,this.length),16777216*this[d]+(this[d+1]<<16|this[d+2]<<8|this[d+3])},u.prototype.readBigUInt64LE=ot(function(d){I(d>>>=0,"offset");const E=this[d],T=this[d+7];E!==void 0&&T!==void 0||Z(d,this.length-8);const L=E+256*this[++d]+65536*this[++d]+this[++d]*2**24,U=this[++d]+256*this[++d]+65536*this[++d]+T*2**24;return BigInt(L)+(BigInt(U)<>>=0,"offset");const E=this[d],T=this[d+7];E!==void 0&&T!==void 0||Z(d,this.length-8);const L=E*2**24+65536*this[++d]+256*this[++d]+this[++d],U=this[++d]*2**24+65536*this[++d]+256*this[++d]+T;return(BigInt(L)<>>=0,E>>>=0,T||C(d,E,this.length);let L=this[d],U=1,N=0;for(;++N=U&&(L-=Math.pow(2,8*E)),L},u.prototype.readIntBE=function(d,E,T){d>>>=0,E>>>=0,T||C(d,E,this.length);let L=E,U=1,N=this[d+--L];for(;L>0&&(U*=256);)N+=this[d+--L]*U;return U*=128,N>=U&&(N-=Math.pow(2,8*E)),N},u.prototype.readInt8=function(d,E){return d>>>=0,E||C(d,1,this.length),128&this[d]?-1*(255-this[d]+1):this[d]},u.prototype.readInt16LE=function(d,E){d>>>=0,E||C(d,2,this.length);const T=this[d]|this[d+1]<<8;return 32768&T?4294901760|T:T},u.prototype.readInt16BE=function(d,E){d>>>=0,E||C(d,2,this.length);const T=this[d+1]|this[d]<<8;return 32768&T?4294901760|T:T},u.prototype.readInt32LE=function(d,E){return d>>>=0,E||C(d,4,this.length),this[d]|this[d+1]<<8|this[d+2]<<16|this[d+3]<<24},u.prototype.readInt32BE=function(d,E){return d>>>=0,E||C(d,4,this.length),this[d]<<24|this[d+1]<<16|this[d+2]<<8|this[d+3]},u.prototype.readBigInt64LE=ot(function(d){I(d>>>=0,"offset");const E=this[d],T=this[d+7];E!==void 0&&T!==void 0||Z(d,this.length-8);const L=this[d+4]+256*this[d+5]+65536*this[d+6]+(T<<24);return(BigInt(L)<>>=0,"offset");const E=this[d],T=this[d+7];E!==void 0&&T!==void 0||Z(d,this.length-8);const L=(E<<24)+65536*this[++d]+256*this[++d]+this[++d];return(BigInt(L)<>>=0,E||C(d,4,this.length),f.read(this,d,!0,23,4)},u.prototype.readFloatBE=function(d,E){return d>>>=0,E||C(d,4,this.length),f.read(this,d,!1,23,4)},u.prototype.readDoubleLE=function(d,E){return d>>>=0,E||C(d,8,this.length),f.read(this,d,!0,52,8)},u.prototype.readDoubleBE=function(d,E){return d>>>=0,E||C(d,8,this.length),f.read(this,d,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(d,E,T,L){d=+d,E>>>=0,T>>>=0,L||D(this,d,E,T,Math.pow(2,8*T)-1,0);let U=1,N=0;for(this[E]=255&d;++N>>=0,T>>>=0,L||D(this,d,E,T,Math.pow(2,8*T)-1,0);let U=T-1,N=1;for(this[E+U]=255&d;--U>=0&&(N*=256);)this[E+U]=d/N&255;return E+T},u.prototype.writeUint8=u.prototype.writeUInt8=function(d,E,T){return d=+d,E>>>=0,T||D(this,d,E,1,255,0),this[E]=255&d,E+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(d,E,T){return d=+d,E>>>=0,T||D(this,d,E,2,65535,0),this[E]=255&d,this[E+1]=d>>>8,E+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(d,E,T){return d=+d,E>>>=0,T||D(this,d,E,2,65535,0),this[E]=d>>>8,this[E+1]=255&d,E+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(d,E,T){return d=+d,E>>>=0,T||D(this,d,E,4,4294967295,0),this[E+3]=d>>>24,this[E+2]=d>>>16,this[E+1]=d>>>8,this[E]=255&d,E+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(d,E,T){return d=+d,E>>>=0,T||D(this,d,E,4,4294967295,0),this[E]=d>>>24,this[E+1]=d>>>16,this[E+2]=d>>>8,this[E+3]=255&d,E+4},u.prototype.writeBigUInt64LE=ot(function(d,E=0){return K(this,d,E,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=ot(function(d,E=0){return Q(this,d,E,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(d,E,T,L){if(d=+d,E>>>=0,!L){const ge=Math.pow(2,8*T-1);D(this,d,E,T,ge-1,-ge)}let U=0,N=1,J=0;for(this[E]=255&d;++U>0)-J&255;return E+T},u.prototype.writeIntBE=function(d,E,T,L){if(d=+d,E>>>=0,!L){const ge=Math.pow(2,8*T-1);D(this,d,E,T,ge-1,-ge)}let U=T-1,N=1,J=0;for(this[E+U]=255&d;--U>=0&&(N*=256);)d<0&&J===0&&this[E+U+1]!==0&&(J=1),this[E+U]=(d/N>>0)-J&255;return E+T},u.prototype.writeInt8=function(d,E,T){return d=+d,E>>>=0,T||D(this,d,E,1,127,-128),d<0&&(d=255+d+1),this[E]=255&d,E+1},u.prototype.writeInt16LE=function(d,E,T){return d=+d,E>>>=0,T||D(this,d,E,2,32767,-32768),this[E]=255&d,this[E+1]=d>>>8,E+2},u.prototype.writeInt16BE=function(d,E,T){return d=+d,E>>>=0,T||D(this,d,E,2,32767,-32768),this[E]=d>>>8,this[E+1]=255&d,E+2},u.prototype.writeInt32LE=function(d,E,T){return d=+d,E>>>=0,T||D(this,d,E,4,2147483647,-2147483648),this[E]=255&d,this[E+1]=d>>>8,this[E+2]=d>>>16,this[E+3]=d>>>24,E+4},u.prototype.writeInt32BE=function(d,E,T){return d=+d,E>>>=0,T||D(this,d,E,4,2147483647,-2147483648),d<0&&(d=4294967295+d+1),this[E]=d>>>24,this[E+1]=d>>>16,this[E+2]=d>>>8,this[E+3]=255&d,E+4},u.prototype.writeBigInt64LE=ot(function(d,E=0){return K(this,d,E,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=ot(function(d,E=0){return Q(this,d,E,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeFloatLE=function(d,E,T){return ie(this,d,E,!0,T)},u.prototype.writeFloatBE=function(d,E,T){return ie(this,d,E,!1,T)},u.prototype.writeDoubleLE=function(d,E,T){return pe(this,d,E,!0,T)},u.prototype.writeDoubleBE=function(d,E,T){return pe(this,d,E,!1,T)},u.prototype.copy=function(d,E,T,L){if(!u.isBuffer(d))throw new TypeError("argument should be a Buffer");if(T||(T=0),L||L===0||(L=this.length),E>=d.length&&(E=d.length),E||(E=0),L>0&&L=this.length)throw new RangeError("Index out of range");if(L<0)throw new RangeError("sourceEnd out of bounds");L>this.length&&(L=this.length),d.length-E>>=0,T=T===void 0?this.length:T>>>0,d||(d=0),typeof d=="number")for(U=E;U=L+4;T-=3)E=`_${d.slice(T-3,T)}${E}`;return`${d.slice(0,T)}${E}`}function O(d,E,T,L,U,N){if(d>T||d3?E===0||E===BigInt(0)?`>= 0${J} and < 2${J} ** ${8*(N+1)}${J}`:`>= -(2${J} ** ${8*(N+1)-1}${J}) and < 2 ** ${8*(N+1)-1}${J}`:`>= ${E}${J} and <= ${T}${J}`,new ce.ERR_OUT_OF_RANGE("value",ge,d)}(function(J,ge,Ee){I(ge,"offset"),J[ge]!==void 0&&J[ge+Ee]!==void 0||Z(ge,J.length-(Ee+1))})(L,U,N)}function I(d,E){if(typeof d!="number")throw new ce.ERR_INVALID_ARG_TYPE(E,"number",d)}function Z(d,E,T){throw Math.floor(d)!==d?(I(d,T),new ce.ERR_OUT_OF_RANGE(T||"offset","an integer",d)):E<0?new ce.ERR_BUFFER_OUT_OF_BOUNDS:new ce.ERR_OUT_OF_RANGE(T||"offset",`>= ${T?1:0} and <= ${E}`,d)}Se("ERR_BUFFER_OUT_OF_BOUNDS",function(d){return d?`${d} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Se("ERR_INVALID_ARG_TYPE",function(d,E){return`The "${d}" argument must be of type number. Received type ${typeof E}`},TypeError),Se("ERR_OUT_OF_RANGE",function(d,E,T){let L=`The value of "${d}" is out of range.`,U=T;return Number.isInteger(T)&&Math.abs(T)>4294967296?U=me(String(T)):typeof T=="bigint"&&(U=String(T),(T>BigInt(2)**BigInt(32)||T<-(BigInt(2)**BigInt(32)))&&(U=me(U)),U+="n"),L+=` It must be ${E}. Received ${U}`,L},RangeError);const le=/[^+/0-9A-Za-z-_]/g;function Ie(d,E){let T;E=E||1/0;const L=d.length;let U=null;const N=[];for(let J=0;J55295&&T<57344){if(!U){if(T>56319){(E-=3)>-1&&N.push(239,191,189);continue}if(J+1===L){(E-=3)>-1&&N.push(239,191,189);continue}U=T;continue}if(T<56320){(E-=3)>-1&&N.push(239,191,189),U=T;continue}T=65536+(U-55296<<10|T-56320)}else U&&(E-=3)>-1&&N.push(239,191,189);if(U=null,T<128){if((E-=1)<0)break;N.push(T)}else if(T<2048){if((E-=2)<0)break;N.push(T>>6|192,63&T|128)}else if(T<65536){if((E-=3)<0)break;N.push(T>>12|224,T>>6&63|128,63&T|128)}else{if(!(T<1114112))throw new Error("Invalid code point");if((E-=4)<0)break;N.push(T>>18|240,T>>12&63|128,T>>6&63|128,63&T|128)}}return N}function Ne(d){return c.toByteArray(function(E){if((E=(E=E.split("=")[0]).trim().replace(le,"")).length<2)return"";for(;E.length%4!=0;)E+="=";return E}(d))}function de(d,E,T,L){let U;for(U=0;U=E.length||U>=d.length);++U)E[U+T]=d[U];return U}function De(d,E){return d instanceof E||d!=null&&d.constructor!=null&&d.constructor.name!=null&&d.constructor.name===E.name}function Re(d){return d!=d}const Fe=function(){const d="0123456789abcdef",E=new Array(256);for(let T=0;T<16;++T){const L=16*T;for(let U=0;U<16;++U)E[L+U]=d[T]+d[U]}return E}();function ot(d){return typeof BigInt>"u"?yn:d}function yn(){throw new Error("BigInt not supported")}},141:(s,a,l)=>{a.Commented=l(20),a.Diagnose=l(694),a.Decoder=l(774),a.Encoder=l(666),a.Simple=l(32),a.Tagged=l(785),a.Map=l(70),a.UI=a.Commented.comment,a.fI=a.Decoder.decodeAll,a.h8=a.Decoder.decodeFirst,a.cc=a.Decoder.decodeAllSync,a.$u=a.Decoder.decodeFirstSync,a.M=a.Diagnose.diagnose,a.cv=a.Encoder.encode,a.N2=a.Encoder.encodeCanonical,a.TG=a.Encoder.encodeOne,a.WR=a.Encoder.encodeAsync,a.Jx=a.Decoder.decodeFirstSync,a.ww={decode:a.Decoder.decodeFirstSync,encode:a.Encoder.encode,buffer:!0,name:"cbor"},a.mc=function(){a.Encoder.reset(),a.Tagged.reset()}},20:(s,a,l)=>{const c=l(830),f=l(873),p=l(774),b=l(202),{MT:S,NUMBYTES:u,SYMS:m}=l(66),{Buffer:_}=l(764);function g(h){return h>1?"s":""}class y extends c.Transform{constructor(v={}){const{depth:x=1,max_depth:w=10,no_summary:k=!1,tags:R={},preferWeb:M,encoding:B,...$}=v;super({...$,readableObjectMode:!1,writableObjectMode:!1}),this.depth=x,this.max_depth=w,this.all=new b,R[24]||(R[24]=this._tag_24.bind(this)),this.parser=new p({tags:R,max_depth:w,preferWeb:M,encoding:B}),this.parser.on("value",this._on_value.bind(this)),this.parser.on("start",this._on_start.bind(this)),this.parser.on("start-string",this._on_start_string.bind(this)),this.parser.on("stop",this._on_stop.bind(this)),this.parser.on("more-bytes",this._on_more.bind(this)),this.parser.on("error",this._on_error.bind(this)),k||this.parser.on("data",this._on_data.bind(this)),this.parser.bs.on("read",this._on_read.bind(this))}_tag_24(v){const x=new y({depth:this.depth+1,no_summary:!0});x.on("data",w=>this.push(w)),x.on("error",w=>this.emit("error",w)),x.end(v)}_transform(v,x,w){this.parser.write(v,x,w)}_flush(v){return this.parser._flush(v)}static comment(v,x={},w=null){if(v==null)throw new Error("input required");({options:x,cb:w}=function(z,ee){switch(typeof z){case"function":return{options:{},cb:z};case"string":return{options:{encoding:z},cb:ee};case"number":return{options:{max_depth:z},cb:ee};case"object":return{options:z||{},cb:ee};default:throw new TypeError("Unknown option type")}}(x,w));const k=new b,{encoding:R="hex",...M}=x,B=new y(M);let $=null;return typeof w=="function"?(B.on("end",()=>{w(null,k.toString("utf8"))}),B.on("error",w)):$=new Promise((z,ee)=>{B.on("end",()=>{z(k.toString("utf8"))}),B.on("error",ee)}),B.pipe(k),f.guessEncoding(v,R).pipe(B),$}_on_error(v){this.push("ERROR: "),this.push(v.toString()),this.push(` + `),dT)),gT=A.forwardRef(function(t,n){const r=zt({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:s=!1,size:a=40,style:l,thickness:c=3.6,value:f=0,variant:p="indeterminate"}=r,b=Be(r,cT),S=X({},r,{color:o,disableShrink:s,size:a,thickness:c,value:f,variant:p}),u=hT(S),m={},_={},g={};if(p==="determinate"){const y=2*Math.PI*((nr-c)/2);m.strokeDasharray=y.toFixed(3),g["aria-valuenow"]=Math.round(f),m.strokeDashoffset=`${((100-f)/100*y).toFixed(3)}px`,_.transform="rotate(-90deg)"}return oe.jsx(pT,X({className:Qe(u.root,i),style:X({width:a,height:a},_,l),ownerState:S,ref:n,role:"progressbar"},g,b,{children:oe.jsx(mT,{className:u.svg,ownerState:S,viewBox:`${nr/2} ${nr/2} ${nr} ${nr}`,children:oe.jsx(yT,{className:u.circle,style:m,ownerState:S,cx:nr,cy:nr,r:(nr-c)/2,fill:"none",strokeWidth:c})})}))}),Dl=gT,vT=A.lazy(()=>Nl(()=>import("./ErrorBoundary-CvPPiDQJ.js"),__vite__mapDeps([0,1])));function wT(){return oe.jsx(A.Suspense,{fallback:oe.jsx(Dl,{}),children:oe.jsx(vT,{})})}const bT=A.lazy(()=>Nl(()=>import("./Home-jHcFiUPI.js"),__vite__mapDeps([2,3])));function ST(){return oe.jsx(A.Suspense,{fallback:oe.jsx(Dl,{}),children:oe.jsx(bT,{})})}const ET=A.lazy(()=>Nl(()=>import("./NotFound-4CVTA1Ff.js"),__vite__mapDeps([4,1])));function _T(){return oe.jsx(A.Suspense,{fallback:oe.jsx(Dl,{}),children:oe.jsx(ET,{})})}const xT=A.lazy(()=>Nl(()=>import("./Room-DiGSVbGm.js"),__vite__mapDeps([5,3])));function kT(){return oe.jsx(A.Suspense,{fallback:oe.jsx(Dl,{}),children:oe.jsx(xT,{})})}const TT=oe.jsx(fi,{path:"/",element:oe.jsx(sT,{}),children:oe.jsxs(fi,{errorElement:oe.jsx(wT,{}),children:[oe.jsx(fi,{index:!0,element:oe.jsx(ST,{})}),oe.jsx(fi,{path:"/room",element:oe.jsx(kT,{})}),oe.jsx(fi,{path:"*",element:oe.jsx(_T,{})})]})});function St(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var RT=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")(),Fp=RT,Lu=()=>Math.random().toString(36).substring(7).split("").join("."),CT={INIT:`@@redux/INIT${Lu()}`,REPLACE:`@@redux/REPLACE${Lu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Lu()}`},Ua=CT;function vd(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function A0(e,t,n){if(typeof e!="function")throw new Error(St(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(St(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(St(1));return n(A0)(e,t)}let r=e,i=t,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((_,g)=>{s.set(g,_)}))}function f(){if(l)throw new Error(St(3));return i}function p(_){if(typeof _!="function")throw new Error(St(4));if(l)throw new Error(St(5));let g=!0;c();const y=a++;return s.set(y,_),function(){if(g){if(l)throw new Error(St(6));g=!1,c(),s.delete(y),o=null}}}function b(_){if(!vd(_))throw new Error(St(7));if(typeof _.type>"u")throw new Error(St(8));if(typeof _.type!="string")throw new Error(St(17));if(l)throw new Error(St(9));try{l=!0,i=r(i,_)}finally{l=!1}return(o=s).forEach(y=>{y()}),_}function S(_){if(typeof _!="function")throw new Error(St(10));r=_,b({type:Ua.REPLACE})}function u(){const _=p;return{subscribe(g){if(typeof g!="object"||g===null)throw new Error(St(11));function y(){const v=g;v.next&&v.next(f())}return y(),{unsubscribe:_(y)}},[Fp](){return this}}}return b({type:Ua.INIT}),{dispatch:b,subscribe:p,getState:f,replaceReducer:S,[Fp]:u}}function PT(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Ua.INIT})>"u")throw new Error(St(12));if(typeof n(void 0,{type:Ua.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(St(13))})}function IT(e){const t=Object.keys(e),n={};for(let o=0;o"u")throw a&&a.type,new Error(St(14));c[p]=u,l=l||u!==S}return l=l||r.length!==Object.keys(s).length,l?c:s}}function ja(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function OT(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(St(15))};const s={getState:i.getState,dispatch:(l,...c)=>o(l,...c)},a=e.map(l=>l(s));return o=ja(...a)(i.dispatch),{...i,dispatch:o}}}function MT(e){return vd(e)&&"type"in e&&typeof e.type=="string"}var N0=Symbol.for("immer-nothing"),zp=Symbol.for("immer-draftable"),Qt=Symbol.for("immer-state");function En(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Gi=Object.getPrototypeOf;function Er(e){return!!e&&!!e[Qt]}function Qn(e){var t;return e?B0(e)||Array.isArray(e)||!!e[zp]||!!((t=e.constructor)!=null&&t[zp])||jl(e)||$l(e):!1}var LT=Object.prototype.constructor.toString();function B0(e){if(!e||typeof e!="object")return!1;const t=Gi(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===LT}function ls(e,t){Ul(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function Ul(e){const t=e[Qt];return t?t.type_:Array.isArray(e)?1:jl(e)?2:$l(e)?3:0}function zc(e,t){return Ul(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function D0(e,t,n){const r=Ul(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function AT(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function jl(e){return e instanceof Map}function $l(e){return e instanceof Set}function Mr(e){return e.copy_||e.base_}function Wc(e,t){if(jl(e))return new Map(e);if($l(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&B0(e))return Gi(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Qt];let r=Reflect.ownKeys(n);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=NT),Object.freeze(e),t&&ls(e,(n,r)=>wd(r,!0))),e}function NT(){En(2)}function Fl(e){return Object.isFrozen(e)}var BT={};function Qr(e){const t=BT[e];return t||En(0,e),t}var us;function U0(){return us}function DT(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Wp(e,t){t&&(Qr("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Hc(e){Vc(e),e.drafts_.forEach(UT),e.drafts_=null}function Vc(e){e===us&&(us=e.parent_)}function Hp(e){return us=DT(us,e)}function UT(e){const t=e[Qt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Vp(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Qt].modified_&&(Hc(t),En(4)),Qn(e)&&(e=$a(t,e),t.parent_||Fa(t,e)),t.patches_&&Qr("Patches").generateReplacementPatches_(n[Qt].base_,e,t.patches_,t.inversePatches_)):e=$a(t,n,[]),Hc(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==N0?e:void 0}function $a(e,t,n){if(Fl(t))return t;const r=t[Qt];if(!r)return ls(t,(i,o)=>Gp(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Fa(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,s=!1;r.type_===3&&(o=new Set(i),i.clear(),s=!0),ls(o,(a,l)=>Gp(e,r,i,a,l,n,s)),Fa(e,i,!1),n&&e.patches_&&Qr("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Gp(e,t,n,r,i,o,s){if(Er(i)){const a=o&&t&&t.type_!==3&&!zc(t.assigned_,r)?o.concat(r):void 0,l=$a(e,i,a);if(D0(n,r,l),Er(l))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(Qn(i)&&!Fl(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;$a(e,i),(!t||!t.scope_.parent_)&&Fa(e,i)}}function Fa(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&wd(t,n)}function jT(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:U0(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=bd;n&&(i=[r],o=cs);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=s,a}var bd={get(e,t){if(t===Qt)return e;const n=Mr(e);if(!zc(n,t))return $T(e,n,t);const r=n[t];return e.finalized_||!Qn(r)?r:r===Au(e.base_,t)?(Nu(e),e.copy_[t]=Kc(r,e)):r},has(e,t){return t in Mr(e)},ownKeys(e){return Reflect.ownKeys(Mr(e))},set(e,t,n){const r=j0(Mr(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Au(Mr(e),t),o=i==null?void 0:i[Qt];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(AT(n,i)&&(n!==void 0||zc(e.base_,t)))return!0;Nu(e),Gc(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Au(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Nu(e),Gc(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Mr(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){En(11)},getPrototypeOf(e){return Gi(e.base_)},setPrototypeOf(){En(12)}},cs={};ls(bd,(e,t)=>{cs[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});cs.deleteProperty=function(e,t){return cs.set.call(this,e,t,void 0)};cs.set=function(e,t,n){return bd.set.call(this,e[0],t,n,e[0])};function Au(e,t){const n=e[Qt];return(n?Mr(n):e)[t]}function $T(e,t,n){var i;const r=j0(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function j0(e,t){if(!(t in e))return;let n=Gi(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Gi(n)}}function Gc(e){e.modified_||(e.modified_=!0,e.parent_&&Gc(e.parent_))}function Nu(e){e.copy_||(e.copy_=Wc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var FT=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const s=this;return function(l=o,...c){return s.produce(l,f=>n.call(this,f,...c))}}typeof n!="function"&&En(6),r!==void 0&&typeof r!="function"&&En(7);let i;if(Qn(t)){const o=Hp(this),s=Kc(t,void 0);let a=!0;try{i=n(s),a=!1}finally{a?Hc(o):Vc(o)}return Wp(o,r),Vp(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===N0&&(i=void 0),this.autoFreeze_&&wd(i,!0),r){const o=[],s=[];Qr("Patches").generateReplacementPatches_(t,i,o,s),r(o,s)}return i}else En(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let r,i;return[this.produce(t,n,(s,a)=>{r=s,i=a}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Qn(e)||En(8),Er(e)&&(e=$0(e));const t=Hp(this),n=Kc(e,void 0);return n[Qt].isManual_=!0,Vc(t),n}finishDraft(e,t){const n=e&&e[Qt];(!n||!n.isManual_)&&En(9);const{scope_:r}=n;return Wp(r,t),Vp(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Qr("Patches").applyPatches_;return Er(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Kc(e,t){const n=jl(e)?Qr("MapSet").proxyMap_(e,t):$l(e)?Qr("MapSet").proxySet_(e,t):jT(e,t);return(t?t.scope_:U0()).drafts_.push(n),n}function $0(e){return Er(e)||En(10,e),F0(e)}function F0(e){if(!Qn(e)||Fl(e))return e;const t=e[Qt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Wc(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Wc(e,!0);return ls(n,(r,i)=>{D0(n,r,F0(i))}),t&&(t.finalized_=!1),n}var Xt=new FT,z0=Xt.produce;Xt.produceWithPatches.bind(Xt);Xt.setAutoFreeze.bind(Xt);Xt.setUseStrictShallowCopy.bind(Xt);Xt.applyPatches.bind(Xt);Xt.createDraft.bind(Xt);Xt.finishDraft.bind(Xt);function zT(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function WT(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Kp=e=>Array.isArray(e)?e:[e];function HT(e){const t=Array.isArray(e[0])?e[0]:e;return WT(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function VT(e,t){const n=[],{length:r}=e;for(let i=0;i{n=Hs(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function qT(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e;return(...i)=>{let o=0,s=0,a,l={},c=i.pop();typeof c=="object"&&(l=c,c=i.pop()),zT(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const f={...n,...l},{memoize:p,memoizeOptions:b=[],argsMemoize:S=W0,argsMemoizeOptions:u=[],devModeChecks:m={}}=f,_=Kp(b),g=Kp(u),y=HT(i),h=p(function(){return o++,c.apply(null,arguments)},..._),v=S(function(){s++;const w=VT(y,arguments);return a=h.apply(null,w),a},...g);return Object.assign(v,{resultFunc:c,memoizedResultFunc:h,dependencies:y,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:p,argsMemoize:S})}}function H0(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var QT=H0(),XT=H0,JT=(...e)=>{const t=qT(...e),n=Object.assign((...r)=>{const i=t(...r),o=(s,...a)=>i(Er(s)?$0(s):s,...a);return Object.assign(o,i),o},{withTypes:()=>n});return n};JT(W0);var ZT=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ja:ja.apply(null,arguments)};function Ki(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error($t(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>MT(r)&&r.type===e,n}var V0=class _o extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,_o.prototype)}static get[Symbol.species](){return _o}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new _o(...t[0].concat(this)):new _o(...t.concat(this))}};function qp(e){return Qn(e)?z0(e,()=>{}):e}function Qp(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error($t(10));const r=n.insert(t,e);return e.set(t,r),r}function eR(e){return typeof e=="boolean"}var tR=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let s=new V0;return n&&(eR(n)?s.push(QT):s.push(XT(n.extraArgument))),s},nR="RTK_autoBatch",G0=e=>t=>{setTimeout(t,e)},rR=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:G0(10),iR=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,s=!1;const a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?rR:e.type==="callback"?e.queueNotification:G0(e.timeout),c=()=>{s=!1,o&&(o=!1,a.forEach(f=>f()))};return Object.assign({},r,{subscribe(f){const p=()=>i&&f(),b=r.subscribe(p);return a.add(f),()=>{b(),a.delete(f)}},dispatch(f){var p;try{return i=!((p=f==null?void 0:f.meta)!=null&&p[nR]),o=!i,o&&(s||(s=!0,l(c))),r.dispatch(f)}finally{i=!0}}})},oR=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new V0(e);return r&&i.push(iR(typeof r=="object"?r:void 0)),i},sR=!0;function aR(e){const t=tR(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(vd(n))a=IT(n);else throw new Error($t(1));let l;typeof r=="function"?l=r(t):l=t();let c=ja;i&&(c=ZT({trace:!sR,...typeof i=="object"&&i}));const f=OT(...l),p=oR(f);let b=typeof s=="function"?s(p):p();const S=c(...b);return A0(a,o,S)}function K0(e){const t={},n=[];let r;const i={addCase(o,s){const a=typeof o=="string"?o:o.type;if(!a)throw new Error($t(28));if(a in t)throw new Error($t(29));return t[a]=s,i},addMatcher(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function lR(e){return typeof e=="function"}function uR(e,t){let[n,r,i]=K0(t),o;if(lR(e))o=()=>qp(e());else{const a=qp(e);o=()=>a}function s(a=o(),l){let c=[n[l.type],...r.filter(({matcher:f})=>f(l)).map(({reducer:f})=>f)];return c.filter(f=>!!f).length===0&&(c=[i]),c.reduce((f,p)=>{if(p)if(Er(f)){const S=p(f,l);return S===void 0?f:S}else{if(Qn(f))return z0(f,b=>p(b,l));{const b=p(f,l);if(b===void 0){if(f===null)return f;throw new Error($t(9))}return b}}return f},a)}return s.getInitialState=o,s}var cR="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",fR=(e=21)=>{let t="",n=e;for(;n--;)t+=cR[Math.random()*64|0];return t},dR=Symbol.for("rtk-slice-createasyncthunk");function hR(e,t){return`${e}/${t}`}function pR({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[dR];return function(i){const{name:o,reducerPath:s=o}=i;if(!o)throw new Error($t(11));typeof process<"u";const a=(typeof i.reducers=="function"?i.reducers(yR()):i.reducers)||{},l=Object.keys(a),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(h,v){const x=typeof h=="string"?h:h.type;if(!x)throw new Error($t(12));if(x in c.sliceCaseReducersByType)throw new Error($t(13));return c.sliceCaseReducersByType[x]=v,f},addMatcher(h,v){return c.sliceMatchers.push({matcher:h,reducer:v}),f},exposeAction(h,v){return c.actionCreators[h]=v,f},exposeCaseReducer(h,v){return c.sliceCaseReducersByName[h]=v,f}};l.forEach(h=>{const v=a[h],x={reducerName:h,type:hR(o,h),createNotation:typeof i.reducers=="function"};vR(v)?bR(x,v,f,t):gR(x,v,f)});function p(){const[h={},v=[],x=void 0]=typeof i.extraReducers=="function"?K0(i.extraReducers):[i.extraReducers],w={...h,...c.sliceCaseReducersByType};return uR(i.initialState,k=>{for(let R in w)k.addCase(R,w[R]);for(let R of c.sliceMatchers)k.addMatcher(R.matcher,R.reducer);for(let R of v)k.addMatcher(R.matcher,R.reducer);x&&k.addDefaultCase(x)})}const b=h=>h,S=new Map;let u;function m(h,v){return u||(u=p()),u(h,v)}function _(){return u||(u=p()),u.getInitialState()}function g(h,v=!1){function x(k){let R=k[h];return typeof R>"u"&&v&&(R=_()),R}function w(k=b){const R=Qp(S,v,{insert:()=>new WeakMap});return Qp(R,k,{insert:()=>{const M={};for(const[B,$]of Object.entries(i.selectors??{}))M[B]=mR($,k,_,v);return M}})}return{reducerPath:h,getSelectors:w,get selectors(){return w(x)},selectSlice:x}}const y={name:o,reducer:m,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:_,...g(s),injectInto(h,{reducerPath:v,...x}={}){const w=v??s;return h.inject({reducerPath:w,reducer:m},x),{...y,...g(w,!0)}}};return y}}function mR(e,t,n,r){function i(o,...s){let a=t(o);return typeof a>"u"&&r&&(a=n()),e(a,...s)}return i.unwrapped=e,i}var Y0=pR();function yR(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function gR({type:e,reducerName:t,createNotation:n},r,i){let o,s;if("reducer"in r){if(n&&!wR(r))throw new Error($t(17));o=r.reducer,s=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?Ki(e,s):Ki(e))}function vR(e){return e._reducerDefinitionType==="asyncThunk"}function wR(e){return e._reducerDefinitionType==="reducerWithPrepare"}function bR({type:e,reducerName:t},n,r,i){if(!i)throw new Error($t(18));const{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:c,options:f}=n,p=i(e,o,f);r.exposeAction(t,p),s&&r.addCase(p.fulfilled,s),a&&r.addCase(p.pending,a),l&&r.addCase(p.rejected,l),c&&r.addMatcher(p.settled,c),r.exposeCaseReducer(t,{fulfilled:s||Vs,pending:a||Vs,rejected:l||Vs,settled:c||Vs})}function Vs(){}var SR=(e,t)=>{if(typeof e!="function")throw new Error($t(32))},Sd="listenerMiddleware",ER=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=Ki(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error($t(21));return SR(o),{predicate:i,type:t,effect:o}},_R=Object.assign(e=>{const{type:t,predicate:n,effect:r}=ER(e);return{id:fR(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error($t(22))}}},{withTypes:()=>_R}),xR=Object.assign(Ki(`${Sd}/add`),{withTypes:()=>xR});Ki(`${Sd}/removeAll`);var kR=Object.assign(Ki(`${Sd}/remove`),{withTypes:()=>kR});function $t(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const Xp={anchorOrigin:{horizontal:"center",vertical:"top"},autoHideDuration:6e3,message:"",open:!1},Yc=Y0({name:"snackbar",initialState:Xp,reducers:{resetSnackbar:()=>Xp,setSnackbar:(e,t)=>{Object.assign(e,t.payload)}}}),Jp={email:"",id:""},qc=Y0({name:"user",initialState:Jp,reducers:{resetUser:()=>Jp,setUser:(e,t)=>{const n=t.payload;Object.assign(e,n)}}}),za={...Yc.actions,...qc.actions};za.resetSnackbar,za.resetUser;const TR=aR({reducer:{[Yc.name]:Yc.reducer,[qc.name]:qc.reducer},devTools:S2});var Ed={},RR=x0;Object.defineProperty(Ed,"__esModule",{value:!0});var q0=Ed.default=void 0,CR=RR(T0()),PR=oe;q0=Ed.default=(0,CR.default)((0,PR.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function IR(e){return typeof e=="string"}function OR(e,t,n){return e===void 0||IR(e)?t:X({},t,{ownerState:X({},t.ownerState,n)})}function Qc(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function MR(e,t,n){return typeof e=="function"?e(t,n):e}function Zp(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function LR(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const S=Qe(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),u=X({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),m=X({},n,i,r);return S.length>0&&(m.className=S),Object.keys(u).length>0&&(m.style=u),{props:m,internalRef:void 0}}const s=Qc(X({},i,r)),a=Zp(r),l=Zp(i),c=t(s),f=Qe(c==null?void 0:c.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),p=X({},c==null?void 0:c.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),b=X({},c,n,l,a);return f.length>0&&(b.className=f),Object.keys(p).length>0&&(b.style=p),{props:b,internalRef:c.ref}}const AR=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function NR(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,s=Be(e,AR),a=o?{}:MR(r,i),{props:l,internalRef:c}=LR(X({},s,{externalSlotProps:a})),f=Gr(c,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return OR(n,X({},l,{ref:f}),i)}function em(e){return e.substring(2).toLowerCase()}function BR(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const f=Gr(t.ref,a),p=cr(u=>{const m=c.current;c.current=!1;const _=Lo(a.current);if(!l.current||!a.current||"clientX"in u&&BR(u,_))return;if(s.current){s.current=!1;return}let g;u.composedPath?g=u.composedPath().indexOf(a.current)>-1:g=!_.documentElement.contains(u.target)||a.current.contains(u.target),!g&&(n||!m)&&i(u)}),b=u=>m=>{c.current=!0;const _=t.props[u];_&&_(m)},S={ref:f};return o!==!1&&(S[o]=b(o)),A.useEffect(()=>{if(o!==!1){const u=em(o),m=Lo(a.current),_=()=>{s.current=!0};return m.addEventListener(u,p),m.addEventListener("touchmove",_),()=>{m.removeEventListener(u,p),m.removeEventListener("touchmove",_)}}},[p,o]),r!==!1&&(S[r]=b(r)),A.useEffect(()=>{if(r!==!1){const u=em(r),m=Lo(a.current);return m.addEventListener(u,p),()=>{m.removeEventListener(u,p)}}},[p,r]),oe.jsx(A.Fragment,{children:A.cloneElement(t,S)})}function UR(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:o}=e,s=A.useRef();A.useEffect(()=>{if(!i)return;function g(y){y.defaultPrevented||(y.key==="Escape"||y.key==="Esc")&&(r==null||r(y,"escapeKeyDown"))}return document.addEventListener("keydown",g),()=>{document.removeEventListener("keydown",g)}},[i,r]);const a=cr((g,y)=>{r==null||r(g,y)}),l=cr(g=>{!r||g==null||(clearTimeout(s.current),s.current=setTimeout(()=>{a(null,"timeout")},g))});A.useEffect(()=>(i&&l(t),()=>{clearTimeout(s.current)}),[i,t,l]);const c=g=>{r==null||r(g,"clickaway")},f=()=>{clearTimeout(s.current)},p=A.useCallback(()=>{t!=null&&l(o??t*.5)},[t,o,l]),b=g=>y=>{const h=g.onBlur;h==null||h(y),p()},S=g=>y=>{const h=g.onFocus;h==null||h(y),f()},u=g=>y=>{const h=g.onMouseEnter;h==null||h(y),f()},m=g=>y=>{const h=g.onMouseLeave;h==null||h(y),p()};return A.useEffect(()=>{if(!n&&i)return window.addEventListener("focus",p),window.addEventListener("blur",f),()=>{window.removeEventListener("focus",p),window.removeEventListener("blur",f)}},[n,p,i]),{getRootProps:(g={})=>{const y=X({},Qc(e),Qc(g));return X({role:"presentation"},g,y,{onBlur:b(y),onFocus:S(y),onMouseEnter:u(y),onMouseLeave:m(y)})},onClickAway:c}}const jR=e=>e.scrollTop;function tm(e,t){var n,r;const{timeout:i,easing:o,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:s.transitionDelay}}const $R=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Xc(e){return`scale(${e}, ${e**2})`}const FR={entering:{opacity:1,transform:Xc(1)},entered:{opacity:1,transform:"none"}},Bu=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Q0=A.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:s,in:a,onEnter:l,onEntered:c,onEntering:f,onExit:p,onExited:b,onExiting:S,style:u,timeout:m="auto",TransitionComponent:_=tk}=t,g=Be(t,$R),y=A.useRef(),h=A.useRef(),v=P0(),x=A.useRef(null),w=Gr(x,o.ref,n),k=W=>Y=>{if(W){const se=x.current;Y===void 0?W(se):W(se,Y)}},R=k(f),M=k((W,Y)=>{jR(W);const{duration:se,delay:V,easing:G}=tm({style:u,timeout:m,easing:s},{mode:"enter"});let te;m==="auto"?(te=v.transitions.getAutoHeightDuration(W.clientHeight),h.current=te):te=se,W.style.transition=[v.transitions.create("opacity",{duration:te,delay:V}),v.transitions.create("transform",{duration:Bu?te:te*.666,delay:V,easing:G})].join(","),l&&l(W,Y)}),B=k(c),$=k(S),z=k(W=>{const{duration:Y,delay:se,easing:V}=tm({style:u,timeout:m,easing:s},{mode:"exit"});let G;m==="auto"?(G=v.transitions.getAutoHeightDuration(W.clientHeight),h.current=G):G=Y,W.style.transition=[v.transitions.create("opacity",{duration:G,delay:se}),v.transitions.create("transform",{duration:Bu?G:G*.666,delay:Bu?se:se||G*.333,easing:V})].join(","),W.style.opacity=0,W.style.transform=Xc(.75),p&&p(W)}),ee=k(b),F=W=>{m==="auto"&&(y.current=setTimeout(W,h.current||0)),r&&r(x.current,W)};return A.useEffect(()=>()=>{clearTimeout(y.current)},[]),oe.jsx(_,X({appear:i,in:a,nodeRef:x,onEnter:M,onEntered:B,onEntering:R,onExit:z,onExited:ee,onExiting:$,addEndListener:F,timeout:m==="auto"?null:m},g,{children:(W,Y)=>A.cloneElement(o,X({style:X({opacity:0,transform:Xc(.75),visibility:W==="exited"&&!a?"hidden":void 0},FR[W],u,o.props.style),ref:w},Y))}))});Q0.muiSupportAuto=!0;const zR=Q0;function WR(e){return tn("MuiSnackbarContent",e)}nn("MuiSnackbarContent",["root","message","action"]);const HR=["action","className","message","role"],VR=e=>{const{classes:t}=e;return pn({root:["root"],action:["action"],message:["message"]},WR,t)},GR=wt(I0,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=RE(e.palette.background.default,t);return X({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),KR=wt("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),YR=wt("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),qR=A.forwardRef(function(t,n){const r=zt({props:t,name:"MuiSnackbarContent"}),{action:i,className:o,message:s,role:a="alert"}=r,l=Be(r,HR),c=r,f=VR(c);return oe.jsxs(GR,X({role:a,square:!0,elevation:6,className:Qe(f.root,o),ownerState:c,ref:n},l,{children:[oe.jsx(KR,{className:f.message,ownerState:c,children:s}),i?oe.jsx(YR,{className:f.action,ownerState:c,children:i}):null]}))}),QR=qR;function XR(e){return tn("MuiSnackbar",e)}nn("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const JR=["onEnter","onExited"],ZR=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],eC=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Te(n.vertical)}${Te(n.horizontal)}`]};return pn(r,XR,t)},nm=wt("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Te(n.anchorOrigin.vertical)}${Te(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return X({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:X({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),tC=A.forwardRef(function(t,n){const r=zt({props:t,name:"MuiSnackbar"}),i=P0(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:a,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:f,className:p,ClickAwayListenerProps:b,ContentProps:S,disableWindowBlurListener:u=!1,message:m,open:_,TransitionComponent:g=zR,transitionDuration:y=o,TransitionProps:{onEnter:h,onExited:v}={}}=r,x=Be(r.TransitionProps,JR),w=Be(r,ZR),k=X({},r,{anchorOrigin:{vertical:a,horizontal:l},autoHideDuration:c,disableWindowBlurListener:u,TransitionComponent:g,transitionDuration:y}),R=eC(k),{getRootProps:M,onClickAway:B}=UR(X({},k)),[$,z]=A.useState(!0),ee=NR({elementType:nm,getSlotProps:M,externalForwardedProps:w,ownerState:k,additionalProps:{ref:n},className:[R.root,p]}),F=Y=>{z(!0),v&&v(Y)},W=(Y,se)=>{z(!1),h&&h(Y,se)};return!_&&$?null:oe.jsx(DR,X({onClickAway:B},b,{children:oe.jsx(nm,X({},ee,{children:oe.jsx(g,X({appear:!0,in:_,timeout:y,direction:a==="top"?"down":"up",onEnter:W,onExited:F},x,{children:f||oe.jsx(QR,X({message:m,action:s},S))}))}))}))}),nC=tC;var X0={},J0={exports:{}};/*! For license information please see cbor.js.LICENSE.txt */(function(e,t){(function(n,r){e.exports=r()})(dt,function(){return(()=>{var n={742:(s,a)=>{a.byteLength=function(_){var g=u(_),y=g[0],h=g[1];return 3*(y+h)/4-h},a.toByteArray=function(_){var g,y,h=u(_),v=h[0],x=h[1],w=new f(function(M,B,$){return 3*(B+$)/4-$}(0,v,x)),k=0,R=x>0?v-4:v;for(y=0;y>16&255,w[k++]=g>>8&255,w[k++]=255&g;return x===2&&(g=c[_.charCodeAt(y)]<<2|c[_.charCodeAt(y+1)]>>4,w[k++]=255&g),x===1&&(g=c[_.charCodeAt(y)]<<10|c[_.charCodeAt(y+1)]<<4|c[_.charCodeAt(y+2)]>>2,w[k++]=g>>8&255,w[k++]=255&g),w},a.fromByteArray=function(_){for(var g,y=_.length,h=y%3,v=[],x=16383,w=0,k=y-h;wk?k:w+x));return h===1?(g=_[y-1],v.push(l[g>>2]+l[g<<4&63]+"==")):h===2&&(g=(_[y-2]<<8)+_[y-1],v.push(l[g>>10]+l[g>>4&63]+l[g<<2&63]+"=")),v.join("")};for(var l=[],c=[],f=typeof Uint8Array<"u"?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=0,S=p.length;b0)throw new Error("Invalid string. Length must be a multiple of 4");var y=_.indexOf("=");return y===-1&&(y=g),[y,y===g?0:4-y%4]}function m(_,g,y){for(var h,v,x=[],w=g;w>18&63]+l[v>>12&63]+l[v>>6&63]+l[63&v]);return x.join("")}c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},764:(s,a,l)=>{const c=l(742),f=l(645),p=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;a.Buffer=u,a.SlowBuffer=function(d){return+d!=d&&(d=0),u.alloc(+d)},a.INSPECT_MAX_BYTES=50;const b=2147483647;function S(d){if(d>b)throw new RangeError('The value "'+d+'" is invalid for option "size"');const E=new Uint8Array(d);return Object.setPrototypeOf(E,u.prototype),E}function u(d,E,T){if(typeof d=="number"){if(typeof E=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(d)}return m(d,E,T)}function m(d,E,T){if(typeof d=="string")return function(N,J){if(typeof J=="string"&&J!==""||(J="utf8"),!u.isEncoding(J))throw new TypeError("Unknown encoding: "+J);const ge=0|x(N,J);let Ee=S(ge);const Ve=Ee.write(N,J);return Ve!==ge&&(Ee=Ee.slice(0,Ve)),Ee}(d,E);if(ArrayBuffer.isView(d))return function(N){if(De(N,Uint8Array)){const J=new Uint8Array(N);return h(J.buffer,J.byteOffset,J.byteLength)}return y(N)}(d);if(d==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof d);if(De(d,ArrayBuffer)||d&&De(d.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(De(d,SharedArrayBuffer)||d&&De(d.buffer,SharedArrayBuffer)))return h(d,E,T);if(typeof d=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const L=d.valueOf&&d.valueOf();if(L!=null&&L!==d)return u.from(L,E,T);const U=function(N){if(u.isBuffer(N)){const J=0|v(N.length),ge=S(J);return ge.length===0||N.copy(ge,0,0,J),ge}return N.length!==void 0?typeof N.length!="number"||Re(N.length)?S(0):y(N):N.type==="Buffer"&&Array.isArray(N.data)?y(N.data):void 0}(d);if(U)return U;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof d[Symbol.toPrimitive]=="function")return u.from(d[Symbol.toPrimitive]("string"),E,T);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof d)}function _(d){if(typeof d!="number")throw new TypeError('"size" argument must be of type number');if(d<0)throw new RangeError('The value "'+d+'" is invalid for option "size"')}function g(d){return _(d),S(d<0?0:0|v(d))}function y(d){const E=d.length<0?0:0|v(d.length),T=S(E);for(let L=0;L=b)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b.toString(16)+" bytes");return 0|d}function x(d,E){if(u.isBuffer(d))return d.length;if(ArrayBuffer.isView(d)||De(d,ArrayBuffer))return d.byteLength;if(typeof d!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof d);const T=d.length,L=arguments.length>2&&arguments[2]===!0;if(!L&&T===0)return 0;let U=!1;for(;;)switch(E){case"ascii":case"latin1":case"binary":return T;case"utf8":case"utf-8":return Ie(d).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*T;case"hex":return T>>>1;case"base64":return Ne(d).length;default:if(U)return L?-1:Ie(d).length;E=(""+E).toLowerCase(),U=!0}}function w(d,E,T){let L=!1;if((E===void 0||E<0)&&(E=0),E>this.length||((T===void 0||T>this.length)&&(T=this.length),T<=0)||(T>>>=0)<=(E>>>=0))return"";for(d||(d="utf8");;)switch(d){case"hex":return te(this,E,T);case"utf8":case"utf-8":return Y(this,E,T);case"ascii":return V(this,E,T);case"latin1":case"binary":return G(this,E,T);case"base64":return W(this,E,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,E,T);default:if(L)throw new TypeError("Unknown encoding: "+d);d=(d+"").toLowerCase(),L=!0}}function k(d,E,T){const L=d[E];d[E]=d[T],d[T]=L}function R(d,E,T,L,U){if(d.length===0)return-1;if(typeof T=="string"?(L=T,T=0):T>2147483647?T=2147483647:T<-2147483648&&(T=-2147483648),Re(T=+T)&&(T=U?0:d.length-1),T<0&&(T=d.length+T),T>=d.length){if(U)return-1;T=d.length-1}else if(T<0){if(!U)return-1;T=0}if(typeof E=="string"&&(E=u.from(E,L)),u.isBuffer(E))return E.length===0?-1:M(d,E,T,L,U);if(typeof E=="number")return E&=255,typeof Uint8Array.prototype.indexOf=="function"?U?Uint8Array.prototype.indexOf.call(d,E,T):Uint8Array.prototype.lastIndexOf.call(d,E,T):M(d,[E],T,L,U);throw new TypeError("val must be string, number or Buffer")}function M(d,E,T,L,U){let N,J=1,ge=d.length,Ee=E.length;if(L!==void 0&&((L=String(L).toLowerCase())==="ucs2"||L==="ucs-2"||L==="utf16le"||L==="utf-16le")){if(d.length<2||E.length<2)return-1;J=2,ge/=2,Ee/=2,T/=2}function Ve(Ce,ze){return J===1?Ce[ze]:Ce.readUInt16BE(ze*J)}if(U){let Ce=-1;for(N=T;Nge&&(T=ge-Ee),N=T;N>=0;N--){let Ce=!0;for(let ze=0;zeU&&(L=U):L=U;const N=E.length;let J;for(L>N/2&&(L=N/2),J=0;J>8,Ee=J%256,Ve.push(Ee),Ve.push(ge);return Ve}(E,d.length-T),d,T,L)}function W(d,E,T){return E===0&&T===d.length?c.fromByteArray(d):c.fromByteArray(d.slice(E,T))}function Y(d,E,T){T=Math.min(d.length,T);const L=[];let U=E;for(;U239?4:N>223?3:N>191?2:1;if(U+ge<=T){let Ee,Ve,Ce,ze;switch(ge){case 1:N<128&&(J=N);break;case 2:Ee=d[U+1],(192&Ee)==128&&(ze=(31&N)<<6|63&Ee,ze>127&&(J=ze));break;case 3:Ee=d[U+1],Ve=d[U+2],(192&Ee)==128&&(192&Ve)==128&&(ze=(15&N)<<12|(63&Ee)<<6|63&Ve,ze>2047&&(ze<55296||ze>57343)&&(J=ze));break;case 4:Ee=d[U+1],Ve=d[U+2],Ce=d[U+3],(192&Ee)==128&&(192&Ve)==128&&(192&Ce)==128&&(ze=(15&N)<<18|(63&Ee)<<12|(63&Ve)<<6|63&Ce,ze>65535&&ze<1114112&&(J=ze))}}J===null?(J=65533,ge=1):J>65535&&(J-=65536,L.push(J>>>10&1023|55296),J=56320|1023&J),L.push(J),U+=ge}return function(N){const J=N.length;if(J<=se)return String.fromCharCode.apply(String,N);let ge="",Ee=0;for(;Ee"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(d,E,T){return m(d,E,T)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(d,E,T){return function(L,U,N){return _(L),L<=0?S(L):U!==void 0?typeof N=="string"?S(L).fill(U,N):S(L).fill(U):S(L)}(d,E,T)},u.allocUnsafe=function(d){return g(d)},u.allocUnsafeSlow=function(d){return g(d)},u.isBuffer=function(d){return d!=null&&d._isBuffer===!0&&d!==u.prototype},u.compare=function(d,E){if(De(d,Uint8Array)&&(d=u.from(d,d.offset,d.byteLength)),De(E,Uint8Array)&&(E=u.from(E,E.offset,E.byteLength)),!u.isBuffer(d)||!u.isBuffer(E))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(d===E)return 0;let T=d.length,L=E.length;for(let U=0,N=Math.min(T,L);UL.length?(u.isBuffer(N)||(N=u.from(N)),N.copy(L,U)):Uint8Array.prototype.set.call(L,N,U);else{if(!u.isBuffer(N))throw new TypeError('"list" argument must be an Array of Buffers');N.copy(L,U)}U+=N.length}return L},u.byteLength=x,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const d=this.length;if(d%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let E=0;EE&&(d+=" ... "),""},p&&(u.prototype[p]=u.prototype.inspect),u.prototype.compare=function(d,E,T,L,U){if(De(d,Uint8Array)&&(d=u.from(d,d.offset,d.byteLength)),!u.isBuffer(d))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof d);if(E===void 0&&(E=0),T===void 0&&(T=d?d.length:0),L===void 0&&(L=0),U===void 0&&(U=this.length),E<0||T>d.length||L<0||U>this.length)throw new RangeError("out of range index");if(L>=U&&E>=T)return 0;if(L>=U)return-1;if(E>=T)return 1;if(this===d)return 0;let N=(U>>>=0)-(L>>>=0),J=(T>>>=0)-(E>>>=0);const ge=Math.min(N,J),Ee=this.slice(L,U),Ve=d.slice(E,T);for(let Ce=0;Ce>>=0,isFinite(T)?(T>>>=0,L===void 0&&(L="utf8")):(L=T,T=void 0)}const U=this.length-E;if((T===void 0||T>U)&&(T=U),d.length>0&&(T<0||E<0)||E>this.length)throw new RangeError("Attempt to write outside buffer bounds");L||(L="utf8");let N=!1;for(;;)switch(L){case"hex":return B(this,d,E,T);case"utf8":case"utf-8":return $(this,d,E,T);case"ascii":case"latin1":case"binary":return z(this,d,E,T);case"base64":return ee(this,d,E,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,d,E,T);default:if(N)throw new TypeError("Unknown encoding: "+L);L=(""+L).toLowerCase(),N=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const se=4096;function V(d,E,T){let L="";T=Math.min(d.length,T);for(let U=E;UL)&&(T=L);let U="";for(let N=E;NT)throw new RangeError("Trying to access beyond buffer length")}function D(d,E,T,L,U,N){if(!u.isBuffer(d))throw new TypeError('"buffer" argument must be a Buffer instance');if(E>U||Ed.length)throw new RangeError("Index out of range")}function K(d,E,T,L,U){O(E,L,U,d,T,7);let N=Number(E&BigInt(4294967295));d[T++]=N,N>>=8,d[T++]=N,N>>=8,d[T++]=N,N>>=8,d[T++]=N;let J=Number(E>>BigInt(32)&BigInt(4294967295));return d[T++]=J,J>>=8,d[T++]=J,J>>=8,d[T++]=J,J>>=8,d[T++]=J,T}function Q(d,E,T,L,U){O(E,L,U,d,T,7);let N=Number(E&BigInt(4294967295));d[T+7]=N,N>>=8,d[T+6]=N,N>>=8,d[T+5]=N,N>>=8,d[T+4]=N;let J=Number(E>>BigInt(32)&BigInt(4294967295));return d[T+3]=J,J>>=8,d[T+2]=J,J>>=8,d[T+1]=J,J>>=8,d[T]=J,T+8}function ne(d,E,T,L,U,N){if(T+L>d.length)throw new RangeError("Index out of range");if(T<0)throw new RangeError("Index out of range")}function ie(d,E,T,L,U){return E=+E,T>>>=0,U||ne(d,0,T,4),f.write(d,E,T,L,23,4),T+4}function pe(d,E,T,L,U){return E=+E,T>>>=0,U||ne(d,0,T,8),f.write(d,E,T,L,52,8),T+8}u.prototype.slice=function(d,E){const T=this.length;(d=~~d)<0?(d+=T)<0&&(d=0):d>T&&(d=T),(E=E===void 0?T:~~E)<0?(E+=T)<0&&(E=0):E>T&&(E=T),E>>=0,E>>>=0,T||C(d,E,this.length);let L=this[d],U=1,N=0;for(;++N>>=0,E>>>=0,T||C(d,E,this.length);let L=this[d+--E],U=1;for(;E>0&&(U*=256);)L+=this[d+--E]*U;return L},u.prototype.readUint8=u.prototype.readUInt8=function(d,E){return d>>>=0,E||C(d,1,this.length),this[d]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(d,E){return d>>>=0,E||C(d,2,this.length),this[d]|this[d+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(d,E){return d>>>=0,E||C(d,2,this.length),this[d]<<8|this[d+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(d,E){return d>>>=0,E||C(d,4,this.length),(this[d]|this[d+1]<<8|this[d+2]<<16)+16777216*this[d+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(d,E){return d>>>=0,E||C(d,4,this.length),16777216*this[d]+(this[d+1]<<16|this[d+2]<<8|this[d+3])},u.prototype.readBigUInt64LE=ot(function(d){I(d>>>=0,"offset");const E=this[d],T=this[d+7];E!==void 0&&T!==void 0||Z(d,this.length-8);const L=E+256*this[++d]+65536*this[++d]+this[++d]*2**24,U=this[++d]+256*this[++d]+65536*this[++d]+T*2**24;return BigInt(L)+(BigInt(U)<>>=0,"offset");const E=this[d],T=this[d+7];E!==void 0&&T!==void 0||Z(d,this.length-8);const L=E*2**24+65536*this[++d]+256*this[++d]+this[++d],U=this[++d]*2**24+65536*this[++d]+256*this[++d]+T;return(BigInt(L)<>>=0,E>>>=0,T||C(d,E,this.length);let L=this[d],U=1,N=0;for(;++N=U&&(L-=Math.pow(2,8*E)),L},u.prototype.readIntBE=function(d,E,T){d>>>=0,E>>>=0,T||C(d,E,this.length);let L=E,U=1,N=this[d+--L];for(;L>0&&(U*=256);)N+=this[d+--L]*U;return U*=128,N>=U&&(N-=Math.pow(2,8*E)),N},u.prototype.readInt8=function(d,E){return d>>>=0,E||C(d,1,this.length),128&this[d]?-1*(255-this[d]+1):this[d]},u.prototype.readInt16LE=function(d,E){d>>>=0,E||C(d,2,this.length);const T=this[d]|this[d+1]<<8;return 32768&T?4294901760|T:T},u.prototype.readInt16BE=function(d,E){d>>>=0,E||C(d,2,this.length);const T=this[d+1]|this[d]<<8;return 32768&T?4294901760|T:T},u.prototype.readInt32LE=function(d,E){return d>>>=0,E||C(d,4,this.length),this[d]|this[d+1]<<8|this[d+2]<<16|this[d+3]<<24},u.prototype.readInt32BE=function(d,E){return d>>>=0,E||C(d,4,this.length),this[d]<<24|this[d+1]<<16|this[d+2]<<8|this[d+3]},u.prototype.readBigInt64LE=ot(function(d){I(d>>>=0,"offset");const E=this[d],T=this[d+7];E!==void 0&&T!==void 0||Z(d,this.length-8);const L=this[d+4]+256*this[d+5]+65536*this[d+6]+(T<<24);return(BigInt(L)<>>=0,"offset");const E=this[d],T=this[d+7];E!==void 0&&T!==void 0||Z(d,this.length-8);const L=(E<<24)+65536*this[++d]+256*this[++d]+this[++d];return(BigInt(L)<>>=0,E||C(d,4,this.length),f.read(this,d,!0,23,4)},u.prototype.readFloatBE=function(d,E){return d>>>=0,E||C(d,4,this.length),f.read(this,d,!1,23,4)},u.prototype.readDoubleLE=function(d,E){return d>>>=0,E||C(d,8,this.length),f.read(this,d,!0,52,8)},u.prototype.readDoubleBE=function(d,E){return d>>>=0,E||C(d,8,this.length),f.read(this,d,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(d,E,T,L){d=+d,E>>>=0,T>>>=0,L||D(this,d,E,T,Math.pow(2,8*T)-1,0);let U=1,N=0;for(this[E]=255&d;++N>>=0,T>>>=0,L||D(this,d,E,T,Math.pow(2,8*T)-1,0);let U=T-1,N=1;for(this[E+U]=255&d;--U>=0&&(N*=256);)this[E+U]=d/N&255;return E+T},u.prototype.writeUint8=u.prototype.writeUInt8=function(d,E,T){return d=+d,E>>>=0,T||D(this,d,E,1,255,0),this[E]=255&d,E+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(d,E,T){return d=+d,E>>>=0,T||D(this,d,E,2,65535,0),this[E]=255&d,this[E+1]=d>>>8,E+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(d,E,T){return d=+d,E>>>=0,T||D(this,d,E,2,65535,0),this[E]=d>>>8,this[E+1]=255&d,E+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(d,E,T){return d=+d,E>>>=0,T||D(this,d,E,4,4294967295,0),this[E+3]=d>>>24,this[E+2]=d>>>16,this[E+1]=d>>>8,this[E]=255&d,E+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(d,E,T){return d=+d,E>>>=0,T||D(this,d,E,4,4294967295,0),this[E]=d>>>24,this[E+1]=d>>>16,this[E+2]=d>>>8,this[E+3]=255&d,E+4},u.prototype.writeBigUInt64LE=ot(function(d,E=0){return K(this,d,E,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=ot(function(d,E=0){return Q(this,d,E,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(d,E,T,L){if(d=+d,E>>>=0,!L){const ge=Math.pow(2,8*T-1);D(this,d,E,T,ge-1,-ge)}let U=0,N=1,J=0;for(this[E]=255&d;++U>0)-J&255;return E+T},u.prototype.writeIntBE=function(d,E,T,L){if(d=+d,E>>>=0,!L){const ge=Math.pow(2,8*T-1);D(this,d,E,T,ge-1,-ge)}let U=T-1,N=1,J=0;for(this[E+U]=255&d;--U>=0&&(N*=256);)d<0&&J===0&&this[E+U+1]!==0&&(J=1),this[E+U]=(d/N>>0)-J&255;return E+T},u.prototype.writeInt8=function(d,E,T){return d=+d,E>>>=0,T||D(this,d,E,1,127,-128),d<0&&(d=255+d+1),this[E]=255&d,E+1},u.prototype.writeInt16LE=function(d,E,T){return d=+d,E>>>=0,T||D(this,d,E,2,32767,-32768),this[E]=255&d,this[E+1]=d>>>8,E+2},u.prototype.writeInt16BE=function(d,E,T){return d=+d,E>>>=0,T||D(this,d,E,2,32767,-32768),this[E]=d>>>8,this[E+1]=255&d,E+2},u.prototype.writeInt32LE=function(d,E,T){return d=+d,E>>>=0,T||D(this,d,E,4,2147483647,-2147483648),this[E]=255&d,this[E+1]=d>>>8,this[E+2]=d>>>16,this[E+3]=d>>>24,E+4},u.prototype.writeInt32BE=function(d,E,T){return d=+d,E>>>=0,T||D(this,d,E,4,2147483647,-2147483648),d<0&&(d=4294967295+d+1),this[E]=d>>>24,this[E+1]=d>>>16,this[E+2]=d>>>8,this[E+3]=255&d,E+4},u.prototype.writeBigInt64LE=ot(function(d,E=0){return K(this,d,E,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=ot(function(d,E=0){return Q(this,d,E,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeFloatLE=function(d,E,T){return ie(this,d,E,!0,T)},u.prototype.writeFloatBE=function(d,E,T){return ie(this,d,E,!1,T)},u.prototype.writeDoubleLE=function(d,E,T){return pe(this,d,E,!0,T)},u.prototype.writeDoubleBE=function(d,E,T){return pe(this,d,E,!1,T)},u.prototype.copy=function(d,E,T,L){if(!u.isBuffer(d))throw new TypeError("argument should be a Buffer");if(T||(T=0),L||L===0||(L=this.length),E>=d.length&&(E=d.length),E||(E=0),L>0&&L=this.length)throw new RangeError("Index out of range");if(L<0)throw new RangeError("sourceEnd out of bounds");L>this.length&&(L=this.length),d.length-E>>=0,T=T===void 0?this.length:T>>>0,d||(d=0),typeof d=="number")for(U=E;U=L+4;T-=3)E=`_${d.slice(T-3,T)}${E}`;return`${d.slice(0,T)}${E}`}function O(d,E,T,L,U,N){if(d>T||d3?E===0||E===BigInt(0)?`>= 0${J} and < 2${J} ** ${8*(N+1)}${J}`:`>= -(2${J} ** ${8*(N+1)-1}${J}) and < 2 ** ${8*(N+1)-1}${J}`:`>= ${E}${J} and <= ${T}${J}`,new ce.ERR_OUT_OF_RANGE("value",ge,d)}(function(J,ge,Ee){I(ge,"offset"),J[ge]!==void 0&&J[ge+Ee]!==void 0||Z(ge,J.length-(Ee+1))})(L,U,N)}function I(d,E){if(typeof d!="number")throw new ce.ERR_INVALID_ARG_TYPE(E,"number",d)}function Z(d,E,T){throw Math.floor(d)!==d?(I(d,T),new ce.ERR_OUT_OF_RANGE(T||"offset","an integer",d)):E<0?new ce.ERR_BUFFER_OUT_OF_BOUNDS:new ce.ERR_OUT_OF_RANGE(T||"offset",`>= ${T?1:0} and <= ${E}`,d)}Se("ERR_BUFFER_OUT_OF_BOUNDS",function(d){return d?`${d} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Se("ERR_INVALID_ARG_TYPE",function(d,E){return`The "${d}" argument must be of type number. Received type ${typeof E}`},TypeError),Se("ERR_OUT_OF_RANGE",function(d,E,T){let L=`The value of "${d}" is out of range.`,U=T;return Number.isInteger(T)&&Math.abs(T)>4294967296?U=me(String(T)):typeof T=="bigint"&&(U=String(T),(T>BigInt(2)**BigInt(32)||T<-(BigInt(2)**BigInt(32)))&&(U=me(U)),U+="n"),L+=` It must be ${E}. Received ${U}`,L},RangeError);const le=/[^+/0-9A-Za-z-_]/g;function Ie(d,E){let T;E=E||1/0;const L=d.length;let U=null;const N=[];for(let J=0;J55295&&T<57344){if(!U){if(T>56319){(E-=3)>-1&&N.push(239,191,189);continue}if(J+1===L){(E-=3)>-1&&N.push(239,191,189);continue}U=T;continue}if(T<56320){(E-=3)>-1&&N.push(239,191,189),U=T;continue}T=65536+(U-55296<<10|T-56320)}else U&&(E-=3)>-1&&N.push(239,191,189);if(U=null,T<128){if((E-=1)<0)break;N.push(T)}else if(T<2048){if((E-=2)<0)break;N.push(T>>6|192,63&T|128)}else if(T<65536){if((E-=3)<0)break;N.push(T>>12|224,T>>6&63|128,63&T|128)}else{if(!(T<1114112))throw new Error("Invalid code point");if((E-=4)<0)break;N.push(T>>18|240,T>>12&63|128,T>>6&63|128,63&T|128)}}return N}function Ne(d){return c.toByteArray(function(E){if((E=(E=E.split("=")[0]).trim().replace(le,"")).length<2)return"";for(;E.length%4!=0;)E+="=";return E}(d))}function de(d,E,T,L){let U;for(U=0;U=E.length||U>=d.length);++U)E[U+T]=d[U];return U}function De(d,E){return d instanceof E||d!=null&&d.constructor!=null&&d.constructor.name!=null&&d.constructor.name===E.name}function Re(d){return d!=d}const Fe=function(){const d="0123456789abcdef",E=new Array(256);for(let T=0;T<16;++T){const L=16*T;for(let U=0;U<16;++U)E[L+U]=d[T]+d[U]}return E}();function ot(d){return typeof BigInt>"u"?yn:d}function yn(){throw new Error("BigInt not supported")}},141:(s,a,l)=>{a.Commented=l(20),a.Diagnose=l(694),a.Decoder=l(774),a.Encoder=l(666),a.Simple=l(32),a.Tagged=l(785),a.Map=l(70),a.UI=a.Commented.comment,a.fI=a.Decoder.decodeAll,a.h8=a.Decoder.decodeFirst,a.cc=a.Decoder.decodeAllSync,a.$u=a.Decoder.decodeFirstSync,a.M=a.Diagnose.diagnose,a.cv=a.Encoder.encode,a.N2=a.Encoder.encodeCanonical,a.TG=a.Encoder.encodeOne,a.WR=a.Encoder.encodeAsync,a.Jx=a.Decoder.decodeFirstSync,a.ww={decode:a.Decoder.decodeFirstSync,encode:a.Encoder.encode,buffer:!0,name:"cbor"},a.mc=function(){a.Encoder.reset(),a.Tagged.reset()}},20:(s,a,l)=>{const c=l(830),f=l(873),p=l(774),b=l(202),{MT:S,NUMBYTES:u,SYMS:m}=l(66),{Buffer:_}=l(764);function g(h){return h>1?"s":""}class y extends c.Transform{constructor(v={}){const{depth:x=1,max_depth:w=10,no_summary:k=!1,tags:R={},preferWeb:M,encoding:B,...$}=v;super({...$,readableObjectMode:!1,writableObjectMode:!1}),this.depth=x,this.max_depth=w,this.all=new b,R[24]||(R[24]=this._tag_24.bind(this)),this.parser=new p({tags:R,max_depth:w,preferWeb:M,encoding:B}),this.parser.on("value",this._on_value.bind(this)),this.parser.on("start",this._on_start.bind(this)),this.parser.on("start-string",this._on_start_string.bind(this)),this.parser.on("stop",this._on_stop.bind(this)),this.parser.on("more-bytes",this._on_more.bind(this)),this.parser.on("error",this._on_error.bind(this)),k||this.parser.on("data",this._on_data.bind(this)),this.parser.bs.on("read",this._on_read.bind(this))}_tag_24(v){const x=new y({depth:this.depth+1,no_summary:!0});x.on("data",w=>this.push(w)),x.on("error",w=>this.emit("error",w)),x.end(v)}_transform(v,x,w){this.parser.write(v,x,w)}_flush(v){return this.parser._flush(v)}static comment(v,x={},w=null){if(v==null)throw new Error("input required");({options:x,cb:w}=function(z,ee){switch(typeof z){case"function":return{options:{},cb:z};case"string":return{options:{encoding:z},cb:ee};case"number":return{options:{max_depth:z},cb:ee};case"object":return{options:z||{},cb:ee};default:throw new TypeError("Unknown option type")}}(x,w));const k=new b,{encoding:R="hex",...M}=x,B=new y(M);let $=null;return typeof w=="function"?(B.on("end",()=>{w(null,k.toString("utf8"))}),B.on("error",w)):$=new Promise((z,ee)=>{B.on("end",()=>{z(k.toString("utf8"))}),B.on("error",ee)}),B.pipe(k),f.guessEncoding(v,R).pipe(B),$}_on_error(v){this.push("ERROR: "),this.push(v.toString()),this.push(` `)}_on_read(v){this.all.write(v);const x=v.toString("hex");this.push(new Array(this.depth+1).join(" ")),this.push(x);let w=2*(this.max_depth-this.depth)-x.length;w<1&&(w=1),this.push(new Array(w+1).join(" ")),this.push("-- ")}_on_more(v,x,w,k){let R="";switch(this.depth++,v){case S.POS_INT:R="Positive number,";break;case S.NEG_INT:R="Negative number,";break;case S.ARRAY:R="Array, length";break;case S.MAP:R="Map, count";break;case S.BYTE_STRING:R="Bytes, length";break;case S.UTF8_STRING:R="String, length";break;case S.SIMPLE_FLOAT:R=x===1?"Simple value,":"Float,"}this.push(`${R} next ${x} byte${g(x)} `)}_on_start_string(v,x,w,k){let R="";switch(this.depth++,v){case S.BYTE_STRING:R=`Bytes, length: ${x}`;break;case S.UTF8_STRING:R=`String, length: ${x.toString()}`}this.push(`${R} `)}_on_start(v,x,w,k){switch(this.depth++,w){case S.ARRAY:this.push(`[${k}], `);break;case S.MAP:k%2?this.push(`{Val:${Math.floor(k/2)}}, `):this.push(`{Key:${Math.floor(k/2)}}, `)}switch(v){case S.TAG:this.push(`Tag #${x}`),x===24&&this.push(" Encoded CBOR data item");break;case S.ARRAY:x===m.STREAM?this.push("Array (streaming)"):this.push(`Array, ${x} item${g(x)}`);break;case S.MAP:x===m.STREAM?this.push("Map (streaming)"):this.push(`Map, ${x} pair${g(x)}`);break;case S.BYTE_STRING:this.push("Bytes (streaming)");break;case S.UTF8_STRING:this.push("String (streaming)")}this.push(` @@ -192,7 +192,7 @@ Error generating stack: `+o.message+` Call removeLoopDetectors before resuming.`);this.detectLoops.add(P)}if(!C.skipTypes){const ne=P.encodeCBOR;if(typeof ne=="function")return ne.call(P,this);const ie=this.semanticTypes[P.constructor.name];if(ie)return ie.call(P,this,P)}const D=Object.keys(P).filter(ne=>{const ie=typeof P[ne];return ie!=="function"&&(!this.omitUndefinedProperties||ie!=="undefined")}),K={};if(this.canonical&&D.sort((ne,ie)=>{const pe=K[ne]||(K[ne]=G.encode(ne)),ce=K[ie]||(K[ie]=G.encode(ie));return pe.compare(ce)}),C.indefinite){if(!this._pushUInt8(S.MAP<<5|u.INDEFINITE))return!1}else if(!this._pushInt(D.length,S.MAP))return!1;let Q=null;for(let ne=0,ie=D.length;nene!==void 0)),D.indefinite){if(!P._pushUInt8(S.MAP<<5|u.INDEFINITE))return!1}else if(!P._pushInt(K.length,S.MAP))return!1;if(P.canonical){const Q=new G({genTypes:P.semanticTypes,canonical:P.canonical,detectLoops:!!P.detectLoops,dateType:P.dateType,disallowUndefinedKeys:P.disallowUndefinedKeys,collapseBigIntegers:P.collapseBigIntegers}),ne=new f({highWaterMark:P.readableHighWaterMark});Q.pipe(ne),K.sort(([ie],[pe])=>{Q.pushAny(ie);const ce=ne.read();Q.pushAny(pe);const Se=ne.read();return ce.compare(Se)});for(const[ie,pe]of K){if(P.disallowUndefinedKeys&&ie===void 0)throw new Error("Invalid Map key: undefined");if(!P.pushAny(ie)||!P.pushAny(pe))return!1}}else for(const[Q,ne]of K){if(P.disallowUndefinedKeys&&Q===void 0)throw new Error("Invalid Map key: undefined");if(!P.pushAny(Q)||!P.pushAny(ne))return!1}return!(D.indefinite&&!P.push(z))}static _pushTypedArray(P,C){let D=64,K=C.BYTES_PER_ELEMENT;const{name:Q}=C.constructor;return Q.startsWith("Float")?(D|=16,K/=2):Q.includes("U")||(D|=8),(Q.includes("Clamped")||K!==1&&!p.isBigEndian())&&(D|=4),D|={1:0,2:1,4:2,8:3}[K],!!P._pushTag(D)&&G._pushBuffer(P,v.from(C.buffer,C.byteOffset,C.byteLength))}static _pushArrayBuffer(P,C){return G._pushBuffer(P,v.from(C))}static encodeIndefinite(P,C,D={}){if(C==null){if(this==null)throw new Error("No object to encode");C=this}const{chunkSize:K=4096}=D;let Q=!0;const ne=typeof C;let ie=null;if(ne==="string"){Q=Q&&P._pushUInt8(S.UTF8_STRING<<5|u.INDEFINITE);let pe=0;for(;pe{const Q=[],ne=new G(C);ne.on("data",ie=>Q.push(ie)),ne.on("error",K),ne.on("finish",()=>D(v.concat(Q))),ne.pushAny(P),ne.end()})}static get SEMANTIC_TYPES(){return V}static set SEMANTIC_TYPES(P){V=P}static reset(){G.SEMANTIC_TYPES={...se}}}Object.assign(se,{Array:G.pushArray,Date:G._pushDate,Buffer:G._pushBuffer,[v.name]:G._pushBuffer,Map:G._pushMap,NoFilter:G._pushNoFilter,[f.name]:G._pushNoFilter,RegExp:G._pushRegexp,Set:G._pushSet,ArrayBuffer:G._pushArrayBuffer,Uint8ClampedArray:G._pushTypedArray,Uint8Array:G._pushTypedArray,Uint16Array:G._pushTypedArray,Uint32Array:G._pushTypedArray,Int8Array:G._pushTypedArray,Int16Array:G._pushTypedArray,Int32Array:G._pushTypedArray,Float32Array:G._pushTypedArray,Float64Array:G._pushTypedArray,URL:G._pushURL,Boolean:G._pushBoxed,Number:G._pushBoxed,String:G._pushBoxed}),typeof BigUint64Array<"u"&&(se[BigUint64Array.name]=G._pushTypedArray),typeof BigInt64Array<"u"&&(se[BigInt64Array.name]=G._pushTypedArray),G.reset(),s.exports=G},70:(s,a,l)=>{const{Buffer:c}=l(764),f=l(666),p=l(774),{MT:b}=l(66);class S extends Map{constructor(m){super(m)}static _encode(m){return f.encodeCanonical(m).toString("base64")}static _decode(m){return p.decodeFirstSync(m,"base64")}get(m){return super.get(S._encode(m))}set(m,_){return super.set(S._encode(m),_)}delete(m){return super.delete(S._encode(m))}has(m){return super.has(S._encode(m))}*keys(){for(const m of super.keys())yield S._decode(m)}*entries(){for(const m of super.entries())yield[S._decode(m[0]),m[1]]}[Symbol.iterator](){return this.entries()}forEach(m,_){if(typeof m!="function")throw new TypeError("Must be function");for(const g of super.entries())m.call(this,g[1],S._decode(g[0]),this)}encodeCBOR(m){if(!m._pushInt(this.size,b.MAP))return!1;if(m.canonical){const _=Array.from(super.entries()).map(g=>[c.from(g[0],"base64"),g[1]]);_.sort((g,y)=>g[0].compare(y[0]));for(const g of _)if(!m.push(g[0])||!m.pushAny(g[1]))return!1}else for(const _ of super.entries())if(!m.push(c.from(_[0],"base64"))||!m.pushAny(_[1]))return!1;return!0}}s.exports=S},32:(s,a,l)=>{const{MT:c,SIMPLE:f,SYMS:p}=l(66);class b{constructor(u){if(typeof u!="number")throw new Error("Invalid Simple type: "+typeof u);if(u<0||u>255||(0|u)!==u)throw new Error(`value must be a small positive integer: ${u}`);this.value=u}toString(){return`simple(${this.value})`}[Symbol.for("nodejs.util.inspect.custom")](u,m){return`simple(${this.value})`}encodeCBOR(u){return u._pushInt(this.value,c.SIMPLE_FLOAT)}static isSimple(u){return u instanceof b}static decode(u,m=!0,_=!1){switch(u){case f.FALSE:return!1;case f.TRUE:return!0;case f.NULL:return m?null:p.NULL;case f.UNDEFINED:return m?void 0:p.UNDEFINED;case-1:if(!m||!_)throw new Error("Invalid BREAK");return p.BREAK;default:return new b(u)}}}s.exports=b},785:(s,a,l)=>{const c=l(66),f=l(873),p=Symbol("INTERNAL_JSON");function b(x,w){if(f.isBufferish(x))x.toJSON=w;else if(Array.isArray(x))for(const k of x)b(k,w);else if(x&&typeof x=="object"&&(!(x instanceof v)||x.tag<21||x.tag>23))for(const k of Object.values(x))b(k,w)}function S(){return f.base64(this)}function u(){return f.base64url(this)}function m(){return this.toString("hex")}const _={0:x=>new Date(x),1:x=>new Date(1e3*x),2:x=>f.bufferToBigInt(x),3:x=>c.BI.MINUS_ONE-f.bufferToBigInt(x),21:(x,w)=>(f.isBufferish(x)?w[p]=u:b(x,u),w),22:(x,w)=>(f.isBufferish(x)?w[p]=S:b(x,S),w),23:(x,w)=>(f.isBufferish(x)?w[p]=m:b(x,m),w),32:x=>new URL(x),33:(x,w)=>{if(!x.match(/^[a-zA-Z0-9_-]+$/))throw new Error("Invalid base64url characters");const k=x.length%4;if(k===1)throw new Error("Invalid base64url length");if(k===2){if("AQgw".indexOf(x[x.length-1])===-1)throw new Error("Invalid base64 padding")}else if(k===3&&"AEIMQUYcgkosw048".indexOf(x[x.length-1])===-1)throw new Error("Invalid base64 padding");return w},34:(x,w)=>{const k=x.match(/^[a-zA-Z0-9+/]+(?={0,2})$/);if(!k)throw new Error("Invalid base64 characters");if(x.length%4!=0)throw new Error("Invalid base64 length");if(k.groups.padding==="="){if("AQgw".indexOf(x[x.length-2])===-1)throw new Error("Invalid base64 padding")}else if(k.groups.padding==="=="&&"AEIMQUYcgkosw048".indexOf(x[x.length-3])===-1)throw new Error("Invalid base64 padding");return w},35:x=>new RegExp(x),258:x=>new Set(x)},g={64:Uint8Array,65:Uint16Array,66:Uint32Array,68:Uint8ClampedArray,69:Uint16Array,70:Uint32Array,72:Int8Array,73:Int16Array,74:Int32Array,77:Int16Array,78:Int32Array,81:Float32Array,82:Float64Array,85:Float32Array,86:Float64Array};function y(x,w){if(!f.isBufferish(x))throw new TypeError("val not a buffer");const{tag:k}=w,R=g[k];if(!R)throw new Error(`Invalid typed array tag: ${k}`);const M=2**(((16&k)>>4)+(3&k));return!(4&k)!==f.isBigEndian()&&M>1&&function(B,$,z,ee){const F=new DataView(B),[W,Y]={2:[F.getUint16,F.setUint16],4:[F.getUint32,F.setUint32],8:[F.getBigUint64,F.setBigUint64]}[$],se=z+ee;for(let V=z;V0?this.err=R.message:this.err=R,this}}static get TAGS(){return h}static set TAGS(w){h=w}static reset(){v.TAGS={..._}}}v.INTERNAL_JSON=p,v.reset(),s.exports=v},873:(s,a,l)=>{const{Buffer:c}=l(764),f=l(202),p=l(830),b=l(66),{NUMBYTES:S,SHIFT32:u,BI:m,SYMS:_}=b,g=new TextDecoder("utf8",{fatal:!0,ignoreBOM:!0});a.utf8=h=>g.decode(h),a.utf8.checksUTF8=!0,a.isBufferish=function(h){return h&&typeof h=="object"&&(c.isBuffer(h)||h instanceof Uint8Array||h instanceof Uint8ClampedArray||h instanceof ArrayBuffer||h instanceof DataView)},a.bufferishToBuffer=function(h){return c.isBuffer(h)?h:ArrayBuffer.isView(h)?c.from(h.buffer,h.byteOffset,h.byteLength):h instanceof ArrayBuffer?c.from(h):null},a.parseCBORint=function(h,v){switch(h){case S.ONE:return v.readUInt8(0);case S.TWO:return v.readUInt16BE(0);case S.FOUR:return v.readUInt32BE(0);case S.EIGHT:{const x=v.readUInt32BE(0),w=v.readUInt32BE(4);return x>2097151?BigInt(x)*m.SHIFT32+BigInt(w):x*u+w}default:throw new Error(`Invalid additional info for int: ${h}`)}},a.writeHalf=function(h,v){const x=c.allocUnsafe(4);x.writeFloatBE(v,0);const w=x.readUInt32BE(0);if(8191&w)return!1;let k=w>>16&32768;const R=w>>23&255,M=8388607&w;if(R>=113&&R<=142)k+=(R-112<<10)+(M>>13);else{if(!(R>=103&&R<113)||M&(1<<126-R)-1)return!1;k+=M+8388608>>126-R}return h.writeUInt16BE(k),!0},a.parseHalf=function(h){const v=128&h[0]?-1:1,x=(124&h[0])>>2,w=(3&h[0])<<8|h[1];return x?x===31?v*(w?NaN:1/0):v*2**(x-25)*(1024+w):5960464477539063e-23*v*w},a.parseCBORfloat=function(h){switch(h.length){case 2:return a.parseHalf(h);case 4:return h.readFloatBE(0);case 8:return h.readDoubleBE(0);default:throw new Error(`Invalid float size: ${h.length}`)}},a.hex=function(h){return c.from(h.replace(/^0x/,""),"hex")},a.bin=function(h){let v=0,x=(h=h.replace(/\s/g,"")).length%8||8;const w=[];for(;x<=h.length;)w.push(parseInt(h.slice(v,x),2)),v=x,x+=8;return c.from(w)},a.arrayEqual=function(h,v){return h==null&&v==null||h!=null&&v!=null&&h.length===v.length&&h.every((x,w)=>x===v[w])},a.bufferToBigInt=function(h){return BigInt(`0x${h.toString("hex")}`)},a.cborValueToString=function(h,v=-1){switch(typeof h){case"symbol":{switch(h){case _.NULL:return"null";case _.UNDEFINED:return"undefined";case _.BREAK:return"BREAK"}if(h.description)return h.description;const x=h.toString().match(/^Symbol\((?.*)\)/);return x&&x.groups.name?x.groups.name:"Symbol"}case"string":return JSON.stringify(h);case"bigint":return h.toString();case"number":{const x=Object.is(h,-0)?"-0":String(h);return v>0?`${x}_${v}`:x}case"object":{const x=a.bufferishToBuffer(h);if(x){const w=x.toString("hex");return v===-1/0?w:`h'${w}'`}return typeof h[Symbol.for("nodejs.util.inspect.custom")]=="function"?h[Symbol.for("nodejs.util.inspect.custom")]():Array.isArray(h)?"[]":"{}"}}return String(h)},a.guessEncoding=function(h,v){if(typeof h=="string")return new f(h,v??"hex");const x=a.bufferishToBuffer(h);if(x)return new f(x);if((w=h)instanceof p.Readable||["read","on","pipe"].every(k=>typeof w[k]=="function"))return h;var w;throw new Error("Unknown input type")};const y={"=":"","+":"-","/":"_"};a.base64url=function(h){return a.bufferishToBuffer(h).toString("base64").replace(/[=+/]/g,v=>y[v])},a.base64=function(h){return a.bufferishToBuffer(h).toString("base64")},a.isBigEndian=function(){const h=new Uint8Array(4);return!((new Uint32Array(h.buffer)[0]=1)&h[0])}},202:(s,a,l)=>{const c=l(830),{Buffer:f}=l(764),p=new TextDecoder("utf8",{fatal:!0,ignoreBOM:!0});class b extends c.Transform{constructor(u,m,_={}){let g=null,y=null;switch(typeof u){case"object":f.isBuffer(u)?g=u:u&&(_=u);break;case"string":g=u;break;case"undefined":break;default:throw new TypeError("Invalid input")}switch(typeof m){case"object":m&&(_=m);break;case"string":y=m;break;case"undefined":break;default:throw new TypeError("Invalid inputEncoding")}if(!_||typeof _!="object")throw new TypeError("Invalid options");g==null&&(g=_.input),y==null&&(y=_.inputEncoding),delete _.input,delete _.inputEncoding;const h=_.watchPipe==null||_.watchPipe;delete _.watchPipe;const v=!!_.readError;delete _.readError,super(_),this.readError=v,h&&this.on("pipe",x=>{const w=x._readableState.objectMode;if(this.length>0&&w!==this._readableState.objectMode)throw new Error("Do not switch objectMode in the middle of the stream");this._readableState.objectMode=w,this._writableState.objectMode=w}),g!=null&&this.end(g,y)}static isNoFilter(u){return u instanceof this}static compare(u,m){if(!(u instanceof this))throw new TypeError("Arguments must be NoFilters");return u===m?0:u.compare(m)}static concat(u,m){if(!Array.isArray(u))throw new TypeError("list argument must be an Array of NoFilters");if(u.length===0||m===0)return f.alloc(0);m==null&&(m=u.reduce((h,v)=>{if(!(v instanceof b))throw new TypeError("list argument must be an Array of NoFilters");return h+v.length},0));let _=!0,g=!0;const y=u.map(h=>{if(!(h instanceof b))throw new TypeError("list argument must be an Array of NoFilters");const v=h.slice();return f.isBuffer(v)?g=!1:_=!1,v});if(_)return f.concat(y,m);if(g)return[].concat(...y).slice(0,m);throw new Error("Concatenating mixed object and byte streams not supported")}_transform(u,m,_){this._readableState.objectMode||f.isBuffer(u)||(u=f.from(u,m)),this.push(u),_()}_bufArray(){let u=this._readableState.buffer;if(!Array.isArray(u)){let m=u.head;for(u=[];m!=null;)u.push(m.data),m=m.next}return u}read(u){const m=super.read(u);if(m!=null){if(this.emit("read",m),this.readError&&m.length{this.length>=u?y(this.read(u)):this.writableFinished?h(new Error(`Stream finished before ${u} bytes were available`)):(m=v=>{this.length>=u&&y(this.read(u))},_=()=>{h(new Error(`Stream finished before ${u} bytes were available`))},g=h,this.on("readable",m),this.on("error",g),this.on("finish",_))}).finally(()=>{m&&(this.removeListener("readable",m),this.removeListener("error",g),this.removeListener("finish",_))})}promise(u){let m=!1;return new Promise((_,g)=>{this.on("finish",()=>{const y=this.read();u==null||m||(m=!0,u(null,y)),_(y)}),this.on("error",y=>{u==null||m||(m=!0,u(y)),g(y)})})}compare(u){if(!(u instanceof b))throw new TypeError("Arguments must be NoFilters");if(this===u)return 0;const m=this.slice(),_=u.slice();if(f.isBuffer(m)&&f.isBuffer(_))return m.compare(_);throw new Error("Cannot compare streams in object mode")}equals(u){return this.compare(u)===0}slice(u,m){if(this._readableState.objectMode)return this._bufArray().slice(u,m);const _=this._bufArray();switch(_.length){case 0:return f.alloc(0);case 1:return _[0].slice(u,m);default:return f.concat(_).slice(u,m)}}get(u){return this.slice()[u]}toJSON(){const u=this.slice();return f.isBuffer(u)?u.toJSON():u}toString(u,m,_){const g=this.slice(m,_);return f.isBuffer(g)?u&&u!=="utf8"?g.toString(u):p.decode(g):JSON.stringify(g)}[Symbol.for("nodejs.util.inspect.custom")](u,m){const _=this._bufArray().map(g=>f.isBuffer(g)?m.stylize(g.toString("hex"),"string"):JSON.stringify(g)).join(", ");return`${this.constructor.name} [${_}]`}get length(){return this._readableState.length}writeBigInt(u){let m=u.toString(16);if(u<0){const _=BigInt(Math.floor(m.length/2));m=(u=(BigInt(1)<<_*BigInt(8))+u).toString(16)}return m.length%2&&(m=`0${m}`),this.push(f.from(m,"hex"))}readUBigInt(u){const m=this.read(u);return f.isBuffer(m)?BigInt(`0x${m.toString("hex")}`):null}readBigInt(u){const m=this.read(u);if(!f.isBuffer(m))return null;let _=BigInt(`0x${m.toString("hex")}`);return 128&m[0]&&(_-=BigInt(1)<{const c=l(830),f=l(202);class p extends c.Transform{constructor(S){super(S),this._writableState.objectMode=!1,this._readableState.objectMode=!0,this.bs=new f,this.__restart()}_transform(S,u,m){for(this.bs.write(S);this.bs.length>=this.__needed;){let _=null;const g=this.__needed===null?void 0:this.bs.read(this.__needed);try{_=this.__parser.next(g)}catch(y){return m(y)}this.__needed&&(this.__fresh=!1),_.done?(this.push(_.value),this.__restart()):this.__needed=_.value||1/0}return m()}*_parse(){throw new Error("Must be implemented in subclass")}__restart(){this.__needed=null,this.__parser=this._parse(),this.__fresh=!0}_flush(S){S(this.__fresh?null:new Error("unexpected end of input"))}}s.exports=p},187:s=>{var a,l=typeof Reflect=="object"?Reflect:null,c=l&&typeof l.apply=="function"?l.apply:function(w,k,R){return Function.prototype.apply.call(w,k,R)};a=l&&typeof l.ownKeys=="function"?l.ownKeys:Object.getOwnPropertySymbols?function(w){return Object.getOwnPropertyNames(w).concat(Object.getOwnPropertySymbols(w))}:function(w){return Object.getOwnPropertyNames(w)};var f=Number.isNaN||function(w){return w!=w};function p(){p.init.call(this)}s.exports=p,s.exports.once=function(w,k){return new Promise(function(R,M){function B(z){w.removeListener(k,$),M(z)}function $(){typeof w.removeListener=="function"&&w.removeListener("error",B),R([].slice.call(arguments))}x(w,k,$,{once:!0}),k!=="error"&&function(z,ee,F){typeof z.on=="function"&&x(z,"error",ee,{once:!0})}(w,B)})},p.EventEmitter=p,p.prototype._events=void 0,p.prototype._eventsCount=0,p.prototype._maxListeners=void 0;var b=10;function S(w){if(typeof w!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof w)}function u(w){return w._maxListeners===void 0?p.defaultMaxListeners:w._maxListeners}function m(w,k,R,M){var B,$,z,ee;if(S(R),($=w._events)===void 0?($=w._events=Object.create(null),w._eventsCount=0):($.newListener!==void 0&&(w.emit("newListener",k,R.listener?R.listener:R),$=w._events),z=$[k]),z===void 0)z=$[k]=R,++w._eventsCount;else if(typeof z=="function"?z=$[k]=M?[R,z]:[z,R]:M?z.unshift(R):z.push(R),(B=u(w))>0&&z.length>B&&!z.warned){z.warned=!0;var F=new Error("Possible EventEmitter memory leak detected. "+z.length+" "+String(k)+" listeners added. Use emitter.setMaxListeners() to increase limit");F.name="MaxListenersExceededWarning",F.emitter=w,F.type=k,F.count=z.length,ee=F,console&&console.warn&&console.warn(ee)}return w}function _(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function g(w,k,R){var M={fired:!1,wrapFn:void 0,target:w,type:k,listener:R},B=_.bind(M);return B.listener=R,M.wrapFn=B,B}function y(w,k,R){var M=w._events;if(M===void 0)return[];var B=M[k];return B===void 0?[]:typeof B=="function"?R?[B.listener||B]:[B]:R?function($){for(var z=new Array($.length),ee=0;ee0&&($=k[0]),$ instanceof Error)throw $;var z=new Error("Unhandled error."+($?" ("+$.message+")":""));throw z.context=$,z}var ee=B[w];if(ee===void 0)return!1;if(typeof ee=="function")c(ee,this,k);else{var F=ee.length,W=v(ee,F);for(R=0;R=0;$--)if(R[$]===k||R[$].listener===k){z=R[$].listener,B=$;break}if(B<0)return this;B===0?R.shift():function(ee,F){for(;F+1=0;M--)this.removeListener(w,k[M]);return this},p.prototype.listeners=function(w){return y(this,w,!0)},p.prototype.rawListeners=function(w){return y(this,w,!1)},p.listenerCount=function(w,k){return typeof w.listenerCount=="function"?w.listenerCount(k):h.call(w,k)},p.prototype.listenerCount=h,p.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]}},645:(s,a)=>{a.read=function(l,c,f,p,b){var S,u,m=8*b-p-1,_=(1<>1,y=-7,h=f?b-1:0,v=f?-1:1,x=l[c+h];for(h+=v,S=x&(1<<-y)-1,x>>=-y,y+=m;y>0;S=256*S+l[c+h],h+=v,y-=8);for(u=S&(1<<-y)-1,S>>=-y,y+=p;y>0;u=256*u+l[c+h],h+=v,y-=8);if(S===0)S=1-g;else{if(S===_)return u?NaN:1/0*(x?-1:1);u+=Math.pow(2,p),S-=g}return(x?-1:1)*u*Math.pow(2,S-p)},a.write=function(l,c,f,p,b,S){var u,m,_,g=8*S-b-1,y=(1<>1,v=b===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=p?0:S-1,w=p?1:-1,k=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(m=isNaN(c)?1:0,u=y):(u=Math.floor(Math.log(c)/Math.LN2),c*(_=Math.pow(2,-u))<1&&(u--,_*=2),(c+=u+h>=1?v/_:v*Math.pow(2,1-h))*_>=2&&(u++,_/=2),u+h>=y?(m=0,u=y):u+h>=1?(m=(c*_-1)*Math.pow(2,b),u+=h):(m=c*Math.pow(2,h-1)*Math.pow(2,b),u=0));b>=8;l[f+x]=255&m,x+=w,m/=256,b-=8);for(u=u<0;l[f+x]=255&u,x+=w,u/=256,g-=8);l[f+x-w]|=128*k}},717:s=>{typeof Object.create=="function"?s.exports=function(a,l){l&&(a.super_=l,a.prototype=Object.create(l.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:s.exports=function(a,l){if(l){a.super_=l;var c=function(){};c.prototype=l.prototype,a.prototype=new c,a.prototype.constructor=a}}},155:s=>{var a,l,c=s.exports={};function f(){throw new Error("setTimeout has not been defined")}function p(){throw new Error("clearTimeout has not been defined")}function b(x){if(a===setTimeout)return setTimeout(x,0);if((a===f||!a)&&setTimeout)return a=setTimeout,setTimeout(x,0);try{return a(x,0)}catch{try{return a.call(null,x,0)}catch{return a.call(this,x,0)}}}(function(){try{a=typeof setTimeout=="function"?setTimeout:f}catch{a=f}try{l=typeof clearTimeout=="function"?clearTimeout:p}catch{l=p}})();var S,u=[],m=!1,_=-1;function g(){m&&S&&(m=!1,S.length?u=S.concat(u):_=-1,u.length&&y())}function y(){if(!m){var x=b(g);m=!0;for(var w=u.length;w;){for(S=u,u=[];++_1)for(var k=1;k{var a={};function l(f,p,b){b||(b=Error);var S=function(u){var m,_;function g(y,h,v){return u.call(this,function(x,w,k){return typeof p=="string"?p:p(x,w,k)}(y,h,v))||this}return _=u,(m=g).prototype=Object.create(_.prototype),m.prototype.constructor=m,m.__proto__=_,g}(b);S.prototype.name=b.name,S.prototype.code=f,a[f]=S}function c(f,p){if(Array.isArray(f)){var b=f.length;return f=f.map(function(S){return String(S)}),b>2?"one of ".concat(p," ").concat(f.slice(0,b-1).join(", "),", or ")+f[b-1]:b===2?"one of ".concat(p," ").concat(f[0]," or ").concat(f[1]):"of ".concat(p," ").concat(f[0])}return"of ".concat(p," ").concat(String(f))}l("ERR_INVALID_OPT_VALUE",function(f,p){return'The value "'+p+'" is invalid for option "'+f+'"'},TypeError),l("ERR_INVALID_ARG_TYPE",function(f,p,b){var S,u,m,_,g;if(typeof p=="string"&&(u="not ",p.substr(0,u.length)===u)?(S="must not be",p=p.replace(/^not /,"")):S="must be",function(h,v,x){return(x===void 0||x>h.length)&&(x=h.length),h.substring(x-v.length,x)===v}(f," argument"))m="The ".concat(f," ").concat(S," ").concat(c(p,"type"));else{var y=(typeof g!="number"&&(g=0),g+1>(_=f).length||_.indexOf(".",g)===-1?"argument":"property");m='The "'.concat(f,'" ').concat(y," ").concat(S," ").concat(c(p,"type"))}return m+". Received type ".concat(typeof b)},TypeError),l("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),l("ERR_METHOD_NOT_IMPLEMENTED",function(f){return"The "+f+" method is not implemented"}),l("ERR_STREAM_PREMATURE_CLOSE","Premature close"),l("ERR_STREAM_DESTROYED",function(f){return"Cannot call "+f+" after a stream was destroyed"}),l("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),l("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),l("ERR_STREAM_WRITE_AFTER_END","write after end"),l("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),l("ERR_UNKNOWN_ENCODING",function(f){return"Unknown encoding: "+f},TypeError),l("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),s.exports.q=a},753:(s,a,l)=>{var c=l(155),f=Object.keys||function(h){var v=[];for(var x in h)v.push(x);return v};s.exports=_;var p=l(481),b=l(229);l(717)(_,p);for(var S=f(b.prototype),u=0;u{s.exports=f;var c=l(605);function f(p){if(!(this instanceof f))return new f(p);c.call(this,p)}l(717)(f,c),f.prototype._transform=function(p,b,S){S(null,p)}},481:(s,a,l)=>{var c,f=l(155);s.exports=W,W.ReadableState=F,l(187).EventEmitter;var p,b=function(O,I){return O.listeners(I).length},S=l(503),u=l(764).Buffer,m=l.g.Uint8Array||function(){},_=l(616);p=_&&_.debuglog?_.debuglog("stream"):function(){};var g,y,h,v=l(327),x=l(195),w=l(457).getHighWaterMark,k=l(281).q,R=k.ERR_INVALID_ARG_TYPE,M=k.ERR_STREAM_PUSH_AFTER_EOF,B=k.ERR_METHOD_NOT_IMPLEMENTED,$=k.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;l(717)(W,S);var z=x.errorOrDestroy,ee=["error","close","destroy","pause","resume"];function F(O,I,Z){c=c||l(753),O=O||{},typeof Z!="boolean"&&(Z=I instanceof c),this.objectMode=!!O.objectMode,Z&&(this.objectMode=this.objectMode||!!O.readableObjectMode),this.highWaterMark=w(this,O,"readableHighWaterMark",Z),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=O.emitClose!==!1,this.autoDestroy=!!O.autoDestroy,this.destroyed=!1,this.defaultEncoding=O.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,O.encoding&&(g||(g=l(553).s),this.decoder=new g(O.encoding),this.encoding=O.encoding)}function W(O){if(c=c||l(753),!(this instanceof W))return new W(O);var I=this instanceof c;this._readableState=new F(O,this,I),this.readable=!0,O&&(typeof O.read=="function"&&(this._read=O.read),typeof O.destroy=="function"&&(this._destroy=O.destroy)),S.call(this)}function Y(O,I,Z,le,Ie){p("readableAddChunk",I);var Ne,de=O._readableState;if(I===null)de.reading=!1,function(De,Re){if(p("onEofChunk"),!Re.ended){if(Re.decoder){var Fe=Re.decoder.end();Fe&&Fe.length&&(Re.buffer.push(Fe),Re.length+=Re.objectMode?1:Fe.length)}Re.ended=!0,Re.sync?te(De):(Re.needReadable=!1,Re.emittedReadable||(Re.emittedReadable=!0,P(De)))}}(O,de);else if(Ie||(Ne=function(De,Re){var Fe,ot;return ot=Re,u.isBuffer(ot)||ot instanceof m||typeof Re=="string"||Re===void 0||De.objectMode||(Fe=new R("chunk",["string","Buffer","Uint8Array"],Re)),Fe}(de,I)),Ne)z(O,Ne);else if(de.objectMode||I&&I.length>0)if(typeof I=="string"||de.objectMode||Object.getPrototypeOf(I)===u.prototype||(I=function(De){return u.from(De)}(I)),le)de.endEmitted?z(O,new $):se(O,de,I,!0);else if(de.ended)z(O,new M);else{if(de.destroyed)return!1;de.reading=!1,de.decoder&&!Z?(I=de.decoder.write(I),de.objectMode||I.length!==0?se(O,de,I,!1):C(O,de)):se(O,de,I,!1)}else le||(de.reading=!1,C(O,de));return!de.ended&&(de.lengthI.highWaterMark&&(I.highWaterMark=function(Z){return Z>=V?Z=V:(Z--,Z|=Z>>>1,Z|=Z>>>2,Z|=Z>>>4,Z|=Z>>>8,Z|=Z>>>16,Z++),Z}(O)),O<=I.length?O:I.ended?I.length:(I.needReadable=!0,0))}function te(O){var I=O._readableState;p("emitReadable",I.needReadable,I.emittedReadable),I.needReadable=!1,I.emittedReadable||(p("emitReadable",I.flowing),I.emittedReadable=!0,f.nextTick(P,O))}function P(O){var I=O._readableState;p("emitReadable_",I.destroyed,I.length,I.ended),I.destroyed||!I.length&&!I.ended||(O.emit("readable"),I.emittedReadable=!1),I.needReadable=!I.flowing&&!I.ended&&I.length<=I.highWaterMark,ie(O)}function C(O,I){I.readingMore||(I.readingMore=!0,f.nextTick(D,O,I))}function D(O,I){for(;!I.reading&&!I.ended&&(I.length0,I.resumeScheduled&&!I.paused?I.flowing=!0:O.listenerCount("data")>0&&O.resume()}function Q(O){p("readable nexttick read 0"),O.read(0)}function ne(O,I){p("resume",I.reading),I.reading||O.read(0),I.resumeScheduled=!1,O.emit("resume"),ie(O),I.flowing&&!I.reading&&O.read(0)}function ie(O){var I=O._readableState;for(p("flow",I.flowing);I.flowing&&O.read()!==null;);}function pe(O,I){return I.length===0?null:(I.objectMode?Z=I.buffer.shift():!O||O>=I.length?(Z=I.decoder?I.buffer.join(""):I.buffer.length===1?I.buffer.first():I.buffer.concat(I.length),I.buffer.clear()):Z=I.buffer.consume(O,I.decoder),Z);var Z}function ce(O){var I=O._readableState;p("endReadable",I.endEmitted),I.endEmitted||(I.ended=!0,f.nextTick(Se,I,O))}function Se(O,I){if(p("endReadableNT",O.endEmitted,O.length),!O.endEmitted&&O.length===0&&(O.endEmitted=!0,I.readable=!1,I.emit("end"),O.autoDestroy)){var Z=I._writableState;(!Z||Z.autoDestroy&&Z.finished)&&I.destroy()}}function me(O,I){for(var Z=0,le=O.length;Z=I.highWaterMark:I.length>0)||I.ended))return p("read: emitReadable",I.length,I.ended),I.length===0&&I.ended?ce(this):te(this),null;if((O=G(O,I))===0&&I.ended)return I.length===0&&ce(this),null;var le,Ie=I.needReadable;return p("need readable",Ie),(I.length===0||I.length-O0?pe(O,I):null)===null?(I.needReadable=I.length<=I.highWaterMark,O=0):(I.length-=O,I.awaitDrain=0),I.length===0&&(I.ended||(I.needReadable=!0),Z!==O&&I.ended&&ce(this)),le!==null&&this.emit("data",le),le},W.prototype._read=function(O){z(this,new B("_read()"))},W.prototype.pipe=function(O,I){var Z=this,le=this._readableState;switch(le.pipesCount){case 0:le.pipes=O;break;case 1:le.pipes=[le.pipes,O];break;default:le.pipes.push(O)}le.pipesCount+=1,p("pipe count=%d opts=%j",le.pipesCount,I);var Ie=I&&I.end===!1||O===f.stdout||O===f.stderr?d:Ne;function Ne(){p("onend"),O.end()}le.endEmitted?f.nextTick(Ie):Z.once("end",Ie),O.on("unpipe",function E(T,L){p("onunpipe"),T===Z&&L&&L.hasUnpiped===!1&&(L.hasUnpiped=!0,p("cleanup"),O.removeListener("close",ot),O.removeListener("finish",yn),O.removeListener("drain",de),O.removeListener("error",Fe),O.removeListener("unpipe",E),Z.removeListener("end",Ne),Z.removeListener("end",d),Z.removeListener("data",Re),De=!0,!le.awaitDrain||O._writableState&&!O._writableState.needDrain||de())});var de=function(E){return function(){var T=E._readableState;p("pipeOnDrain",T.awaitDrain),T.awaitDrain&&T.awaitDrain--,T.awaitDrain===0&&b(E,"data")&&(T.flowing=!0,ie(E))}}(Z);O.on("drain",de);var De=!1;function Re(E){p("ondata");var T=O.write(E);p("dest.write",T),T===!1&&((le.pipesCount===1&&le.pipes===O||le.pipesCount>1&&me(le.pipes,O)!==-1)&&!De&&(p("false write response, pause",le.awaitDrain),le.awaitDrain++),Z.pause())}function Fe(E){p("onerror",E),d(),O.removeListener("error",Fe),b(O,"error")===0&&z(O,E)}function ot(){O.removeListener("finish",yn),d()}function yn(){p("onfinish"),O.removeListener("close",ot),d()}function d(){p("unpipe"),Z.unpipe(O)}return Z.on("data",Re),function(E,T,L){if(typeof E.prependListener=="function")return E.prependListener(T,L);E._events&&E._events.error?Array.isArray(E._events.error)?E._events.error.unshift(L):E._events.error=[L,E._events.error]:E.on(T,L)}(O,"error",Fe),O.once("close",ot),O.once("finish",yn),O.emit("pipe",Z),le.flowing||(p("pipe resume"),Z.resume()),O},W.prototype.unpipe=function(O){var I=this._readableState,Z={hasUnpiped:!1};if(I.pipesCount===0)return this;if(I.pipesCount===1)return O&&O!==I.pipes||(O||(O=I.pipes),I.pipes=null,I.pipesCount=0,I.flowing=!1,O&&O.emit("unpipe",this,Z)),this;if(!O){var le=I.pipes,Ie=I.pipesCount;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var Ne=0;Ne0,le.flowing!==!1&&this.resume()):O==="readable"&&(le.endEmitted||le.readableListening||(le.readableListening=le.needReadable=!0,le.flowing=!1,le.emittedReadable=!1,p("on readable",le.length,le.reading),le.length?te(this):le.reading||f.nextTick(Q,this))),Z},W.prototype.addListener=W.prototype.on,W.prototype.removeListener=function(O,I){var Z=S.prototype.removeListener.call(this,O,I);return O==="readable"&&f.nextTick(K,this),Z},W.prototype.removeAllListeners=function(O){var I=S.prototype.removeAllListeners.apply(this,arguments);return O!=="readable"&&O!==void 0||f.nextTick(K,this),I},W.prototype.resume=function(){var O=this._readableState;return O.flowing||(p("resume"),O.flowing=!O.readableListening,function(I,Z){Z.resumeScheduled||(Z.resumeScheduled=!0,f.nextTick(ne,I,Z))}(this,O)),O.paused=!1,this},W.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},W.prototype.wrap=function(O){var I=this,Z=this._readableState,le=!1;for(var Ie in O.on("end",function(){if(p("wrapped end"),Z.decoder&&!Z.ended){var de=Z.decoder.end();de&&de.length&&I.push(de)}I.push(null)}),O.on("data",function(de){p("wrapped data"),Z.decoder&&(de=Z.decoder.write(de)),Z.objectMode&&de==null||(Z.objectMode||de&&de.length)&&(I.push(de)||(le=!0,O.pause()))}),O)this[Ie]===void 0&&typeof O[Ie]=="function"&&(this[Ie]=function(de){return function(){return O[de].apply(O,arguments)}}(Ie));for(var Ne=0;Ne{s.exports=_;var c=l(281).q,f=c.ERR_METHOD_NOT_IMPLEMENTED,p=c.ERR_MULTIPLE_CALLBACK,b=c.ERR_TRANSFORM_ALREADY_TRANSFORMING,S=c.ERR_TRANSFORM_WITH_LENGTH_0,u=l(753);function m(h,v){var x=this._transformState;x.transforming=!1;var w=x.writecb;if(w===null)return this.emit("error",new p);x.writechunk=null,x.writecb=null,v!=null&&this.push(v),w(h);var k=this._readableState;k.reading=!1,(k.needReadable||k.length{var c,f=l(155);function p(C){var D=this;this.next=null,this.entry=null,this.finish=function(){(function(K,Q,ne){var ie=K.entry;for(K.entry=null;ie;){var pe=ie.callback;Q.pendingcb--,pe(void 0),ie=ie.next}Q.corkedRequestsFree.next=K})(D,C)}}s.exports=W,W.WritableState=F;var b,S={deprecate:l(927)},u=l(503),m=l(764).Buffer,_=l.g.Uint8Array||function(){},g=l(195),y=l(457).getHighWaterMark,h=l(281).q,v=h.ERR_INVALID_ARG_TYPE,x=h.ERR_METHOD_NOT_IMPLEMENTED,w=h.ERR_MULTIPLE_CALLBACK,k=h.ERR_STREAM_CANNOT_PIPE,R=h.ERR_STREAM_DESTROYED,M=h.ERR_STREAM_NULL_VALUES,B=h.ERR_STREAM_WRITE_AFTER_END,$=h.ERR_UNKNOWN_ENCODING,z=g.errorOrDestroy;function ee(){}function F(C,D,K){c=c||l(753),C=C||{},typeof K!="boolean"&&(K=D instanceof c),this.objectMode=!!C.objectMode,K&&(this.objectMode=this.objectMode||!!C.writableObjectMode),this.highWaterMark=y(this,C,"writableHighWaterMark",K),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Q=C.decodeStrings===!1;this.decodeStrings=!Q,this.defaultEncoding=C.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ne){(function(ie,pe){var ce=ie._writableState,Se=ce.sync,me=ce.writecb;if(typeof me!="function")throw new w;if(function(I){I.writing=!1,I.writecb=null,I.length-=I.writelen,I.writelen=0}(ce),pe)(function(I,Z,le,Ie,Ne){--Z.pendingcb,le?(f.nextTick(Ne,Ie),f.nextTick(P,I,Z),I._writableState.errorEmitted=!0,z(I,Ie)):(Ne(Ie),I._writableState.errorEmitted=!0,z(I,Ie),P(I,Z))})(ie,ce,Se,pe,me);else{var O=G(ce)||ie.destroyed;O||ce.corked||ce.bufferProcessing||!ce.bufferedRequest||V(ie,ce),Se?f.nextTick(se,ie,ce,O,me):se(ie,ce,O,me)}})(D,ne)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=C.emitClose!==!1,this.autoDestroy=!!C.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new p(this)}function W(C){var D=this instanceof(c=c||l(753));if(!D&&!b.call(W,this))return new W(C);this._writableState=new F(C,this,D),this.writable=!0,C&&(typeof C.write=="function"&&(this._write=C.write),typeof C.writev=="function"&&(this._writev=C.writev),typeof C.destroy=="function"&&(this._destroy=C.destroy),typeof C.final=="function"&&(this._final=C.final)),u.call(this)}function Y(C,D,K,Q,ne,ie,pe){D.writelen=Q,D.writecb=pe,D.writing=!0,D.sync=!0,D.destroyed?D.onwrite(new R("write")):K?C._writev(ne,D.onwrite):C._write(ne,ie,D.onwrite),D.sync=!1}function se(C,D,K,Q){K||function(ne,ie){ie.length===0&&ie.needDrain&&(ie.needDrain=!1,ne.emit("drain"))}(C,D),D.pendingcb--,Q(),P(C,D)}function V(C,D){D.bufferProcessing=!0;var K=D.bufferedRequest;if(C._writev&&K&&K.next){var Q=D.bufferedRequestCount,ne=new Array(Q),ie=D.corkedRequestsFree;ie.entry=K;for(var pe=0,ce=!0;K;)ne[pe]=K,K.isBuf||(ce=!1),K=K.next,pe+=1;ne.allBuffers=ce,Y(C,D,!0,D.length,ne,"",ie.finish),D.pendingcb++,D.lastBufferedRequest=null,ie.next?(D.corkedRequestsFree=ie.next,ie.next=null):D.corkedRequestsFree=new p(D),D.bufferedRequestCount=0}else{for(;K;){var Se=K.chunk,me=K.encoding,O=K.callback;if(Y(C,D,!1,D.objectMode?1:Se.length,Se,me,O),K=K.next,D.bufferedRequestCount--,D.writing)break}K===null&&(D.lastBufferedRequest=null)}D.bufferedRequest=K,D.bufferProcessing=!1}function G(C){return C.ending&&C.length===0&&C.bufferedRequest===null&&!C.finished&&!C.writing}function te(C,D){C._final(function(K){D.pendingcb--,K&&z(C,K),D.prefinished=!0,C.emit("prefinish"),P(C,D)})}function P(C,D){var K=G(D);if(K&&(function(ne,ie){ie.prefinished||ie.finalCalled||(typeof ne._final!="function"||ie.destroyed?(ie.prefinished=!0,ne.emit("prefinish")):(ie.pendingcb++,ie.finalCalled=!0,f.nextTick(te,ne,ie)))}(C,D),D.pendingcb===0&&(D.finished=!0,C.emit("finish"),D.autoDestroy))){var Q=C._readableState;(!Q||Q.autoDestroy&&Q.endEmitted)&&C.destroy()}return K}l(717)(W,u),F.prototype.getBuffer=function(){for(var C=this.bufferedRequest,D=[];C;)D.push(C),C=C.next;return D},function(){try{Object.defineProperty(F.prototype,"buffer",{get:S.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(b=Function.prototype[Symbol.hasInstance],Object.defineProperty(W,Symbol.hasInstance,{value:function(C){return!!b.call(this,C)||this===W&&C&&C._writableState instanceof F}})):b=function(C){return C instanceof this},W.prototype.pipe=function(){z(this,new k)},W.prototype.write=function(C,D,K){var Q,ne=this._writableState,ie=!1,pe=!ne.objectMode&&(Q=C,m.isBuffer(Q)||Q instanceof _);return pe&&!m.isBuffer(C)&&(C=function(ce){return m.from(ce)}(C)),typeof D=="function"&&(K=D,D=null),pe?D="buffer":D||(D=ne.defaultEncoding),typeof K!="function"&&(K=ee),ne.ending?function(ce,Se){var me=new B;z(ce,me),f.nextTick(Se,me)}(this,K):(pe||function(ce,Se,me,O){var I;return me===null?I=new M:typeof me=="string"||Se.objectMode||(I=new v("chunk",["string","Buffer"],me)),!I||(z(ce,I),f.nextTick(O,I),!1)}(this,ne,C,K))&&(ne.pendingcb++,ie=function(ce,Se,me,O,I,Z){if(!me){var le=function(De,Re,Fe){return De.objectMode||De.decodeStrings===!1||typeof Re!="string"||(Re=m.from(Re,Fe)),Re}(Se,O,I);O!==le&&(me=!0,I="buffer",O=le)}var Ie=Se.objectMode?1:O.length;Se.length+=Ie;var Ne=Se.length-1))throw new $(C);return this._writableState.defaultEncoding=C,this},Object.defineProperty(W.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(W.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),W.prototype._write=function(C,D,K){K(new x("_write()"))},W.prototype._writev=null,W.prototype.end=function(C,D,K){var Q=this._writableState;return typeof C=="function"?(K=C,C=null,D=null):typeof D=="function"&&(K=D,D=null),C!=null&&this.write(C,D),Q.corked&&(Q.corked=1,this.uncork()),Q.ending||function(ne,ie,pe){ie.ending=!0,P(ne,ie),pe&&(ie.finished?f.nextTick(pe):ne.once("finish",pe)),ie.ended=!0,ne.writable=!1}(this,Q,K),this},Object.defineProperty(W.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(W.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(C){this._writableState&&(this._writableState.destroyed=C)}}),W.prototype.destroy=g.destroy,W.prototype._undestroy=g.undestroy,W.prototype._destroy=function(C,D){D(C)}},850:(s,a,l)=>{var c,f=l(155);function p(M,B,$){return B in M?Object.defineProperty(M,B,{value:$,enumerable:!0,configurable:!0,writable:!0}):M[B]=$,M}var b=l(610),S=Symbol("lastResolve"),u=Symbol("lastReject"),m=Symbol("error"),_=Symbol("ended"),g=Symbol("lastPromise"),y=Symbol("handlePromise"),h=Symbol("stream");function v(M,B){return{value:M,done:B}}function x(M){var B=M[S];if(B!==null){var $=M[h].read();$!==null&&(M[g]=null,M[S]=null,M[u]=null,B(v($,!1)))}}function w(M){f.nextTick(x,M)}var k=Object.getPrototypeOf(function(){}),R=Object.setPrototypeOf((p(c={get stream(){return this[h]},next:function(){var M=this,B=this[m];if(B!==null)return Promise.reject(B);if(this[_])return Promise.resolve(v(void 0,!0));if(this[h].destroyed)return new Promise(function(F,W){f.nextTick(function(){M[m]?W(M[m]):F(v(void 0,!0))})});var $,z=this[g];if(z)$=new Promise(function(F,W){return function(Y,se){F.then(function(){W[_]?Y(v(void 0,!0)):W[y](Y,se)},se)}}(z,this));else{var ee=this[h].read();if(ee!==null)return Promise.resolve(v(ee,!1));$=new Promise(this[y])}return this[g]=$,$}},Symbol.asyncIterator,function(){return this}),p(c,"return",function(){var M=this;return new Promise(function(B,$){M[h].destroy(null,function(z){z?$(z):B(v(void 0,!0))})})}),c),k);s.exports=function(M){var B,$=Object.create(R,(p(B={},h,{value:M,writable:!0}),p(B,S,{value:null,writable:!0}),p(B,u,{value:null,writable:!0}),p(B,m,{value:null,writable:!0}),p(B,_,{value:M._readableState.endEmitted,writable:!0}),p(B,y,{value:function(z,ee){var F=$[h].read();F?($[g]=null,$[S]=null,$[u]=null,z(v(F,!1))):($[S]=z,$[u]=ee)},writable:!0}),B));return $[g]=null,b(M,function(z){if(z&&z.code!=="ERR_STREAM_PREMATURE_CLOSE"){var ee=$[u];return ee!==null&&($[g]=null,$[S]=null,$[u]=null,ee(z)),void($[m]=z)}var F=$[S];F!==null&&($[g]=null,$[S]=null,$[u]=null,F(v(void 0,!0))),$[_]=!0}),M.on("readable",w.bind(null,$)),$}},327:(s,a,l)=>{function c(m,_){var g=Object.keys(m);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(m);_&&(y=y.filter(function(h){return Object.getOwnPropertyDescriptor(m,h).enumerable})),g.push.apply(g,y)}return g}function f(m,_,g){return _ in m?Object.defineProperty(m,_,{value:g,enumerable:!0,configurable:!0,writable:!0}):m[_]=g,m}function p(m,_){for(var g=0;g<_.length;g++){var y=_[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}var b=l(764).Buffer,S=l(361).inspect,u=S&&S.custom||"inspect";s.exports=function(){function m(){(function(y,h){if(!(y instanceof h))throw new TypeError("Cannot call a class as a function")})(this,m),this.head=null,this.tail=null,this.length=0}var _,g;return _=m,g=[{key:"push",value:function(y){var h={data:y,next:null};this.length>0?this.tail.next=h:this.head=h,this.tail=h,++this.length}},{key:"unshift",value:function(y){var h={data:y,next:this.head};this.length===0&&(this.tail=h),this.head=h,++this.length}},{key:"shift",value:function(){if(this.length!==0){var y=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,y}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(y){if(this.length===0)return"";for(var h=this.head,v=""+h.data;h=h.next;)v+=y+h.data;return v}},{key:"concat",value:function(y){if(this.length===0)return b.alloc(0);for(var h,v,x,w=b.allocUnsafe(y>>>0),k=this.head,R=0;k;)h=k.data,v=w,x=R,b.prototype.copy.call(h,v,x),R+=k.data.length,k=k.next;return w}},{key:"consume",value:function(y,h){var v;return yw.length?w.length:y;if(k===w.length?x+=w:x+=w.slice(0,y),(y-=k)==0){k===w.length?(++v,h.next?this.head=h.next:this.head=this.tail=null):(this.head=h,h.data=w.slice(k));break}++v}return this.length-=v,x}},{key:"_getBuffer",value:function(y){var h=b.allocUnsafe(y),v=this.head,x=1;for(v.data.copy(h),y-=v.data.length;v=v.next;){var w=v.data,k=y>w.length?w.length:y;if(w.copy(h,h.length-y,0,k),(y-=k)==0){k===w.length?(++x,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=w.slice(k));break}++x}return this.length-=x,h}},{key:u,value:function(y,h){return S(this,function(v){for(var x=1;x{var c=l(155);function f(S,u){b(S,u),p(S)}function p(S){S._writableState&&!S._writableState.emitClose||S._readableState&&!S._readableState.emitClose||S.emit("close")}function b(S,u){S.emit("error",u)}s.exports={destroy:function(S,u){var m=this,_=this._readableState&&this._readableState.destroyed,g=this._writableState&&this._writableState.destroyed;return _||g?(u?u(S):S&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,c.nextTick(b,this,S)):c.nextTick(b,this,S)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(S||null,function(y){!u&&y?m._writableState?m._writableState.errorEmitted?c.nextTick(p,m):(m._writableState.errorEmitted=!0,c.nextTick(f,m,y)):c.nextTick(f,m,y):u?(c.nextTick(p,m),u(y)):c.nextTick(p,m)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(S,u){var m=S._readableState,_=S._writableState;m&&m.autoDestroy||_&&_.autoDestroy?S.destroy(u):S.emit("error",u)}}},610:(s,a,l)=>{var c=l(281).q.ERR_STREAM_PREMATURE_CLOSE;function f(){}s.exports=function p(b,S,u){if(typeof S=="function")return p(b,null,S);S||(S={}),u=function(M){var B=!1;return function(){if(!B){B=!0;for(var $=arguments.length,z=new Array($),ee=0;ee<$;ee++)z[ee]=arguments[ee];M.apply(this,z)}}}(u||f);var m=S.readable||S.readable!==!1&&b.readable,_=S.writable||S.writable!==!1&&b.writable,g=function(){b.writable||h()},y=b._writableState&&b._writableState.finished,h=function(){_=!1,y=!0,m||u.call(b)},v=b._readableState&&b._readableState.endEmitted,x=function(){m=!1,v=!0,_||u.call(b)},w=function(M){u.call(b,M)},k=function(){var M;return m&&!v?(b._readableState&&b._readableState.ended||(M=new c),u.call(b,M)):_&&!y?(b._writableState&&b._writableState.ended||(M=new c),u.call(b,M)):void 0},R=function(){b.req.on("finish",h)};return function(M){return M.setHeader&&typeof M.abort=="function"}(b)?(b.on("complete",h),b.on("abort",k),b.req?R():b.on("request",R)):_&&!b._writableState&&(b.on("end",g),b.on("close",g)),b.on("end",x),b.on("finish",h),S.error!==!1&&b.on("error",w),b.on("close",k),function(){b.removeListener("complete",h),b.removeListener("abort",k),b.removeListener("request",R),b.req&&b.req.removeListener("finish",h),b.removeListener("end",g),b.removeListener("close",g),b.removeListener("finish",h),b.removeListener("end",x),b.removeListener("error",w),b.removeListener("close",k)}}},167:s=>{s.exports=function(){throw new Error("Readable.from is not available in the browser")}},946:(s,a,l)=>{var c,f=l(281).q,p=f.ERR_MISSING_ARGS,b=f.ERR_STREAM_DESTROYED;function S(y){if(y)throw y}function u(y,h,v,x){x=function(R){var M=!1;return function(){M||(M=!0,R.apply(void 0,arguments))}}(x);var w=!1;y.on("close",function(){w=!0}),c===void 0&&(c=l(610)),c(y,{readable:h,writable:v},function(R){if(R)return x(R);w=!0,x()});var k=!1;return function(R){if(!w&&!k)return k=!0,function(M){return M.setHeader&&typeof M.abort=="function"}(y)?y.abort():typeof y.destroy=="function"?y.destroy():void x(R||new b("pipe"))}}function m(y){y()}function _(y,h){return y.pipe(h)}function g(y){return y.length?typeof y[y.length-1]!="function"?S:y.pop():S}s.exports=function(){for(var y=arguments.length,h=new Array(y),v=0;v0,function($){x||(x=$),$&&k.forEach(m),B||(k.forEach(m),w(x))})});return h.reduce(_)}},457:(s,a,l)=>{var c=l(281).q.ERR_INVALID_OPT_VALUE;s.exports={getHighWaterMark:function(f,p,b,S){var u=function(m,_,g){return m.highWaterMark!=null?m.highWaterMark:_?m[g]:null}(p,S,b);if(u!=null){if(!isFinite(u)||Math.floor(u)!==u||u<0)throw new c(S?b:"highWaterMark",u);return Math.floor(u)}return f.objectMode?16:16384}}},503:(s,a,l)=>{s.exports=l(187).EventEmitter},509:(s,a,l)=>{var c=l(764),f=c.Buffer;function p(S,u){for(var m in S)u[m]=S[m]}function b(S,u,m){return f(S,u,m)}f.from&&f.alloc&&f.allocUnsafe&&f.allocUnsafeSlow?s.exports=c:(p(c,a),a.Buffer=b),b.prototype=Object.create(f.prototype),p(f,b),b.from=function(S,u,m){if(typeof S=="number")throw new TypeError("Argument must not be a number");return f(S,u,m)},b.alloc=function(S,u,m){if(typeof S!="number")throw new TypeError("Argument must be a number");var _=f(S);return u!==void 0?typeof m=="string"?_.fill(u,m):_.fill(u):_.fill(0),_},b.allocUnsafe=function(S){if(typeof S!="number")throw new TypeError("Argument must be a number");return f(S)},b.allocUnsafeSlow=function(S){if(typeof S!="number")throw new TypeError("Argument must be a number");return c.SlowBuffer(S)}},830:(s,a,l)=>{s.exports=f;var c=l(187).EventEmitter;function f(){c.call(this)}l(717)(f,c),f.Readable=l(481),f.Writable=l(229),f.Duplex=l(753),f.Transform=l(605),f.PassThrough=l(725),f.finished=l(610),f.pipeline=l(946),f.Stream=f,f.prototype.pipe=function(p,b){var S=this;function u(x){p.writable&&p.write(x)===!1&&S.pause&&S.pause()}function m(){S.readable&&S.resume&&S.resume()}S.on("data",u),p.on("drain",m),p._isStdio||b&&b.end===!1||(S.on("end",g),S.on("close",y));var _=!1;function g(){_||(_=!0,p.end())}function y(){_||(_=!0,typeof p.destroy=="function"&&p.destroy())}function h(x){if(v(),c.listenerCount(this,"error")===0)throw x}function v(){S.removeListener("data",u),p.removeListener("drain",m),S.removeListener("end",g),S.removeListener("close",y),S.removeListener("error",h),p.removeListener("error",h),S.removeListener("end",v),S.removeListener("close",v),p.removeListener("close",v)}return S.on("error",h),p.on("error",h),S.on("end",v),S.on("close",v),p.on("close",v),p.emit("pipe",S),p}},553:(s,a,l)=>{var c=l(509).Buffer,f=c.isEncoding||function(v){switch((v=""+v)&&v.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function p(v){var x;switch(this.encoding=function(w){var k=function(R){if(!R)return"utf8";for(var M;;)switch(R){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return R;default:if(M)return;R=(""+R).toLowerCase(),M=!0}}(w);if(typeof k!="string"&&(c.isEncoding===f||!f(w)))throw new Error("Unknown encoding: "+w);return k||w}(v),this.encoding){case"utf16le":this.text=u,this.end=m,x=4;break;case"utf8":this.fillLast=S,x=4;break;case"base64":this.text=_,this.end=g,x=3;break;default:return this.write=y,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=c.allocUnsafe(x)}function b(v){return v<=127?0:v>>5==6?2:v>>4==14?3:v>>3==30?4:v>>6==2?-1:-2}function S(v){var x=this.lastTotal-this.lastNeed,w=function(k,R,M){if((192&R[0])!=128)return k.lastNeed=0,"�";if(k.lastNeed>1&&R.length>1){if((192&R[1])!=128)return k.lastNeed=1,"�";if(k.lastNeed>2&&R.length>2&&(192&R[2])!=128)return k.lastNeed=2,"�"}}(this,v);return w!==void 0?w:this.lastNeed<=v.length?(v.copy(this.lastChar,x,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(v.copy(this.lastChar,x,0,v.length),void(this.lastNeed-=v.length))}function u(v,x){if((v.length-x)%2==0){var w=v.toString("utf16le",x);if(w){var k=w.charCodeAt(w.length-1);if(k>=55296&&k<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1],w.slice(0,-1)}return w}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=v[v.length-1],v.toString("utf16le",x,v.length-1)}function m(v){var x=v&&v.length?this.write(v):"";if(this.lastNeed){var w=this.lastTotal-this.lastNeed;return x+this.lastChar.toString("utf16le",0,w)}return x}function _(v,x){var w=(v.length-x)%3;return w===0?v.toString("base64",x):(this.lastNeed=3-w,this.lastTotal=3,w===1?this.lastChar[0]=v[v.length-1]:(this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1]),v.toString("base64",x,v.length-w))}function g(v){var x=v&&v.length?this.write(v):"";return this.lastNeed?x+this.lastChar.toString("base64",0,3-this.lastNeed):x}function y(v){return v.toString(this.encoding)}function h(v){return v&&v.length?this.write(v):""}a.s=p,p.prototype.write=function(v){if(v.length===0)return"";var x,w;if(this.lastNeed){if((x=this.fillLast(v))===void 0)return"";w=this.lastNeed,this.lastNeed=0}else w=0;return w=0?(z>0&&(R.lastNeed=z-1),z):--$=0?(z>0&&(R.lastNeed=z-2),z):--$=0?(z>0&&(z===2?z=0:R.lastNeed=z-3),z):0}(this,v,x);if(!this.lastNeed)return v.toString("utf8",x);this.lastTotal=w;var k=v.length-(w-this.lastNeed);return v.copy(this.lastChar,0,k),v.toString("utf8",x,k)},p.prototype.fillLast=function(v){if(this.lastNeed<=v.length)return v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,v.length),this.lastNeed-=v.length}},927:(s,a,l)=>{function c(f){try{if(!l.g.localStorage)return!1}catch{return!1}var p=l.g.localStorage[f];return p!=null&&String(p).toLowerCase()==="true"}s.exports=function(f,p){if(c("noDeprecation"))return f;var b=!1;return function(){if(!b){if(c("throwDeprecation"))throw new Error(p);c("traceDeprecation")?console.trace(p):console.warn(p),b=!0}return f.apply(this,arguments)}}},361:()=>{},616:()=>{}},r={};function i(s){var a=r[s];if(a!==void 0)return a.exports;var l=r[s]={exports:{}};return n[s](l,l.exports,i),l.exports}i.d=(s,a)=>{for(var l in a)i.o(a,l)&&!i.o(s,l)&&Object.defineProperty(s,l,{enumerable:!0,get:a[l]})},i.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),i.o=(s,a)=>Object.prototype.hasOwnProperty.call(s,a),i.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var o={};return(()=>{i.r(o),i.d(o,{Commented:()=>s.Commented,Decoder:()=>s.Decoder,Diagnose:()=>s.Diagnose,Encoder:()=>s.Encoder,Map:()=>s.Map,Simple:()=>s.Simple,Tagged:()=>s.Tagged,comment:()=>s.UI,decode:()=>s.Jx,decodeAll:()=>s.fI,decodeAllSync:()=>s.cc,decodeFirst:()=>s.h8,decodeFirstSync:()=>s.$u,diagnose:()=>s.M,encode:()=>s.cv,encodeAsync:()=>s.WR,encodeCanonical:()=>s.N2,encodeOne:()=>s.TG,leveldb:()=>s.ww,reset:()=>s.mc});var s=i(141)})(),o})()})})(J0);var rC=J0.exports,zl={},iC=dt&&dt.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(f){try{c(r.next(f))}catch(p){s(p)}}function l(f){try{c(r.throw(f))}catch(p){s(p)}}function c(f){f.done?o(f.value):i(f.value).then(a,l)}c((r=r.apply(e,t||[])).next())})},oC=dt&&dt.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(f){return l([c,f])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(n=0)),n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]t.maxPresenceInterval*2&&delete t.presence[n]},this.maxPresenceInterval)},e.prototype.destroy=function(){this.interval!==null&&clearInterval(this.interval),this.updateHandle!==null&&clearTimeout(this.updateHandle),this.db.unsubscribe(this.key,this.onMessage)},e.prototype.onMessage=function(t){var n,r=t.value;r.client!==this.clientId&&(this.presence=Wa(Wa({},this.presence),(n={},n[r.client]={value:r.value,lastSeen:Date.now()},n)),this.callback(this.presence))},e.prototype.update=function(){var t=this;this.db.send({type:"push",action:{type:"relay"},value:{value:this.state,client:this.clientId},key:this.key}),this.nextUpdate=Date.now()+this.maxPresenceInterval,this.lastUpdate=Date.now(),this.updateHandle=setTimeout(function(){t.update()},this.maxPresenceInterval)},e.prototype.updateState=function(t){var n=this;if(JSON.stringify(t)!==JSON.stringify(this.state)){this.state=t;var r=this.lastUpdate+this.minPresenceInterval;rthis.sizeThreshold&&this.lastConfirmedSeq!==0){var r=this.compactable.packState(this.lastConfirmedState);(n=this.db)===null||n===void 0||n.send({type:"push",action:{type:"compact",seq:this.lastConfirmedSeq},value:{reset:r},key:this.key})}},e}();Yi.Compactor=fC;var dC=dt&&dt.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Gl.__esModule=!0;Gl.Reducer=void 0;var Z0=Yi,hC=function(e){dC(t,e);function t(n,r){var i=e.call(this)||this;return i.reducer=n,i.initState=r,i.optimistic=!0,i}return t.prototype.applyAction=function(n,r){return this.reducer(n,r)},t.prototype.initialState=function(){return this.initState},t}(Z0.Compactable),pC=function(){function e(t){var n=new hC(t.reducer,t.initialValue);this.compactor=new Z0.Compactor({key:t.key,compactable:n,sizeThreshold:t.sizeThreshold,db:t.db,callback:t.callback}),this.dispatch=this.dispatch.bind(this)}return e.prototype.subscribe=function(){this.compactor.subscribe()},e.prototype.destroy=function(){this.compactor.destroy()},e.prototype.dispatch=function(t){this.compactor.dispatch(t)},e}();Gl.Reducer=pC;var Kl={};Kl.__esModule=!0;Kl.StateListener=void 0;var mC=function(){function e(t){var n=this,r;this.lastUpdateSent=0,this.lastValue=null,this.debounceTimeout=null,this.state=null,this.callback=t.callback,this.db=t.db,this.key=t.key,this.setStateOptimistic=this.setStateOptimistic.bind(this),this.sendUpdate=this.sendUpdate.bind(this),this.randId=Math.random().toString(36).substring(7),this.debounceMillis=(r=t.debounceMillis)!==null&&r!==void 0?r:20,this.handler=function(i){var o=i.value;o.i!==n.randId&&n.callback(o.v)}}return e.prototype.subscribe=function(){this.db.subscribe(this.key,this.handler)},e.prototype.destroy=function(){this.db.unsubscribe(this.key,this.handler)},e.prototype.onMessage=function(t){this.callback(t.value),this.state=t.value},e.prototype.sendUpdate=function(){var t;this.debounceTimeout!==null&&(clearTimeout(this.debounceTimeout),this.debounceTimeout=null);var n={v:this.lastValue,i:this.randId};(t=this.db)===null||t===void 0||t.send({type:"push",action:{type:"replace"},value:n,key:this.key})},e.prototype.setStateOptimistic=function(t){this.callback(t),this.lastValue=t;var n=performance.now();n-this.lastUpdateSent{for(var n in t)Yl(e,n,{get:t[n],enumerable:!0})},ev=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of vC(t))!bC.call(e,i)&&i!==n&&Yl(e,i,{get:()=>t[i],enumerable:!(r=gC(t,i))||r.enumerable});return e},EC=(e,t,n)=>(n=e!=null?yC(wC(e)):{},ev(t||!e||!e.__esModule?Yl(n,"default",{value:e,enumerable:!0}):n,e)),_C=e=>ev(Yl({},"__esModule",{value:!0}),e),xC=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())}),tv={};SC(tv,{DatabaseContext:()=>_d,DriftDBProvider:()=>TC,RoomQRCode:()=>CC,StatusIndicator:()=>OC,useConnectionStatus:()=>ov,useDatabase:()=>ei,useLatency:()=>sv,usePresence:()=>IC,useSharedReducer:()=>PC,useSharedState:()=>RC,useUniqueClientId:()=>iv});var FC=_C(tv),qi=X0,it=EC(A),Ln=oe,nv="_driftdb_room";function rv(){return new URL(document.location.href).searchParams.get(nv)}function kC(e){const t=new URL(document.location.href);t.searchParams.set(nv,e),window.history.replaceState({},"",t.toString())}function TC(e){const t=(0,it.useRef)(null);return t.current===null&&(t.current=new qi.DbConnection),it.default.useEffect(()=>{let n=new qi.Api(e.api),r;e.room?r=e.room:r=rv();let i;return r?i=n.getRoom(r):i=n.newRoom(),i.then(o=>{var s;e.room||kC(o.room),(s=t.current)==null||s.connect(o.socket_url,e.useBinary)}),()=>{var o;(o=t.current)==null||o.disconnect()}},[e.room,e.useBinary,e.api]),(0,Ln.jsx)(_d.Provider,{value:t.current,children:e.children})}var _d=it.default.createContext(null);function ei(){const e=it.default.useContext(_d);if(e===null)throw new Error("useDatabase must be used within a DriftDBProvider");return e}function RC(e,t){const n=ei(),[r,i]=it.default.useState(t),o=(0,it.useRef)(null);(0,it.useEffect)(()=>(o.current=new qi.StateListener({key:e,db:n,callback:i}),o.current.subscribe(),()=>{o.current.destroy()}),[]);const s=(0,it.useCallback)(a=>{var l,c,f;if(typeof a=="function"){const p=(l=o.current.state)!=null?l:t,b=a(p);(c=o.current)==null||c.setStateOptimistic(b)}else(f=o.current)==null||f.setStateOptimistic(a)},[t]);return[r,s]}function CC(){const e=ei(),[t,n]=(0,it.useState)(null);return(0,it.useEffect)(()=>{const r=()=>{rv()!==null&&n(document.location.href)};return e.statusListener.addListener(r),()=>{e.statusListener.removeListener(r)}},[e]),t?(0,Ln.jsx)("img",{src:`https://api.jamsocket.live/qrcode?url=${t}`}):(0,Ln.jsx)(Ln.Fragment,{})}function iv(){const e=(0,it.useRef)();return typeof window>"u"?null:(e.current||(e.current=(0,qi.uniqueClientId)()),e.current)}function PC(e,t,n,r=i=>i){const i=ei(),o=(0,it.useRef)(null);o.current===null&&(o.current=structuredClone(r(n)));const[s,a]=it.default.useState(o.current),l=it.default.useRef(null);l.current===null&&(l.current=new qi.Reducer({key:e,reducer:t,initialValue:o.current,sizeThreshold:30,db:i,callback:a})),(0,it.useEffect)(()=>(l.current.subscribe(),()=>{l.current.destroy()}),[]);const c=l.current.dispatch;return[s,c]}function ov(){const e=ei(),[t,n]=it.default.useState({connected:!1});return it.default.useEffect(()=>{const r=i=>{n(i)};return e==null||e.statusListener.addListener(r),()=>{e==null||e.statusListener.removeListener(r)}},[e]),t}function sv(){const e=ei(),[t,n]=(0,it.useState)(null);return it.default.useEffect(()=>{const r=()=>xC(this,null,function*(){const o=yield e==null?void 0:e.testLatency();n(o)}),i=setInterval(r,5e3);return r(),()=>{clearInterval(i)}},[e]),t}function IC(e,t){const n=ei(),r=iv(),[i,o]=(0,it.useState)({}),s=(0,it.useRef)();return s.current===void 0&&(s.current=new qi.PresenceListener({key:e,db:n,clientId:r,initialState:t,callback:o})),(0,it.useEffect)(()=>(s.current.subscribe(),()=>{s.current.destroy()}),[s.current]),s.current.updateState(t),i}function OC(){const e=ov(),t=sv(),n=t===null?"...":Math.round(t).toString();let r;return e.connected?r="green":r="red",(0,Ln.jsxs)("div",{style:{display:"inline-block",border:"1px solid #ccc",background:"#eee",borderRadius:10,padding:10},children:["DriftDB status:"," ",(0,Ln.jsx)("span",{style:{color:r,fontWeight:"bold"},children:e.connected?"Connected":"Disconnected"}),e.connected?(0,Ln.jsxs)(Ln.Fragment,{children:[" ",(0,Ln.jsxs)("span",{style:{fontSize:"70%",color:"#aaa"},children:[(0,Ln.jsx)("a",{target:"_blank",rel:"noreferrer",style:{textDecoration:"none",color:"#aaa"},href:e.debugUrl,children:"(ui)"}),"(",n,"ms)"]})]}):null]})}const MC=()=>W_(),LC=L_;function AC(){const e=MC(),t=LC(i=>i.snackbar),n=A.useCallback((i,o)=>o!=="clickaway"&&e(za.resetSnackbar()),[e,za]),r=oe.jsx(M0,{size:"small","aria-label":"Close",color:"inherit",onClick:n,children:oe.jsx(q0,{fontSize:"small"})});return oe.jsx(nC,{action:r,onClose:n,...t})}const NC=o2(Uc(TT),{basename:b2});function BC(){return oe.jsxs(A.StrictMode,{children:[oe.jsx(w_,{}),oe.jsxs($_,{store:TR,children:[oe.jsx(p2,{router:NC}),oe.jsx(AC,{})]})]})}const DC=bg(document.getElementById("root"));DC.render(oe.jsx(BC,{}));export{Yb as $,P0 as A,Z2 as B,Kg as C,UC as D,qn as E,T0 as F,x0 as G,rs as H,M0 as I,Wb as J,IR as K,Np as L,Rk as M,E2 as N,m_ as O,I0 as P,Wi as Q,Tn as R,tk as S,zk as T,jR as U,tm as V,NR as W,zR as X,$C as Y,Qb as Z,X as _,tn as a,jC as a0,Wg as a1,Te as b,P2 as c,Jg as d,Be as e,Qe as f,nn as g,pn as h,qx as i,oe as j,v2 as k,Zg as l,Gr as m,zg as n,Lo as o,Fg as p,Kf as q,A as r,wt as s,Hb as t,zt as u,cr as v,Qc as w,$b as x,Fb as y,FC as z}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/ErrorBoundary-J0VEI-Mo.js","assets/useSetDocumentTitle-Ksgo9PXo.js","assets/Home-g_xXNBgC.js","assets/CardContent-dpCYL8Mf.js","assets/NotFound-IAqs8Vq9.js","assets/Room-UKXYDF5M.js"] + __vite__mapDeps.viteFileDeps = ["assets/ErrorBoundary-CvPPiDQJ.js","assets/useSetDocumentTitle-GBE0xs8I.js","assets/Home-jHcFiUPI.js","assets/CardContent-NFY9XfSV.js","assets/NotFound-4CVTA1Ff.js","assets/Room-DiGSVbGm.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/assets/useSetDocumentTitle-GBE0xs8I.js b/assets/useSetDocumentTitle-GBE0xs8I.js new file mode 100644 index 00000000..65012b97 --- /dev/null +++ b/assets/useSetDocumentTitle-GBE0xs8I.js @@ -0,0 +1 @@ +import{r as e}from"./index-Ly36R-YS.js";function r(t){e.useEffect(()=>{document.title=t})}export{r as u}; diff --git a/assets/useSetDocumentTitle-Ksgo9PXo.js b/assets/useSetDocumentTitle-Ksgo9PXo.js deleted file mode 100644 index 9089e83f..00000000 --- a/assets/useSetDocumentTitle-Ksgo9PXo.js +++ /dev/null @@ -1 +0,0 @@ -import{r as e}from"./index-Tolw1maY.js";function r(t){e.useEffect(()=>{document.title=t})}export{r as u}; diff --git a/index.html b/index.html index 1dc8b7d0..74b16007 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Just Jokes | remarkablegames
\ No newline at end of file +Just Jokes | remarkablegames
\ No newline at end of file