From e33d6398d630ef879686f62919000ac6dbd126ad Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Fri, 18 Jun 2021 19:18:26 -0400 Subject: [PATCH 01/14] fix(cgi-bin): accept server UUID list in set_power --- cgi-bin/set_power | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/cgi-bin/set_power b/cgi-bin/set_power index 382f3a3d..3f081042 100755 --- a/cgi-bin/set_power +++ b/cgi-bin/set_power @@ -166,20 +166,23 @@ if (not $is_decode_json_success) }); } -my $anvil_uuid = exists $request_body->{anvil_uuid} ? $request_body->{anvil_uuid} : $anvil->data->{switches}{'anvil-uuid'}; -my $host_uuid = exists $request_body->{host_uuid} ? $request_body->{host_uuid} : $anvil->data->{switches}{'host-uuid'}; -my $is_on = exists $request_body->{is_on} ? $request_body->{is_on} : $anvil->data->{switches}{'is-on'}; -my $anvil_uuid_variable_name = "anvil UUID"; -my $host_uuid_variable_name = "host UUID"; +my $anvil_uuid = exists $request_body->{anvil_uuid} ? $request_body->{anvil_uuid} : $anvil->data->{switches}{'anvil-uuid'}; +my $host_uuid = exists $request_body->{host_uuid} ? $request_body->{host_uuid} : $anvil->data->{switches}{'host-uuid'}; +my $server_uuid_list = exists $request_body->{server_uuid_list} ? $request_body->{server_uuid_list} : [ $anvil->data->{switches}{'server-uuid'} ]; +my $is_on = exists $request_body->{is_on} ? $request_body->{is_on} : $anvil->data->{switches}{'is-on'}; +my $anvil_uuid_variable_name = "anvil UUID"; +my $host_uuid_variable_name = "host UUID"; +my $server_uuid_list_variable_name = "server UUID list"; $anvil->Log->variables({ source => $THIS_FILE, line => __LINE__, level => 2, list => { - anvil_uuid => $anvil_uuid, - host_uuid => $host_uuid, - is_on => $is_on + anvil_uuid => $anvil_uuid, + host_uuid => $host_uuid, + server_uuid_list => $server_uuid_list, + is_on => $is_on } }); @@ -205,5 +208,14 @@ elsif ($host_uuid) handle_invalid_uuid({ name => $host_uuid_variable_name, uuid => $host_uuid }); } } +elsif ($server_uuid_list) +{ + foreach (@{$server_uuid_list}) + { + my $server_uuid = $_; + + $anvil->Log->variables({ source => $THIS_FILE, line => __LINE__, level => 2, list => { server_uuid => $server_uuid } }); + } +} print JSON->new->utf8->encode($response_body)."\n"; From 900e24c7c14dd8f40971211f7aa5b77d33f1f987 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Fri, 18 Jun 2021 19:25:14 -0400 Subject: [PATCH 02/14] chore(cgi-bin): set log level for debug --- cgi-bin/set_power | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cgi-bin/set_power b/cgi-bin/set_power index 3f081042..767e84a8 100755 --- a/cgi-bin/set_power +++ b/cgi-bin/set_power @@ -20,6 +20,8 @@ if (($running_directory =~ /^\./) && ($ENV{PWD})) my $anvil = Anvil::Tools->new(); +$anvil->Log->level({ set => 2 }); + sub handle_invalid_uuid { my $parameters = shift; From 824213f205b2d27cb739161dd0a14337d7b9a32b Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Tue, 22 Jun 2021 18:49:02 -0400 Subject: [PATCH 03/14] fix(cgi-bin): add logic to power on/off server VM --- cgi-bin/set_power | 52 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/cgi-bin/set_power b/cgi-bin/set_power index 767e84a8..b48999bf 100755 --- a/cgi-bin/set_power +++ b/cgi-bin/set_power @@ -116,6 +116,56 @@ sub set_host_power } } +sub set_server_power +{ + my $parameters = shift; + my $server_uuid = $parameters->{server_uuid}; + my $on = $parameters->{on}; + + my $query = " +SELECT + server_anvil_uuid +FROM + servers +WHERE + server_uuid = ".$anvil->Database->quote($server_uuid)." +;"; + my $results = $anvil->Database->query({ query => $query, source => $THIS_FILE, line => __LINE__ }); + my $count = @{$results}; + + if ($count == 1) + { + my $row = $results->[0]; + my $anvil_uuid = $row->[0]; + my $host_uuid = $anvil->data->{anvils}{anvil_uuid}{$anvil_uuid}{anvil_node1_host_uuid}; + + $anvil->Log->variables({ source => $THIS_FILE, line => __LINE__, level => 2, list => { anvil_uuid => $anvil_uuid, host_uuid => $host_uuid, server_uuid => $server_uuid } }); + + # if ($on) + # { + # $anvil->Database->insert_or_update_jobs({ + # job_command => $anvil->data->{path}{exe}{'anvil-boot-server'}." --server-uuid ".$server_uuid, + # job_host_uuid => $host_uuid, + # job_description => "", + # job_name => "cgi-bin::set_power::server::on", + # job_progress => 0, + # job_title => "" + # }); + # } + # else + # { + # $anvil->Database->insert_or_update_jobs({ + # job_command => $anvil->data->{path}{exe}{'anvil-shutdown-server'}." --server-uuid ".$server_uuid, + # job_host_uuid => $host_uuid, + # job_description => "", + # job_name => "cgi-bin::set_power::server::off", + # job_progress => 0, + # job_title => "" + # }); + # } + } +} + $anvil->Get->switches; $anvil->Database->connect; @@ -217,6 +267,8 @@ elsif ($server_uuid_list) my $server_uuid = $_; $anvil->Log->variables({ source => $THIS_FILE, line => __LINE__, level => 2, list => { server_uuid => $server_uuid } }); + + set_server_power({ server_uuid => $server_uuid, on => $is_on }); } } From 2d1987f91a74d84f6e33e0a1c6402f893d449930 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Tue, 22 Jun 2021 19:59:29 -0400 Subject: [PATCH 04/14] fix(cgi-bin): enable sending power on/off server VM jobs --- cgi-bin/set_power | 44 ++++++++++++++++++++++---------------------- share/words.xml | 8 ++++++++ 2 files changed, 30 insertions(+), 22 deletions(-) diff --git a/cgi-bin/set_power b/cgi-bin/set_power index b48999bf..e49129ac 100755 --- a/cgi-bin/set_power +++ b/cgi-bin/set_power @@ -141,28 +141,28 @@ WHERE $anvil->Log->variables({ source => $THIS_FILE, line => __LINE__, level => 2, list => { anvil_uuid => $anvil_uuid, host_uuid => $host_uuid, server_uuid => $server_uuid } }); - # if ($on) - # { - # $anvil->Database->insert_or_update_jobs({ - # job_command => $anvil->data->{path}{exe}{'anvil-boot-server'}." --server-uuid ".$server_uuid, - # job_host_uuid => $host_uuid, - # job_description => "", - # job_name => "cgi-bin::set_power::server::on", - # job_progress => 0, - # job_title => "" - # }); - # } - # else - # { - # $anvil->Database->insert_or_update_jobs({ - # job_command => $anvil->data->{path}{exe}{'anvil-shutdown-server'}." --server-uuid ".$server_uuid, - # job_host_uuid => $host_uuid, - # job_description => "", - # job_name => "cgi-bin::set_power::server::off", - # job_progress => 0, - # job_title => "" - # }); - # } + if ($on) + { + $anvil->Database->insert_or_update_jobs({ + job_command => $anvil->data->{path}{exe}{'anvil-boot-server'}." --server-uuid ".$server_uuid, + job_host_uuid => $host_uuid, + job_description => "job_0341", + job_name => "cgi-bin::set_power::server::on", + job_progress => 0, + job_title => "job_0340" + }); + } + else + { + $anvil->Database->insert_or_update_jobs({ + job_command => $anvil->data->{path}{exe}{'anvil-shutdown-server'}." --server-uuid ".$server_uuid, + job_host_uuid => $host_uuid, + job_description => "job_0343", + job_name => "cgi-bin::set_power::server::off", + job_progress => 0, + job_title => "job_0342" + }); + } } } diff --git a/share/words.xml b/share/words.xml index fef1b511..d0e898ad 100644 --- a/share/words.xml +++ b/share/words.xml @@ -1096,6 +1096,14 @@ It should be provisioned in the next minute or two. Host Leave Cluster Make target host leave its anvil cluster. + + Power On Server VM + + Power on the target server VM by executing a start script on the first host within the cluster. + + Power Off Server VM + + Power off the target server VM by executing a stop script on the first a host within the cluster. Starting: [#!variable!program!#]. From 3bbdd27ec4bf0f95d7ec5e7d57d259ab096a924a Mon Sep 17 00:00:00 2001 From: Josue Date: Tue, 22 Jun 2021 17:13:38 -0400 Subject: [PATCH 05/14] chore: add mui icons: --- striker-ui/package-lock.json | 37 ++++++++++++++++++++++-------------- striker-ui/package.json | 1 + 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/striker-ui/package-lock.json b/striker-ui/package-lock.json index ff60ae90..b86c9414 100644 --- a/striker-ui/package-lock.json +++ b/striker-ui/package-lock.json @@ -447,6 +447,14 @@ "react-transition-group": "^4.4.0" } }, + "@material-ui/icons": { + "version": "4.11.2", + "resolved": "https://registry.npmjs.org/@material-ui/icons/-/icons-4.11.2.tgz", + "integrity": "sha512-fQNsKX2TxBmqIGJCSi3tGTO/gZ+eJgWmMJkgDiOfyNaunNaxcklJQFaFogYcFl0qFuaEz1qaXYXboa/bUXVSOQ==", + "requires": { + "@babel/runtime": "^7.4.4" + } + }, "@material-ui/styles": { "version": "4.11.4", "resolved": "https://registry.npmjs.org/@material-ui/styles/-/styles-4.11.4.tgz", @@ -2347,7 +2355,8 @@ }, "hosted-git-info": { "version": "2.8.8", - "resolved": "", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.8.tgz", + "integrity": "sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg==", "dev": true }, "locate-path": { @@ -4748,22 +4757,22 @@ } }, "react": { - "version": "17.0.1", - "resolved": "https://registry.npmjs.org/react/-/react-17.0.1.tgz", - "integrity": "sha512-lG9c9UuMHdcAexXtigOZLX8exLWkW0Ku29qPRU8uhF2R9BN96dLCt0psvzPLlHc5OWkgymP3qwTRgbnw5BKx3w==", + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react/-/react-17.0.2.tgz", + "integrity": "sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==", "requires": { "loose-envify": "^1.1.0", "object-assign": "^4.1.1" } }, "react-dom": { - "version": "17.0.1", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-17.0.1.tgz", - "integrity": "sha512-6eV150oJZ9U2t9svnsspTMrWNyHc6chX0KzDeAOXftRa8bNeOKTTfCJ7KorIwenkHd2xqVTBTCZd79yk/lx/Ug==", + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-17.0.2.tgz", + "integrity": "sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA==", "requires": { "loose-envify": "^1.1.0", "object-assign": "^4.1.1", - "scheduler": "^0.20.1" + "scheduler": "^0.20.2" } }, "react-is": { @@ -4999,9 +5008,9 @@ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, "scheduler": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.20.1.tgz", - "integrity": "sha512-LKTe+2xNJBNxu/QhHvDR14wUXHRQbVY5ZOYpOGWRzhydZUqrLb2JBvLPY7cAqFmqrWuDED0Mjk7013SZiOz6Bw==", + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.20.2.tgz", + "integrity": "sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==", "requires": { "loose-envify": "^1.1.0", "object-assign": "^4.1.1" @@ -5393,9 +5402,9 @@ } }, "swr": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/swr/-/swr-0.4.2.tgz", - "integrity": "sha512-SKGxcAfyijj/lE5ja5zVMDqJNudASH3WZPRUakDVOePTM18FnsXgugndjl9BSRwj+jokFCulMDe7F2pQL+VhEw==", + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/swr/-/swr-0.5.6.tgz", + "integrity": "sha512-Bmx3L4geMZjYT5S2Z6EE6/5Cx6v1Ka0LhqZKq8d6WL2eu9y6gHWz3dUzfIK/ymZVHVfwT/EweFXiYGgfifei3w==", "requires": { "dequal": "2.0.2" } diff --git a/striker-ui/package.json b/striker-ui/package.json index 46e0b131..d70ed0cc 100644 --- a/striker-ui/package.json +++ b/striker-ui/package.json @@ -13,6 +13,7 @@ }, "dependencies": { "@material-ui/core": "^4.11.3", + "@material-ui/icons": "^4.11.2", "@material-ui/styles": "^4.11.4", "next": "^10.2.3", "pretty-bytes": "^5.6.0", From b5770ab02dae9be6da0a457bfcf1143eefbf29e9 Mon Sep 17 00:00:00 2001 From: Josue Date: Tue, 22 Jun 2021 17:14:45 -0400 Subject: [PATCH 06/14] feat: add controls to turn servers on or off --- striker-ui/components/Servers.tsx | 103 ++++++++++++++++++++++++++++-- 1 file changed, 98 insertions(+), 5 deletions(-) diff --git a/striker-ui/components/Servers.tsx b/striker-ui/components/Servers.tsx index ac2cac41..127d64f0 100644 --- a/striker-ui/components/Servers.tsx +++ b/striker-ui/components/Servers.tsx @@ -1,5 +1,16 @@ -import { useContext } from 'react'; -import { List, ListItem, Divider, Box } from '@material-ui/core'; +import { useState, useContext } from 'react'; +import { + List, + ListItem, + Divider, + Box, + Button, + Checkbox, + Menu, + MenuItem, +} from '@material-ui/core'; +import EditIcon from '@material-ui/icons/Edit'; +import MoreVertIcon from '@material-ui/icons/MoreVert'; import { makeStyles } from '@material-ui/core/styles'; import { Panel } from './Panels'; import PeriodicFetch from '../lib/fetchers/periodicFetch'; @@ -43,6 +54,16 @@ const useStyles = makeStyles((theme) => ({ hostBox: { paddingTop: 0, }, + checkbox: { + paddingTop: '.8em', + }, + editButtonBox: { + paddingTop: '.3em', + }, + dropdown: { + paddingTop: '.8em', + paddingBottom: '.8em', + }, })); const selectDecorator = (state: string): Colours => { @@ -59,6 +80,9 @@ const selectDecorator = (state: string): Colours => { }; const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => { + const [anchorEl, setAnchorEl] = useState(null); + const [showCheckbox, setShowCheckbox] = useState(false); + const [selected, setSelected] = useState([]); const { uuid } = useContext(AnvilContext); const classes = useStyles(); @@ -66,15 +90,74 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => { `${process.env.NEXT_PUBLIC_API_URL}/get_servers?anvil_uuid=${uuid}`, ); + const handleClick = (event: React.MouseEvent): void => { + setAnchorEl(event.currentTarget); + }; + + const handleClose = () => { + setAnchorEl(null); + }; + + const handleChange = (server_uuid: string): void => { + const index = selected.indexOf(server_uuid); + if (index === -1) { + selected.push(server_uuid); + setSelected([...selected]); + } else selected.splice(index, 1); + }; + + const isSelected = (server: string): boolean => { + const thing = selected.find((s) => s === server); + return thing !== 'undefined'; + }; + const anvilIndex = anvil.findIndex((a) => a.anvil_uuid === uuid); const filteredHosts = hostsSanitizer(anvil[anvilIndex]?.hosts); return ( -
- -
+ + + + + + + + + + + + + + + + + )} {!isLoading ? ( @@ -88,6 +171,16 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => { key={server.server_uuid} > + {showCheckbox && ( + + handleChange(server.server_uuid)} + inputProps={{ 'aria-label': 'primary checkbox' }} + /> + + )} Date: Tue, 22 Jun 2021 18:25:11 -0400 Subject: [PATCH 07/14] fix: improve server selection in the server component --- striker-ui/components/Servers.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/striker-ui/components/Servers.tsx b/striker-ui/components/Servers.tsx index 127d64f0..abac519a 100644 --- a/striker-ui/components/Servers.tsx +++ b/striker-ui/components/Servers.tsx @@ -103,12 +103,10 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => { if (index === -1) { selected.push(server_uuid); setSelected([...selected]); - } else selected.splice(index, 1); - }; - - const isSelected = (server: string): boolean => { - const thing = selected.find((s) => s === server); - return thing !== 'undefined'; + } else { + selected.splice(index, 1); + setSelected([...selected]); + } }; const anvilIndex = anvil.findIndex((a) => a.anvil_uuid === uuid); @@ -175,7 +173,11 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => { s === server.server_uuid, + ) !== undefined + } onChange={() => handleChange(server.server_uuid)} inputProps={{ 'aria-label': 'primary checkbox' }} /> From 809bb1bb32842e3aa3741172bd95e4e980e3fb70 Mon Sep 17 00:00:00 2001 From: Josue Date: Wed, 23 Jun 2021 16:26:24 -0400 Subject: [PATCH 08/14] style: fix colours when enabling edit mode --- striker-ui/components/Servers.tsx | 75 ++++++++++++++++++++++--------- 1 file changed, 54 insertions(+), 21 deletions(-) diff --git a/striker-ui/components/Servers.tsx b/striker-ui/components/Servers.tsx index abac519a..530bd617 100644 --- a/striker-ui/components/Servers.tsx +++ b/striker-ui/components/Servers.tsx @@ -4,10 +4,12 @@ import { ListItem, Divider, Box, + IconButton, Button, Checkbox, Menu, MenuItem, + Typography, } from '@material-ui/core'; import EditIcon from '@material-ui/icons/Edit'; import MoreVertIcon from '@material-ui/icons/MoreVert'; @@ -15,7 +17,14 @@ import { makeStyles } from '@material-ui/core/styles'; import { Panel } from './Panels'; import PeriodicFetch from '../lib/fetchers/periodicFetch'; import { HeaderText, BodyText } from './Text'; -import { HOVER, DIVIDER } from '../lib/consts/DEFAULT_THEME'; +import { + HOVER, + DIVIDER, + TEXT, + BLUE, + RED, + GREY, +} from '../lib/consts/DEFAULT_THEME'; import { AnvilContext } from './AnvilContext'; import serverState from '../lib/consts/SERVERS'; import Decorator, { Colours } from './Decorator'; @@ -57,6 +66,13 @@ const useStyles = makeStyles((theme) => ({ checkbox: { paddingTop: '.8em', }, + editButton: { + borderRadius: 8, + backgroundColor: GREY, + '&:hover': { + backgroundColor: TEXT, + }, + }, editButtonBox: { paddingTop: '.3em', }, @@ -64,6 +80,15 @@ const useStyles = makeStyles((theme) => ({ paddingTop: '.8em', paddingBottom: '.8em', }, + power: { + color: 'black', + }, + on: { + color: BLUE, + }, + off: { + color: RED, + }, })); const selectDecorator = (state: string): Colours => { @@ -100,13 +125,11 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => { const handleChange = (server_uuid: string): void => { const index = selected.indexOf(server_uuid); - if (index === -1) { - selected.push(server_uuid); - setSelected([...selected]); - } else { - selected.splice(index, 1); - setSelected([...selected]); - } + + if (index === -1) selected.push(server_uuid); + else selected.splice(index, 1); + + setSelected([...selected]); }; const anvilIndex = anvil.findIndex((a) => a.anvil_uuid === uuid); @@ -120,12 +143,13 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => { - { open={Boolean(anchorEl)} onClose={handleClose} > - - + + + On + - - + + + Off + @@ -172,14 +205,14 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => { {showCheckbox && ( s === server.server_uuid, ) !== undefined } onChange={() => handleChange(server.server_uuid)} - inputProps={{ 'aria-label': 'primary checkbox' }} /> )} From 68765a3408e34d4f6850ea15ba5e6ca24b6372f2 Mon Sep 17 00:00:00 2001 From: Josue Date: Thu, 24 Jun 2021 12:28:58 -0400 Subject: [PATCH 09/14] refactor(front-end): add colours to main theme, add select all functionality and fix style errors --- striker-ui/components/Servers.tsx | 103 +++++++++++++++++-------- striker-ui/lib/consts/DEFAULT_THEME.ts | 1 + 2 files changed, 70 insertions(+), 34 deletions(-) diff --git a/striker-ui/components/Servers.tsx b/striker-ui/components/Servers.tsx index 530bd617..9a525e19 100644 --- a/striker-ui/components/Servers.tsx +++ b/striker-ui/components/Servers.tsx @@ -24,6 +24,8 @@ import { BLUE, RED, GREY, + BLACK, + PURPLE, } from '../lib/consts/DEFAULT_THEME'; import { AnvilContext } from './AnvilContext'; import serverState from '../lib/consts/SERVERS'; @@ -66,6 +68,13 @@ const useStyles = makeStyles((theme) => ({ checkbox: { paddingTop: '.8em', }, + menuItem: { + backgroundColor: TEXT, + paddingRight: '3em', + '&:hover': { + backgroundColor: TEXT, + }, + }, editButton: { borderRadius: 8, backgroundColor: GREY, @@ -81,7 +90,7 @@ const useStyles = makeStyles((theme) => ({ paddingBottom: '.8em', }, power: { - color: 'black', + color: BLACK, }, on: { color: BLUE, @@ -89,6 +98,10 @@ const useStyles = makeStyles((theme) => ({ off: { color: RED, }, + all: { + paddingTop: '.5em', + paddingLeft: '.3em', + }, })); const selectDecorator = (state: string): Colours => { @@ -107,6 +120,7 @@ const selectDecorator = (state: string): Colours => { const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => { const [anchorEl, setAnchorEl] = useState(null); const [showCheckbox, setShowCheckbox] = useState(false); + const [allSelected, setAllSelected] = useState(false); const [selected, setSelected] = useState([]); const { uuid } = useContext(AnvilContext); const classes = useStyles(); @@ -145,7 +159,7 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => { setShowCheckbox(!showCheckbox)} > @@ -153,41 +167,62 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => { {showCheckbox && ( - - - - - + + + + + + + + On + + + + + Off + + + + - + + + { + if (!allSelected) + setSelected( + data.servers.map( + (server: AnvilServer) => server.server_uuid, + ), + ); + else setSelected([]); + + setAllSelected(!allSelected); + }} + /> + + + + + + )} {!isLoading ? ( diff --git a/striker-ui/lib/consts/DEFAULT_THEME.ts b/striker-ui/lib/consts/DEFAULT_THEME.ts index 820fbc23..2419d4ce 100644 --- a/striker-ui/lib/consts/DEFAULT_THEME.ts +++ b/striker-ui/lib/consts/DEFAULT_THEME.ts @@ -12,5 +12,6 @@ export const UNSELECTED = '#666'; export const DIVIDER = '#888'; export const SELECTED_ANVIL = '#00ff00'; export const DISABLED = '#AAA'; +export const BLACK = '#343434'; export const BORDER_RADIUS = '3px'; From 42d3a637d07033dcb2b738443c88933702864faf Mon Sep 17 00:00:00 2001 From: Josue Date: Thu, 24 Jun 2021 16:03:41 -0400 Subject: [PATCH 10/14] refactor(front-end): add fetcher to set power and refactor power buttons --- striker-ui/components/Servers.tsx | 44 ++++++++++++++++++++++--------- 1 file changed, 31 insertions(+), 13 deletions(-) diff --git a/striker-ui/components/Servers.tsx b/striker-ui/components/Servers.tsx index 9a525e19..3a9b9831 100644 --- a/striker-ui/components/Servers.tsx +++ b/striker-ui/components/Servers.tsx @@ -33,6 +33,8 @@ import Decorator, { Colours } from './Decorator'; import Spinner from './Spinner'; import hostsSanitizer from '../lib/sanitizers/hostsSanitizer'; +import putJSON from '../lib/fetchers/putJSON'; + const useStyles = makeStyles((theme) => ({ root: { width: '100%', @@ -117,6 +119,10 @@ const selectDecorator = (state: string): Colours => { } }; +type ButtonLabels = 'on' | 'off'; + +const buttonLabels: ButtonLabels[] = ['on', 'off']; + const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => { const [anchorEl, setAnchorEl] = useState(null); const [showCheckbox, setShowCheckbox] = useState(false); @@ -133,8 +139,14 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => { setAnchorEl(event.currentTarget); }; - const handleClose = () => { + const handlePower = (label: ButtonLabels) => { setAnchorEl(null); + if (!selected.length) { + putJSON('/set_power', { + server_uuid: selected, + is_on: label === 'on', + }); + } }; const handleChange = (server_uuid: string): void => { @@ -184,22 +196,28 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => { anchorEl={anchorEl} keepMounted open={Boolean(anchorEl)} - onClose={handleClose} + onClose={handlePower} > - - - On - - - - - Off - - + {buttonLabels.map((label: ButtonLabels) => { + return ( + handlePower(label)} + className={classes.menuItem} + key={label} + > + + {label.replace(/^[a-z]/, (c) => c.toUpperCase())} + + + ); + })} - + Date: Fri, 25 Jun 2021 11:46:31 -0400 Subject: [PATCH 11/14] style(front-end): change icon for edit mode, and fix problem with capitalized text in power button --- striker-ui/components/Servers.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/striker-ui/components/Servers.tsx b/striker-ui/components/Servers.tsx index 3a9b9831..fe106ae1 100644 --- a/striker-ui/components/Servers.tsx +++ b/striker-ui/components/Servers.tsx @@ -13,6 +13,7 @@ import { } from '@material-ui/core'; import EditIcon from '@material-ui/icons/Edit'; import MoreVertIcon from '@material-ui/icons/MoreVert'; +import CheckIcon from '@material-ui/icons/Check'; import { makeStyles } from '@material-ui/core/styles'; import { Panel } from './Panels'; import PeriodicFetch from '../lib/fetchers/periodicFetch'; @@ -25,7 +26,6 @@ import { RED, GREY, BLACK, - PURPLE, } from '../lib/consts/DEFAULT_THEME'; import { AnvilContext } from './AnvilContext'; import serverState from '../lib/consts/SERVERS'; @@ -171,10 +171,10 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => { setShowCheckbox(!showCheckbox)} > - + {showCheckbox ? : } @@ -186,13 +186,13 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => { variant="contained" startIcon={} onClick={handleClick} + style={{ textTransform: 'none' }} > Power Date: Fri, 25 Jun 2021 16:44:58 -0400 Subject: [PATCH 12/14] fix(front-end): adjust logic to perform set action and change prop name sent to the back-end --- striker-ui/components/Servers.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/striker-ui/components/Servers.tsx b/striker-ui/components/Servers.tsx index fe106ae1..4ae2832b 100644 --- a/striker-ui/components/Servers.tsx +++ b/striker-ui/components/Servers.tsx @@ -141,9 +141,9 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => { const handlePower = (label: ButtonLabels) => { setAnchorEl(null); - if (!selected.length) { + if (selected.length) { putJSON('/set_power', { - server_uuid: selected, + server_uuid_list: selected, is_on: label === 'on', }); } From 8615bf9f205b26fc58da1fe35c6447f3d4318848 Mon Sep 17 00:00:00 2001 From: Josue Date: Fri, 25 Jun 2021 16:51:19 -0400 Subject: [PATCH 13/14] fix(front-end): avoid sending a set_power request when closing the power menu --- striker-ui/components/Servers.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/striker-ui/components/Servers.tsx b/striker-ui/components/Servers.tsx index 4ae2832b..e781a4b5 100644 --- a/striker-ui/components/Servers.tsx +++ b/striker-ui/components/Servers.tsx @@ -196,7 +196,7 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => { anchorEl={anchorEl} keepMounted open={Boolean(anchorEl)} - onClose={handlePower} + onClose={() => setAnchorEl(null)} > {buttonLabels.map((label: ButtonLabels) => { return ( From a5e0c85d405ffcf30a3300424365ab35ebc9d366 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Fri, 25 Jun 2021 17:18:08 -0400 Subject: [PATCH 14/14] chore: rebuild web UI --- .../_buildManifest.js | 2 +- .../_ssgManifest.js | 0 .../out/_next/static/chunks/576-8c091667959361a02026.js | 1 - .../out/_next/static/chunks/642-0e4040fe0a744c110cab.js | 1 + ...p-b5d6858d1426469549f6.js => _app-88ba5c92fa3ac1d52da7.js} | 2 +- .../_next/static/chunks/pages/index-312a12570203472e8a0b.js | 1 - .../_next/static/chunks/pages/index-ca8a2930d2c5ccf8a7f5.js | 1 + striker-ui/out/index.html | 4 ++-- 8 files changed, 6 insertions(+), 6 deletions(-) rename striker-ui/out/_next/static/{isEArxf7KboS1BZr7i3tW => 3u8VlnDkIB4kvVnXXJdo9}/_buildManifest.js (57%) rename striker-ui/out/_next/static/{isEArxf7KboS1BZr7i3tW => 3u8VlnDkIB4kvVnXXJdo9}/_ssgManifest.js (100%) delete mode 100644 striker-ui/out/_next/static/chunks/576-8c091667959361a02026.js create mode 100644 striker-ui/out/_next/static/chunks/642-0e4040fe0a744c110cab.js rename striker-ui/out/_next/static/chunks/pages/{_app-b5d6858d1426469549f6.js => _app-88ba5c92fa3ac1d52da7.js} (90%) delete mode 100644 striker-ui/out/_next/static/chunks/pages/index-312a12570203472e8a0b.js create mode 100644 striker-ui/out/_next/static/chunks/pages/index-ca8a2930d2c5ccf8a7f5.js diff --git a/striker-ui/out/_next/static/isEArxf7KboS1BZr7i3tW/_buildManifest.js b/striker-ui/out/_next/static/3u8VlnDkIB4kvVnXXJdo9/_buildManifest.js similarity index 57% rename from striker-ui/out/_next/static/isEArxf7KboS1BZr7i3tW/_buildManifest.js rename to striker-ui/out/_next/static/3u8VlnDkIB4kvVnXXJdo9/_buildManifest.js index 4ce1254f..da25b994 100644 --- a/striker-ui/out/_next/static/isEArxf7KboS1BZr7i3tW/_buildManifest.js +++ b/striker-ui/out/_next/static/3u8VlnDkIB4kvVnXXJdo9/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/chunks/576-8c091667959361a02026.js","static/chunks/pages/index-312a12570203472e8a0b.js"],"/_error":["static/chunks/pages/_error-a9f53acb468cbab8a6cb.js"],sortedPages:["/","/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file +self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/chunks/642-0e4040fe0a744c110cab.js","static/chunks/pages/index-ca8a2930d2c5ccf8a7f5.js"],"/_error":["static/chunks/pages/_error-a9f53acb468cbab8a6cb.js"],sortedPages:["/","/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/striker-ui/out/_next/static/isEArxf7KboS1BZr7i3tW/_ssgManifest.js b/striker-ui/out/_next/static/3u8VlnDkIB4kvVnXXJdo9/_ssgManifest.js similarity index 100% rename from striker-ui/out/_next/static/isEArxf7KboS1BZr7i3tW/_ssgManifest.js rename to striker-ui/out/_next/static/3u8VlnDkIB4kvVnXXJdo9/_ssgManifest.js diff --git a/striker-ui/out/_next/static/chunks/576-8c091667959361a02026.js b/striker-ui/out/_next/static/chunks/576-8c091667959361a02026.js deleted file mode 100644 index ac415514..00000000 --- a/striker-ui/out/_next/static/chunks/576-8c091667959361a02026.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[576],{3349:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},5991:function(e,t,n){"use strict";function r(e,t){for(var n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},9756:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}n.d(t,{Z:function(){return r}})},5258:function(e,t,n){"use strict";var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(6010)),s=n(4670),c=n(3871),l=n(9895),u=o.forwardRef((function(e,t){var n=e.classes,s=e.className,u=e.color,d=void 0===u?"primary":u,f=e.position,p=void 0===f?"fixed":f,h=(0,i.Z)(e,["classes","className","color","position"]);return o.createElement(l.Z,(0,r.Z)({square:!0,component:"header",elevation:4,className:(0,a.Z)(n.root,n["position".concat((0,c.Z)(p))],n["color".concat((0,c.Z)(d))],s,"fixed"===p&&"mui-fixed"),ref:t},h))}));t.Z=(0,s.Z)((function(e){var t="light"===e.palette.type?e.palette.grey[100]:e.palette.grey[900];return{root:{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",zIndex:e.zIndex.appBar,flexShrink:0},positionFixed:{position:"fixed",top:0,left:"auto",right:0,"@media print":{position:"absolute"}},positionAbsolute:{position:"absolute",top:0,left:"auto",right:0},positionSticky:{position:"sticky",top:0,left:"auto",right:0},positionStatic:{position:"static"},positionRelative:{position:"relative"},colorDefault:{backgroundColor:t,color:e.palette.getContrastText(t)},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorInherit:{color:"inherit"},colorTransparent:{backgroundColor:"transparent",color:"inherit"}}}),{name:"MuiAppBar"})(u)},6049:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var r=n(119),i=n(5680),o=n(9424),a=n(962),s=n(3633),c=n(6427),l=n(3939),u=n(5164),d=n(958),f=n(6801),p=n(8681),h=n(9560),m=n(2122),v=n(2949),y=n(7294),g=n(6010),b=(n(5697),n(8679)),x=n.n(b),k=n(3746);function w(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}var S=n(1947),Z=function(e){var t=function(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.name,o=(0,v.Z)(r,["name"]),a=i,s="function"===typeof t?function(e){return{root:function(n){return t((0,m.Z)({theme:e},n))}}}:{root:t},c=(0,k.Z)(s,(0,m.Z)({Component:e,name:i||e.displayName,classNamePrefix:a},o));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var l=y.forwardRef((function(t,r){var i=t.children,o=t.className,a=t.clone,s=t.component,l=(0,v.Z)(t,["children","className","clone","component"]),u=c(t),d=(0,g.Z)(u.root,o),f=l;if(n&&(f=w(f,n)),a)return y.cloneElement(i,(0,m.Z)({className:(0,g.Z)(i.props.className,d)},f));if("function"===typeof i)return i((0,m.Z)({className:d},f));var p=s||e;return y.createElement(p,(0,m.Z)({ref:r,className:d},f),i)}));return x()(l,e),l}}(e);return function(e,n){return t(e,(0,m.Z)({defaultTheme:S.Z},n))}},E=(0,r.Z)((0,i.Z)(o.ZP,a.ZP,s.ZP,c.ZP,l.ZP,u.ZP,d.Z,f.ZP,p.Z,h.ZP)),C=Z("div")(E,{name:"MuiBox"})},282:function(e,t,n){"use strict";var r=n(2949),i=n(2122),o=n(7294),a=(n(5697),n(6010)),s=n(4670),c=n(9693),l=n(3629),u=n(3871),d=o.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,d=e.color,f=void 0===d?"default":d,p=e.component,h=void 0===p?"button":p,m=e.disabled,v=void 0!==m&&m,y=e.disableElevation,g=void 0!==y&&y,b=e.disableFocusRipple,x=void 0!==b&&b,k=e.endIcon,w=e.focusVisibleClassName,S=e.fullWidth,Z=void 0!==S&&S,E=e.size,C=void 0===E?"medium":E,R=e.startIcon,P=e.type,O=void 0===P?"button":P,T=e.variant,N=void 0===T?"text":T,M=(0,r.Z)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),A=R&&o.createElement("span",{className:(0,a.Z)(s.startIcon,s["iconSize".concat((0,u.Z)(C))])},R),I=k&&o.createElement("span",{className:(0,a.Z)(s.endIcon,s["iconSize".concat((0,u.Z)(C))])},k);return o.createElement(l.Z,(0,i.Z)({className:(0,a.Z)(s.root,s[N],c,"inherit"===f?s.colorInherit:"default"!==f&&s["".concat(N).concat((0,u.Z)(f))],"medium"!==C&&[s["".concat(N,"Size").concat((0,u.Z)(C))],s["size".concat((0,u.Z)(C))]],g&&s.disableElevation,v&&s.disabled,Z&&s.fullWidth),component:h,disabled:v,focusRipple:!x,focusVisibleClassName:(0,a.Z)(s.focusVisible,w),ref:t,type:O},M),o.createElement("span",{className:s.label},A,n,I))}));t.Z=(0,s.Z)((function(e){return{root:(0,i.Z)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,c.U1)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,c.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,c.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat((0,c.U1)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:(0,c.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat((0,c.U1)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:(0,c.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(d)},3629:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(3935)),s=n(6010),c=n(3834),l=n(5192),u=n(4670),d=!0,f=!1,p=null,h={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function m(e){e.metaKey||e.altKey||e.ctrlKey||(d=!0)}function v(){d=!1}function y(){"hidden"===this.visibilityState&&f&&(d=!0)}function g(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return d||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!h[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function b(){f=!0,window.clearTimeout(p),p=window.setTimeout((function(){f=!1}),100)}function x(){return{isFocusVisible:g,onBlurVisible:b,ref:o.useCallback((function(e){var t,n=a.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",m,!0),t.addEventListener("mousedown",v,!0),t.addEventListener("pointerdown",v,!0),t.addEventListener("touchstart",v,!0),t.addEventListener("visibilitychange",y,!0))}),[])}}var k=n(7329),w=n(9756),S=n(3349),Z=n(3552),E=n(220);function C(e,t){var n=Object.create(null);return e&&o.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,o.isValidElement)(e)?t(e):e}(e)})),n}function R(e,t,n){return null!=n[t]?n[t]:e.props[t]}function P(e,t,n){var r=C(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var c in t){if(i[c])for(r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,i=void 0!==r&&r,o=t.center,s=void 0===o?a||t.pulsate:o,c=t.fakeElement,l=void 0!==c&&c;if("mousedown"===e.type&&v.current)v.current=!1;else{"touchstart"===e.type&&(v.current=!0);var u,d,f,p=l?null:b.current,h=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(h.width/2),d=Math.round(h.height/2);else{var m=e.touches?e.touches[0]:e,k=m.clientX,w=m.clientY;u=Math.round(k-h.left),d=Math.round(w-h.top)}if(s)(f=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2===0&&(f+=1);else{var S=2*Math.max(Math.abs((p?p.clientWidth:0)-u),u)+2,Z=2*Math.max(Math.abs((p?p.clientHeight:0)-d),d)+2;f=Math.sqrt(Math.pow(S,2)+Math.pow(Z,2))}e.touches?null===g.current&&(g.current=function(){x({pulsate:i,rippleX:u,rippleY:d,rippleSize:f,cb:n})},y.current=setTimeout((function(){g.current&&(g.current(),g.current=null)}),80)):x({pulsate:i,rippleX:u,rippleY:d,rippleSize:f,cb:n})}}),[a,x]),S=o.useCallback((function(){w({},{pulsate:!0})}),[w]),Z=o.useCallback((function(e,t){if(clearTimeout(y.current),"touchend"===e.type&&g.current)return e.persist(),g.current(),g.current=null,void(y.current=setTimeout((function(){Z(e,t)})));g.current=null,p((function(e){return e.length>0?e.slice(1):e})),m.current=t}),[]);return o.useImperativeHandle(t,(function(){return{pulsate:S,start:w,stop:Z}}),[S,w,Z]),o.createElement("span",(0,r.Z)({className:(0,s.Z)(c.root,l),ref:b},u),o.createElement(N,{component:null,exit:!0},f))})),z=(0,u.Z)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(o.memo(I)),D=o.forwardRef((function(e,t){var n=e.action,u=e.buttonRef,d=e.centerRipple,f=void 0!==d&&d,p=e.children,h=e.classes,m=e.className,v=e.component,y=void 0===v?"button":v,g=e.disabled,b=void 0!==g&&g,k=e.disableRipple,w=void 0!==k&&k,S=e.disableTouchRipple,Z=void 0!==S&&S,E=e.focusRipple,C=void 0!==E&&E,R=e.focusVisibleClassName,P=e.onBlur,O=e.onClick,T=e.onFocus,N=e.onFocusVisible,M=e.onKeyDown,A=e.onKeyUp,I=e.onMouseDown,D=e.onMouseLeave,j=e.onMouseUp,B=e.onTouchEnd,$=e.onTouchMove,L=e.onTouchStart,F=e.onDragLeave,V=e.tabIndex,W=void 0===V?0:V,U=e.TouchRippleProps,q=e.type,K=void 0===q?"button":q,H=(0,i.Z)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),G=o.useRef(null);var X=o.useRef(null),_=o.useState(!1),Y=_[0],J=_[1];b&&Y&&J(!1);var Q=x(),ee=Q.isFocusVisible,te=Q.onBlurVisible,ne=Q.ref;function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Z;return(0,l.Z)((function(r){return t&&t(r),!n&&X.current&&X.current[e](r),!0}))}o.useImperativeHandle(n,(function(){return{focusVisible:function(){J(!0),G.current.focus()}}}),[]),o.useEffect((function(){Y&&C&&!w&&X.current.pulsate()}),[w,C,Y]);var ie=re("start",I),oe=re("stop",F),ae=re("stop",j),se=re("stop",(function(e){Y&&e.preventDefault(),D&&D(e)})),ce=re("start",L),le=re("stop",B),ue=re("stop",$),de=re("stop",(function(e){Y&&(te(e),J(!1)),P&&P(e)}),!1),fe=(0,l.Z)((function(e){G.current||(G.current=e.currentTarget),ee(e)&&(J(!0),N&&N(e)),T&&T(e)})),pe=function(){var e=a.findDOMNode(G.current);return y&&"button"!==y&&!("A"===e.tagName&&e.href)},he=o.useRef(!1),me=(0,l.Z)((function(e){C&&!he.current&&Y&&X.current&&" "===e.key&&(he.current=!0,e.persist(),X.current.stop(e,(function(){X.current.start(e)}))),e.target===e.currentTarget&&pe()&&" "===e.key&&e.preventDefault(),M&&M(e),e.target===e.currentTarget&&pe()&&"Enter"===e.key&&!b&&(e.preventDefault(),O&&O(e))})),ve=(0,l.Z)((function(e){C&&" "===e.key&&X.current&&Y&&!e.defaultPrevented&&(he.current=!1,e.persist(),X.current.stop(e,(function(){X.current.pulsate(e)}))),A&&A(e),O&&e.target===e.currentTarget&&pe()&&" "===e.key&&!e.defaultPrevented&&O(e)})),ye=y;"button"===ye&&H.href&&(ye="a");var ge={};"button"===ye?(ge.type=K,ge.disabled=b):("a"===ye&&H.href||(ge.role="button"),ge["aria-disabled"]=b);var be=(0,c.Z)(u,t),xe=(0,c.Z)(ne,G),ke=(0,c.Z)(be,xe),we=o.useState(!1),Se=we[0],Ze=we[1];o.useEffect((function(){Ze(!0)}),[]);var Ee=Se&&!w&&!b;return o.createElement(ye,(0,r.Z)({className:(0,s.Z)(h.root,m,Y&&[h.focusVisible,R],b&&h.disabled),onBlur:de,onClick:O,onFocus:fe,onKeyDown:me,onKeyUp:ve,onMouseDown:ie,onMouseLeave:se,onMouseUp:ae,onDragLeave:oe,onTouchEnd:le,onTouchMove:ue,onTouchStart:ce,ref:ke,tabIndex:b?-1:W},ge,H),p,Ee?o.createElement(z,(0,r.Z)({ref:X,center:f},U)):null)})),j=(0,u.Z)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(D)},5477:function(e,t,n){"use strict";var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(6010)),s=n(4670),c=n(3871),l=44,u=o.forwardRef((function(e,t){var n=e.classes,s=e.className,u=e.color,d=void 0===u?"primary":u,f=e.disableShrink,p=void 0!==f&&f,h=e.size,m=void 0===h?40:h,v=e.style,y=e.thickness,g=void 0===y?3.6:y,b=e.value,x=void 0===b?0:b,k=e.variant,w=void 0===k?"indeterminate":k,S=(0,i.Z)(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),Z={},E={},C={};if("determinate"===w||"static"===w){var R=2*Math.PI*((l-g)/2);Z.strokeDasharray=R.toFixed(3),C["aria-valuenow"]=Math.round(x),Z.strokeDashoffset="".concat(((100-x)/100*R).toFixed(3),"px"),E.transform="rotate(-90deg)"}return o.createElement("div",(0,r.Z)({className:(0,a.Z)(n.root,s,"inherit"!==d&&n["color".concat((0,c.Z)(d))],{determinate:n.determinate,indeterminate:n.indeterminate,static:n.static}[w]),style:(0,r.Z)({width:m,height:m},E,v),ref:t,role:"progressbar"},C,S),o.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(l," ").concat(l)},o.createElement("circle",{className:(0,a.Z)(n.circle,p&&n.circleDisableShrink,{determinate:n.circleDeterminate,indeterminate:n.circleIndeterminate,static:n.circleStatic}[w]),style:Z,cx:l,cy:l,r:(l-g)/2,fill:"none",strokeWidth:g})))}));t.Z=(0,s.Z)((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(u)},5517:function(e,t,n){"use strict";var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(6010)),s=n(4670),c=n(9693),l=o.forwardRef((function(e,t){var n=e.absolute,s=void 0!==n&&n,c=e.classes,l=e.className,u=e.component,d=void 0===u?"hr":u,f=e.flexItem,p=void 0!==f&&f,h=e.light,m=void 0!==h&&h,v=e.orientation,y=void 0===v?"horizontal":v,g=e.role,b=void 0===g?"hr"!==d?"separator":void 0:g,x=e.variant,k=void 0===x?"fullWidth":x,w=(0,i.Z)(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return o.createElement(d,(0,r.Z)({className:(0,a.Z)(c.root,l,"fullWidth"!==k&&c[k],s&&c.absolute,p&&c.flexItem,m&&c.light,"vertical"===y&&c.vertical),role:b,ref:t},w))}));t.Z=(0,s.Z)((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:(0,c.U1)(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(l)},5918:function(e,t,n){"use strict";n.d(t,{ZP:function(){return le}});var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(6010)),s=n(3935),c=n(159),l=n(3869);function u(e){return e&&e.ownerDocument||document}var d=n(4236),f=n(3834);var p="undefined"!==typeof window?o.useLayoutEffect:o.useEffect;var h=o.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,a=void 0!==i&&i,c=e.onRendered,l=o.useState(null),u=l[0],h=l[1],m=(0,f.Z)(o.isValidElement(n)?n.ref:null,t);return p((function(){a||h(function(e){return e="function"===typeof e?e():e,s.findDOMNode(e)}(r)||document.body)}),[r,a]),p((function(){if(u&&!a)return(0,d.Z)(t,u),function(){(0,d.Z)(t,null)}}),[t,u,a]),p((function(){c&&(u||a)&&c()}),[c,u,a]),a?o.isValidElement(n)?o.cloneElement(n,{ref:m}):n:u?s.createPortal(n,u):u}));function m(){for(var e=arguments.length,t=new Array(e),n=0;nn.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function k(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function w(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function S(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[t,n].concat((0,b.Z)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===a.indexOf(e.tagName)&&k(e,i)}))}function Z(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function E(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(x(o)){var a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(w(o)+a,"px"),n=u(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(w(e)+a,"px")}))}var s=o.parentElement,c="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:c.style.overflow,key:"overflow",el:c}),c.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var C=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return(0,g.Z)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&k(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);S(t,e.mountNode,e.modalRef,r,!0);var i=Z(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=Z(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=E(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=Z(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&k(e.modalRef,!0),S(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&k(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var R=function(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,a=void 0!==i&&i,c=e.disableRestoreFocus,l=void 0!==c&&c,d=e.getDoc,p=e.isEnabled,h=e.open,m=o.useRef(),v=o.useRef(null),y=o.useRef(null),g=o.useRef(),b=o.useRef(null),x=o.useCallback((function(e){b.current=s.findDOMNode(e)}),[]),k=(0,f.Z)(t.ref,x),w=o.useRef();return o.useEffect((function(){w.current=h}),[h]),!w.current&&h&&"undefined"!==typeof window&&(g.current=d().activeElement),o.useEffect((function(){if(h){var e=u(b.current);r||!b.current||b.current.contains(e.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex",-1),b.current.focus());var t=function(){null!==b.current&&(e.hasFocus()&&!a&&p()&&!m.current?b.current&&!b.current.contains(e.activeElement)&&b.current.focus():m.current=!1)},n=function(t){!a&&p()&&9===t.keyCode&&e.activeElement===b.current&&(m.current=!0,t.shiftKey?y.current.focus():v.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),l||(g.current&&g.current.focus&&g.current.focus(),g.current=null)}}}),[r,a,l,p,h]),o.createElement(o.Fragment,null,o.createElement("div",{tabIndex:0,ref:v,"data-test":"sentinelStart"}),o.cloneElement(t,{ref:k}),o.createElement("div",{tabIndex:0,ref:y,"data-test":"sentinelEnd"}))},P={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},O=o.forwardRef((function(e,t){var n=e.invisible,a=void 0!==n&&n,s=e.open,c=(0,i.Z)(e,["invisible","open"]);return s?o.createElement("div",(0,r.Z)({"aria-hidden":!0,ref:t},c,{style:(0,r.Z)({},P.root,a?P.invisible:{},c.style)})):null}));var T=new C,N=o.forwardRef((function(e,t){var n=(0,c.Z)(),a=(0,l.Z)({name:"MuiModal",props:(0,r.Z)({},e),theme:n}),d=a.BackdropComponent,p=void 0===d?O:d,g=a.BackdropProps,b=a.children,x=a.closeAfterTransition,w=void 0!==x&&x,S=a.container,Z=a.disableAutoFocus,E=void 0!==Z&&Z,C=a.disableBackdropClick,P=void 0!==C&&C,N=a.disableEnforceFocus,M=void 0!==N&&N,A=a.disableEscapeKeyDown,I=void 0!==A&&A,z=a.disablePortal,D=void 0!==z&&z,j=a.disableRestoreFocus,B=void 0!==j&&j,$=a.disableScrollLock,L=void 0!==$&&$,F=a.hideBackdrop,V=void 0!==F&&F,W=a.keepMounted,U=void 0!==W&&W,q=a.manager,K=void 0===q?T:q,H=a.onBackdropClick,G=a.onClose,X=a.onEscapeKeyDown,_=a.onRendered,Y=a.open,J=(0,i.Z)(a,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),Q=o.useState(!0),ee=Q[0],te=Q[1],ne=o.useRef({}),re=o.useRef(null),ie=o.useRef(null),oe=(0,f.Z)(ie,t),ae=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(a),se=function(){return u(re.current)},ce=function(){return ne.current.modalRef=ie.current,ne.current.mountNode=re.current,ne.current},le=function(){K.mount(ce(),{disableScrollLock:L}),ie.current.scrollTop=0},ue=(0,v.Z)((function(){var e=function(e){return e="function"===typeof e?e():e,s.findDOMNode(e)}(S)||se().body;K.add(ce(),e),ie.current&&le()})),de=o.useCallback((function(){return K.isTopModal(ce())}),[K]),fe=(0,v.Z)((function(e){re.current=e,e&&(_&&_(),Y&&de()?le():k(ie.current,!0))})),pe=o.useCallback((function(){K.remove(ce())}),[K]);if(o.useEffect((function(){return function(){pe()}}),[pe]),o.useEffect((function(){Y?ue():ae&&w||pe()}),[Y,pe,ae,w,ue]),!U&&!Y&&(!ae||ee))return null;var he=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:y.Z}),me={};return void 0===b.props.tabIndex&&(me.tabIndex=b.props.tabIndex||"-1"),ae&&(me.onEnter=m((function(){te(!1)}),b.props.onEnter),me.onExited=m((function(){te(!0),w&&pe()}),b.props.onExited)),o.createElement(h,{ref:fe,container:S,disablePortal:D},o.createElement("div",(0,r.Z)({ref:oe,onKeyDown:function(e){"Escape"===e.key&&de()&&(X&&X(e),I||(e.stopPropagation(),G&&G(e,"escapeKeyDown")))},role:"presentation"},J,{style:(0,r.Z)({},he.root,!Y&&ee?he.hidden:{},J.style)}),V?null:o.createElement(p,(0,r.Z)({open:Y,onClick:function(e){e.target===e.currentTarget&&(H&&H(e),!P&&G&&G(e,"backdropClick"))}},g)),o.createElement(R,{disableEnforceFocus:M,disableAutoFocus:E,disableRestoreFocus:B,getDoc:se,isEnabled:de,open:Y},o.cloneElement(b,me))))})),M=n(4670),A=n(4699),I=n(9756),z=n(3552),D=!1,j=n(220),B="unmounted",$="exited",L="entering",F="entered",V="exiting",W=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=$,r.appearStatus=L):i=F:i=t.unmountOnExit||t.mountOnEnter?B:$,r.state={status:i},r.nextCallback=null,r}(0,z.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===B?{status:$}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==L&&n!==F&&(t=L):n!==L&&n!==F||(t=V)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===L?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===$&&this.setState({status:B})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[s.findDOMNode(this),r],o=i[0],a=i[1],c=this.getTimeouts(),l=r?c.appear:c.enter;!e&&!n||D?this.safeSetState({status:F},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:L},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:F},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:s.findDOMNode(this);t&&!D?(this.props.onExit(r),this.safeSetState({status:V},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:$},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:$},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:s.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===B)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,I.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o.createElement(j.Z.Provider,{value:null},"function"===typeof n?n(e,r):o.cloneElement(o.Children.only(n),r))},t}(o.Component);function U(){}W.contextType=j.Z,W.propTypes={},W.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:U,onEntering:U,onEntered:U,onExit:U,onExiting:U,onExited:U},W.UNMOUNTED=B,W.EXITED=$,W.ENTERING=L,W.ENTERED=F,W.EXITING=V;var q=W,K=n(3366),H=n(8920),G=function(e){return e.scrollTop};function X(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"===typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}var _={entering:{opacity:1},entered:{opacity:1}},Y={enter:K.x9.enteringScreen,exit:K.x9.leavingScreen},J=o.forwardRef((function(e,t){var n=e.children,a=e.disableStrictModeCompat,s=void 0!==a&&a,c=e.in,l=e.onEnter,u=e.onEntered,d=e.onEntering,p=e.onExit,h=e.onExited,m=e.onExiting,v=e.style,y=e.TransitionComponent,g=void 0===y?q:y,b=e.timeout,x=void 0===b?Y:b,k=(0,i.Z)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),w=(0,H.Z)(),S=w.unstable_strictMode&&!s,Z=o.useRef(null),E=(0,f.Z)(n.ref,t),C=(0,f.Z)(S?Z:void 0,E),R=function(e){return function(t,n){if(e){var r=S?[Z.current,t]:[t,n],i=(0,A.Z)(r,2),o=i[0],a=i[1];void 0===a?e(o):e(o,a)}}},P=R(d),O=R((function(e,t){G(e);var n=X({style:v,timeout:x},{mode:"enter"});e.style.webkitTransition=w.transitions.create("opacity",n),e.style.transition=w.transitions.create("opacity",n),l&&l(e,t)})),T=R(u),N=R(m),M=R((function(e){var t=X({style:v,timeout:x},{mode:"exit"});e.style.webkitTransition=w.transitions.create("opacity",t),e.style.transition=w.transitions.create("opacity",t),p&&p(e)})),I=R(h);return o.createElement(g,(0,r.Z)({appear:!0,in:c,nodeRef:S?Z:void 0,onEnter:O,onEntered:T,onEntering:P,onExit:M,onExited:I,onExiting:N,timeout:x},k),(function(e,t){return o.cloneElement(n,(0,r.Z)({style:(0,r.Z)({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},_[e],v,n.props.style),ref:C},t))}))})),Q=o.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,l=e.invisible,u=void 0!==l&&l,d=e.open,f=e.transitionDuration,p=e.TransitionComponent,h=void 0===p?J:p,m=(0,i.Z)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return o.createElement(h,(0,r.Z)({in:d,timeout:f},m),o.createElement("div",{className:(0,a.Z)(s.root,c,u&&s.invisible),"aria-hidden":!0,ref:t},n))})),ee=(0,M.Z)({root:{zIndex:-1,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"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(Q);function te(e,t){var n=function(e,t){var n,r=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var i=window.getComputedStyle(t);n=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var o=0,a=0;if(n&&"none"!==n&&"string"===typeof n){var s=n.split("(")[1].split(")")[0].split(",");o=parseInt(s[4],10),a=parseInt(s[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(").concat(o-r.left,"px)"):"right"===e?"translateX(-".concat(r.left+r.width-o,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(").concat(a-r.top,"px)"):"translateY(-".concat(r.top+r.height-a,"px)")}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}var ne={enter:K.x9.enteringScreen,exit:K.x9.leavingScreen},re=o.forwardRef((function(e,t){var n=e.children,a=e.direction,c=void 0===a?"down":a,l=e.in,u=e.onEnter,d=e.onEntered,p=e.onEntering,h=e.onExit,m=e.onExited,v=e.onExiting,y=e.style,g=e.timeout,b=void 0===g?ne:g,x=e.TransitionComponent,k=void 0===x?q:x,w=(0,i.Z)(e,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),S=(0,H.Z)(),Z=o.useRef(null),E=o.useCallback((function(e){Z.current=s.findDOMNode(e)}),[]),C=(0,f.Z)(n.ref,E),R=(0,f.Z)(C,t),P=function(e){return function(t){e&&(void 0===t?e(Z.current):e(Z.current,t))}},O=P((function(e,t){te(c,e),G(e),u&&u(e,t)})),T=P((function(e,t){var n=X({timeout:b,style:y},{mode:"enter"});e.style.webkitTransition=S.transitions.create("-webkit-transform",(0,r.Z)({},n,{easing:S.transitions.easing.easeOut})),e.style.transition=S.transitions.create("transform",(0,r.Z)({},n,{easing:S.transitions.easing.easeOut})),e.style.webkitTransform="none",e.style.transform="none",p&&p(e,t)})),N=P(d),M=P(v),A=P((function(e){var t=X({timeout:b,style:y},{mode:"exit"});e.style.webkitTransition=S.transitions.create("-webkit-transform",(0,r.Z)({},t,{easing:S.transitions.easing.sharp})),e.style.transition=S.transitions.create("transform",(0,r.Z)({},t,{easing:S.transitions.easing.sharp})),te(c,e),h&&h(e)})),I=P((function(e){e.style.webkitTransition="",e.style.transition="",m&&m(e)})),z=o.useCallback((function(){Z.current&&te(c,Z.current)}),[c]);return o.useEffect((function(){if(!l&&"down"!==c&&"right"!==c){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function o(e){if(e.type)return e;if("#"===e.charAt(0))return o(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,r.Z)(3,e));var i=e.substring(t+1,e.length-1).split(",");return{type:n,values:i=i.map((function(e){return parseFloat(e)}))}}function a(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function s(e,t){var n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function c(e){var t="hsl"===(e=o(e)).type?o(function(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-s*Math.max(Math.min(t-3,9-t,1),-1)},l="rgb",u=[Math.round(255*c(0)),Math.round(255*c(8)),Math.round(255*c(4))];return"hsla"===e.type&&(l+="a",u.push(t[3])),a({type:l,values:u})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l(e,t){return e=o(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function u(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function d(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return a(e)}},7623:function(e,t,n){"use strict";function r(e){return e}n.d(t,{Z:function(){return r}})},1947:function(e,t,n){"use strict";n.d(t,{Z:function(){return z}});var r=n(2949),i=n(5953),o=n(2122),a=["xs","sm","md","lg","xl"];function s(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,i=e.unit,s=void 0===i?"px":i,c=e.step,l=void 0===c?5:c,u=(0,r.Z)(e,["values","unit","step"]);function d(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function f(e,t){var r=a.indexOf(t);return r===a.length-1?d(e):"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[a[r+1]]?n[a[r+1]]:t)-l/100).concat(s,")")}return(0,o.Z)({keys:a,values:n,up:d,down:function(e){var t=a.indexOf(e)+1,r=n[a[t]];return t===a.length?d("xs"):"@media (max-width:".concat(("number"===typeof r&&t>0?r:e)-l/100).concat(s,")")},between:f,only:function(e){return f(e,e)},width:function(e){return n[e]}},u)}var c=n(6156);function l(e,t,n){var r;return(0,o.Z)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.Z)({paddingLeft:t(2),paddingRight:t(2)},n,(0,c.Z)({},e.up("sm"),(0,o.Z)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,c.Z)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,c.Z)(r,e.up("sm"),{minHeight:64}),r)},n)}var u=n(288),d={black:"#000",white:"#fff"},f={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},p={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},h={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},m={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},v={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},y={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},g={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=n(9693),x={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:f[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},k={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:f[800],default:"#303030"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function w(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,b.$n)(e.main,i):"dark"===t&&(e.dark=(0,b._j)(e.main,o)))}function S(e){var t=e.primary,n=void 0===t?{light:p[300],main:p[500],dark:p[700]}:t,a=e.secondary,s=void 0===a?{light:h.A200,main:h.A400,dark:h.A700}:a,c=e.error,l=void 0===c?{light:m[300],main:m[500],dark:m[700]}:c,S=e.warning,Z=void 0===S?{light:v[300],main:v[500],dark:v[700]}:S,E=e.info,C=void 0===E?{light:y[300],main:y[500],dark:y[700]}:E,R=e.success,P=void 0===R?{light:g[300],main:g[500],dark:g[700]}:R,O=e.type,T=void 0===O?"light":O,N=e.contrastThreshold,M=void 0===N?3:N,A=e.tonalOffset,I=void 0===A?.2:A,z=(0,r.Z)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function D(e){return(0,b.mi)(e,k.text.primary)>=M?k.text.primary:x.text.primary}var j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,o.Z)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error((0,u.Z)(4,t));if("string"!==typeof e.main)throw new Error((0,u.Z)(5,JSON.stringify(e.main)));return w(e,"light",n,I),w(e,"dark",r,I),e.contrastText||(e.contrastText=D(e.main)),e},B={dark:k,light:x};return(0,i.Z)((0,o.Z)({common:d,type:T,primary:j(n),secondary:j(s,"A400","A200","A700"),error:j(l),warning:j(Z),info:j(C),success:j(P),grey:f,contrastThreshold:M,getContrastText:D,augmentColor:j,tonalOffset:I},B[T]),z)}function Z(e){return Math.round(1e5*e)/1e5}var E={textTransform:"uppercase"},C='"Roboto", "Helvetica", "Arial", sans-serif';function R(e,t){var n="function"===typeof t?t(e):t,a=n.fontFamily,s=void 0===a?C:a,c=n.fontSize,l=void 0===c?14:c,u=n.fontWeightLight,d=void 0===u?300:u,f=n.fontWeightRegular,p=void 0===f?400:f,h=n.fontWeightMedium,m=void 0===h?500:h,v=n.fontWeightBold,y=void 0===v?700:v,g=n.htmlFontSize,b=void 0===g?16:g,x=n.allVariants,k=n.pxToRem,w=(0,r.Z)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var S=l/14,R=k||function(e){return"".concat(e/b*S,"rem")},P=function(e,t,n,r,i){return(0,o.Z)({fontFamily:s,fontWeight:e,fontSize:R(t),lineHeight:n},s===C?{letterSpacing:"".concat(Z(r/t),"em")}:{},i,x)},O={h1:P(d,96,1.167,-1.5),h2:P(d,60,1.2,-.5),h3:P(p,48,1.167,0),h4:P(p,34,1.235,.25),h5:P(p,24,1.334,0),h6:P(m,20,1.6,.15),subtitle1:P(p,16,1.75,.15),subtitle2:P(m,14,1.57,.1),body1:P(p,16,1.5,.15),body2:P(p,14,1.43,.15),button:P(m,14,1.75,.4,E),caption:P(p,12,1.66,.4),overline:P(p,12,2.66,1,E)};return(0,i.Z)((0,o.Z)({htmlFontSize:b,pxToRem:R,round:Z,fontFamily:s,fontSize:l,fontWeightLight:d,fontWeightRegular:p,fontWeightMedium:m,fontWeightBold:y},O),w,{clone:!1})}function P(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var O=["none",P(0,2,1,-1,0,1,1,0,0,1,3,0),P(0,3,1,-2,0,2,2,0,0,1,5,0),P(0,3,3,-2,0,3,4,0,0,1,8,0),P(0,2,4,-1,0,4,5,0,0,1,10,0),P(0,3,5,-1,0,5,8,0,0,1,14,0),P(0,3,5,-1,0,6,10,0,0,1,18,0),P(0,4,5,-2,0,7,10,1,0,2,16,1),P(0,5,5,-3,0,8,10,1,0,3,14,2),P(0,5,6,-3,0,9,12,1,0,3,16,2),P(0,6,6,-3,0,10,14,1,0,4,18,3),P(0,6,7,-4,0,11,15,1,0,4,20,3),P(0,7,8,-4,0,12,17,2,0,5,22,4),P(0,7,8,-4,0,13,19,2,0,5,24,4),P(0,7,9,-4,0,14,21,2,0,5,26,4),P(0,8,9,-5,0,15,22,2,0,6,28,5),P(0,8,10,-5,0,16,24,2,0,6,30,5),P(0,8,11,-5,0,17,26,2,0,6,32,5),P(0,9,11,-5,0,18,28,2,0,7,34,6),P(0,9,12,-6,0,19,29,2,0,7,36,6),P(0,10,13,-6,0,20,31,3,0,8,38,7),P(0,10,13,-6,0,21,33,3,0,8,40,7),P(0,10,14,-6,0,22,35,3,0,8,42,7),P(0,11,14,-7,0,23,36,3,0,9,44,8),P(0,11,15,-7,0,24,38,3,0,9,46,8)],T={borderRadius:4},N=n(8681);function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,N.h)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,o=e.mixins,a=void 0===o?{}:o,c=e.palette,u=void 0===c?{}:c,d=e.spacing,f=e.typography,p=void 0===f?{}:f,h=(0,r.Z)(e,["breakpoints","mixins","palette","spacing","typography"]),m=S(u),v=s(n),y=M(d),g=(0,i.Z)({breakpoints:v,direction:"ltr",mixins:l(v,y,a),overrides:{},palette:m,props:{},shadows:O,typography:R(m,p),spacing:y,shape:T,transitions:A.ZP,zIndex:I.Z},h),b=arguments.length,x=new Array(b>1?b-1:0),k=1;k1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.Z)(e,(0,r.Z)({defaultTheme:o.Z},t))}},3366:function(e,t,n){"use strict";n.d(t,{x9:function(){return o}});var r=n(2949),i={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},o={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return"".concat(Math.round(e),"ms")}t.ZP={easing:i,duration:o,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,s=void 0===n?o.standard:n,c=t.easing,l=void 0===c?i.easeInOut:c,u=t.delay,d=void 0===u?0:u;(0,r.Z)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof s?s:a(s)," ").concat(l," ").concat("string"===typeof d?d:a(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},8920:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(159),i=(n(7294),n(1947));function o(){return(0,r.Z)()||i.Z}},4670:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(8679)),s=n.n(a),c=n(3746),l=n(3869),u=n(159),d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var a=t.defaultTheme,d=t.withTheme,f=void 0!==d&&d,p=t.name,h=(0,i.Z)(t,["defaultTheme","withTheme","name"]);var m=p,v=(0,c.Z)(e,(0,r.Z)({defaultTheme:a,Component:n,name:p||n.displayName,classNamePrefix:m},h)),y=o.forwardRef((function(e,t){e.classes;var s,c=e.innerRef,d=(0,i.Z)(e,["classes","innerRef"]),h=v((0,r.Z)({},n.defaultProps,e)),m=d;return("string"===typeof p||f)&&(s=(0,u.Z)()||a,p&&(m=(0,l.Z)({theme:s,name:p,props:d})),f&&!m.theme&&(m.theme=s)),o.createElement(n,(0,r.Z)({ref:c||t,classes:h},m))}));return s()(y,n),y}},f=n(1947);var p=function(e,t){return d(e,(0,r.Z)({defaultTheme:f.Z},t))}},2781:function(e,t){"use strict";t.Z={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},3871:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(288);function i(e){if("string"!==typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},4236:function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},5192:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7294),i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;function o(e){var t=r.useRef(e);return i((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},3834:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7294),i=n(4236);function o(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){(0,i.Z)(e,n),(0,i.Z)(t,n)}}),[e,t])}},3869:function(e,t,n){"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,o=t.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}n.d(t,{Z:function(){return r}})},3746:function(e,t,n){"use strict";n.d(t,{Z:function(){return pn}});var r=n(2949),i=n(2122),o=n(7294),a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s="object"===("undefined"===typeof window?"undefined":a(window))&&"object"===("undefined"===typeof document?"undefined":a(document))&&9===document.nodeType,c=n(5991),l=n(3552),u=n(3349),d=n(9756),f={}.constructor;function p(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(p);if(e.constructor!==f)return e;var t={};for(var n in e)t[n]=p(e[n]);return t}function h(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=p(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var m=function(e,t){for(var n="",r=0;r<+~=|^:(),"'`\s])/g,x="undefined"!==typeof CSS&&CSS.escape,k=function(e){return x?x(e):e.replace(b,"\\$1")},w=function(){function e(e,t,n){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var c=this.options.sheet;return c&&c.attached,this},e}(),S=function(e){function t(t,n,r){var i;(i=e.call(this,t,n,r)||this).selectorText=void 0,i.id=void 0,i.renderable=void 0;var o=r.selector,a=r.scoped,s=r.sheet,c=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=c((0,u.Z)((0,u.Z)(i)),s),i.selectorText="."+k(i.id)),i}(0,l.Z)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==typeof n?e[t]=n:Array.isArray(n)&&(e[t]=v(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,i.Z)({},e,{allowEmpty:!0}):e;return g(this.selectorText,this.style,n)},(0,c.Z)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(w),Z={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new S(e,t,n)}},E={indent:1,children:!0},C=/@([\w-]+)/,R=function(){function e(e,t,n){this.type="conditional",this.at=void 0,this.key=void 0,this.query=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e;var r=e.match(C);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new _((0,i.Z)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.toString=function(e){if(void 0===e&&(e=E),null==e.indent&&(e.indent=E.indent),null==e.children&&(e.children=E.children),!1===e.children)return this.query+" {}";var t=this.rules.toString(e);return t?this.query+" {\n"+t+"\n}":""},e}(),P=/@media|@supports\s+/,O={onCreateRule:function(e,t,n){return P.test(e)?new R(e,t,n):null}},T={indent:1,children:!0},N=/@keyframes\s+([\w-]+)/,M=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var r=e.match(N);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,a=n.sheet,s=n.generateId;for(var c in this.id=!1===o?this.name:k(s(this,a)),this.rules=new _((0,i.Z)({},n,{parent:this})),t)this.rules.add(c,t[c],(0,i.Z)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){if(void 0===e&&(e=T),null==e.indent&&(e.indent=T.indent),null==e.children&&(e.children=T.children),!1===e.children)return this.at+" "+this.id+" {}";var t=this.rules.toString(e);return t&&(t="\n"+t+"\n"),this.at+" "+this.id+" {"+t+"}"},e}(),A=/@keyframes\s+/,I=/\$([\w-]+)/g,z=function(e,t){return"string"===typeof e?e.replace(I,(function(e,n){return n in t?t[n]:e})):e},D=function(e,t,n){var r=e[t],i=z(r,n);i!==r&&(e[t]=i)},j={onCreateRule:function(e,t,n){return"string"===typeof e&&A.test(e)?new M(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&D(e,"animation-name",n.keyframes),"animation"in e&&D(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return z(e,r.keyframes);default:return e}}},B=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i=this.index)t.push(e);else for(var r=0;rn)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,d.Z)(t,["attached"]),i="",o=0;o0){var n=function(e,t){for(var n=0;nt.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if((n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e))&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"===typeof r){var i=function(e){for(var t=le(),n=0;nn?n:t},he=function(){function e(e){this.getPropertyValue=oe,this.setProperty=ae,this.removeProperty=se,this.setSelector=ce,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,this.cssRules=[],e&&Q.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=de();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=ue(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"===typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else le().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var r=(0,i.Z)({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}var ke={set:function(e,t,n,r){var i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},we=n(159),Se=(n(5697),n(7076)),Ze=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var Ee=Date.now(),Ce="fnValues"+Ee,Re="fnStyle"+ ++Ee,Pe=function(){return{onCreateRule:function(e,t,n){if("function"!==typeof t)return null;var r=h(e,{},n);return r[Re]=t,r},onProcessStyle:function(e,t){if(Ce in t||Re in t)return e;var n={};for(var r in e){var i=e[r];"function"===typeof i&&(delete e[r],n[r]=i)}return t[Ce]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[Re];o&&(i.style=o(e)||{});var a=i[Ce];if(a)for(var s in a)i.prop(s,a[s](e),r)}}},Oe="@global",Te="@global ",Ne=function(){function e(e,t,n){for(var r in this.type="global",this.at=Oe,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new _((0,i.Z)({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),Me=function(){function e(e,t,n){this.type="global",this.at=Oe,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=n;var r=e.substr(Te.length);this.rule=n.jss.createRule(r,t,(0,i.Z)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Ae=/\s*,\s*/g;function Ie(e,t){for(var n=e.split(Ae),r="",i=0;i-1){var i=zt[e];if(!Array.isArray(i))return lt+bt(i)in t&&ut+i;if(!r)return!1;for(var o=0;ot?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,i=void 0===r?"jss":r,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),c=0,l=function(){return c+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Ze.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[Se.Z]&&""===a?"".concat(o,"-").concat(l()):o}return"".concat(s).concat(i).concat(l())}}(),jss:Qt,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},tn=o.createContext(en);var nn=-1e9;function rn(){return nn+=1}var on=n(5953);function an(e){var t="function"===typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(c){throw c}if(!r||!n.overrides||!n.overrides[r])return o;var a=n.overrides[r],s=(0,i.Z)({},o);return Object.keys(a).forEach((function(e){s[e]=(0,on.Z)(s[e],a[e])})),s},options:{}}}var sn={};function cn(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,i=!0),i&&(r.cacheClasses.value=xe({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function ln(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,a=e.stylesCreator,s=e.name;if(!o.disableGeneration){var c=ke.get(o.sheetsManager,a,r);c||(c={refs:0,staticSheet:null,dynamicStyles:null},ke.set(o.sheetsManager,a,r,c));var l=(0,i.Z)({},a.options,o,{theme:r,flip:"boolean"===typeof o.flip?o.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=o.sheetsRegistry;if(0===c.refs){var d;o.sheetsCache&&(d=ke.get(o.sheetsCache,a,r));var f=a.create(r,s);d||((d=o.jss.createStyleSheet(f,(0,i.Z)({link:!1},l))).attach(),o.sheetsCache&&ke.set(o.sheetsCache,a,r,d)),u&&u.add(d),c.staticSheet=d,c.dynamicStyles=ye(f)}if(c.dynamicStyles){var p=o.jss.createStyleSheet(c.dynamicStyles,(0,i.Z)({link:!0},l));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=xe({baseClasses:c.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else n.classes=c.staticSheet.classes;c.refs+=1}}function un(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function dn(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var o=ke.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(ke.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function fn(e,t){var n,r=o.useRef([]),i=o.useMemo((function(){return{}}),t);r.current!==i&&(r.current=i,n=e()),o.useEffect((function(){return function(){n&&n()}}),[i])}function pn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,a=t.classNamePrefix,s=t.Component,c=t.defaultTheme,l=void 0===c?sn:c,u=(0,r.Z)(t,["name","classNamePrefix","Component","defaultTheme"]),d=an(e),f=n||a||"makeStyles";d.options={index:rn(),name:n,meta:f,classNamePrefix:f};var p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,we.Z)()||l,r=(0,i.Z)({},o.useContext(tn),u),a=o.useRef(),c=o.useRef();fn((function(){var i={name:n,state:{},stylesCreator:d,stylesOptions:r,theme:t};return ln(i,e),c.current=!1,a.current=i,function(){dn(i)}}),[t,d]),o.useEffect((function(){c.current&&un(a.current,e),c.current=!0}));var f=cn(a.current,e.classes,s);return f};return p}},6010:function(e,t,n){"use strict";function r(e){var t,n,i="";if("string"===typeof e||"number"===typeof e)i+=e;else if("object"===typeof e)if(Array.isArray(e))for(t=0;t{let r=e;return"string"===typeof t||Array.isArray(t)?r=e.toLocaleString(t,n):!0!==t&&void 0===n||(r=e.toLocaleString(void 0,n)),r};e.exports=(e,a)=>{if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);const s=(a=Object.assign({bits:!1,binary:!1},a)).bits?a.binary?i:r:a.binary?n:t;if(a.signed&&0===e)return` 0 ${s[0]}`;const c=e<0,l=c?"-":a.signed?"+":"";let u;if(c&&(e=-e),void 0!==a.minimumFractionDigits&&(u={minimumFractionDigits:a.minimumFractionDigits}),void 0!==a.maximumFractionDigits&&(u=Object.assign({maximumFractionDigits:a.maximumFractionDigits},u)),e<1){return l+o(e,a.locale,u)+" "+s[0]}const d=Math.min(Math.floor(a.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),s.length-1);e/=Math.pow(a.binary?1024:1e3,d),u||(e=e.toPrecision(3));return l+o(Number(e),a.locale,u)+" "+s[d]}},220:function(e,t,n){"use strict";var r=n(7294);t.Z=r.createContext(null)},5723:function(e,t,n){"use strict";n.d(t,{ZP:function(){return A}});var r=n(7294),i=Object.prototype.hasOwnProperty;var o=new WeakMap,a=0;var s=function(){function e(e){void 0===e&&(e={}),this.cache=new Map(Object.entries(e)),this.subs=[]}return e.prototype.get=function(e){var t=this.serializeKey(e)[0];return this.cache.get(t)},e.prototype.set=function(e,t){var n=this.serializeKey(e)[0];this.cache.set(n,t),this.notify()},e.prototype.keys=function(){return Array.from(this.cache.keys())},e.prototype.has=function(e){var t=this.serializeKey(e)[0];return this.cache.has(t)},e.prototype.clear=function(){this.cache.clear(),this.notify()},e.prototype.delete=function(e){var t=this.serializeKey(e)[0];this.cache.delete(t),this.notify()},e.prototype.serializeKey=function(e){var t=null;if("function"===typeof e)try{e=e()}catch(n){e=""}return Array.isArray(e)?(t=e,e=function(e){if(!e.length)return"";for(var t="arg",n=0;n-1&&(t.subs[r]=t.subs[t.subs.length-1],t.subs.length--)}}},e.prototype.notify=function(){for(var e=0,t=this.subs;en.errorRetryCount)){var o=Math.min(i.retryCount,8),a=~~((Math.random()+.5)*(1<0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0));return Promise.all(u).then((function(){return d.get(r)}))}return Promise.resolve(d.get(r))},N=function(e,t,n,r){var i=E[e];if(e&&i)for(var o=0;o0));return[2,Promise.all(m).then((function(){if(l)throw l;return d.get(i)}))]}if(l)throw l;return[2,c]}}))}))};Object.defineProperty(g.Provider,"default",{value:p});g.Provider;var A=function(){for(var e=this,t=[],n=0;n2?t[2]:2===t.length&&"object"===typeof t[1]?t[1]:{}),a=t.length>2||2===t.length&&"function"===typeof t[1]||null===t[1]?t[1]:o.fetcher,s=d.serializeKey(i),c=s[0],l=s[1],u=s[2],f=s[3],y=(0,r.useRef)(o);v((function(){y.current=o}));var O=function(){return o.revalidateOnMount||!o.initialData&&void 0===o.revalidateOnMount},T=function(){var e=d.get(c);return"undefined"===typeof e?o.initialData:e},A=function(){return!!d.get(f)||c&&O()},I=T(),z=d.get(u),D=A(),j=(0,r.useRef)({data:!1,error:!1,isValidating:!1}),B=(0,r.useRef)({data:I,error:z,isValidating:D});(0,r.useDebugValue)(B.current.data);var $,L,F=(0,r.useState)({})[1],V=(0,r.useCallback)((function(e){var t=!1;for(var n in e)B.current[n]!==e[n]&&(B.current[n]=e[n],j.current[n]&&(t=!0));if(t){if(W.current||!q.current)return;F({})}}),[]),W=(0,r.useRef)(!1),U=(0,r.useRef)(c),q=(0,r.useRef)(!1),K=(0,r.useCallback)((function(e){for(var t,n=[],r=1;r=0&&(n[r]=n[n.length-1],n.pop())}},X=(0,r.useCallback)((function(t){return void 0===t&&(t={}),b(e,void 0,void 0,(function(){var e,n,r,i,s,p,h,m,v,g;return x(this,(function(b){switch(b.label){case 0:if(!c||!a)return[2,!1];if(W.current)return[2,!1];if(y.current.isPaused())return[2,!1];e=t.retryCount,n=void 0===e?0:e,r=t.dedupe,i=void 0!==r&&r,s=!0,p="undefined"!==typeof k[c]&&i,b.label=1;case 1:return b.trys.push([1,6,,7]),V({isValidating:!0}),d.set(f,!0),p||N(c,B.current.data,B.current.error,!0),h=void 0,m=void 0,p?(m=w[c],[4,k[c]]):[3,3];case 2:return h=b.sent(),[3,5];case 3:return o.loadingTimeout&&!d.get(c)&&setTimeout((function(){s&&K("onLoadingSlow",c,o)}),o.loadingTimeout),k[c]=null!==l?a.apply(void 0,l):a(c),w[c]=m=P(),[4,k[c]];case 4:h=b.sent(),setTimeout((function(){delete k[c],delete w[c]}),o.dedupingInterval),K("onSuccess",h,c,o),b.label=5;case 5:return w[c]>m?[2,!1]:C[c]&&(m<=C[c]||m<=R[c]||0===R[c])?(V({isValidating:!1}),[2,!1]):(d.set(u,void 0),d.set(f,!1),v={isValidating:!1},"undefined"!==typeof B.current.error&&(v.error=void 0),o.compare(B.current.data,h)||(v.data=h),o.compare(d.get(c),h)||d.set(c,h),V(v),p||N(c,h,v.error,!1),[3,7]);case 6:return g=b.sent(),delete k[c],delete w[c],y.current.isPaused()?(V({isValidating:!1}),[2,!1]):(d.set(u,g),B.current.error!==g&&(V({isValidating:!1,error:g}),p||N(c,void 0,g,!1)),K("onError",g,c,o),o.shouldRetryOnError&&K("onErrorRetry",g,c,o,X,{retryCount:n+1,dedupe:!0}),[3,7]);case 7:return s=!1,[2,!0]}}))}))}),[c]);if(v((function(){if(c){W.current=!1;var e=q.current;q.current=!0;var t=B.current.data,n=T();U.current=c,o.compare(t,n)||V({data:n});var r=function(){return X({dedupe:!0})};(e||O())&&("undefined"===typeof n||h?r():m(r));var i=!1,a=G(S,(function(){!i&&y.current.revalidateOnFocus&&(i=!0,r(),setTimeout((function(){return i=!1}),y.current.focusThrottleInterval))})),s=G(Z,(function(){y.current.revalidateOnReconnect&&r()})),l=G(E,(function(e,t,n,i,a){void 0===e&&(e=!0),void 0===a&&(a=!0);var s={},c=!1;return"undefined"===typeof t||o.compare(B.current.data,t)||(s.data=t,c=!0),B.current.error!==n&&(s.error=n,c=!0),"undefined"!==typeof i&&B.current.isValidating!==i&&(s.isValidating=i,c=!0),c&&V(s),!!e&&(a?r():X())}));return function(){V=function(){return null},W.current=!0,a(),s(),l()}}}),[c,X]),v((function(){var t=null,n=function(){return b(e,void 0,void 0,(function(){return x(this,(function(e){switch(e.label){case 0:return B.current.error||!y.current.refreshWhenHidden&&!y.current.isDocumentVisible()||!y.current.refreshWhenOffline&&!y.current.isOnline()?[3,2]:[4,X({dedupe:!0})];case 1:e.sent(),e.label=2;case 2:return y.current.refreshInterval&&t&&(t=setTimeout(n,y.current.refreshInterval)),[2]}}))}))};return y.current.refreshInterval&&(t=setTimeout(n,y.current.refreshInterval)),function(){t&&(clearTimeout(t),t=null)}}),[o.refreshInterval,o.refreshWhenHidden,o.refreshWhenOffline,X]),o.suspense){if($=d.get(c),L=d.get(u),"undefined"===typeof $&&($=I),"undefined"===typeof L&&(L=z),"undefined"===typeof $&&"undefined"===typeof L){if(k[c]||X(),k[c]&&"function"===typeof k[c].then)throw k[c];$=k[c]}if("undefined"===typeof $&&L)throw L}var _=(0,r.useMemo)((function(){var e={revalidate:X,mutate:H};return Object.defineProperties(e,{error:{get:function(){return j.current.error=!0,o.suspense?L:U.current===c?B.current.error:z},enumerable:!0},data:{get:function(){return j.current.data=!0,o.suspense?$:U.current===c?B.current.data:I},enumerable:!0},isValidating:{get:function(){return j.current.isValidating=!0,!!c&&B.current.isValidating},enumerable:!0}}),e}),[X,I,z,H,c,o.suspense,L,$]);return _}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/642-0e4040fe0a744c110cab.js b/striker-ui/out/_next/static/chunks/642-0e4040fe0a744c110cab.js new file mode 100644 index 00000000..6b5bba9b --- /dev/null +++ b/striker-ui/out/_next/static/chunks/642-0e4040fe0a744c110cab.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[642],{3349:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},5991:function(e,t,n){"use strict";function r(e,t){for(var n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},9756:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}n.d(t,{Z:function(){return r}})},862:function(e,t,n){var r=n(8).default;function i(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var c=a?Object.getOwnPropertyDescriptor(e,s):null;c&&(c.get||c.set)?Object.defineProperty(o,s,c):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o},e.exports.default=e.exports,e.exports.__esModule=!0},8:function(e){function t(n){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},5258:function(e,t,n){"use strict";var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(6010)),s=n(4670),c=n(3871),u=n(9895),l=o.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.color,d=void 0===l?"primary":l,f=e.position,p=void 0===f?"fixed":f,h=(0,i.Z)(e,["classes","className","color","position"]);return o.createElement(u.Z,(0,r.Z)({square:!0,component:"header",elevation:4,className:(0,a.Z)(n.root,n["position".concat((0,c.Z)(p))],n["color".concat((0,c.Z)(d))],s,"fixed"===p&&"mui-fixed"),ref:t},h))}));t.Z=(0,s.Z)((function(e){var t="light"===e.palette.type?e.palette.grey[100]:e.palette.grey[900];return{root:{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",zIndex:e.zIndex.appBar,flexShrink:0},positionFixed:{position:"fixed",top:0,left:"auto",right:0,"@media print":{position:"absolute"}},positionAbsolute:{position:"absolute",top:0,left:"auto",right:0},positionSticky:{position:"sticky",top:0,left:"auto",right:0},positionStatic:{position:"static"},positionRelative:{position:"relative"},colorDefault:{backgroundColor:t,color:e.palette.getContrastText(t)},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorInherit:{color:"inherit"},colorTransparent:{backgroundColor:"transparent",color:"inherit"}}}),{name:"MuiAppBar"})(l)},6049:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var r=n(119),i=n(5680),o=n(9424),a=n(962),s=n(3633),c=n(6427),u=n(3939),l=n(5164),d=n(958),f=n(6801),p=n(8681),h=n(9560),m=n(2122),v=n(2949),y=n(7294),g=n(6010),b=(n(5697),n(8679)),x=n.n(b),k=n(3746);function Z(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}var w=n(1947),E=function(e){var t=function(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.name,o=(0,v.Z)(r,["name"]),a=i,s="function"===typeof t?function(e){return{root:function(n){return t((0,m.Z)({theme:e},n))}}}:{root:t},c=(0,k.Z)(s,(0,m.Z)({Component:e,name:i||e.displayName,classNamePrefix:a},o));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var u=y.forwardRef((function(t,r){var i=t.children,o=t.className,a=t.clone,s=t.component,u=(0,v.Z)(t,["children","className","clone","component"]),l=c(t),d=(0,g.Z)(l.root,o),f=u;if(n&&(f=Z(f,n)),a)return y.cloneElement(i,(0,m.Z)({className:(0,g.Z)(i.props.className,d)},f));if("function"===typeof i)return i((0,m.Z)({className:d},f));var p=s||e;return y.createElement(p,(0,m.Z)({ref:r,className:d},f),i)}));return x()(u,e),u}}(e);return function(e,n){return t(e,(0,m.Z)({defaultTheme:w.Z},n))}},S=(0,r.Z)((0,i.Z)(o.ZP,a.ZP,s.ZP,c.ZP,u.ZP,l.ZP,d.Z,f.ZP,p.Z,h.ZP)),C=E("div")(S,{name:"MuiBox"})},282:function(e,t,n){"use strict";var r=n(2949),i=n(2122),o=n(7294),a=(n(5697),n(6010)),s=n(4670),c=n(9693),u=n(4720),l=n(3871),d=o.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,d=e.color,f=void 0===d?"default":d,p=e.component,h=void 0===p?"button":p,m=e.disabled,v=void 0!==m&&m,y=e.disableElevation,g=void 0!==y&&y,b=e.disableFocusRipple,x=void 0!==b&&b,k=e.endIcon,Z=e.focusVisibleClassName,w=e.fullWidth,E=void 0!==w&&w,S=e.size,C=void 0===S?"medium":S,R=e.startIcon,P=e.type,O=void 0===P?"button":P,T=e.variant,M=void 0===T?"text":T,N=(0,r.Z)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),I=R&&o.createElement("span",{className:(0,a.Z)(s.startIcon,s["iconSize".concat((0,l.Z)(C))])},R),A=k&&o.createElement("span",{className:(0,a.Z)(s.endIcon,s["iconSize".concat((0,l.Z)(C))])},k);return o.createElement(u.Z,(0,i.Z)({className:(0,a.Z)(s.root,s[M],c,"inherit"===f?s.colorInherit:"default"!==f&&s["".concat(M).concat((0,l.Z)(f))],"medium"!==C&&[s["".concat(M,"Size").concat((0,l.Z)(C))],s["size".concat((0,l.Z)(C))]],g&&s.disableElevation,v&&s.disabled,E&&s.fullWidth),component:h,disabled:v,focusRipple:!x,focusVisibleClassName:(0,a.Z)(s.focusVisible,Z),ref:t,type:O},N),o.createElement("span",{className:s.label},I,n,A))}));t.Z=(0,s.Z)((function(e){return{root:(0,i.Z)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,c.U1)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,c.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,c.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat((0,c.U1)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:(0,c.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat((0,c.U1)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:(0,c.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(d)},4720:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(3935)),s=n(6010),c=n(3834),u=n(5192),l=n(4670),d=n(4896),f=n(7329),p=n(9756),h=n(3349),m=n(3552),v=n(220);function y(e,t){var n=Object.create(null);return e&&o.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,o.isValidElement)(e)?t(e):e}(e)})),n}function g(e,t,n){return null!=n[t]?n[t]:e.props[t]}function b(e,t,n){var r=y(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var c in t){if(i[c])for(r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,i=void 0!==r&&r,o=t.center,s=void 0===o?a||t.pulsate:o,c=t.fakeElement,u=void 0!==c&&c;if("mousedown"===e.type&&y.current)y.current=!1;else{"touchstart"===e.type&&(y.current=!0);var l,d,f,p=u?null:x.current,h=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)l=Math.round(h.width/2),d=Math.round(h.height/2);else{var m=e.touches?e.touches[0]:e,v=m.clientX,Z=m.clientY;l=Math.round(v-h.left),d=Math.round(Z-h.top)}if(s)(f=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2===0&&(f+=1);else{var w=2*Math.max(Math.abs((p?p.clientWidth:0)-l),l)+2,E=2*Math.max(Math.abs((p?p.clientHeight:0)-d),d)+2;f=Math.sqrt(Math.pow(w,2)+Math.pow(E,2))}e.touches?null===b.current&&(b.current=function(){k({pulsate:i,rippleX:l,rippleY:d,rippleSize:f,cb:n})},g.current=setTimeout((function(){b.current&&(b.current(),b.current=null)}),80)):k({pulsate:i,rippleX:l,rippleY:d,rippleSize:f,cb:n})}}),[a,k]),S=o.useCallback((function(){w({},{pulsate:!0})}),[w]),C=o.useCallback((function(e,t){if(clearTimeout(g.current),"touchend"===e.type&&b.current)return e.persist(),b.current(),b.current=null,void(g.current=setTimeout((function(){C(e,t)})));b.current=null,h((function(e){return e.length>0?e.slice(1):e})),v.current=t}),[]);return o.useImperativeHandle(t,(function(){return{pulsate:S,start:w,stop:C}}),[S,w,C]),o.createElement("span",(0,r.Z)({className:(0,s.Z)(c.root,u),ref:x},l),o.createElement(Z,{component:null,exit:!0},p))})),C=(0,l.Z)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(o.memo(S)),R=o.forwardRef((function(e,t){var n=e.action,l=e.buttonRef,f=e.centerRipple,p=void 0!==f&&f,h=e.children,m=e.classes,v=e.className,y=e.component,g=void 0===y?"button":y,b=e.disabled,x=void 0!==b&&b,k=e.disableRipple,Z=void 0!==k&&k,w=e.disableTouchRipple,E=void 0!==w&&w,S=e.focusRipple,R=void 0!==S&&S,P=e.focusVisibleClassName,O=e.onBlur,T=e.onClick,M=e.onFocus,N=e.onFocusVisible,I=e.onKeyDown,A=e.onKeyUp,z=e.onMouseDown,D=e.onMouseLeave,j=e.onMouseUp,B=e.onTouchEnd,L=e.onTouchMove,F=e.onTouchStart,$=e.onDragLeave,V=e.tabIndex,W=void 0===V?0:V,H=e.TouchRippleProps,U=e.type,q=void 0===U?"button":U,K=(0,i.Z)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),_=o.useRef(null);var G=o.useRef(null),X=o.useState(!1),Y=X[0],J=X[1];x&&Y&&J(!1);var Q=(0,d.Z)(),ee=Q.isFocusVisible,te=Q.onBlurVisible,ne=Q.ref;function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E;return(0,u.Z)((function(r){return t&&t(r),!n&&G.current&&G.current[e](r),!0}))}o.useImperativeHandle(n,(function(){return{focusVisible:function(){J(!0),_.current.focus()}}}),[]),o.useEffect((function(){Y&&R&&!Z&&G.current.pulsate()}),[Z,R,Y]);var ie=re("start",z),oe=re("stop",$),ae=re("stop",j),se=re("stop",(function(e){Y&&e.preventDefault(),D&&D(e)})),ce=re("start",F),ue=re("stop",B),le=re("stop",L),de=re("stop",(function(e){Y&&(te(e),J(!1)),O&&O(e)}),!1),fe=(0,u.Z)((function(e){_.current||(_.current=e.currentTarget),ee(e)&&(J(!0),N&&N(e)),M&&M(e)})),pe=function(){var e=a.findDOMNode(_.current);return g&&"button"!==g&&!("A"===e.tagName&&e.href)},he=o.useRef(!1),me=(0,u.Z)((function(e){R&&!he.current&&Y&&G.current&&" "===e.key&&(he.current=!0,e.persist(),G.current.stop(e,(function(){G.current.start(e)}))),e.target===e.currentTarget&&pe()&&" "===e.key&&e.preventDefault(),I&&I(e),e.target===e.currentTarget&&pe()&&"Enter"===e.key&&!x&&(e.preventDefault(),T&&T(e))})),ve=(0,u.Z)((function(e){R&&" "===e.key&&G.current&&Y&&!e.defaultPrevented&&(he.current=!1,e.persist(),G.current.stop(e,(function(){G.current.pulsate(e)}))),A&&A(e),T&&e.target===e.currentTarget&&pe()&&" "===e.key&&!e.defaultPrevented&&T(e)})),ye=g;"button"===ye&&K.href&&(ye="a");var ge={};"button"===ye?(ge.type=q,ge.disabled=x):("a"===ye&&K.href||(ge.role="button"),ge["aria-disabled"]=x);var be=(0,c.Z)(l,t),xe=(0,c.Z)(ne,_),ke=(0,c.Z)(be,xe),Ze=o.useState(!1),we=Ze[0],Ee=Ze[1];o.useEffect((function(){Ee(!0)}),[]);var Se=we&&!Z&&!x;return o.createElement(ye,(0,r.Z)({className:(0,s.Z)(m.root,v,Y&&[m.focusVisible,P],x&&m.disabled),onBlur:de,onClick:T,onFocus:fe,onKeyDown:me,onKeyUp:ve,onMouseDown:ie,onMouseLeave:se,onMouseUp:ae,onDragLeave:oe,onTouchEnd:ue,onTouchMove:le,onTouchStart:ce,ref:ke,tabIndex:x?-1:W},ge,K),h,Se?o.createElement(C,(0,r.Z)({ref:G,center:p},H)):null)})),P=(0,l.Z)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(R)},3258:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(6010)),s=n(130),c=n(5209),u=(0,c.Z)(o.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),l=(0,c.Z)(o.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),d=n(9693),f=(0,c.Z)(o.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),p=n(3871),h=n(4670),m=o.createElement(l,null),v=o.createElement(u,null),y=o.createElement(f,null),g=o.forwardRef((function(e,t){var n=e.checkedIcon,c=void 0===n?m:n,u=e.classes,l=e.color,d=void 0===l?"secondary":l,f=e.icon,h=void 0===f?v:f,g=e.indeterminate,b=void 0!==g&&g,x=e.indeterminateIcon,k=void 0===x?y:x,Z=e.inputProps,w=e.size,E=void 0===w?"medium":w,S=(0,i.Z)(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","size"]),C=b?k:h,R=b?k:c;return o.createElement(s.Z,(0,r.Z)({type:"checkbox",classes:{root:(0,a.Z)(u.root,u["color".concat((0,p.Z)(d))],b&&u.indeterminate),checked:u.checked,disabled:u.disabled},color:d,inputProps:(0,r.Z)({"data-indeterminate":b},Z),icon:o.cloneElement(C,{fontSize:void 0===C.props.fontSize&&"small"===E?E:C.props.fontSize}),checkedIcon:o.cloneElement(R,{fontSize:void 0===R.props.fontSize&&"small"===E?E:R.props.fontSize}),ref:t},S))})),b=(0,h.Z)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,d.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,d.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiCheckbox"})(g)},5477:function(e,t,n){"use strict";var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(6010)),s=n(4670),c=n(3871),u=44,l=o.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.color,d=void 0===l?"primary":l,f=e.disableShrink,p=void 0!==f&&f,h=e.size,m=void 0===h?40:h,v=e.style,y=e.thickness,g=void 0===y?3.6:y,b=e.value,x=void 0===b?0:b,k=e.variant,Z=void 0===k?"indeterminate":k,w=(0,i.Z)(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),E={},S={},C={};if("determinate"===Z||"static"===Z){var R=2*Math.PI*((u-g)/2);E.strokeDasharray=R.toFixed(3),C["aria-valuenow"]=Math.round(x),E.strokeDashoffset="".concat(((100-x)/100*R).toFixed(3),"px"),S.transform="rotate(-90deg)"}return o.createElement("div",(0,r.Z)({className:(0,a.Z)(n.root,s,"inherit"!==d&&n["color".concat((0,c.Z)(d))],{determinate:n.determinate,indeterminate:n.indeterminate,static:n.static}[Z]),style:(0,r.Z)({width:m,height:m},S,v),ref:t,role:"progressbar"},C,w),o.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(u," ").concat(u)},o.createElement("circle",{className:(0,a.Z)(n.circle,p&&n.circleDisableShrink,{determinate:n.circleDeterminate,indeterminate:n.circleIndeterminate,static:n.circleStatic}[Z]),style:E,cx:u,cy:u,r:(u-g)/2,fill:"none",strokeWidth:g})))}));t.Z=(0,s.Z)((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(l)},5517:function(e,t,n){"use strict";var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(6010)),s=n(4670),c=n(9693),u=o.forwardRef((function(e,t){var n=e.absolute,s=void 0!==n&&n,c=e.classes,u=e.className,l=e.component,d=void 0===l?"hr":l,f=e.flexItem,p=void 0!==f&&f,h=e.light,m=void 0!==h&&h,v=e.orientation,y=void 0===v?"horizontal":v,g=e.role,b=void 0===g?"hr"!==d?"separator":void 0:g,x=e.variant,k=void 0===x?"fullWidth":x,Z=(0,i.Z)(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return o.createElement(d,(0,r.Z)({className:(0,a.Z)(c.root,u,"fullWidth"!==k&&c[k],s&&c.absolute,p&&c.flexItem,m&&c.light,"vertical"===y&&c.vertical),role:b,ref:t},Z))}));t.Z=(0,s.Z)((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:(0,c.U1)(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(u)},7159:function(e,t,n){"use strict";n.d(t,{ZP:function(){return T}});var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(6010)),s=n(9597),c=n(4670),u=n(4699),l=n(2666),d=n(3366),f=n(8920),p=n(5653),h=n(3834),m={entering:{opacity:1},entered:{opacity:1}},v={enter:d.x9.enteringScreen,exit:d.x9.leavingScreen},y=o.forwardRef((function(e,t){var n=e.children,a=e.disableStrictModeCompat,s=void 0!==a&&a,c=e.in,d=e.onEnter,y=e.onEntered,g=e.onEntering,b=e.onExit,x=e.onExited,k=e.onExiting,Z=e.style,w=e.TransitionComponent,E=void 0===w?l.ZP:w,S=e.timeout,C=void 0===S?v:S,R=(0,i.Z)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),P=(0,f.Z)(),O=P.unstable_strictMode&&!s,T=o.useRef(null),M=(0,h.Z)(n.ref,t),N=(0,h.Z)(O?T:void 0,M),I=function(e){return function(t,n){if(e){var r=O?[T.current,t]:[t,n],i=(0,u.Z)(r,2),o=i[0],a=i[1];void 0===a?e(o):e(o,a)}}},A=I(g),z=I((function(e,t){(0,p.n)(e);var n=(0,p.C)({style:Z,timeout:C},{mode:"enter"});e.style.webkitTransition=P.transitions.create("opacity",n),e.style.transition=P.transitions.create("opacity",n),d&&d(e,t)})),D=I(y),j=I(k),B=I((function(e){var t=(0,p.C)({style:Z,timeout:C},{mode:"exit"});e.style.webkitTransition=P.transitions.create("opacity",t),e.style.transition=P.transitions.create("opacity",t),b&&b(e)})),L=I(x);return o.createElement(E,(0,r.Z)({appear:!0,in:c,nodeRef:O?T:void 0,onEnter:z,onEntered:D,onEntering:A,onExit:B,onExited:L,onExiting:j,timeout:C},R),(function(e,t){return o.cloneElement(n,(0,r.Z)({style:(0,r.Z)({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},m[e],Z,n.props.style),ref:N},t))}))})),g=o.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,u=e.invisible,l=void 0!==u&&u,d=e.open,f=e.transitionDuration,p=e.TransitionComponent,h=void 0===p?y:p,m=(0,i.Z)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return o.createElement(h,(0,r.Z)({in:d,timeout:f},m),o.createElement("div",{className:(0,a.Z)(s.root,c,l&&s.invisible),"aria-hidden":!0,ref:t},n))})),b=(0,c.Z)({root:{zIndex:-1,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"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(g),x=n(3935),k=n(9437);function Z(e,t){var n=function(e,t){var n,r=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var i=window.getComputedStyle(t);n=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var o=0,a=0;if(n&&"none"!==n&&"string"===typeof n){var s=n.split("(")[1].split(")")[0].split(",");o=parseInt(s[4],10),a=parseInt(s[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(").concat(o-r.left,"px)"):"right"===e?"translateX(-".concat(r.left+r.width-o,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(").concat(a-r.top,"px)"):"translateY(-".concat(r.top+r.height-a,"px)")}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}var w={enter:d.x9.enteringScreen,exit:d.x9.leavingScreen},E=o.forwardRef((function(e,t){var n=e.children,a=e.direction,s=void 0===a?"down":a,c=e.in,u=e.onEnter,d=e.onEntered,m=e.onEntering,v=e.onExit,y=e.onExited,g=e.onExiting,b=e.style,E=e.timeout,S=void 0===E?w:E,C=e.TransitionComponent,R=void 0===C?l.ZP:C,P=(0,i.Z)(e,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),O=(0,f.Z)(),T=o.useRef(null),M=o.useCallback((function(e){T.current=x.findDOMNode(e)}),[]),N=(0,h.Z)(n.ref,M),I=(0,h.Z)(N,t),A=function(e){return function(t){e&&(void 0===t?e(T.current):e(T.current,t))}},z=A((function(e,t){Z(s,e),(0,p.n)(e),u&&u(e,t)})),D=A((function(e,t){var n=(0,p.C)({timeout:S,style:b},{mode:"enter"});e.style.webkitTransition=O.transitions.create("-webkit-transform",(0,r.Z)({},n,{easing:O.transitions.easing.easeOut})),e.style.transition=O.transitions.create("transform",(0,r.Z)({},n,{easing:O.transitions.easing.easeOut})),e.style.webkitTransform="none",e.style.transform="none",m&&m(e,t)})),j=A(d),B=A(g),L=A((function(e){var t=(0,p.C)({timeout:S,style:b},{mode:"exit"});e.style.webkitTransition=O.transitions.create("-webkit-transform",(0,r.Z)({},t,{easing:O.transitions.easing.sharp})),e.style.transition=O.transitions.create("transform",(0,r.Z)({},t,{easing:O.transitions.easing.sharp})),Z(s,e),v&&v(e)})),F=A((function(e){e.style.webkitTransition="",e.style.transition="",y&&y(e)})),$=o.useCallback((function(){T.current&&Z(s,T.current)}),[s]);return o.useEffect((function(){if(!c&&"down"!==s&&"right"!==s){var e=(0,k.Z)((function(){T.current&&Z(s,T.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[s,c]),o.useEffect((function(){c||$()}),[c,$]),o.createElement(R,(0,r.Z)({nodeRef:T,onEnter:z,onEntered:j,onEntering:D,onExit:L,onExited:F,onExiting:B,appear:!0,in:c,timeout:S},P),(function(e,t){return o.cloneElement(n,(0,r.Z)({ref:I,style:(0,r.Z)({visibility:"exited"!==e||c?void 0:"hidden"},b,n.props.style)},t))}))})),S=n(9895),C=n(3871),R={left:"right",right:"left",top:"down",bottom:"up"};var P={enter:d.x9.enteringScreen,exit:d.x9.leavingScreen},O=o.forwardRef((function(e,t){var n=e.anchor,c=void 0===n?"left":n,u=e.BackdropProps,l=e.children,d=e.classes,p=e.className,h=e.elevation,m=void 0===h?16:h,v=e.ModalProps,y=(v=void 0===v?{}:v).BackdropProps,g=(0,i.Z)(v,["BackdropProps"]),x=e.onClose,k=e.open,Z=void 0!==k&&k,w=e.PaperProps,O=void 0===w?{}:w,T=e.SlideProps,M=e.TransitionComponent,N=void 0===M?E:M,I=e.transitionDuration,A=void 0===I?P:I,z=e.variant,D=void 0===z?"temporary":z,j=(0,i.Z)(e,["anchor","BackdropProps","children","classes","className","elevation","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"]),B=(0,f.Z)(),L=o.useRef(!1);o.useEffect((function(){L.current=!0}),[]);var F=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?R[t]:t}(B,c),$=o.createElement(S.Z,(0,r.Z)({elevation:"temporary"===D?m:0,square:!0},O,{className:(0,a.Z)(d.paper,d["paperAnchor".concat((0,C.Z)(F))],O.className,"temporary"!==D&&d["paperAnchorDocked".concat((0,C.Z)(F))])}),l);if("permanent"===D)return o.createElement("div",(0,r.Z)({className:(0,a.Z)(d.root,d.docked,p),ref:t},j),$);var V=o.createElement(N,(0,r.Z)({in:Z,direction:R[F],timeout:A,appear:L.current},T),$);return"persistent"===D?o.createElement("div",(0,r.Z)({className:(0,a.Z)(d.root,d.docked,p),ref:t},j),V):o.createElement(s.Z,(0,r.Z)({BackdropProps:(0,r.Z)({},u,y,{transitionDuration:A}),BackdropComponent:b,className:(0,a.Z)(d.root,d.modal,p),open:Z,onClose:x,ref:t},j,g),V)})),T=(0,c.Z)((function(e){return{root:{},docked:{flex:"0 0 auto"},paper:{overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:e.zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},paperAnchorLeft:{left:0,right:"auto"},paperAnchorRight:{left:"auto",right:0},paperAnchorTop:{top:0,left:0,bottom:"auto",right:0,height:"auto",maxHeight:"100%"},paperAnchorBottom:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},paperAnchorDockedLeft:{borderRight:"1px solid ".concat(e.palette.divider)},paperAnchorDockedTop:{borderBottom:"1px solid ".concat(e.palette.divider)},paperAnchorDockedRight:{borderLeft:"1px solid ".concat(e.palette.divider)},paperAnchorDockedBottom:{borderTop:"1px solid ".concat(e.palette.divider)},modal:{}}}),{name:"MuiDrawer",flip:!1})(O)},7812:function(e,t,n){"use strict";var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(6010)),s=n(4670),c=n(9693),u=n(4720),l=n(3871),d=o.forwardRef((function(e,t){var n=e.edge,s=void 0!==n&&n,c=e.children,d=e.classes,f=e.className,p=e.color,h=void 0===p?"default":p,m=e.disabled,v=void 0!==m&&m,y=e.disableFocusRipple,g=void 0!==y&&y,b=e.size,x=void 0===b?"medium":b,k=(0,i.Z)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return o.createElement(u.Z,(0,r.Z)({className:(0,a.Z)(d.root,f,"default"!==h&&d["color".concat((0,l.Z)(h))],v&&d.disabled,"small"===x&&d["size".concat((0,l.Z)(x))],{start:d.edgeStart,end:d.edgeEnd}[s]),centerRipple:!0,focusRipple:!g,disabled:v,ref:t},k),o.createElement("span",{className:d.label},c))}));t.Z=(0,s.Z)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,c.U1)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,c.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,c.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(d)},3681:function(e,t,n){"use strict";var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(6010)),s=n(3871),c=n(4670),u=n(9693),l=n(8920),d=o.forwardRef((function(e,t){var n=e.classes,c=e.className,u=e.color,d=void 0===u?"primary":u,f=e.value,p=e.valueBuffer,h=e.variant,m=void 0===h?"indeterminate":h,v=(0,i.Z)(e,["classes","className","color","value","valueBuffer","variant"]),y=(0,l.Z)(),g={},b={bar1:{},bar2:{}};if("determinate"===m||"buffer"===m)if(void 0!==f){g["aria-valuenow"]=Math.round(f),g["aria-valuemin"]=0,g["aria-valuemax"]=100;var x=f-100;"rtl"===y.direction&&(x=-x),b.bar1.transform="translateX(".concat(x,"%)")}else 0;if("buffer"===m)if(void 0!==p){var k=(p||0)-100;"rtl"===y.direction&&(k=-k),b.bar2.transform="translateX(".concat(k,"%)")}else 0;return o.createElement("div",(0,r.Z)({className:(0,a.Z)(n.root,n["color".concat((0,s.Z)(d))],c,{determinate:n.determinate,indeterminate:n.indeterminate,buffer:n.buffer,query:n.query}[m]),role:"progressbar"},g,{ref:t},v),"buffer"===m?o.createElement("div",{className:(0,a.Z)(n.dashed,n["dashedColor".concat((0,s.Z)(d))])}):null,o.createElement("div",{className:(0,a.Z)(n.bar,n["barColor".concat((0,s.Z)(d))],("indeterminate"===m||"query"===m)&&n.bar1Indeterminate,{determinate:n.bar1Determinate,buffer:n.bar1Buffer}[m]),style:b.bar1}),"determinate"===m?null:o.createElement("div",{className:(0,a.Z)(n.bar,("indeterminate"===m||"query"===m)&&n.bar2Indeterminate,"buffer"===m?[n["color".concat((0,s.Z)(d))],n.bar2Buffer]:n["barColor".concat((0,s.Z)(d))]),style:b.bar2}))}));t.Z=(0,c.Z)((function(e){var t=function(t){return"light"===e.palette.type?(0,u.$n)(t,.62):(0,u._j)(t,.5)},n=t(e.palette.primary.main),r=t(e.palette.secondary.main);return{root:{position:"relative",overflow:"hidden",height:4,"@media print":{colorAdjust:"exact"}},colorPrimary:{backgroundColor:n},colorSecondary:{backgroundColor:r},determinate:{},indeterminate:{},buffer:{backgroundColor:"transparent"},query:{transform:"rotate(180deg)"},dashed:{position:"absolute",marginTop:0,height:"100%",width:"100%",animation:"$buffer 3s infinite linear"},dashedColorPrimary:{backgroundImage:"radial-gradient(".concat(n," 0%, ").concat(n," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},dashedColorSecondary:{backgroundImage:"radial-gradient(".concat(r," 0%, ").concat(r," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},bar:{width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},barColorPrimary:{backgroundColor:e.palette.primary.main},barColorSecondary:{backgroundColor:e.palette.secondary.main},bar1Indeterminate:{width:"auto",animation:"$indeterminate1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite"},bar1Determinate:{transition:"transform .".concat(4,"s linear")},bar1Buffer:{zIndex:1,transition:"transform .".concat(4,"s linear")},bar2Indeterminate:{width:"auto",animation:"$indeterminate2 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite"},bar2Buffer:{transition:"transform .".concat(4,"s linear")},"@keyframes indeterminate1":{"0%":{left:"-35%",right:"100%"},"60%":{left:"100%",right:"-90%"},"100%":{left:"100%",right:"-90%"}},"@keyframes indeterminate2":{"0%":{left:"-200%",right:"100%"},"60%":{left:"107%",right:"-8%"},"100%":{left:"107%",right:"-8%"}},"@keyframes buffer":{"0%":{opacity:1,backgroundPosition:"0 -23px"},"50%":{opacity:0,backgroundPosition:"0 -23px"},"100%":{opacity:1,backgroundPosition:"-200px -23px"}}}}),{name:"MuiLinearProgress"})(d)},2822:function(e,t,n){"use strict";var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(6010)),s=n(4670),c=n(6987),u=o.forwardRef((function(e,t){var n=e.children,s=e.classes,u=e.className,l=e.component,d=void 0===l?"ul":l,f=e.dense,p=void 0!==f&&f,h=e.disablePadding,m=void 0!==h&&h,v=e.subheader,y=(0,i.Z)(e,["children","classes","className","component","dense","disablePadding","subheader"]),g=o.useMemo((function(){return{dense:p}}),[p]);return o.createElement(c.Z.Provider,{value:g},o.createElement(d,(0,r.Z)({className:(0,a.Z)(s.root,u,p&&s.dense,!m&&s.padding,v&&s.subheader),ref:t},y),v,n))}));t.Z=(0,s.Z)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(u)},6987:function(e,t,n){"use strict";var r=n(7294).createContext({});t.Z=r},998:function(e,t,n){"use strict";var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(6010)),s=n(4670),c=n(4720),u=n(3711),l=n(3834),d=n(6987),f=n(3935),p="undefined"===typeof window?o.useEffect:o.useLayoutEffect,h=o.forwardRef((function(e,t){var n=e.alignItems,s=void 0===n?"center":n,h=e.autoFocus,m=void 0!==h&&h,v=e.button,y=void 0!==v&&v,g=e.children,b=e.classes,x=e.className,k=e.component,Z=e.ContainerComponent,w=void 0===Z?"li":Z,E=e.ContainerProps,S=(E=void 0===E?{}:E).className,C=(0,i.Z)(E,["className"]),R=e.dense,P=void 0!==R&&R,O=e.disabled,T=void 0!==O&&O,M=e.disableGutters,N=void 0!==M&&M,I=e.divider,A=void 0!==I&&I,z=e.focusVisibleClassName,D=e.selected,j=void 0!==D&&D,B=(0,i.Z)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),L=o.useContext(d.Z),F={dense:P||L.dense||!1,alignItems:s},$=o.useRef(null);p((function(){m&&$.current&&$.current.focus()}),[m]);var V=o.Children.toArray(g),W=V.length&&(0,u.Z)(V[V.length-1],["ListItemSecondaryAction"]),H=o.useCallback((function(e){$.current=f.findDOMNode(e)}),[]),U=(0,l.Z)(H,t),q=(0,r.Z)({className:(0,a.Z)(b.root,x,F.dense&&b.dense,!N&&b.gutters,A&&b.divider,T&&b.disabled,y&&b.button,"center"!==s&&b.alignItemsFlexStart,W&&b.secondaryAction,j&&b.selected),disabled:T},B),K=k||"li";return y&&(q.component=k||"div",q.focusVisibleClassName=(0,a.Z)(b.focusVisible,z),K=c.Z),W?(K=q.component||k?K:"div","li"===w&&("li"===K?K="div":"li"===q.component&&(q.component="div")),o.createElement(d.Z.Provider,{value:F},o.createElement(w,(0,r.Z)({className:(0,a.Z)(b.container,S),ref:U},C),o.createElement(K,q,V),V.pop()))):o.createElement(d.Z.Provider,{value:F},o.createElement(K,(0,r.Z)({ref:U},q),V))}));t.Z=(0,s.Z)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(h)},5675:function(e,t,n){"use strict";n.d(t,{Z:function(){return V}});var r=n(2122),i=n(2949),o=n(7294),a=(n(9864),n(5697),n(6010)),s=n(4670),c=n(3935),u=n(9437),l=n(626),d=n(713),f=n(2568),p=n(9597),h=n(4699),m=n(2666),v=n(8920),y=n(5653),g=n(3834);function b(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var x={entering:{opacity:1,transform:b(1)},entered:{opacity:1,transform:"none"}},k=o.forwardRef((function(e,t){var n=e.children,a=e.disableStrictModeCompat,s=void 0!==a&&a,c=e.in,u=e.onEnter,l=e.onEntered,d=e.onEntering,f=e.onExit,p=e.onExited,k=e.onExiting,Z=e.style,w=e.timeout,E=void 0===w?"auto":w,S=e.TransitionComponent,C=void 0===S?m.ZP:S,R=(0,i.Z)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),P=o.useRef(),O=o.useRef(),T=(0,v.Z)(),M=T.unstable_strictMode&&!s,N=o.useRef(null),I=(0,g.Z)(n.ref,t),A=(0,g.Z)(M?N:void 0,I),z=function(e){return function(t,n){if(e){var r=M?[N.current,t]:[t,n],i=(0,h.Z)(r,2),o=i[0],a=i[1];void 0===a?e(o):e(o,a)}}},D=z(d),j=z((function(e,t){(0,y.n)(e);var n,r=(0,y.C)({style:Z,timeout:E},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===E?(n=T.transitions.getAutoHeightDuration(e.clientHeight),O.current=n):n=i,e.style.transition=[T.transitions.create("opacity",{duration:n,delay:o}),T.transitions.create("transform",{duration:.666*n,delay:o})].join(","),u&&u(e,t)})),B=z(l),L=z(k),F=z((function(e){var t,n=(0,y.C)({style:Z,timeout:E},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===E?(t=T.transitions.getAutoHeightDuration(e.clientHeight),O.current=t):t=r,e.style.transition=[T.transitions.create("opacity",{duration:t,delay:i}),T.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=b(.75),f&&f(e)})),$=z(p);return o.useEffect((function(){return function(){clearTimeout(P.current)}}),[]),o.createElement(C,(0,r.Z)({appear:!0,in:c,nodeRef:M?N:void 0,onEnter:j,onEntered:B,onEntering:D,onExit:F,onExited:$,onExiting:L,addEndListener:function(e,t){var n=M?e:t;"auto"===E&&(P.current=setTimeout(n,O.current||0))},timeout:"auto"===E?null:E},R),(function(e,t){return o.cloneElement(n,(0,r.Z)({style:(0,r.Z)({opacity:0,transform:b(.75),visibility:"exited"!==e||c?void 0:"hidden"},x[e],Z,n.props.style),ref:A},t))}))}));k.muiSupportAuto=!0;var Z=k,w=n(9895);function E(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function S(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function C(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function R(e){return"function"===typeof e?e():e}var P=o.forwardRef((function(e,t){var n=e.action,s=e.anchorEl,h=e.anchorOrigin,m=void 0===h?{vertical:"top",horizontal:"left"}:h,v=e.anchorPosition,y=e.anchorReference,g=void 0===y?"anchorEl":y,b=e.children,x=e.classes,k=e.className,P=e.container,O=e.elevation,T=void 0===O?8:O,M=e.getContentAnchorEl,N=e.marginThreshold,I=void 0===N?16:N,A=e.onEnter,z=e.onEntered,D=e.onEntering,j=e.onExit,B=e.onExited,L=e.onExiting,F=e.open,$=e.PaperProps,V=void 0===$?{}:$,W=e.transformOrigin,H=void 0===W?{vertical:"top",horizontal:"left"}:W,U=e.TransitionComponent,q=void 0===U?Z:U,K=e.transitionDuration,_=void 0===K?"auto":K,G=e.TransitionProps,X=void 0===G?{}:G,Y=(0,i.Z)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),J=o.useRef(),Q=o.useCallback((function(e){if("anchorPosition"===g)return v;var t=R(s),n=(t&&1===t.nodeType?t:(0,l.Z)(J.current).body).getBoundingClientRect(),r=0===e?m.vertical:"center";return{top:n.top+E(n,r),left:n.left+S(n,m.horizontal)}}),[s,m.horizontal,m.vertical,v,g]),ee=o.useCallback((function(e){var t=0;if(M&&"anchorEl"===g){var n=M(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[m.vertical,g,M]),te=o.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:E(e,H.vertical)+t,horizontal:S(e,H.horizontal)}}),[H.horizontal,H.vertical]),ne=o.useCallback((function(e){var t=ee(e),n={width:e.offsetWidth,height:e.offsetHeight},r=te(n,t);if("none"===g)return{top:null,left:null,transformOrigin:C(r)};var i=Q(t),o=i.top-r.vertical,a=i.left-r.horizontal,c=o+n.height,u=a+n.width,l=(0,d.Z)(R(s)),f=l.innerHeight-I,p=l.innerWidth-I;if(of){var m=c-f;o-=m,r.vertical+=m}if(ap){var y=u-p;a-=y,r.horizontal+=y}return{top:"".concat(Math.round(o),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:C(r)}}),[s,g,Q,ee,te,I]),re=o.useCallback((function(){var e=J.current;if(e){var t=ne(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[ne]),ie=o.useCallback((function(e){J.current=c.findDOMNode(e)}),[]);o.useEffect((function(){F&&re()})),o.useImperativeHandle(n,(function(){return F?{updatePosition:function(){re()}}:null}),[F,re]),o.useEffect((function(){if(F){var e=(0,u.Z)((function(){re()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[F,re]);var oe=_;"auto"!==_||q.muiSupportAuto||(oe=void 0);var ae=P||(s?(0,l.Z)(R(s)).body:void 0);return o.createElement(p.Z,(0,r.Z)({container:ae,open:F,ref:t,BackdropProps:{invisible:!0},className:(0,a.Z)(x.root,k)},Y),o.createElement(q,(0,r.Z)({appear:!0,in:F,onEnter:A,onEntered:z,onExit:j,onExited:B,onExiting:L,timeout:oe},X,{onEntering:(0,f.Z)((function(e,t){D&&D(e,t),re()}),X.onEntering)}),o.createElement(w.Z,(0,r.Z)({elevation:T,ref:ie},V,{className:(0,a.Z)(x.paper,V.className)}),b)))})),O=(0,s.Z)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(P),T=n(2822),M=n(5840);function N(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function I(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function A(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function z(e,t,n,r,i,o){for(var a=!1,s=i(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return;a=!0}var c=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&A(s,o)&&!c)return void s.focus();s=i(e,s,n)}}var D="undefined"===typeof window?o.useEffect:o.useLayoutEffect,j=o.forwardRef((function(e,t){var n=e.actions,a=e.autoFocus,s=void 0!==a&&a,u=e.autoFocusItem,d=void 0!==u&&u,f=e.children,p=e.className,h=e.disabledItemsFocusable,m=void 0!==h&&h,v=e.disableListWrap,y=void 0!==v&&v,b=e.onKeyDown,x=e.variant,k=void 0===x?"selectedMenu":x,Z=(0,i.Z)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),w=o.useRef(null),E=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});D((function(){s&&w.current.focus()}),[s]),o.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!w.current.style.width;if(e.clientHeight0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);var s=r&&!i.repeating&&A(r,i);i.previousKeyMatched&&(s||z(t,r,!1,m,N,i))?e.preventDefault():i.previousKeyMatched=!1}b&&b(e)},tabIndex:s?0:-1},Z),P)})),B=n(4236),L={vertical:"top",horizontal:"right"},F={vertical:"top",horizontal:"left"},$=o.forwardRef((function(e,t){var n=e.autoFocus,s=void 0===n||n,u=e.children,l=e.classes,d=e.disableAutoFocusItem,f=void 0!==d&&d,p=e.MenuListProps,h=void 0===p?{}:p,m=e.onClose,y=e.onEntering,g=e.open,b=e.PaperProps,x=void 0===b?{}:b,k=e.PopoverClasses,Z=e.transitionDuration,w=void 0===Z?"auto":Z,E=e.variant,S=void 0===E?"selectedMenu":E,C=(0,i.Z)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","variant"]),R=(0,v.Z)(),P=s&&!f&&g,T=o.useRef(null),M=o.useRef(null),N=-1;o.Children.map(u,(function(e,t){o.isValidElement(e)&&(e.props.disabled||("menu"!==S&&e.props.selected||-1===N)&&(N=t))}));var I=o.Children.map(u,(function(e,t){return t===N?o.cloneElement(e,{ref:function(t){M.current=c.findDOMNode(t),(0,B.Z)(e.ref,t)}}):e}));return o.createElement(O,(0,r.Z)({getContentAnchorEl:function(){return M.current},classes:k,onClose:m,onEntering:function(e,t){T.current&&T.current.adjustStyleForScrollbar(e,R),y&&y(e,t)},anchorOrigin:"rtl"===R.direction?L:F,transformOrigin:"rtl"===R.direction?L:F,PaperProps:(0,r.Z)({},x,{classes:(0,r.Z)({},x.classes,{root:l.paper})}),open:g,ref:t,transitionDuration:w},C),o.createElement(j,(0,r.Z)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),m&&m(e,"tabKeyDown"))},actions:T,autoFocus:s&&(-1===N||f),autoFocusItem:P,variant:S},h,{className:(0,a.Z)(l.list,h.className)}),I))})),V=(0,s.Z)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})($)},5639:function(e,t,n){"use strict";var r=n(2949),i=n(6156),o=n(2122),a=n(7294),s=(n(5697),n(6010)),c=n(4670),u=n(998),l=a.forwardRef((function(e,t){var n,i=e.classes,c=e.className,l=e.component,d=void 0===l?"li":l,f=e.disableGutters,p=void 0!==f&&f,h=e.ListItemClasses,m=e.role,v=void 0===m?"menuitem":m,y=e.selected,g=e.tabIndex,b=(0,r.Z)(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(n=void 0!==g?g:-1),a.createElement(u.Z,(0,o.Z)({button:!0,role:v,tabIndex:n,component:d,selected:y,disableGutters:p,classes:(0,o.Z)({dense:i.dense},h),className:(0,s.Z)(i.root,c,y&&i.selected,!p&&i.gutters),ref:t},b))}));t.Z=(0,c.Z)((function(e){return{root:(0,o.Z)({},e.typography.body1,(0,i.Z)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:(0,o.Z)({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(l)},9597:function(e,t,n){"use strict";n.d(t,{Z:function(){return M}});var r=n(2949),i=n(2122),o=n(7294),a=n(3935),s=(n(5697),n(159)),c=n(3869),u=n(626),l=n(4236),d=n(3834);var f="undefined"!==typeof window?o.useLayoutEffect:o.useEffect;var p=o.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,s=void 0!==i&&i,c=e.onRendered,u=o.useState(null),p=u[0],h=u[1],m=(0,d.Z)(o.isValidElement(n)?n.ref:null,t);return f((function(){s||h(function(e){return e="function"===typeof e?e():e,a.findDOMNode(e)}(r)||document.body)}),[r,s]),f((function(){if(p&&!s)return(0,l.Z)(t,p),function(){(0,l.Z)(t,null)}}),[t,p,s]),f((function(){c&&(p||s)&&c()}),[c,p,s]),s?o.isValidElement(n)?o.cloneElement(n,{ref:m}):n:p?a.createPortal(n,p):p})),h=n(2568),m=n(5192),v=n(2781);var y=n(5991),g=n(7329),b=n(5840),x=n(713);function k(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Z(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function w(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[t,n].concat((0,g.Z)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===a.indexOf(e.tagName)&&k(e,i)}))}function E(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function S(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,u.Z)(e);return t.body===e?(0,x.Z)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=(0,b.Z)();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(Z(o)+a,"px"),n=(0,u.Z)(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(Z(e)+a,"px")}))}var s=o.parentElement,c="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:c.style.overflow,key:"overflow",el:c}),c.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var C=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return(0,y.Z)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&k(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);w(t,e.mountNode,e.modalRef,r,!0);var i=E(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=E(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=S(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=E(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&k(e.modalRef,!0),w(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&k(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var R=function(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,s=void 0!==i&&i,c=e.disableRestoreFocus,l=void 0!==c&&c,f=e.getDoc,p=e.isEnabled,h=e.open,m=o.useRef(),v=o.useRef(null),y=o.useRef(null),g=o.useRef(),b=o.useRef(null),x=o.useCallback((function(e){b.current=a.findDOMNode(e)}),[]),k=(0,d.Z)(t.ref,x),Z=o.useRef();return o.useEffect((function(){Z.current=h}),[h]),!Z.current&&h&&"undefined"!==typeof window&&(g.current=f().activeElement),o.useEffect((function(){if(h){var e=(0,u.Z)(b.current);r||!b.current||b.current.contains(e.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex",-1),b.current.focus());var t=function(){null!==b.current&&(e.hasFocus()&&!s&&p()&&!m.current?b.current&&!b.current.contains(e.activeElement)&&b.current.focus():m.current=!1)},n=function(t){!s&&p()&&9===t.keyCode&&e.activeElement===b.current&&(m.current=!0,t.shiftKey?y.current.focus():v.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),l||(g.current&&g.current.focus&&g.current.focus(),g.current=null)}}}),[r,s,l,p,h]),o.createElement(o.Fragment,null,o.createElement("div",{tabIndex:0,ref:v,"data-test":"sentinelStart"}),o.cloneElement(t,{ref:k}),o.createElement("div",{tabIndex:0,ref:y,"data-test":"sentinelEnd"}))},P={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},O=o.forwardRef((function(e,t){var n=e.invisible,a=void 0!==n&&n,s=e.open,c=(0,r.Z)(e,["invisible","open"]);return s?o.createElement("div",(0,i.Z)({"aria-hidden":!0,ref:t},c,{style:(0,i.Z)({},P.root,a?P.invisible:{},c.style)})):null}));var T=new C,M=o.forwardRef((function(e,t){var n=(0,s.Z)(),l=(0,c.Z)({name:"MuiModal",props:(0,i.Z)({},e),theme:n}),f=l.BackdropComponent,y=void 0===f?O:f,g=l.BackdropProps,b=l.children,x=l.closeAfterTransition,Z=void 0!==x&&x,w=l.container,E=l.disableAutoFocus,S=void 0!==E&&E,C=l.disableBackdropClick,P=void 0!==C&&C,M=l.disableEnforceFocus,N=void 0!==M&&M,I=l.disableEscapeKeyDown,A=void 0!==I&&I,z=l.disablePortal,D=void 0!==z&&z,j=l.disableRestoreFocus,B=void 0!==j&&j,L=l.disableScrollLock,F=void 0!==L&&L,$=l.hideBackdrop,V=void 0!==$&&$,W=l.keepMounted,H=void 0!==W&&W,U=l.manager,q=void 0===U?T:U,K=l.onBackdropClick,_=l.onClose,G=l.onEscapeKeyDown,X=l.onRendered,Y=l.open,J=(0,r.Z)(l,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),Q=o.useState(!0),ee=Q[0],te=Q[1],ne=o.useRef({}),re=o.useRef(null),ie=o.useRef(null),oe=(0,d.Z)(ie,t),ae=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(l),se=function(){return(0,u.Z)(re.current)},ce=function(){return ne.current.modalRef=ie.current,ne.current.mountNode=re.current,ne.current},ue=function(){q.mount(ce(),{disableScrollLock:F}),ie.current.scrollTop=0},le=(0,m.Z)((function(){var e=function(e){return e="function"===typeof e?e():e,a.findDOMNode(e)}(w)||se().body;q.add(ce(),e),ie.current&&ue()})),de=o.useCallback((function(){return q.isTopModal(ce())}),[q]),fe=(0,m.Z)((function(e){re.current=e,e&&(X&&X(),Y&&de()?ue():k(ie.current,!0))})),pe=o.useCallback((function(){q.remove(ce())}),[q]);if(o.useEffect((function(){return function(){pe()}}),[pe]),o.useEffect((function(){Y?le():ae&&Z||pe()}),[Y,pe,ae,Z,le]),!H&&!Y&&(!ae||ee))return null;var he=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:v.Z}),me={};return void 0===b.props.tabIndex&&(me.tabIndex=b.props.tabIndex||"-1"),ae&&(me.onEnter=(0,h.Z)((function(){te(!1)}),b.props.onEnter),me.onExited=(0,h.Z)((function(){te(!0),Z&&pe()}),b.props.onExited)),o.createElement(p,{ref:fe,container:w,disablePortal:D},o.createElement("div",(0,i.Z)({ref:oe,onKeyDown:function(e){"Escape"===e.key&&de()&&(G&&G(e),A||(e.stopPropagation(),_&&_(e,"escapeKeyDown")))},role:"presentation"},J,{style:(0,i.Z)({},he.root,!Y&&ee?he.hidden:{},J.style)}),V?null:o.createElement(y,(0,i.Z)({open:Y,onClick:function(e){e.target===e.currentTarget&&(K&&K(e),!P&&_&&_(e,"backdropClick"))}},g)),o.createElement(R,{disableEnforceFocus:N,disableAutoFocus:S,disableRestoreFocus:B,getDoc:se,isEnabled:de,open:Y},o.cloneElement(b,me))))}))},9895:function(e,t,n){"use strict";var r=n(2949),i=n(2122),o=n(7294),a=(n(5697),n(6010)),s=n(4670),c=o.forwardRef((function(e,t){var n=e.classes,s=e.className,c=e.component,u=void 0===c?"div":c,l=e.square,d=void 0!==l&&l,f=e.elevation,p=void 0===f?1:f,h=e.variant,m=void 0===h?"elevation":h,v=(0,r.Z)(e,["classes","className","component","square","elevation","variant"]);return o.createElement(u,(0,i.Z)({className:(0,a.Z)(n.root,s,"outlined"===m?n.outlined:n["elevation".concat(p)],!d&&n.rounded),ref:t},v))}));t.Z=(0,s.Z)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),(0,i.Z)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(c)},9570:function(e,t,n){"use strict";var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(6010)),s=n(4670),c=n(9693),u=n(3871),l=n(130),d=o.forwardRef((function(e,t){var n=e.classes,s=e.className,c=e.color,d=void 0===c?"secondary":c,f=e.edge,p=void 0!==f&&f,h=e.size,m=void 0===h?"medium":h,v=(0,i.Z)(e,["classes","className","color","edge","size"]),y=o.createElement("span",{className:n.thumb});return o.createElement("span",{className:(0,a.Z)(n.root,s,{start:n.edgeStart,end:n.edgeEnd}[p],"small"===m&&n["size".concat((0,u.Z)(m))])},o.createElement(l.Z,(0,r.Z)({type:"checkbox",icon:y,checkedIcon:y,classes:{root:(0,a.Z)(n.switchBase,n["color".concat((0,u.Z)(d))]),input:n.input,checked:n.checked,disabled:n.disabled},ref:t},v)),o.createElement("span",{className:n.track}))}));t.Z=(0,s.Z)((function(e){return{root:{display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},edgeStart:{marginLeft:-8},edgeEnd:{marginRight:-8},switchBase:{position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.type?e.palette.grey[50]:e.palette.grey[400],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),"&$checked":{transform:"translateX(20px)"},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{opacity:.5},"&$disabled + $track":{opacity:"light"===e.palette.type?.12:.1}},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,c.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.primary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,c.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.secondary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},sizeSmall:{width:40,height:24,padding:7,"& $thumb":{width:16,height:16},"& $switchBase":{padding:4,"&$checked":{transform:"translateX(16px)"}}},checked:{},disabled:{},input:{left:"-100%",width:"300%"},thumb:{boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"},track:{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.type?.38:.3}}}),{name:"MuiSwitch"})(d)},2318:function(e,t,n){"use strict";var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(6010)),s=n(4670),c=n(3871),u={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},l=o.forwardRef((function(e,t){var n=e.align,s=void 0===n?"inherit":n,l=e.classes,d=e.className,f=e.color,p=void 0===f?"initial":f,h=e.component,m=e.display,v=void 0===m?"initial":m,y=e.gutterBottom,g=void 0!==y&&y,b=e.noWrap,x=void 0!==b&&b,k=e.paragraph,Z=void 0!==k&&k,w=e.variant,E=void 0===w?"body1":w,S=e.variantMapping,C=void 0===S?u:S,R=(0,i.Z)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),P=h||(Z?"p":C[E]||u[E])||"span";return o.createElement(P,(0,r.Z)({className:(0,a.Z)(l.root,d,"inherit"!==E&&l[E],"initial"!==p&&l["color".concat((0,c.Z)(p))],x&&l.noWrap,g&&l.gutterBottom,Z&&l.paragraph,"inherit"!==s&&l["align".concat((0,c.Z)(s))],"initial"!==v&&l["display".concat((0,c.Z)(v))]),ref:t},R))}));t.Z=(0,s.Z)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(l)},130:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(2122),i=n(4699),o=n(2949),a=n(7294),s=(n(5697),n(6010)),c=n(2775),u=a.createContext();var l=u;var d=n(4670),f=n(7812),p=a.forwardRef((function(e,t){var n=e.autoFocus,u=e.checked,d=e.checkedIcon,p=e.classes,h=e.className,m=e.defaultChecked,v=e.disabled,y=e.icon,g=e.id,b=e.inputProps,x=e.inputRef,k=e.name,Z=e.onBlur,w=e.onChange,E=e.onFocus,S=e.readOnly,C=e.required,R=e.tabIndex,P=e.type,O=e.value,T=(0,o.Z)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),M=(0,c.Z)({controlled:u,default:Boolean(m),name:"SwitchBase",state:"checked"}),N=(0,i.Z)(M,2),I=N[0],A=N[1],z=a.useContext(l),D=v;z&&"undefined"===typeof D&&(D=z.disabled);var j="checkbox"===P||"radio"===P;return a.createElement(f.Z,(0,r.Z)({component:"span",className:(0,s.Z)(p.root,h,I&&p.checked,D&&p.disabled),disabled:D,tabIndex:null,role:void 0,onFocus:function(e){E&&E(e),z&&z.onFocus&&z.onFocus(e)},onBlur:function(e){Z&&Z(e),z&&z.onBlur&&z.onBlur(e)},ref:t},T),a.createElement("input",(0,r.Z)({autoFocus:n,checked:u,defaultChecked:m,className:p.input,disabled:D,id:j&&g,name:k,onChange:function(e){var t=e.target.checked;A(t),w&&w(e,t)},readOnly:S,ref:x,required:C,tabIndex:R,type:P,value:O},b)),I?d:y)})),h=(0,d.Z)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(p)},9693:function(e,t,n){"use strict";n.d(t,{mi:function(){return s},U1:function(){return u},_j:function(){return l},$n:function(){return d}});var r=n(288);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function o(e){if(e.type)return e;if("#"===e.charAt(0))return o(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,r.Z)(3,e));var i=e.substring(t+1,e.length-1).split(",");return{type:n,values:i=i.map((function(e){return parseFloat(e)}))}}function a(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function s(e,t){var n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function c(e){var t="hsl"===(e=o(e)).type?o(function(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-s*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",l=[Math.round(255*c(0)),Math.round(255*c(8)),Math.round(255*c(4))];return"hsla"===e.type&&(u+="a",l.push(t[3])),a({type:u,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){return e=o(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function l(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function d(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return a(e)}},7623:function(e,t,n){"use strict";function r(e){return e}n.d(t,{Z:function(){return r}})},1947:function(e,t,n){"use strict";n.d(t,{Z:function(){return z}});var r=n(2949),i=n(5953),o=n(2122),a=["xs","sm","md","lg","xl"];function s(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,i=e.unit,s=void 0===i?"px":i,c=e.step,u=void 0===c?5:c,l=(0,r.Z)(e,["values","unit","step"]);function d(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function f(e,t){var r=a.indexOf(t);return r===a.length-1?d(e):"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[a[r+1]]?n[a[r+1]]:t)-u/100).concat(s,")")}return(0,o.Z)({keys:a,values:n,up:d,down:function(e){var t=a.indexOf(e)+1,r=n[a[t]];return t===a.length?d("xs"):"@media (max-width:".concat(("number"===typeof r&&t>0?r:e)-u/100).concat(s,")")},between:f,only:function(e){return f(e,e)},width:function(e){return n[e]}},l)}var c=n(6156);function u(e,t,n){var r;return(0,o.Z)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.Z)({paddingLeft:t(2),paddingRight:t(2)},n,(0,c.Z)({},e.up("sm"),(0,o.Z)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,c.Z)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,c.Z)(r,e.up("sm"),{minHeight:64}),r)},n)}var l=n(288),d={black:"#000",white:"#fff"},f={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},p={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},h={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},m={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},v={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},y={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},g={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=n(9693),x={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:f[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},k={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:f[800],default:"#303030"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Z(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,b.$n)(e.main,i):"dark"===t&&(e.dark=(0,b._j)(e.main,o)))}function w(e){var t=e.primary,n=void 0===t?{light:p[300],main:p[500],dark:p[700]}:t,a=e.secondary,s=void 0===a?{light:h.A200,main:h.A400,dark:h.A700}:a,c=e.error,u=void 0===c?{light:m[300],main:m[500],dark:m[700]}:c,w=e.warning,E=void 0===w?{light:v[300],main:v[500],dark:v[700]}:w,S=e.info,C=void 0===S?{light:y[300],main:y[500],dark:y[700]}:S,R=e.success,P=void 0===R?{light:g[300],main:g[500],dark:g[700]}:R,O=e.type,T=void 0===O?"light":O,M=e.contrastThreshold,N=void 0===M?3:M,I=e.tonalOffset,A=void 0===I?.2:I,z=(0,r.Z)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function D(e){return(0,b.mi)(e,k.text.primary)>=N?k.text.primary:x.text.primary}var j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,o.Z)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error((0,l.Z)(4,t));if("string"!==typeof e.main)throw new Error((0,l.Z)(5,JSON.stringify(e.main)));return Z(e,"light",n,A),Z(e,"dark",r,A),e.contrastText||(e.contrastText=D(e.main)),e},B={dark:k,light:x};return(0,i.Z)((0,o.Z)({common:d,type:T,primary:j(n),secondary:j(s,"A400","A200","A700"),error:j(u),warning:j(E),info:j(C),success:j(P),grey:f,contrastThreshold:N,getContrastText:D,augmentColor:j,tonalOffset:A},B[T]),z)}function E(e){return Math.round(1e5*e)/1e5}var S={textTransform:"uppercase"},C='"Roboto", "Helvetica", "Arial", sans-serif';function R(e,t){var n="function"===typeof t?t(e):t,a=n.fontFamily,s=void 0===a?C:a,c=n.fontSize,u=void 0===c?14:c,l=n.fontWeightLight,d=void 0===l?300:l,f=n.fontWeightRegular,p=void 0===f?400:f,h=n.fontWeightMedium,m=void 0===h?500:h,v=n.fontWeightBold,y=void 0===v?700:v,g=n.htmlFontSize,b=void 0===g?16:g,x=n.allVariants,k=n.pxToRem,Z=(0,r.Z)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var w=u/14,R=k||function(e){return"".concat(e/b*w,"rem")},P=function(e,t,n,r,i){return(0,o.Z)({fontFamily:s,fontWeight:e,fontSize:R(t),lineHeight:n},s===C?{letterSpacing:"".concat(E(r/t),"em")}:{},i,x)},O={h1:P(d,96,1.167,-1.5),h2:P(d,60,1.2,-.5),h3:P(p,48,1.167,0),h4:P(p,34,1.235,.25),h5:P(p,24,1.334,0),h6:P(m,20,1.6,.15),subtitle1:P(p,16,1.75,.15),subtitle2:P(m,14,1.57,.1),body1:P(p,16,1.5,.15),body2:P(p,14,1.43,.15),button:P(m,14,1.75,.4,S),caption:P(p,12,1.66,.4),overline:P(p,12,2.66,1,S)};return(0,i.Z)((0,o.Z)({htmlFontSize:b,pxToRem:R,round:E,fontFamily:s,fontSize:u,fontWeightLight:d,fontWeightRegular:p,fontWeightMedium:m,fontWeightBold:y},O),Z,{clone:!1})}function P(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var O=["none",P(0,2,1,-1,0,1,1,0,0,1,3,0),P(0,3,1,-2,0,2,2,0,0,1,5,0),P(0,3,3,-2,0,3,4,0,0,1,8,0),P(0,2,4,-1,0,4,5,0,0,1,10,0),P(0,3,5,-1,0,5,8,0,0,1,14,0),P(0,3,5,-1,0,6,10,0,0,1,18,0),P(0,4,5,-2,0,7,10,1,0,2,16,1),P(0,5,5,-3,0,8,10,1,0,3,14,2),P(0,5,6,-3,0,9,12,1,0,3,16,2),P(0,6,6,-3,0,10,14,1,0,4,18,3),P(0,6,7,-4,0,11,15,1,0,4,20,3),P(0,7,8,-4,0,12,17,2,0,5,22,4),P(0,7,8,-4,0,13,19,2,0,5,24,4),P(0,7,9,-4,0,14,21,2,0,5,26,4),P(0,8,9,-5,0,15,22,2,0,6,28,5),P(0,8,10,-5,0,16,24,2,0,6,30,5),P(0,8,11,-5,0,17,26,2,0,6,32,5),P(0,9,11,-5,0,18,28,2,0,7,34,6),P(0,9,12,-6,0,19,29,2,0,7,36,6),P(0,10,13,-6,0,20,31,3,0,8,38,7),P(0,10,13,-6,0,21,33,3,0,8,40,7),P(0,10,14,-6,0,22,35,3,0,8,42,7),P(0,11,14,-7,0,23,36,3,0,9,44,8),P(0,11,15,-7,0,24,38,3,0,9,46,8)],T={borderRadius:4},M=n(8681);function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,M.h)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,o=e.mixins,a=void 0===o?{}:o,c=e.palette,l=void 0===c?{}:c,d=e.spacing,f=e.typography,p=void 0===f?{}:f,h=(0,r.Z)(e,["breakpoints","mixins","palette","spacing","typography"]),m=w(l),v=s(n),y=N(d),g=(0,i.Z)({breakpoints:v,direction:"ltr",mixins:u(v,y,a),overrides:{},palette:m,props:{},shadows:O,typography:R(m,p),spacing:y,shape:T,transitions:I.ZP,zIndex:A.Z},h),b=arguments.length,x=new Array(b>1?b-1:0),k=1;k1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.Z)(e,(0,r.Z)({defaultTheme:o.Z},t))}},3366:function(e,t,n){"use strict";n.d(t,{x9:function(){return o}});var r=n(2949),i={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},o={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return"".concat(Math.round(e),"ms")}t.ZP={easing:i,duration:o,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,s=void 0===n?o.standard:n,c=t.easing,u=void 0===c?i.easeInOut:c,l=t.delay,d=void 0===l?0:l;(0,r.Z)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof s?s:a(s)," ").concat(u," ").concat("string"===typeof d?d:a(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},8920:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(159),i=(n(7294),n(1947));function o(){return(0,r.Z)()||i.Z}},4670:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(8679)),s=n.n(a),c=n(3746),u=n(3869),l=n(159),d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var a=t.defaultTheme,d=t.withTheme,f=void 0!==d&&d,p=t.name,h=(0,i.Z)(t,["defaultTheme","withTheme","name"]);var m=p,v=(0,c.Z)(e,(0,r.Z)({defaultTheme:a,Component:n,name:p||n.displayName,classNamePrefix:m},h)),y=o.forwardRef((function(e,t){e.classes;var s,c=e.innerRef,d=(0,i.Z)(e,["classes","innerRef"]),h=v((0,r.Z)({},n.defaultProps,e)),m=d;return("string"===typeof p||f)&&(s=(0,l.Z)()||a,p&&(m=(0,u.Z)({theme:s,name:p,props:d})),f&&!m.theme&&(m.theme=s)),o.createElement(n,(0,r.Z)({ref:c||t,classes:h},m))}));return s()(y,n),y}},f=n(1947);var p=function(e,t){return d(e,(0,r.Z)({defaultTheme:f.Z},t))}},2781:function(e,t){"use strict";t.Z={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},5653:function(e,t,n){"use strict";n.d(t,{n:function(){return r},C:function(){return i}});var r=function(e){return e.scrollTop};function i(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"===typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}},3871:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(288);function i(e){if("string"!==typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},2568:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<+~=|^:(),"'`\s])/g,x="undefined"!==typeof CSS&&CSS.escape,k=function(e){return x?x(e):e.replace(b,"\\$1")},Z=function(){function e(e,t,n){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var c=this.options.sheet;return c&&c.attached,this},e}(),w=function(e){function t(t,n,r){var i;(i=e.call(this,t,n,r)||this).selectorText=void 0,i.id=void 0,i.renderable=void 0;var o=r.selector,a=r.scoped,s=r.sheet,c=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=c((0,l.Z)((0,l.Z)(i)),s),i.selectorText="."+k(i.id)),i}(0,u.Z)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==typeof n?e[t]=n:Array.isArray(n)&&(e[t]=v(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,i.Z)({},e,{allowEmpty:!0}):e;return g(this.selectorText,this.style,n)},(0,c.Z)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(Z),E={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new w(e,t,n)}},S={indent:1,children:!0},C=/@([\w-]+)/,R=function(){function e(e,t,n){this.type="conditional",this.at=void 0,this.key=void 0,this.query=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e;var r=e.match(C);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new X((0,i.Z)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.toString=function(e){if(void 0===e&&(e=S),null==e.indent&&(e.indent=S.indent),null==e.children&&(e.children=S.children),!1===e.children)return this.query+" {}";var t=this.rules.toString(e);return t?this.query+" {\n"+t+"\n}":""},e}(),P=/@media|@supports\s+/,O={onCreateRule:function(e,t,n){return P.test(e)?new R(e,t,n):null}},T={indent:1,children:!0},M=/@keyframes\s+([\w-]+)/,N=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var r=e.match(M);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,a=n.sheet,s=n.generateId;for(var c in this.id=!1===o?this.name:k(s(this,a)),this.rules=new X((0,i.Z)({},n,{parent:this})),t)this.rules.add(c,t[c],(0,i.Z)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){if(void 0===e&&(e=T),null==e.indent&&(e.indent=T.indent),null==e.children&&(e.children=T.children),!1===e.children)return this.at+" "+this.id+" {}";var t=this.rules.toString(e);return t&&(t="\n"+t+"\n"),this.at+" "+this.id+" {"+t+"}"},e}(),I=/@keyframes\s+/,A=/\$([\w-]+)/g,z=function(e,t){return"string"===typeof e?e.replace(A,(function(e,n){return n in t?t[n]:e})):e},D=function(e,t,n){var r=e[t],i=z(r,n);i!==r&&(e[t]=i)},j={onCreateRule:function(e,t,n){return"string"===typeof e&&I.test(e)?new N(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&D(e,"animation-name",n.keyframes),"animation"in e&&D(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return z(e,r.keyframes);default:return e}}},B=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i=this.index)t.push(e);else for(var r=0;rn)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,d.Z)(t,["attached"]),i="",o=0;o0){var n=function(e,t){for(var n=0;nt.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if((n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e))&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"===typeof r){var i=function(e){for(var t=ue(),n=0;nn?n:t},he=function(){function e(e){this.getPropertyValue=oe,this.setProperty=ae,this.removeProperty=se,this.setSelector=ce,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,this.cssRules=[],e&&Q.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=de();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=le(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"===typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else ue().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var r=(0,i.Z)({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}var ke={set:function(e,t,n,r){var i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},Ze=n(159),we=(n(5697),n(7076)),Ee=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var Se=Date.now(),Ce="fnValues"+Se,Re="fnStyle"+ ++Se,Pe=function(){return{onCreateRule:function(e,t,n){if("function"!==typeof t)return null;var r=h(e,{},n);return r[Re]=t,r},onProcessStyle:function(e,t){if(Ce in t||Re in t)return e;var n={};for(var r in e){var i=e[r];"function"===typeof i&&(delete e[r],n[r]=i)}return t[Ce]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[Re];o&&(i.style=o(e)||{});var a=i[Ce];if(a)for(var s in a)i.prop(s,a[s](e),r)}}},Oe="@global",Te="@global ",Me=function(){function e(e,t,n){for(var r in this.type="global",this.at=Oe,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new X((0,i.Z)({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),Ne=function(){function e(e,t,n){this.type="global",this.at=Oe,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=n;var r=e.substr(Te.length);this.rule=n.jss.createRule(r,t,(0,i.Z)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Ie=/\s*,\s*/g;function Ae(e,t){for(var n=e.split(Ie),r="",i=0;i-1){var i=zt[e];if(!Array.isArray(i))return ut+bt(i)in t&<+i;if(!r)return!1;for(var o=0;ot?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,i=void 0===r?"jss":r,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),c=0,u=function(){return c+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Ee.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[we.Z]&&""===a?"".concat(o,"-").concat(u()):o}return"".concat(s).concat(i).concat(u())}}(),jss:Qt,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},tn=o.createContext(en);var nn=-1e9;function rn(){return nn+=1}var on=n(5953);function an(e){var t="function"===typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(c){throw c}if(!r||!n.overrides||!n.overrides[r])return o;var a=n.overrides[r],s=(0,i.Z)({},o);return Object.keys(a).forEach((function(e){s[e]=(0,on.Z)(s[e],a[e])})),s},options:{}}}var sn={};function cn(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,i=!0),i&&(r.cacheClasses.value=xe({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function un(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,a=e.stylesCreator,s=e.name;if(!o.disableGeneration){var c=ke.get(o.sheetsManager,a,r);c||(c={refs:0,staticSheet:null,dynamicStyles:null},ke.set(o.sheetsManager,a,r,c));var u=(0,i.Z)({},a.options,o,{theme:r,flip:"boolean"===typeof o.flip?o.flip:"rtl"===r.direction});u.generateId=u.serverGenerateClassName||u.generateClassName;var l=o.sheetsRegistry;if(0===c.refs){var d;o.sheetsCache&&(d=ke.get(o.sheetsCache,a,r));var f=a.create(r,s);d||((d=o.jss.createStyleSheet(f,(0,i.Z)({link:!1},u))).attach(),o.sheetsCache&&ke.set(o.sheetsCache,a,r,d)),l&&l.add(d),c.staticSheet=d,c.dynamicStyles=ye(f)}if(c.dynamicStyles){var p=o.jss.createStyleSheet(c.dynamicStyles,(0,i.Z)({link:!0},u));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=xe({baseClasses:c.staticSheet.classes,newClasses:p.classes}),l&&l.add(p)}else n.classes=c.staticSheet.classes;c.refs+=1}}function ln(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function dn(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var o=ke.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(ke.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function fn(e,t){var n,r=o.useRef([]),i=o.useMemo((function(){return{}}),t);r.current!==i&&(r.current=i,n=e()),o.useEffect((function(){return function(){n&&n()}}),[i])}function pn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,a=t.classNamePrefix,s=t.Component,c=t.defaultTheme,u=void 0===c?sn:c,l=(0,r.Z)(t,["name","classNamePrefix","Component","defaultTheme"]),d=an(e),f=n||a||"makeStyles";d.options={index:rn(),name:n,meta:f,classNamePrefix:f};var p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,Ze.Z)()||u,r=(0,i.Z)({},o.useContext(tn),l),a=o.useRef(),c=o.useRef();fn((function(){var i={name:n,state:{},stylesCreator:d,stylesOptions:r,theme:t};return un(i,e),c.current=!1,a.current=i,function(){dn(i)}}),[t,d]),o.useEffect((function(){c.current&&ln(a.current,e),c.current=!0}));var f=cn(a.current,e.classes,s);return f};return p}},6010:function(e,t,n){"use strict";function r(e){var t,n,i="";if("string"===typeof e||"number"===typeof e)i+=e;else if("object"===typeof e)if(Array.isArray(e))for(t=0;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n{let r=e;return"string"===typeof t||Array.isArray(t)?r=e.toLocaleString(t,n):!0!==t&&void 0===n||(r=e.toLocaleString(void 0,n)),r};e.exports=(e,a)=>{if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);const s=(a=Object.assign({bits:!1,binary:!1},a)).bits?a.binary?i:r:a.binary?n:t;if(a.signed&&0===e)return` 0 ${s[0]}`;const c=e<0,u=c?"-":a.signed?"+":"";let l;if(c&&(e=-e),void 0!==a.minimumFractionDigits&&(l={minimumFractionDigits:a.minimumFractionDigits}),void 0!==a.maximumFractionDigits&&(l=Object.assign({maximumFractionDigits:a.maximumFractionDigits},l)),e<1){return u+o(e,a.locale,l)+" "+s[0]}const d=Math.min(Math.floor(a.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),s.length-1);e/=Math.pow(a.binary?1024:1e3,d),l||(e=e.toPrecision(3));return u+o(Number(e),a.locale,l)+" "+s[d]}},2666:function(e,t,n){"use strict";n.d(t,{ZP:function(){return v}});var r=n(9756),i=n(3552),o=(n(5697),n(7294)),a=n(3935),s=!1,c=n(220),u="unmounted",l="exited",d="entering",f="entered",p="exiting",h=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=l,r.appearStatus=d):i=f:i=t.unmountOnExit||t.mountOnEnter?u:l,r.state={status:i},r.nextCallback=null,r}(0,i.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===u?{status:l}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==d&&n!==f&&(t=d):n!==d&&n!==f||(t=p)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===d?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===l&&this.setState({status:u})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[a.findDOMNode(this),r],o=i[0],c=i[1],u=this.getTimeouts(),l=r?u.appear:u.enter;!e&&!n||s?this.safeSetState({status:f},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,c),this.safeSetState({status:d},(function(){t.props.onEntering(o,c),t.onTransitionEnd(l,(function(){t.safeSetState({status:f},(function(){t.props.onEntered(o,c)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a.findDOMNode(this);t&&!s?(this.props.onExit(r),this.safeSetState({status:p},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:l},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:l},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],s=i[1];this.props.addEndListener(o,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===u)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o.createElement(c.Z.Provider,{value:null},"function"===typeof n?n(e,i):o.cloneElement(o.Children.only(n),i))},t}(o.Component);function m(){}h.contextType=c.Z,h.propTypes={},h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},h.UNMOUNTED=u,h.EXITED=l,h.ENTERING=d,h.ENTERED=f,h.EXITING=p;var v=h},220:function(e,t,n){"use strict";var r=n(7294);t.Z=r.createContext(null)},5723:function(e,t,n){"use strict";n.d(t,{ZP:function(){return I}});var r=n(7294),i=Object.prototype.hasOwnProperty;var o=new WeakMap,a=0;var s=function(){function e(e){void 0===e&&(e={}),this.cache=new Map(Object.entries(e)),this.subs=[]}return e.prototype.get=function(e){var t=this.serializeKey(e)[0];return this.cache.get(t)},e.prototype.set=function(e,t){var n=this.serializeKey(e)[0];this.cache.set(n,t),this.notify()},e.prototype.keys=function(){return Array.from(this.cache.keys())},e.prototype.has=function(e){var t=this.serializeKey(e)[0];return this.cache.has(t)},e.prototype.clear=function(){this.cache.clear(),this.notify()},e.prototype.delete=function(e){var t=this.serializeKey(e)[0];this.cache.delete(t),this.notify()},e.prototype.serializeKey=function(e){var t=null;if("function"===typeof e)try{e=e()}catch(n){e=""}return Array.isArray(e)?(t=e,e=function(e){if(!e.length)return"";for(var t="arg",n=0;n-1&&(t.subs[r]=t.subs[t.subs.length-1],t.subs.length--)}}},e.prototype.notify=function(){for(var e=0,t=this.subs;en.errorRetryCount)){var o=Math.min(i.retryCount,8),a=~~((Math.random()+.5)*(1<0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0));return Promise.all(l).then((function(){return d.get(r)}))}return Promise.resolve(d.get(r))},M=function(e,t,n,r){var i=S[e];if(e&&i)for(var o=0;o0));return[2,Promise.all(m).then((function(){if(u)throw u;return d.get(i)}))]}if(u)throw u;return[2,c]}}))}))};Object.defineProperty(g.Provider,"default",{value:p});g.Provider;var I=function(){for(var e=this,t=[],n=0;n2?t[2]:2===t.length&&"object"===typeof t[1]?t[1]:{}),a=t.length>2||2===t.length&&"function"===typeof t[1]||null===t[1]?t[1]:o.fetcher,s=d.serializeKey(i),c=s[0],u=s[1],l=s[2],f=s[3],y=(0,r.useRef)(o);v((function(){y.current=o}));var O=function(){return o.revalidateOnMount||!o.initialData&&void 0===o.revalidateOnMount},T=function(){var e=d.get(c);return"undefined"===typeof e?o.initialData:e},I=function(){return!!d.get(f)||c&&O()},A=T(),z=d.get(l),D=I(),j=(0,r.useRef)({data:!1,error:!1,isValidating:!1}),B=(0,r.useRef)({data:A,error:z,isValidating:D});(0,r.useDebugValue)(B.current.data);var L,F,$=(0,r.useState)({})[1],V=(0,r.useCallback)((function(e){var t=!1;for(var n in e)B.current[n]!==e[n]&&(B.current[n]=e[n],j.current[n]&&(t=!0));if(t){if(W.current||!U.current)return;$({})}}),[]),W=(0,r.useRef)(!1),H=(0,r.useRef)(c),U=(0,r.useRef)(!1),q=(0,r.useCallback)((function(e){for(var t,n=[],r=1;r=0&&(n[r]=n[n.length-1],n.pop())}},G=(0,r.useCallback)((function(t){return void 0===t&&(t={}),b(e,void 0,void 0,(function(){var e,n,r,i,s,p,h,m,v,g;return x(this,(function(b){switch(b.label){case 0:if(!c||!a)return[2,!1];if(W.current)return[2,!1];if(y.current.isPaused())return[2,!1];e=t.retryCount,n=void 0===e?0:e,r=t.dedupe,i=void 0!==r&&r,s=!0,p="undefined"!==typeof k[c]&&i,b.label=1;case 1:return b.trys.push([1,6,,7]),V({isValidating:!0}),d.set(f,!0),p||M(c,B.current.data,B.current.error,!0),h=void 0,m=void 0,p?(m=Z[c],[4,k[c]]):[3,3];case 2:return h=b.sent(),[3,5];case 3:return o.loadingTimeout&&!d.get(c)&&setTimeout((function(){s&&q("onLoadingSlow",c,o)}),o.loadingTimeout),k[c]=null!==u?a.apply(void 0,u):a(c),Z[c]=m=P(),[4,k[c]];case 4:h=b.sent(),setTimeout((function(){delete k[c],delete Z[c]}),o.dedupingInterval),q("onSuccess",h,c,o),b.label=5;case 5:return Z[c]>m?[2,!1]:C[c]&&(m<=C[c]||m<=R[c]||0===R[c])?(V({isValidating:!1}),[2,!1]):(d.set(l,void 0),d.set(f,!1),v={isValidating:!1},"undefined"!==typeof B.current.error&&(v.error=void 0),o.compare(B.current.data,h)||(v.data=h),o.compare(d.get(c),h)||d.set(c,h),V(v),p||M(c,h,v.error,!1),[3,7]);case 6:return g=b.sent(),delete k[c],delete Z[c],y.current.isPaused()?(V({isValidating:!1}),[2,!1]):(d.set(l,g),B.current.error!==g&&(V({isValidating:!1,error:g}),p||M(c,void 0,g,!1)),q("onError",g,c,o),o.shouldRetryOnError&&q("onErrorRetry",g,c,o,G,{retryCount:n+1,dedupe:!0}),[3,7]);case 7:return s=!1,[2,!0]}}))}))}),[c]);if(v((function(){if(c){W.current=!1;var e=U.current;U.current=!0;var t=B.current.data,n=T();H.current=c,o.compare(t,n)||V({data:n});var r=function(){return G({dedupe:!0})};(e||O())&&("undefined"===typeof n||h?r():m(r));var i=!1,a=_(w,(function(){!i&&y.current.revalidateOnFocus&&(i=!0,r(),setTimeout((function(){return i=!1}),y.current.focusThrottleInterval))})),s=_(E,(function(){y.current.revalidateOnReconnect&&r()})),u=_(S,(function(e,t,n,i,a){void 0===e&&(e=!0),void 0===a&&(a=!0);var s={},c=!1;return"undefined"===typeof t||o.compare(B.current.data,t)||(s.data=t,c=!0),B.current.error!==n&&(s.error=n,c=!0),"undefined"!==typeof i&&B.current.isValidating!==i&&(s.isValidating=i,c=!0),c&&V(s),!!e&&(a?r():G())}));return function(){V=function(){return null},W.current=!0,a(),s(),u()}}}),[c,G]),v((function(){var t=null,n=function(){return b(e,void 0,void 0,(function(){return x(this,(function(e){switch(e.label){case 0:return B.current.error||!y.current.refreshWhenHidden&&!y.current.isDocumentVisible()||!y.current.refreshWhenOffline&&!y.current.isOnline()?[3,2]:[4,G({dedupe:!0})];case 1:e.sent(),e.label=2;case 2:return y.current.refreshInterval&&t&&(t=setTimeout(n,y.current.refreshInterval)),[2]}}))}))};return y.current.refreshInterval&&(t=setTimeout(n,y.current.refreshInterval)),function(){t&&(clearTimeout(t),t=null)}}),[o.refreshInterval,o.refreshWhenHidden,o.refreshWhenOffline,G]),o.suspense){if(L=d.get(c),F=d.get(l),"undefined"===typeof L&&(L=A),"undefined"===typeof F&&(F=z),"undefined"===typeof L&&"undefined"===typeof F){if(k[c]||G(),k[c]&&"function"===typeof k[c].then)throw k[c];L=k[c]}if("undefined"===typeof L&&F)throw F}var X=(0,r.useMemo)((function(){var e={revalidate:G,mutate:K};return Object.defineProperties(e,{error:{get:function(){return j.current.error=!0,o.suspense?F:H.current===c?B.current.error:z},enumerable:!0},data:{get:function(){return j.current.data=!0,o.suspense?L:H.current===c?B.current.data:A},enumerable:!0},isValidating:{get:function(){return j.current.isValidating=!0,!!c&&B.current.isValidating},enumerable:!0}}),e}),[G,A,z,K,c,o.suspense,F,L]);return X}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/pages/_app-b5d6858d1426469549f6.js b/striker-ui/out/_next/static/chunks/pages/_app-88ba5c92fa3ac1d52da7.js similarity index 90% rename from striker-ui/out/_next/static/chunks/pages/_app-b5d6858d1426469549f6.js rename to striker-ui/out/_next/static/chunks/pages/_app-88ba5c92fa3ac1d52da7.js index e4188bbb..52314a2f 100644 --- a/striker-ui/out/_next/static/chunks/pages/_app-b5d6858d1426469549f6.js +++ b/striker-ui/out/_next/static/chunks/pages/_app-88ba5c92fa3ac1d52da7.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{9713:function(t){t.exports=function(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t},t.exports.default=t.exports,t.exports.__esModule=!0},676:function(t,r,n){"use strict";function e(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(u[n]=t[n])}return u},t.exports.default=t.exports,t.exports.__esModule=!0},7316:function(t){t.exports=function(t,r){if(null==t)return{};var n,e,o={},u=Object.keys(t);for(e=0;e=0||(o[n]=t[n]);return o},t.exports.default=t.exports,t.exports.__esModule=!0},3259:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};r.default=n},515:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={black:"#000",white:"#fff"};r.default=n},7559:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};r.default=n},167:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};r.default=n},8768:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};r.default=n},6594:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};r.default=n},124:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};r.default=n},3165:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};r.default=n},9114:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.hexToRgb=u,r.rgbToHex=function(t){if(0===t.indexOf("#"))return t;var r=a(t).values;return"#".concat(r.map((function(t){return function(t){var r=t.toString(16);return 1===r.length?"0".concat(r):r}(t)})).join(""))},r.hslToRgb=i,r.decomposeColor=a,r.recomposeColor=f,r.getContrastRatio=function(t,r){var n=c(t),e=c(r);return(Math.max(n,e)+.05)/(Math.min(n,e)+.05)},r.getLuminance=c,r.emphasize=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return c(t)>.5?d(t,r):s(t,r)},r.fade=function(t,r){t=a(t),r=o(r),("rgb"===t.type||"hsl"===t.type)&&(t.type+="a");return t.values[3]=r,f(t)},r.darken=d,r.lighten=s;var e=n(5218);function o(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(r,t),n)}function u(t){t=t.substr(1);var r=new RegExp(".{1,".concat(t.length>=6?2:1,"}"),"g"),n=t.match(r);return n&&1===n[0].length&&(n=n.map((function(t){return t+t}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(t,r){return r<3?parseInt(t,16):Math.round(parseInt(t,16)/255*1e3)/1e3})).join(", "),")"):""}function i(t){var r=(t=a(t)).values,n=r[0],e=r[1]/100,o=r[2]/100,u=e*Math.min(o,1-o),i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+n/30)%12;return o-u*Math.max(Math.min(r-3,9-r,1),-1)},c="rgb",d=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===t.type&&(c+="a",d.push(r[3])),f({type:c,values:d})}function a(t){if(t.type)return t;if("#"===t.charAt(0))return a(u(t));var r=t.indexOf("("),n=t.substring(0,r);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,e.formatMuiErrorMessage)(3,t));var o=t.substring(r+1,t.length-1).split(",");return{type:n,values:o=o.map((function(t){return parseFloat(t)}))}}function f(t){var r=t.type,n=t.values;return-1!==r.indexOf("rgb")?n=n.map((function(t,r){return r<3?parseInt(t,10):t})):-1!==r.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(r,"(").concat(n.join(", "),")")}function c(t){var r="hsl"===(t=a(t)).type?a(i(t)).values:t.values;return r=r.map((function(t){return(t/=255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function d(t,r){if(t=a(t),r=o(r),-1!==t.type.indexOf("hsl"))t.values[2]*=1-r;else if(-1!==t.type.indexOf("rgb"))for(var n=0;n<3;n+=1)t.values[n]*=1-r;return f(t)}function s(t,r){if(t=a(t),r=o(r),-1!==t.type.indexOf("hsl"))t.values[2]+=(100-t.values[2])*r;else if(-1!==t.type.indexOf("rgb"))for(var n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*r;return f(t)}},4811:function(t,r,n){"use strict";var e=n(5318);Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t){var r=t.values,n=void 0===r?{xs:0,sm:600,md:960,lg:1280,xl:1920}:r,e=t.unit,a=void 0===e?"px":e,f=t.step,c=void 0===f?5:f,d=(0,u.default)(t,["values","unit","step"]);function s(t){var r="number"===typeof n[t]?n[t]:t;return"@media (min-width:".concat(r).concat(a,")")}function l(t,r){var e=i.indexOf(r);return e===i.length-1?s(t):"@media (min-width:".concat("number"===typeof n[t]?n[t]:t).concat(a,") and ")+"(max-width:".concat((-1!==e&&"number"===typeof n[i[e+1]]?n[i[e+1]]:r)-c/100).concat(a,")")}return(0,o.default)({keys:i,values:n,up:s,down:function(t){var r=i.indexOf(t)+1,e=n[i[r]];return r===i.length?s("xs"):"@media (max-width:".concat(("number"===typeof e&&r>0?e:t)-c/100).concat(a,")")},between:l,only:function(t){return l(t,t)},width:function(t){return n[t]}},d)},r.keys=void 0;var o=e(n(7154)),u=e(n(6479)),i=["xs","sm","md","lg","xl"];r.keys=i},226:function(t,r,n){"use strict";var e=n(5318);Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t,r,n){var e;return(0,u.default)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,u.default)({paddingLeft:r(2),paddingRight:r(2)},n,(0,o.default)({},t.up("sm"),(0,u.default)({paddingLeft:r(3),paddingRight:r(3)},n[t.up("sm")])))},toolbar:(e={minHeight:56},(0,o.default)(e,"".concat(t.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,o.default)(e,t.up("sm"),{minHeight:64}),e)},n)};var o=e(n(9713)),u=e(n(7154))},1615:function(t,r,n){"use strict";var e=n(5318);r.Z=void 0;e(n(9713));var o=e(n(6479)),u=n(5218),i=e(n(4811)),a=e(n(226)),f=e(n(1091)),c=e(n(5184)),d=e(n(743)),s=e(n(9591)),l=e(n(3498)),p=e(n(5406)),g=e(n(8676));var v=function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.breakpoints,n=void 0===r?{}:r,e=t.mixins,v=void 0===e?{}:e,m=t.palette,h=void 0===m?{}:m,y=t.spacing,b=t.typography,Z=void 0===b?{}:b,x=(0,o.default)(t,["breakpoints","mixins","palette","spacing","typography"]),O=(0,f.default)(h),w=(0,i.default)(n),_=(0,l.default)(y),A=(0,u.deepmerge)({breakpoints:w,direction:"ltr",mixins:(0,a.default)(w,_,v),overrides:{},palette:O,props:{},shadows:d.default,typography:(0,c.default)(O,Z),spacing:_,shape:s.default,transitions:p.default,zIndex:g.default},x),j=arguments.length,P=new Array(j>1?j-1:0),M=1;M=R?h.text.primary:m.text.primary}var z=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(t=(0,o.default)({},t)).main&&t[r]&&(t.main=t[r]),!t.main)throw new Error((0,i.formatMuiErrorMessage)(4,r));if("string"!==typeof t.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(t.main)));return y(t,"light",n,C),y(t,"dark",e,C),t.contrastText||(t.contrastText=W(t.main)),t},I={dark:h,light:m};0;return(0,i.deepmerge)((0,o.default)({common:a.default,type:k,primary:z(n),secondary:z(b,"A400","A200","A700"),error:z(x),warning:z(w),info:z(A),success:z(P),grey:f.default,contrastThreshold:R,getContrastText:W,augmentColor:z,tonalOffset:C},I[k]),E)},r.dark=r.light=void 0;var o=e(n(7154)),u=e(n(6479)),i=n(5218),a=e(n(515)),f=e(n(167)),c=e(n(8768)),d=e(n(124)),s=e(n(3165)),l=e(n(6594)),p=e(n(3259)),g=e(n(7559)),v=n(9114),m={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:a.default.white,default:f.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};r.light=m;var h={text:{primary:a.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:f.default[800],default:"#303030"},action:{active:a.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function y(t,r,n,e){var o=e.light||e,u=e.dark||1.5*e;t[r]||(t.hasOwnProperty(n)?t[r]=t[n]:"light"===r?t.light=(0,v.lighten)(t.main,o):"dark"===r&&(t.dark=(0,v.darken)(t.main,u)))}r.dark=h},3498:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var r=(0,e.createUnarySpacing)({spacing:t}),n=function(){for(var t=arguments.length,n=new Array(t),e=0;e0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.duration,e=void 0===n?i.standard:n,f=r.easing,c=void 0===f?u.easeInOut:f,d=r.delay,s=void 0===d?0:d;(0,o.default)(r,["duration","easing","delay"]);return(Array.isArray(t)?t:[t]).map((function(t){return"".concat(t," ").concat("string"===typeof e?e:a(e)," ").concat(c," ").concat("string"===typeof s?s:a(s))})).join(",")},getAutoHeightDuration:function(t){if(!t)return 0;var r=t/36;return Math.round(10*(4+15*Math.pow(r,.25)+r/5))}};r.default=f},8676:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};r.default=n},7076:function(t,r){"use strict";var n="function"===typeof Symbol&&Symbol.for;r.Z=n?Symbol.for("mui.nested"):"__THEME_NESTED__"},3800:function(t,r,n){"use strict";var e=n(7294).createContext(null);r.Z=e},159:function(t,r,n){"use strict";n.d(r,{Z:function(){return u}});var e=n(7294),o=n(3800);function u(){return e.useContext(o.Z)}},9424:function(t,r,n){"use strict";n.d(r,{Cg:function(){return i},j1:function(){return a},vQ:function(){return f},h$:function(){return c},sc:function(){return d},tv:function(){return s},E0:function(){return l}});var e=n(8245),o=n(5680);function u(t){return"number"!==typeof t?t:"".concat(t,"px solid")}var i=(0,e.Z)({prop:"border",themeKey:"borders",transform:u}),a=(0,e.Z)({prop:"borderTop",themeKey:"borders",transform:u}),f=(0,e.Z)({prop:"borderRight",themeKey:"borders",transform:u}),c=(0,e.Z)({prop:"borderBottom",themeKey:"borders",transform:u}),d=(0,e.Z)({prop:"borderLeft",themeKey:"borders",transform:u}),s=(0,e.Z)({prop:"borderColor",themeKey:"palette"}),l=(0,e.Z)({prop:"borderRadius",themeKey:"shape"}),p=(0,o.Z)(i,a,f,c,d,s,l);r.ZP=p},1410:function(t,r,n){"use strict";n.d(r,{k:function(){return c}});var e=n(7329),o=n(2122),u=n(484),i=(n(5697),n(9668)),a={xs:0,sm:600,md:960,lg:1280,xl:1920},f={keys:["xs","sm","md","lg","xl"],up:function(t){return"@media (min-width:".concat(a[t],"px)")}};function c(t,r,n){if(Array.isArray(r)){var e=t.theme.breakpoints||f;return r.reduce((function(t,o,u){return t[e.up(e.keys[u])]=n(r[u]),t}),{})}if("object"===(0,u.Z)(r)){var o=t.theme.breakpoints||f;return Object.keys(r).reduce((function(t,e){return t[o.up(e)]=n(r[e]),t}),{})}return n(r)}r.Z=function(t){var r=function(r){var n=t(r),e=r.theme.breakpoints||f,u=e.keys.reduce((function(n,u){return r[u]&&((n=n||{})[e.up(u)]=t((0,o.Z)({theme:r.theme},r[u]))),n}),null);return(0,i.Z)(n,u)};return r.propTypes={},r.filterProps=["xs","sm","md","lg","xl"].concat((0,e.Z)(t.filterProps)),r}},5680:function(t,r,n){"use strict";var e=n(9668);r.Z=function(){for(var t=arguments.length,r=new Array(t),n=0;n2){if(!f[t])return[t];t=f[t]}var r=t.split(""),n=(0,e.Z)(r,2),o=n[0],u=n[1],c=i[o],d=a[u]||"";return Array.isArray(d)?d.map((function(t){return c+t})):[c+d]})),d=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function s(t){var r=t.spacing||8;return"number"===typeof r?function(t){return r*t}:Array.isArray(r)?function(t){return r[t]}:"function"===typeof r?r:function(){}}function l(t,r){return function(n){return t.reduce((function(t,e){return t[e]=function(t,r){if("string"===typeof r||null==r)return r;var n=t(Math.abs(r));return r>=0?n:"number"===typeof n?-n:"-".concat(n)}(r,n),t}),{})}}function p(t){var r=s(t.theme);return Object.keys(t).map((function(n){if(-1===d.indexOf(n))return null;var e=l(c(n),r),u=t[n];return(0,o.k)(t,u,e)})).reduce(u.Z,{})}p.propTypes={},p.filterProps=d;var g=p},8245:function(t,r,n){"use strict";var e=n(6156),o=n(1410);function u(t,r){return r&&"string"===typeof r?r.split(".").reduce((function(t,r){return t&&t[r]?t[r]:null}),t):null}r.Z=function(t){var r=t.prop,n=t.cssProperty,i=void 0===n?t.prop:n,a=t.themeKey,f=t.transform,c=function(t){if(null==t[r])return null;var n=t[r],c=u(t.theme,a)||{};return(0,o.k)(t,n,(function(t){var r;return"function"===typeof c?r=c(t):Array.isArray(c)?r=c[t]||t:(r=u(c,t)||t,f&&(r=f(r))),!1===i?r:(0,e.Z)({},i,r)}))};return c.propTypes={},c.filterProps=[r],c}},9560:function(t,r,n){"use strict";n.d(r,{I8:function(){return u},JB:function(){return i},p_:function(){return a},Ue:function(){return f},rX:function(){return c},Nv:function(){return d},yd:function(){return s}});var e=n(8245),o=n(5680),u=(0,e.Z)({prop:"fontFamily",themeKey:"typography"}),i=(0,e.Z)({prop:"fontSize",themeKey:"typography"}),a=(0,e.Z)({prop:"fontStyle",themeKey:"typography"}),f=(0,e.Z)({prop:"fontWeight",themeKey:"typography"}),c=(0,e.Z)({prop:"letterSpacing"}),d=(0,e.Z)({prop:"lineHeight"}),s=(0,e.Z)({prop:"textAlign"}),l=(0,o.Z)(u,i,a,f,c,d,s);r.ZP=l},5953:function(t,r,n){"use strict";n.d(r,{Z:function(){return i}});var e=n(2122),o=n(484);function u(t){return t&&"object"===(0,o.Z)(t)&&t.constructor===Object}function i(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?(0,e.Z)({},t):t;return u(t)&&u(r)&&Object.keys(r).forEach((function(e){"__proto__"!==e&&(u(r[e])&&e in t?o[e]=i(t[e],r[e],n):o[e]=r[e])})),o}},288:function(t,r,n){"use strict";function e(t){for(var r="https://material-ui.com/production-error/?code="+t,n=1;n1&&void 0!==arguments[1]?arguments[1]:"";return t.displayName||t.name||v(t)||r}function h(t,r,n){var e=m(r);return t.displayName||(""!==e?"".concat(n,"(").concat(e,")"):n)}function y(t){if(null!=t){if("string"===typeof t)return t;if("function"===typeof t)return m(t,"Component");if("object"===(0,l.Z)(t))switch(t.$$typeof){case p.ForwardRef:return h(t,t.render,"ForwardRef");case p.Memo:return h(t,t.type,"memo");default:return}}}function b(t,r,n,e,o){return null}var Z="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),x=i().oneOfType([i().func,i().object])},8788:function(t,r,n){"use strict";n.d(r,{hM:function(){return e},lD:function(){return o},v9:function(){return u},Wd:function(){return i},Ej:function(){return a},s7:function(){return f},$T:function(){return c},UZ:function(){return d},d:function(){return s},Gf:function(){return l},rr:function(){return p},n_:function(){return g}});var e="#D02724",o="#F2F2F2",u="#343434",i="#7353BA",a="#4785FF",f="#E5E5E5",c="#444",d="#666",s="#888",l="#00ff00",p="#AAA",g="3px"},3788:function(t,r,n){"use strict";n.r(r),n.d(r,{default:function(){return m}});var e=n(6265),o=n(5893),u=n(7294),i=n(2122),a=(n(5697),n(3800)),f=n(159),c=n(7076);var d=function(t){var r=t.children,n=t.theme,e=(0,f.Z)(),o=u.useMemo((function(){var t=null===e?n:function(t,r){return"function"===typeof r?r(t):(0,i.Z)({},t,r)}(e,n);return null!=t&&(t[c.Z]=null!==e),t}),[n,e]);return u.createElement(a.Z.Provider,{value:o},r)},s=n(1615),l=n(8788),p=(n(1064),(0,s.Z)({palette:{primary:{main:l.v9},secondary:{main:l.lD},background:{paper:l.v9}},typography:{fontFamily:"Roboto Condensed",fontWeightRegular:200,fontSize:14},overrides:{MuiSwitch:{switchBase:{color:l.lD},root:{padding:8},track:{borderRadius:l.n_,border:3,backgroundColor:l.Wd,opacity:1,"$checked$checked + &":{backgroundColor:l.Ej,opacity:1},"$disabled$disabled + &":{backgroundColor:l.rr}},thumb:{color:l.lD,borderRadius:l.n_}}}}));n(2702);function g(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),n.push.apply(n,e)}return n}function v(t){for(var r=1;rt.length)&&(r=t.length);for(var n=0,e=new Array(r);n=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(u[n]=t[n])}return u},t.exports.default=t.exports,t.exports.__esModule=!0},7316:function(t){t.exports=function(t,r){if(null==t)return{};var n,e,o={},u=Object.keys(t);for(e=0;e=0||(o[n]=t[n]);return o},t.exports.default=t.exports,t.exports.__esModule=!0},3259:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};r.default=n},515:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={black:"#000",white:"#fff"};r.default=n},7559:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};r.default=n},167:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};r.default=n},8768:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};r.default=n},6594:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};r.default=n},124:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};r.default=n},3165:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};r.default=n},9114:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.hexToRgb=u,r.rgbToHex=function(t){if(0===t.indexOf("#"))return t;var r=a(t).values;return"#".concat(r.map((function(t){return function(t){var r=t.toString(16);return 1===r.length?"0".concat(r):r}(t)})).join(""))},r.hslToRgb=i,r.decomposeColor=a,r.recomposeColor=f,r.getContrastRatio=function(t,r){var n=c(t),e=c(r);return(Math.max(n,e)+.05)/(Math.min(n,e)+.05)},r.getLuminance=c,r.emphasize=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return c(t)>.5?d(t,r):s(t,r)},r.fade=function(t,r){t=a(t),r=o(r),("rgb"===t.type||"hsl"===t.type)&&(t.type+="a");return t.values[3]=r,f(t)},r.darken=d,r.lighten=s;var e=n(5218);function o(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(r,t),n)}function u(t){t=t.substr(1);var r=new RegExp(".{1,".concat(t.length>=6?2:1,"}"),"g"),n=t.match(r);return n&&1===n[0].length&&(n=n.map((function(t){return t+t}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(t,r){return r<3?parseInt(t,16):Math.round(parseInt(t,16)/255*1e3)/1e3})).join(", "),")"):""}function i(t){var r=(t=a(t)).values,n=r[0],e=r[1]/100,o=r[2]/100,u=e*Math.min(o,1-o),i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+n/30)%12;return o-u*Math.max(Math.min(r-3,9-r,1),-1)},c="rgb",d=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===t.type&&(c+="a",d.push(r[3])),f({type:c,values:d})}function a(t){if(t.type)return t;if("#"===t.charAt(0))return a(u(t));var r=t.indexOf("("),n=t.substring(0,r);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,e.formatMuiErrorMessage)(3,t));var o=t.substring(r+1,t.length-1).split(",");return{type:n,values:o=o.map((function(t){return parseFloat(t)}))}}function f(t){var r=t.type,n=t.values;return-1!==r.indexOf("rgb")?n=n.map((function(t,r){return r<3?parseInt(t,10):t})):-1!==r.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(r,"(").concat(n.join(", "),")")}function c(t){var r="hsl"===(t=a(t)).type?a(i(t)).values:t.values;return r=r.map((function(t){return(t/=255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function d(t,r){if(t=a(t),r=o(r),-1!==t.type.indexOf("hsl"))t.values[2]*=1-r;else if(-1!==t.type.indexOf("rgb"))for(var n=0;n<3;n+=1)t.values[n]*=1-r;return f(t)}function s(t,r){if(t=a(t),r=o(r),-1!==t.type.indexOf("hsl"))t.values[2]+=(100-t.values[2])*r;else if(-1!==t.type.indexOf("rgb"))for(var n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*r;return f(t)}},4811:function(t,r,n){"use strict";var e=n(5318);Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t){var r=t.values,n=void 0===r?{xs:0,sm:600,md:960,lg:1280,xl:1920}:r,e=t.unit,a=void 0===e?"px":e,f=t.step,c=void 0===f?5:f,d=(0,u.default)(t,["values","unit","step"]);function s(t){var r="number"===typeof n[t]?n[t]:t;return"@media (min-width:".concat(r).concat(a,")")}function l(t,r){var e=i.indexOf(r);return e===i.length-1?s(t):"@media (min-width:".concat("number"===typeof n[t]?n[t]:t).concat(a,") and ")+"(max-width:".concat((-1!==e&&"number"===typeof n[i[e+1]]?n[i[e+1]]:r)-c/100).concat(a,")")}return(0,o.default)({keys:i,values:n,up:s,down:function(t){var r=i.indexOf(t)+1,e=n[i[r]];return r===i.length?s("xs"):"@media (max-width:".concat(("number"===typeof e&&r>0?e:t)-c/100).concat(a,")")},between:l,only:function(t){return l(t,t)},width:function(t){return n[t]}},d)},r.keys=void 0;var o=e(n(7154)),u=e(n(6479)),i=["xs","sm","md","lg","xl"];r.keys=i},226:function(t,r,n){"use strict";var e=n(5318);Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t,r,n){var e;return(0,u.default)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,u.default)({paddingLeft:r(2),paddingRight:r(2)},n,(0,o.default)({},t.up("sm"),(0,u.default)({paddingLeft:r(3),paddingRight:r(3)},n[t.up("sm")])))},toolbar:(e={minHeight:56},(0,o.default)(e,"".concat(t.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,o.default)(e,t.up("sm"),{minHeight:64}),e)},n)};var o=e(n(9713)),u=e(n(7154))},1615:function(t,r,n){"use strict";var e=n(5318);r.Z=void 0;e(n(9713));var o=e(n(6479)),u=n(5218),i=e(n(4811)),a=e(n(226)),f=e(n(1091)),c=e(n(5184)),d=e(n(743)),s=e(n(9591)),l=e(n(3498)),p=e(n(5406)),g=e(n(8676));var v=function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.breakpoints,n=void 0===r?{}:r,e=t.mixins,v=void 0===e?{}:e,m=t.palette,h=void 0===m?{}:m,y=t.spacing,b=t.typography,Z=void 0===b?{}:b,x=(0,o.default)(t,["breakpoints","mixins","palette","spacing","typography"]),O=(0,f.default)(h),w=(0,i.default)(n),_=(0,l.default)(y),A=(0,u.deepmerge)({breakpoints:w,direction:"ltr",mixins:(0,a.default)(w,_,v),overrides:{},palette:O,props:{},shadows:d.default,typography:(0,c.default)(O,Z),spacing:_,shape:s.default,transitions:p.default,zIndex:g.default},x),j=arguments.length,P=new Array(j>1?j-1:0),M=1;M=R?h.text.primary:m.text.primary}var z=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(t=(0,o.default)({},t)).main&&t[r]&&(t.main=t[r]),!t.main)throw new Error((0,i.formatMuiErrorMessage)(4,r));if("string"!==typeof t.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(t.main)));return y(t,"light",n,C),y(t,"dark",e,C),t.contrastText||(t.contrastText=W(t.main)),t},I={dark:h,light:m};0;return(0,i.deepmerge)((0,o.default)({common:a.default,type:k,primary:z(n),secondary:z(b,"A400","A200","A700"),error:z(x),warning:z(w),info:z(A),success:z(P),grey:f.default,contrastThreshold:R,getContrastText:W,augmentColor:z,tonalOffset:C},I[k]),E)},r.dark=r.light=void 0;var o=e(n(7154)),u=e(n(6479)),i=n(5218),a=e(n(515)),f=e(n(167)),c=e(n(8768)),d=e(n(124)),s=e(n(3165)),l=e(n(6594)),p=e(n(3259)),g=e(n(7559)),v=n(9114),m={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:a.default.white,default:f.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};r.light=m;var h={text:{primary:a.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:f.default[800],default:"#303030"},action:{active:a.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function y(t,r,n,e){var o=e.light||e,u=e.dark||1.5*e;t[r]||(t.hasOwnProperty(n)?t[r]=t[n]:"light"===r?t.light=(0,v.lighten)(t.main,o):"dark"===r&&(t.dark=(0,v.darken)(t.main,u)))}r.dark=h},3498:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var r=(0,e.createUnarySpacing)({spacing:t}),n=function(){for(var t=arguments.length,n=new Array(t),e=0;e0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.duration,e=void 0===n?i.standard:n,f=r.easing,c=void 0===f?u.easeInOut:f,d=r.delay,s=void 0===d?0:d;(0,o.default)(r,["duration","easing","delay"]);return(Array.isArray(t)?t:[t]).map((function(t){return"".concat(t," ").concat("string"===typeof e?e:a(e)," ").concat(c," ").concat("string"===typeof s?s:a(s))})).join(",")},getAutoHeightDuration:function(t){if(!t)return 0;var r=t/36;return Math.round(10*(4+15*Math.pow(r,.25)+r/5))}};r.default=f},8676:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};r.default=n},7076:function(t,r){"use strict";var n="function"===typeof Symbol&&Symbol.for;r.Z=n?Symbol.for("mui.nested"):"__THEME_NESTED__"},3800:function(t,r,n){"use strict";var e=n(7294).createContext(null);r.Z=e},159:function(t,r,n){"use strict";n.d(r,{Z:function(){return u}});var e=n(7294),o=n(3800);function u(){return e.useContext(o.Z)}},9424:function(t,r,n){"use strict";n.d(r,{Cg:function(){return i},j1:function(){return a},vQ:function(){return f},h$:function(){return c},sc:function(){return d},tv:function(){return s},E0:function(){return l}});var e=n(8245),o=n(5680);function u(t){return"number"!==typeof t?t:"".concat(t,"px solid")}var i=(0,e.Z)({prop:"border",themeKey:"borders",transform:u}),a=(0,e.Z)({prop:"borderTop",themeKey:"borders",transform:u}),f=(0,e.Z)({prop:"borderRight",themeKey:"borders",transform:u}),c=(0,e.Z)({prop:"borderBottom",themeKey:"borders",transform:u}),d=(0,e.Z)({prop:"borderLeft",themeKey:"borders",transform:u}),s=(0,e.Z)({prop:"borderColor",themeKey:"palette"}),l=(0,e.Z)({prop:"borderRadius",themeKey:"shape"}),p=(0,o.Z)(i,a,f,c,d,s,l);r.ZP=p},1410:function(t,r,n){"use strict";n.d(r,{k:function(){return c}});var e=n(7329),o=n(2122),u=n(484),i=(n(5697),n(9668)),a={xs:0,sm:600,md:960,lg:1280,xl:1920},f={keys:["xs","sm","md","lg","xl"],up:function(t){return"@media (min-width:".concat(a[t],"px)")}};function c(t,r,n){if(Array.isArray(r)){var e=t.theme.breakpoints||f;return r.reduce((function(t,o,u){return t[e.up(e.keys[u])]=n(r[u]),t}),{})}if("object"===(0,u.Z)(r)){var o=t.theme.breakpoints||f;return Object.keys(r).reduce((function(t,e){return t[o.up(e)]=n(r[e]),t}),{})}return n(r)}r.Z=function(t){var r=function(r){var n=t(r),e=r.theme.breakpoints||f,u=e.keys.reduce((function(n,u){return r[u]&&((n=n||{})[e.up(u)]=t((0,o.Z)({theme:r.theme},r[u]))),n}),null);return(0,i.Z)(n,u)};return r.propTypes={},r.filterProps=["xs","sm","md","lg","xl"].concat((0,e.Z)(t.filterProps)),r}},5680:function(t,r,n){"use strict";var e=n(9668);r.Z=function(){for(var t=arguments.length,r=new Array(t),n=0;n2){if(!f[t])return[t];t=f[t]}var r=t.split(""),n=(0,e.Z)(r,2),o=n[0],u=n[1],c=i[o],d=a[u]||"";return Array.isArray(d)?d.map((function(t){return c+t})):[c+d]})),d=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function s(t){var r=t.spacing||8;return"number"===typeof r?function(t){return r*t}:Array.isArray(r)?function(t){return r[t]}:"function"===typeof r?r:function(){}}function l(t,r){return function(n){return t.reduce((function(t,e){return t[e]=function(t,r){if("string"===typeof r||null==r)return r;var n=t(Math.abs(r));return r>=0?n:"number"===typeof n?-n:"-".concat(n)}(r,n),t}),{})}}function p(t){var r=s(t.theme);return Object.keys(t).map((function(n){if(-1===d.indexOf(n))return null;var e=l(c(n),r),u=t[n];return(0,o.k)(t,u,e)})).reduce(u.Z,{})}p.propTypes={},p.filterProps=d;var g=p},8245:function(t,r,n){"use strict";var e=n(6156),o=n(1410);function u(t,r){return r&&"string"===typeof r?r.split(".").reduce((function(t,r){return t&&t[r]?t[r]:null}),t):null}r.Z=function(t){var r=t.prop,n=t.cssProperty,i=void 0===n?t.prop:n,a=t.themeKey,f=t.transform,c=function(t){if(null==t[r])return null;var n=t[r],c=u(t.theme,a)||{};return(0,o.k)(t,n,(function(t){var r;return"function"===typeof c?r=c(t):Array.isArray(c)?r=c[t]||t:(r=u(c,t)||t,f&&(r=f(r))),!1===i?r:(0,e.Z)({},i,r)}))};return c.propTypes={},c.filterProps=[r],c}},9560:function(t,r,n){"use strict";n.d(r,{I8:function(){return u},JB:function(){return i},p_:function(){return a},Ue:function(){return f},rX:function(){return c},Nv:function(){return d},yd:function(){return s}});var e=n(8245),o=n(5680),u=(0,e.Z)({prop:"fontFamily",themeKey:"typography"}),i=(0,e.Z)({prop:"fontSize",themeKey:"typography"}),a=(0,e.Z)({prop:"fontStyle",themeKey:"typography"}),f=(0,e.Z)({prop:"fontWeight",themeKey:"typography"}),c=(0,e.Z)({prop:"letterSpacing"}),d=(0,e.Z)({prop:"lineHeight"}),s=(0,e.Z)({prop:"textAlign"}),l=(0,o.Z)(u,i,a,f,c,d,s);r.ZP=l},5953:function(t,r,n){"use strict";n.d(r,{Z:function(){return i}});var e=n(2122),o=n(484);function u(t){return t&&"object"===(0,o.Z)(t)&&t.constructor===Object}function i(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?(0,e.Z)({},t):t;return u(t)&&u(r)&&Object.keys(r).forEach((function(e){"__proto__"!==e&&(u(r[e])&&e in t?o[e]=i(t[e],r[e],n):o[e]=r[e])})),o}},288:function(t,r,n){"use strict";function e(t){for(var r="https://material-ui.com/production-error/?code="+t,n=1;n1&&void 0!==arguments[1]?arguments[1]:"";return t.displayName||t.name||v(t)||r}function h(t,r,n){var e=m(r);return t.displayName||(""!==e?"".concat(n,"(").concat(e,")"):n)}function y(t){if(null!=t){if("string"===typeof t)return t;if("function"===typeof t)return m(t,"Component");if("object"===(0,l.Z)(t))switch(t.$$typeof){case p.ForwardRef:return h(t,t.render,"ForwardRef");case p.Memo:return h(t,t.type,"memo");default:return}}}function b(t,r,n,e,o){return null}var Z="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),x=i().oneOfType([i().func,i().object])},8788:function(t,r,n){"use strict";n.d(r,{hM:function(){return e},lD:function(){return o},v9:function(){return u},Wd:function(){return i},Ej:function(){return a},s7:function(){return f},$T:function(){return c},UZ:function(){return d},d:function(){return s},Gf:function(){return l},rr:function(){return p},E5:function(){return g},n_:function(){return v}});var e="#D02724",o="#F2F2F2",u="#343434",i="#7353BA",a="#4785FF",f="#E5E5E5",c="#444",d="#666",s="#888",l="#00ff00",p="#AAA",g="#343434",v="3px"},3788:function(t,r,n){"use strict";n.r(r),n.d(r,{default:function(){return m}});var e=n(6265),o=n(5893),u=n(7294),i=n(2122),a=(n(5697),n(3800)),f=n(159),c=n(7076);var d=function(t){var r=t.children,n=t.theme,e=(0,f.Z)(),o=u.useMemo((function(){var t=null===e?n:function(t,r){return"function"===typeof r?r(t):(0,i.Z)({},t,r)}(e,n);return null!=t&&(t[c.Z]=null!==e),t}),[n,e]);return u.createElement(a.Z.Provider,{value:o},r)},s=n(1615),l=n(8788),p=(n(1064),(0,s.Z)({palette:{primary:{main:l.v9},secondary:{main:l.lD},background:{paper:l.v9}},typography:{fontFamily:"Roboto Condensed",fontWeightRegular:200,fontSize:14},overrides:{MuiSwitch:{switchBase:{color:l.lD},root:{padding:8},track:{borderRadius:l.n_,border:3,backgroundColor:l.Wd,opacity:1,"$checked$checked + &":{backgroundColor:l.Ej,opacity:1},"$disabled$disabled + &":{backgroundColor:l.rr}},thumb:{color:l.lD,borderRadius:l.n_}}}}));n(2702);function g(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),n.push.apply(n,e)}return n}function v(t){for(var r=1;r1&&void 0!==arguments[1]?arguments[1]:5e3,t=(0,p.ZP)(e,g,{refreshInterval:n}),r=t.data,i=t.error;return{data:r,isLoading:!i&&!r,isError:i}},m=t(7294),j=t(2929),v=t(2318),b=t(4670),_=(0,b.Z)({root:{color:a.lD}})(v.Z),Z=function(e){var n=e.text;return(0,r.jsx)(_,{variant:"h4",children:n})},w=(0,s.Z)((function(){return{selected:{color:a.lD},unselected:{color:a.UZ}}})),y=function(e){var n=e.text,t=e.selected,i=w();return(0,r.jsx)(v.Z,{variant:"subtitle1",className:t?i.selected:i.unselected,children:n})};y.defaultProps={selected:!0};var k=y,N=new Map([["optimal","Optimal"],["not_ready","Not Ready"],["degraded","Degraded"]]),O={uuid:"",setAnvilUuid:function(){return null}},C=(0,m.createContext)(O),P=function(e){var n=e.children,t=(0,m.useState)(""),i=t[0],o=t[1];return(0,r.jsx)(C.Provider,{value:{uuid:i,setAnvilUuid:function(e){o(e)}},children:n})},T=(0,s.Z)((function(){return{decorator:{width:"1.4em",height:"100%",borderRadius:a.n_},ok:{backgroundColor:a.Ej},warning:{backgroundColor:a.Wd},error:{backgroundColor:a.hM},off:{backgroundColor:a.s7}}})),D=function(e){var n=e.colour,t=T();return(0,r.jsx)("div",{className:"".concat(t.decorator," ").concat(t[n])})},E=function(e,n){fetch("".concat("/cgi-bin").concat(e),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})},S=(0,s.Z)((function(){return{root:{width:"100%","&:hover $child":{backgroundColor:a.Gf}},anvilName:{paddingLeft:0}}})),L=function(e){switch(e){case"optimal":return"ok";case"not_ready":return"warning";case"degraded":default:return"error"}},R=function(e){return!(-1===e.hosts.findIndex((function(e){return"offline"!==e.state})))},B=function(e){var n=e.list,t=(0,m.useContext)(C).uuid,i=S(),s=n.findIndex((function(e){return e.anvil_uuid===t}));return(0,r.jsx)(o.Z,{display:"flex",flexDirection:"row",width:"100%",children:""!==t&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{p:1,children:(0,r.jsx)(D,{colour:L(n[s].anvil_state)})}),(0,r.jsxs)(o.Z,{p:1,flexGrow:1,className:i.anvilName,children:[(0,r.jsx)(Z,{text:n[s].anvil_name}),(0,r.jsx)(Z,{text:N.get(n[s].anvil_state)||"State unavailable"})]}),(0,r.jsx)(o.Z,{p:1,children:(0,r.jsx)(j.Z,{checked:R(n[s]),onChange:function(){return E("/set_power",{anvil_uuid:n[s].anvil_uuid,is_on:!R(n[s])})}})})]})})},F=t(2822),G=t(5517),A=t(8867),I=function(e){var n=e.anvil;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(k,{text:n.anvil_name}),(0,r.jsx)(k,{text:N.get(n.anvil_state)||"State unavailable"})]})},M=function(e){var n=[],t=[],r=[];return e.forEach((function(e){"optimal"===e.anvil_state?n.push(e):"not_ready"===e.anvil_state?t.push(e):r.push(e)})),[].concat(r,t,n)},U=(0,s.Z)((function(e){return{root:(0,i.Z)({width:"100%",overflow:"auto",height:"30vh"},e.breakpoints.down("md"),{height:"100%",overflow:"hidden"}),divider:{background:a.d},button:{"&:hover":{backgroundColor:a.$T},paddingLeft:0},anvil:{paddingLeft:0}}})),W=function(e){switch(e){case"optimal":return"ok";case"not_ready":return"warning";case"degraded":return"error";default:return"off"}},q=function(e){var n=e.list,t=(0,m.useContext)(C),i=t.uuid,s=t.setAnvilUuid,a=U();return(0,m.useEffect)((function(){""===i&&s(M(n)[0].anvil_uuid)}),[i,n,s]),(0,r.jsx)(F.Z,{component:"nav",className:a.root,"aria-label":"mailbox folders",children:M(n).map((function(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(G.Z,{className:a.divider}),(0,r.jsx)(A.Z,{button:!0,className:a.button,onClick:function(){return s(e.anvil_uuid)},children:(0,r.jsxs)(o.Z,{display:"flex",flexDirection:"row",width:"100%",children:[(0,r.jsx)(o.Z,{p:1,children:(0,r.jsx)(D,{colour:W(e.anvil_state)})}),(0,r.jsx)(o.Z,{p:1,flexGrow:1,className:a.anvil,children:(0,r.jsx)(I,{anvil:e})})]})},e.anvil_uuid)]})}))})};function z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function H(e){for(var n=1;n70?n>90?t.barAlert:t.barWarning:t.barOk},variant:"determinate",value:n}),(0,r.jsx)(X.Z,{variant:"determinate",value:0})]})},V=(0,b.Z)({root:{height:"1em",borderRadius:a.n_},colorPrimary:{backgroundColor:a.v9},bar:{borderRadius:a.n_}})(X.Z),Y=(0,s.Z)((function(){return{barOk:{backgroundColor:a.Ej},barInProgress:{backgroundColor:a.Wd}}})),ee=function(e){var n=e.progressPercentage,t=Y();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(V,{classes:{bar:n<100?t.barInProgress:t.barOk},variant:"determinate",value:n}),(0,r.jsx)(X.Z,{variant:"determinate",value:0})]})},ne=new Map([["message_0222","The node is in an unknown state."],["message_0223","The node is a full cluster member."],["message_0224","The node is coming online; the cluster resource manager is running (step 2/3)."],["message_0225","The node is coming online; the node is a consensus cluster member (step 1/3)."],["message_0226","The node has booted, but it is not (yet) joining the cluster."]]),te=(0,s.Z)((function(e){return{root:(0,i.Z)({overflow:"auto",height:"28vh",paddingLeft:".3em"},e.breakpoints.down("md"),{height:"100%",overflow:"hidden"}),state:{paddingLeft:".7em",paddingRight:".7em",paddingTop:"1em"},bar:{paddingLeft:".7em",paddingRight:".7em"},header:{paddingTop:".3em",paddingRight:".7em"},label:{paddingTop:".3em"},decoratorBox:{paddingRight:".3em"}}})),re=function(e,n){var t=e.exec(n);return t?ne.get(t[0])||"Error code not recognized":"Error code not found"},ie=function(e){switch(e){case"online":return"ok";case"offline":return"off";default:return"warning"}},oe=function(e){var n=e.hosts,t=te(),i=/^[a-zA-Z]/,s=/^(message_[0-9]+)/;return(0,r.jsx)(o.Z,{className:t.root,children:n&&n.map((function(e){var n;return(0,r.jsxs)(u,{children:[(0,r.jsx)(c,{children:(0,r.jsxs)(o.Z,{display:"flex",width:"100%",className:t.header,children:[(0,r.jsx)(o.Z,{flexGrow:1,children:(0,r.jsx)(k,{text:e.host_name})}),(0,r.jsx)(o.Z,{className:t.decoratorBox,children:(0,r.jsx)(D,{colour:ie(e.state)})}),(0,r.jsx)(o.Z,{children:(0,r.jsx)(k,{text:(null===e||void 0===e||null===(n=e.state)||void 0===n?void 0:n.replace(i,(function(e){return e.toUpperCase()})))||"Not Available"})})]})}),(0,r.jsxs)(o.Z,{display:"flex",className:t.state,children:[(0,r.jsx)(o.Z,{className:t.label,children:(0,r.jsx)(k,{text:"Power: "})}),(0,r.jsx)(o.Z,{flexGrow:1,children:(0,r.jsx)(j.Z,{checked:"online"===e.state,onChange:function(){return E("/set_power",{host_uuid:e.host_uuid,is_on:!("online"===e.state)})}})}),(0,r.jsx)(o.Z,{className:t.label,children:(0,r.jsx)(k,{text:"Member: "})}),(0,r.jsx)(o.Z,{children:(0,r.jsx)(j.Z,{checked:"online"===e.state,disabled:!("online"===e.state),onChange:function(){return E("/set_membership",{host_uuid:e.host_uuid,is_member:!("online"===e.state)})}})})]}),"online"!==e.state&&"offline"!==e.state&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{display:"flex",width:"100%",className:t.state,children:(0,r.jsx)(o.Z,{children:(0,r.jsx)(k,{text:re(s,e.state_message)})})}),(0,r.jsx)(o.Z,{display:"flex",width:"100%",className:t.bar,children:(0,r.jsx)(o.Z,{flexGrow:1,children:(0,r.jsx)(ee,{progressPercentage:e.state_percent})})})]})]},e.host_uuid)}))})},se=t(5477),ae=(0,s.Z)((function(){return{root:{display:"flex",alignItems:"center",justifyContent:"center",marginTop:"3em"},spinner:{color:a.lD,variant:"indeterminate",size:"50em"}}})),de=function(){var e=ae();return(0,r.jsx)("div",{className:e.root,children:(0,r.jsx)(se.Z,{className:e.spinner})})},ce=function(e){return null===e||void 0===e?void 0:e.filter((function(e){return e.host_uuid}))},le=function(e){var n=e.anvil,t=(0,m.useContext)(C).uuid,i=f("".concat("/cgi-bin","/get_status?anvil_uuid=").concat(t)),o=i.data,s=i.isLoading,a=n.findIndex((function(e){return e.anvil_uuid===t}));return(0,r.jsxs)(x,{children:[(0,r.jsx)(Z,{text:"Nodes"}),s?(0,r.jsx)(de,{}):(0,r.jsx)(r.Fragment,{children:-1!==a&&o&&(0,r.jsx)(oe,{hosts:ce(n[a].hosts).map((function(e,n){return o.hosts[n]}))})})]})},ue=function(){var e=(0,m.useContext)(C).uuid,n=f("".concat("/cgi-bin","/get_cpu?anvil_uuid=").concat(e)),t=n.data,i=n.isLoading,s=i||!t?{allocated:0,cores:0,threads:0}:t;return(0,r.jsxs)(x,{children:[(0,r.jsx)(Z,{text:"CPU"}),i?(0,r.jsx)(de,{}):(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(o.Z,{display:"flex",width:"100%",children:(0,r.jsxs)(o.Z,{flexGrow:1,style:{marginLeft:"1em",marginTop:"1em"},children:[(0,r.jsx)(k,{text:"Total Cores: ".concat(s.cores)}),(0,r.jsx)(k,{text:"Total Threads: ".concat(s.threads)}),(0,r.jsx)(k,{text:"Allocated Cores: ".concat(s.allocated)})]})})})]})},he=t(8600),xe=t.n(he),pe=(0,s.Z)((function(){return{fs:{paddingLeft:".7em",paddingRight:".7em",paddingTop:"1.2em"},bar:{paddingLeft:".7em",paddingRight:".7em"},decoratorBox:{paddingRight:".3em"}}})),ge=function(e){var n=e.group,t=pe();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(o.Z,{display:"flex",width:"100%",className:t.fs,children:[(0,r.jsx)(o.Z,{flexGrow:1,children:(0,r.jsx)(k,{text:"Used: ".concat(xe()(n.storage_group_total-n.storage_group_free,{binary:!0}))})}),(0,r.jsx)(o.Z,{children:(0,r.jsx)(k,{text:"Free: ".concat(xe()(n.storage_group_free,{binary:!0}))})})]}),(0,r.jsx)(o.Z,{display:"flex",width:"100%",className:t.bar,children:(0,r.jsx)(o.Z,{flexGrow:1,children:(0,r.jsx)(Q,{allocated:(n.storage_group_total-n.storage_group_free)/n.storage_group_total*100})})}),(0,r.jsx)(o.Z,{display:"flex",justifyContent:"center",width:"100%",children:(0,r.jsx)(k,{text:"Total Storage: ".concat(xe()(n.storage_group_total,{binary:!0}))})})]})},fe=(0,s.Z)((function(e){return{header:{paddingTop:".1em",paddingRight:".7em"},root:(0,i.Z)({overflow:"auto",height:"78vh",paddingLeft:".3em"},e.breakpoints.down("md"),{height:"100%"})}})),me=function(){var e=fe(),n=(0,m.useContext)(C).uuid,t=f("".concat("/cgi-bin","/get_shared_storage?anvil_uuid=").concat(n)),i=t.data,s=t.isLoading;return(0,r.jsxs)(x,{children:[(0,r.jsx)(Z,{text:"Shared Storage"}),s?(0,r.jsx)(de,{}):(0,r.jsx)(o.Z,{className:e.root,children:(null===i||void 0===i?void 0:i.storage_groups)&&i.storage_groups.map((function(n){return(0,r.jsxs)(u,{children:[(0,r.jsx)(c,{children:(0,r.jsx)(o.Z,{display:"flex",width:"100%",className:e.header,children:(0,r.jsx)(o.Z,{children:(0,r.jsx)(k,{text:n.storage_group_name})})})}),(0,r.jsx)(ge,{group:n},n.storage_group_uuid)]},n.storage_group_uuid)}))})]})},je=function(){var e=(0,m.useContext)(C).uuid,n=f("".concat("/cgi-bin","/get_memory?anvil_uuid=").concat(e)),t=n.data,i=n.isLoading,s=i||!t?{total:0,allocated:0,reserved:0}:t;return(0,r.jsxs)(x,{children:[(0,r.jsx)(Z,{text:"Memory"}),i?(0,r.jsx)(de,{}):(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsxs)(o.Z,{display:"flex",width:"100%",children:[(0,r.jsx)(o.Z,{flexGrow:1,children:(0,r.jsx)(k,{text:"Allocated: ".concat(xe()(s.allocated,{binary:!0}))})}),(0,r.jsx)(o.Z,{children:(0,r.jsx)(k,{text:"Free: ".concat(xe()(s.total-s.allocated,{binary:!0}))})})]}),(0,r.jsx)(o.Z,{display:"flex",width:"100%",children:(0,r.jsx)(o.Z,{flexGrow:1,children:(0,r.jsx)(Q,{allocated:s.allocated/s.total*100})})}),(0,r.jsx)(o.Z,{display:"flex",justifyContent:"center",width:"100%",children:(0,r.jsx)(k,{text:"Total: ".concat(xe()(s.total,{binary:!0})," | Reserved: ").concat(xe()(s.reserved,{binary:!0}))})})]})]})},ve=function(e){var n=[],t={bonds:[]};return null===e||void 0===e||e.hosts.forEach((function(e){e.bonds.forEach((function(r){var i=n.findIndex((function(e){return e===r.bond_name}));-1===i?(n.push(r.bond_name),t.bonds.push({bond_name:r.bond_name,bond_uuid:r.bond_uuid,bond_speed:0,bond_state:"degraded",hosts:[{host_name:e.host_name,host_uuid:e.host_uuid,link:r.links[0].is_active?r.links[0]:r.links[1]}]})):t.bonds[i].hosts.push({host_name:e.host_name,host_uuid:e.host_uuid,link:r.links[0].is_active?r.links[0]:r.links[1]})}))})),t.bonds.forEach((function(e){var n=e.hosts[0].link.link_speed>e.hosts[1].link.link_speed?1:0;e.bond_speed=e.hosts[n].link.link_speed,e.bond_state=e.hosts[n].link.link_state})),t},be=(0,s.Z)((function(e){return{container:(0,i.Z)({width:"100%",overflow:"auto",height:"32vh"},e.breakpoints.down("md"),{height:"100%",overflow:"hidden"}),root:{paddingTop:".7em",paddingBottom:".7em"},noPaddingLeft:{paddingLeft:0},divider:{background:a.d},verticalDivider:{height:"3.5em"}}})),_e=function(e){switch(e){case"optimal":return"ok";case"degraded":return"warning";case"down":return"error";default:return"warning"}},Ze=function(){var e=(0,m.useContext)(C).uuid,n=be(),t=f("".concat("/cgi-bin","/get_networks?anvil_uuid=").concat(e)),i=t.data,s=t.isLoading,a=ve(i);return(0,r.jsxs)(x,{children:[(0,r.jsx)(Z,{text:"Network"}),s?(0,r.jsx)(de,{}):(0,r.jsx)(o.Z,{className:n.container,children:i&&a.bonds.map((function(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(o.Z,{display:"flex",flexDirection:"row",width:"100%",className:n.root,children:[(0,r.jsx)(o.Z,{p:1,className:n.noPaddingLeft,children:(0,r.jsx)(D,{colour:_e(e.bond_state)})}),(0,r.jsxs)(o.Z,{p:1,flexGrow:1,className:n.noPaddingLeft,children:[(0,r.jsx)(k,{text:e.bond_name}),(0,r.jsx)(k,{text:"".concat(e.bond_speed,"Mbps")})]}),(0,r.jsx)(o.Z,{display:"flex",style:{paddingTop:".5em"},children:e.hosts.map((function(t,i){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{p:1,style:{paddingTop:0,paddingBottom:0},children:(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(k,{text:t.host_name,selected:!1}),(0,r.jsx)(k,{text:t.link.link_name})]})},t.host_name),i!==e.hosts.length-1&&(0,r.jsx)(G.Z,{className:"".concat(n.divider," ").concat(n.verticalDivider),orientation:"vertical",flexItem:!0})]})}))})]}),(0,r.jsx)(G.Z,{className:n.divider})]})}))})]})},we=new Map([["running","Running"],["idle","Idle"],["paused","Paused"],["in shutdown","Shutting Down"],["shut off","Off"],["crashed","Crashed"],["pmsuspended","PM Suspended"],["migrating","Migrating"]]),ye=(0,s.Z)((function(e){return{root:(0,i.Z)({width:"100%",overflow:"auto",height:"78vh"},e.breakpoints.down("md"),{height:"100%"}),divider:{background:a.d},verticalDivider:{height:"75%",paddingTop:"1em"},button:{"&:hover":{backgroundColor:a.$T},paddingLeft:0},headerPadding:{paddingLeft:".3em"},hostsBox:{padding:"1em",paddingRight:0},hostBox:{paddingTop:0}}})),ke=function(e){switch(e){case"running":return"ok";case"shut off":return"off";case"crashed":return"error";default:return"warning"}},Ne=function(e){var n,t=e.anvil,i=(0,m.useContext)(C).uuid,s=ye(),a=f("".concat("/cgi-bin","/get_servers?anvil_uuid=").concat(i)),d=a.data,c=a.isLoading,l=t.findIndex((function(e){return e.anvil_uuid===i})),u=ce(null===(n=t[l])||void 0===n?void 0:n.hosts);return(0,r.jsxs)(x,{children:[(0,r.jsx)("div",{className:s.headerPadding,children:(0,r.jsx)(Z,{text:"Servers"})}),c?(0,r.jsx)(de,{}):(0,r.jsx)(o.Z,{className:s.root,children:(0,r.jsx)(F.Z,{component:"nav",children:d&&d.servers.map((function(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(A.Z,{button:!0,className:s.button,children:(0,r.jsxs)(o.Z,{display:"flex",flexDirection:"row",width:"100%",children:[(0,r.jsx)(o.Z,{p:1,children:(0,r.jsx)(D,{colour:ke(e.server_state)})}),(0,r.jsxs)(o.Z,{p:1,flexGrow:1,children:[(0,r.jsx)(k,{text:e.server_name}),(0,r.jsx)(k,{text:we.get(e.server_state)||"Not Available"})]}),(0,r.jsx)(o.Z,{display:"flex",className:s.hostsBox,children:"shut off"!==e.server_state&&"crashed"!==e.server_state&&u.map((function(n,t){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{p:1,className:s.hostBox,children:(0,r.jsx)(k,{text:n.host_name,selected:e.server_host_uuid===n.host_uuid})},n.host_uuid),t!==u.length-1&&(0,r.jsx)(G.Z,{className:"".concat(s.divider," ").concat(s.verticalDivider),orientation:"vertical"})]})}))})]})},e.server_uuid),(0,r.jsx)(G.Z,{className:s.divider})]})}))})})]})},Oe=t(5258),Ce=t(7623),Pe=t(282),Te=[{text:"Files",image:"/pngs/files_on.png",uri:"/striker?files=true"},{text:"Tasks",image:"/pngs/tasks_no-jobs_icon.png",uri:"/striker?jobs=true"},{text:"Configure",image:"/pngs/configure_icon_on.png",uri:"/striker?configure=true"},{text:"Striker",image:"/pngs/striker_icon_on.png",uri:"/striker?striker=true"},{text:"Anvil",image:"/pngs/anvil_icon_on.png",uri:"/striker?anvil=true"},{text:"Email",image:"/pngs/email_on.png",uri:"/striker?email=true"},{text:"Help",image:"/pngs/help_icon_on.png",uri:"https://alteeve.com/w/Support"}],De={width:"40em",height:"40em"},Ee=t(5918);function Se(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Le(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:5e3,t=(0,p.ZP)(e,g,{refreshInterval:n}),r=t.data,i=t.error;return{data:r,isLoading:!i&&!r,isError:i}},m=t(7294),j=t(9570),v=t(2318),b=t(4670),_=(0,b.Z)({root:{color:a.lD}})(v.Z),Z=function(e){var n=e.text;return(0,r.jsx)(_,{variant:"h4",children:n})},w=(0,s.Z)((function(){return{selected:{color:a.lD},unselected:{color:a.UZ}}})),y=function(e){var n=e.text,t=e.selected,i=w();return(0,r.jsx)(v.Z,{variant:"subtitle1",className:t?i.selected:i.unselected,children:n})};y.defaultProps={selected:!0};var k=y,N=new Map([["optimal","Optimal"],["not_ready","Not Ready"],["degraded","Degraded"]]),O={uuid:"",setAnvilUuid:function(){return null}},C=(0,m.createContext)(O),P=function(e){var n=e.children,t=(0,m.useState)(""),i=t[0],o=t[1];return(0,r.jsx)(C.Provider,{value:{uuid:i,setAnvilUuid:function(e){o(e)}},children:n})},T=(0,s.Z)((function(){return{decorator:{width:"1.4em",height:"100%",borderRadius:a.n_},ok:{backgroundColor:a.Ej},warning:{backgroundColor:a.Wd},error:{backgroundColor:a.hM},off:{backgroundColor:a.s7}}})),D=function(e){var n=e.colour,t=T();return(0,r.jsx)("div",{className:"".concat(t.decorator," ").concat(t[n])})},E=function(e,n){fetch("".concat("/cgi-bin").concat(e),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})},S=(0,s.Z)((function(){return{root:{width:"100%","&:hover $child":{backgroundColor:a.Gf}},anvilName:{paddingLeft:0}}})),B=function(e){switch(e){case"optimal":return"ok";case"not_ready":return"warning";case"degraded":default:return"error"}},L=function(e){return!(-1===e.hosts.findIndex((function(e){return"offline"!==e.state})))},R=function(e){var n=e.list,t=(0,m.useContext)(C).uuid,i=S(),s=n.findIndex((function(e){return e.anvil_uuid===t}));return(0,r.jsx)(o.Z,{display:"flex",flexDirection:"row",width:"100%",children:""!==t&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{p:1,children:(0,r.jsx)(D,{colour:B(n[s].anvil_state)})}),(0,r.jsxs)(o.Z,{p:1,flexGrow:1,className:i.anvilName,children:[(0,r.jsx)(Z,{text:n[s].anvil_name}),(0,r.jsx)(Z,{text:N.get(n[s].anvil_state)||"State unavailable"})]}),(0,r.jsx)(o.Z,{p:1,children:(0,r.jsx)(j.Z,{checked:L(n[s]),onChange:function(){return E("/set_power",{anvil_uuid:n[s].anvil_uuid,is_on:!L(n[s])})}})})]})})},F=t(2822),G=t(5517),I=t(998),A=function(e){var n=e.anvil;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(k,{text:n.anvil_name}),(0,r.jsx)(k,{text:N.get(n.anvil_state)||"State unavailable"})]})},M=function(e){var n=[],t=[],r=[];return e.forEach((function(e){"optimal"===e.anvil_state?n.push(e):"not_ready"===e.anvil_state?t.push(e):r.push(e)})),[].concat(r,t,n)},U=(0,s.Z)((function(e){return{root:(0,i.Z)({width:"100%",overflow:"auto",height:"30vh"},e.breakpoints.down("md"),{height:"100%",overflow:"hidden"}),divider:{background:a.d},button:{"&:hover":{backgroundColor:a.$T},paddingLeft:0},anvil:{paddingLeft:0}}})),W=function(e){switch(e){case"optimal":return"ok";case"not_ready":return"warning";case"degraded":return"error";default:return"off"}},q=function(e){var n=e.list,t=(0,m.useContext)(C),i=t.uuid,s=t.setAnvilUuid,a=U();return(0,m.useEffect)((function(){""===i&&s(M(n)[0].anvil_uuid)}),[i,n,s]),(0,r.jsx)(F.Z,{component:"nav",className:a.root,"aria-label":"mailbox folders",children:M(n).map((function(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(G.Z,{className:a.divider}),(0,r.jsx)(I.Z,{button:!0,className:a.button,onClick:function(){return s(e.anvil_uuid)},children:(0,r.jsxs)(o.Z,{display:"flex",flexDirection:"row",width:"100%",children:[(0,r.jsx)(o.Z,{p:1,children:(0,r.jsx)(D,{colour:W(e.anvil_state)})}),(0,r.jsx)(o.Z,{p:1,flexGrow:1,className:a.anvil,children:(0,r.jsx)(A,{anvil:e})})]})},e.anvil_uuid)]})}))})};function z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function H(e){for(var n=1;n70?n>90?t.barAlert:t.barWarning:t.barOk},variant:"determinate",value:n}),(0,r.jsx)(X.Z,{variant:"determinate",value:0})]})},V=(0,b.Z)({root:{height:"1em",borderRadius:a.n_},colorPrimary:{backgroundColor:a.v9},bar:{borderRadius:a.n_}})(X.Z),Y=(0,s.Z)((function(){return{barOk:{backgroundColor:a.Ej},barInProgress:{backgroundColor:a.Wd}}})),ee=function(e){var n=e.progressPercentage,t=Y();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(V,{classes:{bar:n<100?t.barInProgress:t.barOk},variant:"determinate",value:n}),(0,r.jsx)(X.Z,{variant:"determinate",value:0})]})},ne=new Map([["message_0222","The node is in an unknown state."],["message_0223","The node is a full cluster member."],["message_0224","The node is coming online; the cluster resource manager is running (step 2/3)."],["message_0225","The node is coming online; the node is a consensus cluster member (step 1/3)."],["message_0226","The node has booted, but it is not (yet) joining the cluster."]]),te=(0,s.Z)((function(e){return{root:(0,i.Z)({overflow:"auto",height:"28vh",paddingLeft:".3em"},e.breakpoints.down("md"),{height:"100%",overflow:"hidden"}),state:{paddingLeft:".7em",paddingRight:".7em",paddingTop:"1em"},bar:{paddingLeft:".7em",paddingRight:".7em"},header:{paddingTop:".3em",paddingRight:".7em"},label:{paddingTop:".3em"},decoratorBox:{paddingRight:".3em"}}})),re=function(e,n){var t=e.exec(n);return t?ne.get(t[0])||"Error code not recognized":"Error code not found"},ie=function(e){switch(e){case"online":return"ok";case"offline":return"off";default:return"warning"}},oe=function(e){var n=e.hosts,t=te(),i=/^[a-zA-Z]/,s=/^(message_[0-9]+)/;return(0,r.jsx)(o.Z,{className:t.root,children:n&&n.map((function(e){var n;return(0,r.jsxs)(u,{children:[(0,r.jsx)(c,{children:(0,r.jsxs)(o.Z,{display:"flex",width:"100%",className:t.header,children:[(0,r.jsx)(o.Z,{flexGrow:1,children:(0,r.jsx)(k,{text:e.host_name})}),(0,r.jsx)(o.Z,{className:t.decoratorBox,children:(0,r.jsx)(D,{colour:ie(e.state)})}),(0,r.jsx)(o.Z,{children:(0,r.jsx)(k,{text:(null===e||void 0===e||null===(n=e.state)||void 0===n?void 0:n.replace(i,(function(e){return e.toUpperCase()})))||"Not Available"})})]})}),(0,r.jsxs)(o.Z,{display:"flex",className:t.state,children:[(0,r.jsx)(o.Z,{className:t.label,children:(0,r.jsx)(k,{text:"Power: "})}),(0,r.jsx)(o.Z,{flexGrow:1,children:(0,r.jsx)(j.Z,{checked:"online"===e.state,onChange:function(){return E("/set_power",{host_uuid:e.host_uuid,is_on:!("online"===e.state)})}})}),(0,r.jsx)(o.Z,{className:t.label,children:(0,r.jsx)(k,{text:"Member: "})}),(0,r.jsx)(o.Z,{children:(0,r.jsx)(j.Z,{checked:"online"===e.state,disabled:!("online"===e.state),onChange:function(){return E("/set_membership",{host_uuid:e.host_uuid,is_member:!("online"===e.state)})}})})]}),"online"!==e.state&&"offline"!==e.state&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{display:"flex",width:"100%",className:t.state,children:(0,r.jsx)(o.Z,{children:(0,r.jsx)(k,{text:re(s,e.state_message)})})}),(0,r.jsx)(o.Z,{display:"flex",width:"100%",className:t.bar,children:(0,r.jsx)(o.Z,{flexGrow:1,children:(0,r.jsx)(ee,{progressPercentage:e.state_percent})})})]})]},e.host_uuid)}))})},se=t(5477),ae=(0,s.Z)((function(){return{root:{display:"flex",alignItems:"center",justifyContent:"center",marginTop:"3em"},spinner:{color:a.lD,variant:"indeterminate",size:"50em"}}})),de=function(){var e=ae();return(0,r.jsx)("div",{className:e.root,children:(0,r.jsx)(se.Z,{className:e.spinner})})},ce=function(e){return null===e||void 0===e?void 0:e.filter((function(e){return e.host_uuid}))},le=function(e){var n=e.anvil,t=(0,m.useContext)(C).uuid,i=f("".concat("/cgi-bin","/get_status?anvil_uuid=").concat(t)),o=i.data,s=i.isLoading,a=n.findIndex((function(e){return e.anvil_uuid===t}));return(0,r.jsxs)(x,{children:[(0,r.jsx)(Z,{text:"Nodes"}),s?(0,r.jsx)(de,{}):(0,r.jsx)(r.Fragment,{children:-1!==a&&o&&(0,r.jsx)(oe,{hosts:ce(n[a].hosts).map((function(e,n){return o.hosts[n]}))})})]})},ue=function(){var e=(0,m.useContext)(C).uuid,n=f("".concat("/cgi-bin","/get_cpu?anvil_uuid=").concat(e)),t=n.data,i=n.isLoading,s=i||!t?{allocated:0,cores:0,threads:0}:t;return(0,r.jsxs)(x,{children:[(0,r.jsx)(Z,{text:"CPU"}),i?(0,r.jsx)(de,{}):(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(o.Z,{display:"flex",width:"100%",children:(0,r.jsxs)(o.Z,{flexGrow:1,style:{marginLeft:"1em",marginTop:"1em"},children:[(0,r.jsx)(k,{text:"Total Cores: ".concat(s.cores)}),(0,r.jsx)(k,{text:"Total Threads: ".concat(s.threads)}),(0,r.jsx)(k,{text:"Allocated Cores: ".concat(s.allocated)})]})})})]})},he=t(8600),xe=t.n(he),pe=(0,s.Z)((function(){return{fs:{paddingLeft:".7em",paddingRight:".7em",paddingTop:"1.2em"},bar:{paddingLeft:".7em",paddingRight:".7em"},decoratorBox:{paddingRight:".3em"}}})),ge=function(e){var n=e.group,t=pe();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(o.Z,{display:"flex",width:"100%",className:t.fs,children:[(0,r.jsx)(o.Z,{flexGrow:1,children:(0,r.jsx)(k,{text:"Used: ".concat(xe()(n.storage_group_total-n.storage_group_free,{binary:!0}))})}),(0,r.jsx)(o.Z,{children:(0,r.jsx)(k,{text:"Free: ".concat(xe()(n.storage_group_free,{binary:!0}))})})]}),(0,r.jsx)(o.Z,{display:"flex",width:"100%",className:t.bar,children:(0,r.jsx)(o.Z,{flexGrow:1,children:(0,r.jsx)(Q,{allocated:(n.storage_group_total-n.storage_group_free)/n.storage_group_total*100})})}),(0,r.jsx)(o.Z,{display:"flex",justifyContent:"center",width:"100%",children:(0,r.jsx)(k,{text:"Total Storage: ".concat(xe()(n.storage_group_total,{binary:!0}))})})]})},fe=(0,s.Z)((function(e){return{header:{paddingTop:".1em",paddingRight:".7em"},root:(0,i.Z)({overflow:"auto",height:"78vh",paddingLeft:".3em"},e.breakpoints.down("md"),{height:"100%"})}})),me=function(){var e=fe(),n=(0,m.useContext)(C).uuid,t=f("".concat("/cgi-bin","/get_shared_storage?anvil_uuid=").concat(n)),i=t.data,s=t.isLoading;return(0,r.jsxs)(x,{children:[(0,r.jsx)(Z,{text:"Shared Storage"}),s?(0,r.jsx)(de,{}):(0,r.jsx)(o.Z,{className:e.root,children:(null===i||void 0===i?void 0:i.storage_groups)&&i.storage_groups.map((function(n){return(0,r.jsxs)(u,{children:[(0,r.jsx)(c,{children:(0,r.jsx)(o.Z,{display:"flex",width:"100%",className:e.header,children:(0,r.jsx)(o.Z,{children:(0,r.jsx)(k,{text:n.storage_group_name})})})}),(0,r.jsx)(ge,{group:n},n.storage_group_uuid)]},n.storage_group_uuid)}))})]})},je=function(){var e=(0,m.useContext)(C).uuid,n=f("".concat("/cgi-bin","/get_memory?anvil_uuid=").concat(e)),t=n.data,i=n.isLoading,s=i||!t?{total:0,allocated:0,reserved:0}:t;return(0,r.jsxs)(x,{children:[(0,r.jsx)(Z,{text:"Memory"}),i?(0,r.jsx)(de,{}):(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsxs)(o.Z,{display:"flex",width:"100%",children:[(0,r.jsx)(o.Z,{flexGrow:1,children:(0,r.jsx)(k,{text:"Allocated: ".concat(xe()(s.allocated,{binary:!0}))})}),(0,r.jsx)(o.Z,{children:(0,r.jsx)(k,{text:"Free: ".concat(xe()(s.total-s.allocated,{binary:!0}))})})]}),(0,r.jsx)(o.Z,{display:"flex",width:"100%",children:(0,r.jsx)(o.Z,{flexGrow:1,children:(0,r.jsx)(Q,{allocated:s.allocated/s.total*100})})}),(0,r.jsx)(o.Z,{display:"flex",justifyContent:"center",width:"100%",children:(0,r.jsx)(k,{text:"Total: ".concat(xe()(s.total,{binary:!0})," | Reserved: ").concat(xe()(s.reserved,{binary:!0}))})})]})]})},ve=function(e){var n=[],t={bonds:[]};return null===e||void 0===e||e.hosts.forEach((function(e){e.bonds.forEach((function(r){var i=n.findIndex((function(e){return e===r.bond_name}));-1===i?(n.push(r.bond_name),t.bonds.push({bond_name:r.bond_name,bond_uuid:r.bond_uuid,bond_speed:0,bond_state:"degraded",hosts:[{host_name:e.host_name,host_uuid:e.host_uuid,link:r.links[0].is_active?r.links[0]:r.links[1]}]})):t.bonds[i].hosts.push({host_name:e.host_name,host_uuid:e.host_uuid,link:r.links[0].is_active?r.links[0]:r.links[1]})}))})),t.bonds.forEach((function(e){var n=e.hosts[0].link.link_speed>e.hosts[1].link.link_speed?1:0;e.bond_speed=e.hosts[n].link.link_speed,e.bond_state=e.hosts[n].link.link_state})),t},be=(0,s.Z)((function(e){return{container:(0,i.Z)({width:"100%",overflow:"auto",height:"32vh"},e.breakpoints.down("md"),{height:"100%",overflow:"hidden"}),root:{paddingTop:".7em",paddingBottom:".7em"},noPaddingLeft:{paddingLeft:0},divider:{background:a.d},verticalDivider:{height:"3.5em"}}})),_e=function(e){switch(e){case"optimal":return"ok";case"degraded":return"warning";case"down":return"error";default:return"warning"}},Ze=function(){var e=(0,m.useContext)(C).uuid,n=be(),t=f("".concat("/cgi-bin","/get_networks?anvil_uuid=").concat(e)),i=t.data,s=t.isLoading,a=ve(i);return(0,r.jsxs)(x,{children:[(0,r.jsx)(Z,{text:"Network"}),s?(0,r.jsx)(de,{}):(0,r.jsx)(o.Z,{className:n.container,children:i&&a.bonds.map((function(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(o.Z,{display:"flex",flexDirection:"row",width:"100%",className:n.root,children:[(0,r.jsx)(o.Z,{p:1,className:n.noPaddingLeft,children:(0,r.jsx)(D,{colour:_e(e.bond_state)})}),(0,r.jsxs)(o.Z,{p:1,flexGrow:1,className:n.noPaddingLeft,children:[(0,r.jsx)(k,{text:e.bond_name}),(0,r.jsx)(k,{text:"".concat(e.bond_speed,"Mbps")})]}),(0,r.jsx)(o.Z,{display:"flex",style:{paddingTop:".5em"},children:e.hosts.map((function(t,i){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{p:1,style:{paddingTop:0,paddingBottom:0},children:(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(k,{text:t.host_name,selected:!1}),(0,r.jsx)(k,{text:t.link.link_name})]})},t.host_name),i!==e.hosts.length-1&&(0,r.jsx)(G.Z,{className:"".concat(n.divider," ").concat(n.verticalDivider),orientation:"vertical",flexItem:!0})]})}))})]}),(0,r.jsx)(G.Z,{className:n.divider})]})}))})]})},we=t(1385),ye=t(7812),ke=t(282),Ne=t(5675),Oe=t(5639),Ce=t(3258),Pe=t(9067),Te=t(8513),De=t(1959),Ee=new Map([["running","Running"],["idle","Idle"],["paused","Paused"],["in shutdown","Shutting Down"],["shut off","Off"],["crashed","Crashed"],["pmsuspended","PM Suspended"],["migrating","Migrating"]]),Se=(0,s.Z)((function(e){return{root:(0,i.Z)({width:"100%",overflow:"auto",height:"78vh"},e.breakpoints.down("md"),{height:"100%"}),divider:{background:a.d},verticalDivider:{height:"75%",paddingTop:"1em"},button:{"&:hover":{backgroundColor:a.$T},paddingLeft:0},headerPadding:{paddingLeft:".3em"},hostsBox:{padding:"1em",paddingRight:0},hostBox:{paddingTop:0},checkbox:{paddingTop:".8em"},menuItem:{backgroundColor:a.lD,paddingRight:"3em","&:hover":{backgroundColor:a.lD}},editButton:{borderRadius:8,backgroundColor:a.s7,"&:hover":{backgroundColor:a.lD}},editButtonBox:{paddingTop:".3em"},dropdown:{paddingTop:".8em",paddingBottom:".8em"},power:{color:a.E5},on:{color:a.Ej},off:{color:a.hM},all:{paddingTop:".5em",paddingLeft:".3em"}}})),Be=function(e){switch(e){case"running":return"ok";case"shut off":return"off";case"crashed":return"error";default:return"warning"}},Le=["on","off"],Re=function(e){var n,t=e.anvil,i=(0,m.useState)(null),s=i[0],d=i[1],c=(0,m.useState)(!1),l=c[0],u=c[1],h=(0,m.useState)(!1),p=h[0],g=h[1],j=(0,m.useState)([]),b=j[0],_=j[1],w=(0,m.useContext)(C).uuid,y=Se(),N=f("".concat("/cgi-bin","/get_servers?anvil_uuid=").concat(w)),O=N.data,P=N.isLoading,T=t.findIndex((function(e){return e.anvil_uuid===w})),S=ce(null===(n=t[T])||void 0===n?void 0:n.hosts);return(0,r.jsxs)(x,{children:[(0,r.jsxs)(o.Z,{className:y.headerPadding,display:"flex",children:[(0,r.jsx)(o.Z,{flexGrow:1,children:(0,r.jsx)(Z,{text:"Servers"})}),(0,r.jsx)(o.Z,{className:y.editButtonBox,children:(0,r.jsx)(ye.Z,{className:y.editButton,style:{color:a.E5},onClick:function(){return u(!l)},children:l?(0,r.jsx)(De.Z,{}):(0,r.jsx)(Pe.Z,{})})})]}),l&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{className:y.headerPadding,display:"flex",children:(0,r.jsxs)(o.Z,{flexGrow:1,className:y.dropdown,children:[(0,r.jsx)(ke.Z,{variant:"contained",startIcon:(0,r.jsx)(Te.Z,{}),onClick:function(e){d(e.currentTarget)},style:{textTransform:"none"},children:(0,r.jsx)(v.Z,{className:y.power,variant:"subtitle1",children:"Power"})}),(0,r.jsx)(Ne.Z,{anchorEl:s,keepMounted:!0,open:Boolean(s),onClose:function(){return d(null)},children:Le.map((function(e){return(0,r.jsx)(Oe.Z,{onClick:function(){return function(e){d(null),b.length&&E("/set_power",{server_uuid_list:b,is_on:"on"===e})}(e)},className:y.menuItem,children:(0,r.jsx)(v.Z,{className:y[e],variant:"subtitle1",children:e.replace(/^[a-z]/,(function(e){return e.toUpperCase()}))})},e)}))})]})}),(0,r.jsxs)(o.Z,{display:"flex",children:[(0,r.jsx)(o.Z,{children:(0,r.jsx)(Ce.Z,{style:{color:a.lD},color:"secondary",checked:p,onChange:function(){_(p?[]:O.servers.map((function(e){return e.server_uuid}))),g(!p)}})}),(0,r.jsx)(o.Z,{className:y.all,children:(0,r.jsx)(k,{text:"All"})})]})]}),P?(0,r.jsx)(de,{}):(0,r.jsx)(o.Z,{className:y.root,children:(0,r.jsx)(F.Z,{component:"nav",children:O&&O.servers.map((function(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(I.Z,{button:!0,className:y.button,children:(0,r.jsxs)(o.Z,{display:"flex",flexDirection:"row",width:"100%",children:[l&&(0,r.jsx)(o.Z,{className:y.checkbox,children:(0,r.jsx)(Ce.Z,{style:{color:a.lD},color:"secondary",checked:void 0!==b.find((function(n){return n===e.server_uuid})),onChange:function(){return function(e){var n=b.indexOf(e);-1===n?b.push(e):b.splice(n,1),_((0,we.Z)(b))}(e.server_uuid)}})}),(0,r.jsx)(o.Z,{p:1,children:(0,r.jsx)(D,{colour:Be(e.server_state)})}),(0,r.jsxs)(o.Z,{p:1,flexGrow:1,children:[(0,r.jsx)(k,{text:e.server_name}),(0,r.jsx)(k,{text:Ee.get(e.server_state)||"Not Available"})]}),(0,r.jsx)(o.Z,{display:"flex",className:y.hostsBox,children:"shut off"!==e.server_state&&"crashed"!==e.server_state&&S.map((function(n,t){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{p:1,className:y.hostBox,children:(0,r.jsx)(k,{text:n.host_name,selected:e.server_host_uuid===n.host_uuid})},n.host_uuid),t!==S.length-1&&(0,r.jsx)(G.Z,{className:"".concat(y.divider," ").concat(y.verticalDivider),orientation:"vertical"})]})}))})]})},e.server_uuid),(0,r.jsx)(G.Z,{className:y.divider})]})}))})})]})},Fe=t(5258),Ge=t(7623),Ie=[{text:"Files",image:"/pngs/files_on.png",uri:"/striker?files=true"},{text:"Tasks",image:"/pngs/tasks_no-jobs_icon.png",uri:"/striker?jobs=true"},{text:"Configure",image:"/pngs/configure_icon_on.png",uri:"/striker?configure=true"},{text:"Striker",image:"/pngs/striker_icon_on.png",uri:"/striker?striker=true"},{text:"Anvil",image:"/pngs/anvil_icon_on.png",uri:"/striker?anvil=true"},{text:"Email",image:"/pngs/email_on.png",uri:"/striker?email=true"},{text:"Help",image:"/pngs/help_icon_on.png",uri:"https://alteeve.com/w/Support"}],Ae={width:"40em",height:"40em"},Me=t(7159);function Ue(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function We(e){for(var n=1;n
\ No newline at end of file +}
\ No newline at end of file